1. Packages
  2. Azure Native
  3. API Docs
  4. marketplace
  5. PrivateStoreCollection
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

azure-native.marketplace.PrivateStoreCollection

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi

    The Collection data structure. Azure REST API version: 2023-01-01. Prior API version in Azure Native 1.x: 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 (
    	"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 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.

    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: pulumi.String("string"),
    AllSubscriptions: pulumi.Bool(false),
    Claim: pulumi.String("string"),
    CollectionId: pulumi.String("string"),
    CollectionName: pulumi.String("string"),
    Enabled: pulumi.Bool(false),
    SubscriptionsList: pulumi.StringArray{
    pulumi.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:

    AppliedRules List<Pulumi.AzureNative.Marketplace.Outputs.RuleResponse>
    Gets list of collection rules
    ApproveAllItems bool
    Indicating whether all items are approved for this collection (=true) or not (=false).
    ApproveAllItemsModifiedAt string
    Gets the modified date of all items approved.
    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.
    AppliedRules []RuleResponse
    Gets list of collection rules
    ApproveAllItems bool
    Indicating whether all items are approved for this collection (=true) or not (=false).
    ApproveAllItemsModifiedAt string
    Gets the modified date of all items approved.
    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.
    appliedRules List<RuleResponse>
    Gets list of collection rules
    approveAllItems Boolean
    Indicating whether all items are approved for this collection (=true) or not (=false).
    approveAllItemsModifiedAt String
    Gets the modified date of all items approved.
    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.
    appliedRules RuleResponse[]
    Gets list of collection rules
    approveAllItems boolean
    Indicating whether all items are approved for this collection (=true) or not (=false).
    approveAllItemsModifiedAt string
    Gets the modified date of all items approved.
    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.
    applied_rules Sequence[RuleResponse]
    Gets list of collection rules
    approve_all_items bool
    Indicating whether all items are approved for this collection (=true) or not (=false).
    approve_all_items_modified_at str
    Gets the modified date of all items approved.
    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.
    appliedRules List<Property Map>
    Gets list of collection rules
    approveAllItems Boolean
    Indicating whether all items are approved for this collection (=true) or not (=false).
    approveAllItemsModifiedAt String
    Gets the modified date of all items approved.
    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

    RuleResponse, RuleResponseArgs

    Type string
    Rule type
    Value List<string>
    Type string
    Rule type
    Value []string
    type String
    Rule type
    value List<String>
    type string
    Rule type
    value string[]
    type str
    Rule type
    value Sequence[str]
    type String
    Rule type
    value List<String>

    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/{privateStoreId}/collections/{collectionId} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.38.0 published on Monday, Apr 22, 2024 by Pulumi