PrivateStoreCollectionArgs

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 2.x of the Azure Native provider, it used API version 2023-01-01. Other available API versions: 2025-01-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native marketplace [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

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/v3"
"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}

Constructors

Link copied to clipboard
constructor(allSubscriptions: Output<Boolean>? = null, claim: Output<String>? = null, collectionId: Output<String>? = null, collectionName: Output<String>? = null, enabled: Output<Boolean>? = null, privateStoreId: Output<String>? = null, subscriptionsList: Output<List<String>>? = null)

Properties

Link copied to clipboard
val allSubscriptions: Output<Boolean>? = null

Indicating whether all subscriptions are selected (=true) or not (=false).

Link copied to clipboard
val claim: Output<String>? = null

Gets or sets the association with Commercial's Billing Account.

Link copied to clipboard
val collectionId: Output<String>? = null

The collection ID

Link copied to clipboard
val collectionName: Output<String>? = null

Gets or sets collection name.

Link copied to clipboard
val enabled: Output<Boolean>? = null

Indicating whether the collection is enabled or disabled.

Link copied to clipboard
val privateStoreId: Output<String>? = null

The store ID - must use the tenant ID

Link copied to clipboard
val subscriptionsList: Output<List<String>>? = null

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

Functions

Link copied to clipboard
open override fun toJava(): PrivateStoreCollectionArgs