azure-native.marketplace.PrivateStoreCollection
Explore with Pulumi AI
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",
        },
    });
});
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
	})
}
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 * 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",
    ],
});
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",
    ])
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:   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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The PrivateStoreCollection resource accepts the following input properties:
- PrivateStore stringId 
- 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
- PrivateStore stringId 
- 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
- privateStore StringId 
- 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
- privateStore stringId 
- 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_ strid 
- 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
- privateStore StringId 
- 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.Azure Native. Marketplace. Outputs. Rule Response> 
- Gets list of collection rules
- ApproveAll boolItems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- ApproveAll stringItems Modified At 
- 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.
- NumberOf doubleOffers 
- Gets the number of offers associated with the collection.
- SystemData Pulumi.Azure Native. Marketplace. Outputs. System Data Response 
- Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource.
- AppliedRules []RuleResponse 
- Gets list of collection rules
- ApproveAll boolItems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- ApproveAll stringItems Modified At 
- 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.
- NumberOf float64Offers 
- Gets the number of offers associated with the collection.
- SystemData SystemData Response 
- 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
- approveAll BooleanItems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- approveAll StringItems Modified At 
- 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.
- numberOf DoubleOffers 
- Gets the number of offers associated with the collection.
- systemData SystemData Response 
- Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource.
- appliedRules RuleResponse[] 
- Gets list of collection rules
- approveAll booleanItems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- approveAll stringItems Modified At 
- 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.
- numberOf numberOffers 
- Gets the number of offers associated with the collection.
- systemData SystemData Response 
- 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_ boolitems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- approve_all_ stritems_ modified_ at 
- 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_ floatoffers 
- Gets the number of offers associated with the collection.
- system_data SystemData Response 
- 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
- approveAll BooleanItems 
- Indicating whether all items are approved for this collection (=true) or not (=false).
- approveAll StringItems Modified At 
- 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.
- numberOf NumberOffers 
- 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    
SystemDataResponse, SystemDataResponseArgs      
- CreatedAt string
- The timestamp of resource creation (UTC)
- CreatedBy string
- The identity that created the resource.
- CreatedBy stringType 
- The type of identity that created the resource
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- CreatedBy stringType 
- The type of identity that created the resource
- LastModified stringAt 
- The timestamp of resource last modification (UTC)
- LastModified stringBy 
- The identity that last modified the resource.
- LastModified stringBy Type 
- 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.
- createdBy StringType 
- The type of identity that created the resource
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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.
- createdBy stringType 
- The type of identity that created the resource
- lastModified stringAt 
- The timestamp of resource last modification (UTC)
- lastModified stringBy 
- The identity that last modified the resource.
- lastModified stringBy Type 
- 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_ strtype 
- The type of identity that created the resource
- last_modified_ strat 
- The timestamp of resource last modification (UTC)
- last_modified_ strby 
- The identity that last modified the resource.
- last_modified_ strby_ type 
- 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.
- createdBy StringType 
- The type of identity that created the resource
- lastModified StringAt 
- The timestamp of resource last modification (UTC)
- lastModified StringBy 
- The identity that last modified the resource.
- lastModified StringBy Type 
- 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