PrivateStoreCollection

class PrivateStoreCollection : KotlinCustomResource

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}

Properties

Link copied to clipboard

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

Link copied to clipboard

Gets list of collection rules

Link copied to clipboard

Indicating whether all items are approved for this collection (=true) or not (=false).

Link copied to clipboard

Gets the modified date of all items approved.

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

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

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

Link copied to clipboard
val collectionId: Output<String>

Gets collection Id.

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

Gets or sets collection name.

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

Indicating whether the collection is enabled or disabled.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource.

Link copied to clipboard
val numberOfOffers: Output<Double>

Gets the number of offers associated with the collection.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource

Link copied to clipboard
val type: Output<String>

The type of the resource.

Link copied to clipboard
val urn: Output<String>