1. Packages
  2. Azure Native v1
  3. API Docs
  4. marketplace
  5. PrivateStoreCollection
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.marketplace.PrivateStoreCollection

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    The Collection data structure. 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"
    	"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 pulumi
    import pulumi_azure_native as azure_native
    
    private_store_collection = azure_native.marketplace.PrivateStoreCollection("privateStoreCollection",
        all_subscriptions=False,
        claim="",
        collection_id="d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1",
        collection_name="Test Collection",
        private_store_id="a0e28e55-90c4-41d8-8e34-bb7ef7775406",
        subscriptions_list=[
            "b340914e-353d-453a-85fb-8f9b65b51f91",
            "f2baa04d-5bfc-461b-b6d8-61b403c9ec48",
        ])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const privateStoreCollection = new azure_native.marketplace.PrivateStoreCollection("privateStoreCollection", {
        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",
        ],
    });
    
    resources:
      privateStoreCollection:
        type: azure-native:marketplace:PrivateStoreCollection
        properties:
          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
    

    Create PrivateStoreCollection Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PrivateStoreCollection(name: string, args: PrivateStoreCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def PrivateStoreCollection(resource_name: str,
                               args: PrivateStoreCollectionArgs,
                               opts: Optional[ResourceOptions] = None)
    
    @overload
    def PrivateStoreCollection(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               private_store_id: Optional[str] = None,
                               all_subscriptions: Optional[bool] = None,
                               claim: Optional[str] = None,
                               collection_id: Optional[str] = None,
                               collection_name: Optional[str] = None,
                               enabled: Optional[bool] = None,
                               subscriptions_list: Optional[Sequence[str]] = None)
    func NewPrivateStoreCollection(ctx *Context, name string, args PrivateStoreCollectionArgs, opts ...ResourceOption) (*PrivateStoreCollection, error)
    public PrivateStoreCollection(string name, PrivateStoreCollectionArgs args, CustomResourceOptions? opts = null)
    public PrivateStoreCollection(String name, PrivateStoreCollectionArgs args)
    public PrivateStoreCollection(String name, PrivateStoreCollectionArgs args, CustomResourceOptions options)
    
    type: azure-native:marketplace:PrivateStoreCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args PrivateStoreCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args PrivateStoreCollectionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args PrivateStoreCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PrivateStoreCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PrivateStoreCollectionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var privateStoreCollectionResource = new AzureNative.Marketplace.PrivateStoreCollection("privateStoreCollectionResource", new()
    {
        PrivateStoreId = "string",
        AllSubscriptions = false,
        Claim = "string",
        CollectionId = "string",
        CollectionName = "string",
        Enabled = false,
        SubscriptionsList = new[]
        {
            "string",
        },
    });
    
    example, err := marketplace.NewPrivateStoreCollection(ctx, "privateStoreCollectionResource", &marketplace.PrivateStoreCollectionArgs{
    	PrivateStoreId:   "string",
    	AllSubscriptions: false,
    	Claim:            "string",
    	CollectionId:     "string",
    	CollectionName:   "string",
    	Enabled:          false,
    	SubscriptionsList: []string{
    		"string",
    	},
    })
    
    var privateStoreCollectionResource = new PrivateStoreCollection("privateStoreCollectionResource", PrivateStoreCollectionArgs.builder()
        .privateStoreId("string")
        .allSubscriptions(false)
        .claim("string")
        .collectionId("string")
        .collectionName("string")
        .enabled(false)
        .subscriptionsList("string")
        .build());
    
    private_store_collection_resource = azure_native.marketplace.PrivateStoreCollection("privateStoreCollectionResource",
        private_store_id=string,
        all_subscriptions=False,
        claim=string,
        collection_id=string,
        collection_name=string,
        enabled=False,
        subscriptions_list=[string])
    
    const privateStoreCollectionResource = new azure_native.marketplace.PrivateStoreCollection("privateStoreCollectionResource", {
        privateStoreId: "string",
        allSubscriptions: false,
        claim: "string",
        collectionId: "string",
        collectionName: "string",
        enabled: false,
        subscriptionsList: ["string"],
    });
    
    type: azure-native:marketplace:PrivateStoreCollection
    properties:
        allSubscriptions: false
        claim: string
        collectionId: string
        collectionName: string
        enabled: false
        privateStoreId: string
        subscriptionsList:
            - string
    

    PrivateStoreCollection Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The PrivateStoreCollection resource accepts the following input properties:

    PrivateStoreId string
    The store ID - must use the tenant ID
    AllSubscriptions bool
    Indicating whether all subscriptions are selected (=true) or not (=false).
    Claim string
    Gets or sets the association with Commercial's Billing Account.
    CollectionId string
    The collection ID
    CollectionName string
    Gets or sets collection name.
    Enabled bool
    Indicating whether the collection is enabled or disabled.
    SubscriptionsList List<string>
    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
    PrivateStoreId string
    The store ID - must use the tenant ID
    AllSubscriptions bool
    Indicating whether all subscriptions are selected (=true) or not (=false).
    Claim string
    Gets or sets the association with Commercial's Billing Account.
    CollectionId string
    The collection ID
    CollectionName string
    Gets or sets collection name.
    Enabled bool
    Indicating whether the collection is enabled or disabled.
    SubscriptionsList []string
    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
    privateStoreId String
    The store ID - must use the tenant ID
    allSubscriptions Boolean
    Indicating whether all subscriptions are selected (=true) or not (=false).
    claim String
    Gets or sets the association with Commercial's Billing Account.
    collectionId String
    The collection ID
    collectionName String
    Gets or sets collection name.
    enabled Boolean
    Indicating whether the collection is enabled or disabled.
    subscriptionsList List<String>
    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
    privateStoreId string
    The store ID - must use the tenant ID
    allSubscriptions boolean
    Indicating whether all subscriptions are selected (=true) or not (=false).
    claim string
    Gets or sets the association with Commercial's Billing Account.
    collectionId string
    The collection ID
    collectionName string
    Gets or sets collection name.
    enabled boolean
    Indicating whether the collection is enabled or disabled.
    subscriptionsList string[]
    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
    private_store_id str
    The store ID - must use the tenant ID
    all_subscriptions bool
    Indicating whether all subscriptions are selected (=true) or not (=false).
    claim str
    Gets or sets the association with Commercial's Billing Account.
    collection_id str
    The collection ID
    collection_name str
    Gets or sets collection name.
    enabled bool
    Indicating whether the collection is enabled or disabled.
    subscriptions_list Sequence[str]
    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
    privateStoreId String
    The store ID - must use the tenant ID
    allSubscriptions Boolean
    Indicating whether all subscriptions are selected (=true) or not (=false).
    claim String
    Gets or sets the association with Commercial's Billing Account.
    collectionId String
    The collection ID
    collectionName String
    Gets or sets collection name.
    enabled Boolean
    Indicating whether the collection is enabled or disabled.
    subscriptionsList List<String>
    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

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PrivateStoreCollection resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    NumberOfOffers double
    Gets the number of offers associated with the collection.
    SystemData Pulumi.AzureNative.Marketplace.Outputs.SystemDataResponse
    Metadata pertaining to creation and last modification of the resource
    Type string
    The type of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource.
    NumberOfOffers float64
    Gets the number of offers associated with the collection.
    SystemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource
    Type string
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    numberOfOffers Double
    Gets the number of offers associated with the collection.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource
    type String
    The type of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource.
    numberOfOffers number
    Gets the number of offers associated with the collection.
    systemData SystemDataResponse
    Metadata pertaining to creation and last modification of the resource
    type string
    The type of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource.
    number_of_offers float
    Gets the number of offers associated with the collection.
    system_data SystemDataResponse
    Metadata pertaining to creation and last modification of the resource
    type str
    The type of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource.
    numberOfOffers Number
    Gets the number of offers associated with the collection.
    systemData Property Map
    Metadata pertaining to creation and last modification of the resource
    type String
    The type of the resource.

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC)
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource
    CreatedAt string
    The timestamp of resource creation (UTC)
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource
    createdAt String
    The timestamp of resource creation (UTC)
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource
    createdAt string
    The timestamp of resource creation (UTC)
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource
    created_at str
    The timestamp of resource creation (UTC)
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource
    createdAt String
    The timestamp of resource creation (UTC)
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource

    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/a0e28e55-90c4-41d8-8e34-bb7ef7775406/collections/d0f5aa2c-ecc3-4d87-906a-f8c486dcc4f1 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi