Private Store Collection
The Collection data structure. Uses Azure REST API version 2023-01-01. In version 1.x of the Azure Native provider, it used API version 2021-12-01.
Example Usage
CreatePrivateStoreCollection
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var privateStoreCollection = new AzureNative.Marketplace.PrivateStoreCollection("privateStoreCollection", new()
{
AllSubscriptions = false,
Claim = "",
CollectionId = "d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1",
CollectionName = "Test Collection",
PrivateStoreId = "a0e28e55-90c4-41d8-8e34-bb7ef7775406",
SubscriptionsList = new[]
{
"b340914e-353d-453a-85fb-8f9b65b51f91",
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48",
},
});
});
package main
import (
marketplace "github.com/pulumi/pulumi-azure-native-sdk/marketplace/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := marketplace.NewPrivateStoreCollection(ctx, "privateStoreCollection", &marketplace.PrivateStoreCollectionArgs{
AllSubscriptions: pulumi.Bool(false),
Claim: pulumi.String(""),
CollectionId: pulumi.String("d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1"),
CollectionName: pulumi.String("Test Collection"),
PrivateStoreId: pulumi.String("a0e28e55-90c4-41d8-8e34-bb7ef7775406"),
SubscriptionsList: pulumi.StringArray{
pulumi.String("b340914e-353d-453a-85fb-8f9b65b51f91"),
pulumi.String("f2baa04d-5bfc-461b-b6d8-61b403c9ec48"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.marketplace.PrivateStoreCollection;
import com.pulumi.azurenative.marketplace.PrivateStoreCollectionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var privateStoreCollection = new PrivateStoreCollection("privateStoreCollection", PrivateStoreCollectionArgs.builder()
.allSubscriptions(false)
.claim("")
.collectionId("d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1")
.collectionName("Test Collection")
.privateStoreId("a0e28e55-90c4-41d8-8e34-bb7ef7775406")
.subscriptionsList(
"b340914e-353d-453a-85fb-8f9b65b51f91",
"f2baa04d-5bfc-461b-b6d8-61b403c9ec48")
.build());
}
}
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:marketplace:PrivateStoreCollection d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1 /providers/Microsoft.Marketplace/privateStores/{privateStoreId}/collections/{collectionId}
Properties
Indicating whether all subscriptions are selected (=true) or not (=false).
Gets list of collection rules
Indicating whether all items are approved for this collection (=true) or not (=false).
Gets the modified date of all items approved.
Gets collection Id.
Gets or sets collection name.
Gets the number of offers associated with the collection.
Gets or sets subscription ids list. Empty list indicates all subscriptions are selected, null indicates no update is done, explicit list indicates the explicit selected subscriptions. On insert, null is considered as bad request
Metadata pertaining to creation and last modification of the resource