Private Store Collection Args
data class PrivateStoreCollectionArgs(val allSubscriptions: Output<Boolean>? = null, val claim: Output<String>? = null, val collectionId: Output<String>? = null, val collectionName: Output<String>? = null, val enabled: Output<Boolean>? = null, val privateStoreId: Output<String>? = null, val subscriptionsList: Output<List<String>>? = null) : ConvertibleToJava<PrivateStoreCollectionArgs>
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",
},
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
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}
Content copied to clipboard
Properties
Link copied to clipboard
Indicating whether all subscriptions are selected (=true) or not (=false).
Link copied to clipboard
The collection ID
Link copied to clipboard
Gets or sets collection name.
Link copied to clipboard
The store ID - must use the tenant ID
Link copied to clipboard
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