azure-native.marketplace.PrivateStoreCollection
Explore with Pulumi AI
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 (
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 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: 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:
- Private
Store stringId - The store ID - must use the tenant ID
- All
Subscriptions bool - Indicating whether all subscriptions are selected (=true) or not (=false).
- Claim string
- Gets or sets the association with Commercial's Billing Account.
- Collection
Id string - The collection ID
- Collection
Name string - Gets or sets collection name.
- Enabled bool
- Indicating whether the collection is enabled or disabled.
- Subscriptions
List 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
- Private
Store stringId - The store ID - must use the tenant ID
- All
Subscriptions bool - Indicating whether all subscriptions are selected (=true) or not (=false).
- Claim string
- Gets or sets the association with Commercial's Billing Account.
- Collection
Id string - The collection ID
- Collection
Name string - Gets or sets collection name.
- Enabled bool
- Indicating whether the collection is enabled or disabled.
- Subscriptions
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
- private
Store StringId - The store ID - must use the tenant ID
- all
Subscriptions Boolean - Indicating whether all subscriptions are selected (=true) or not (=false).
- claim String
- Gets or sets the association with Commercial's Billing Account.
- collection
Id String - The collection ID
- collection
Name String - Gets or sets collection name.
- enabled Boolean
- Indicating whether the collection is enabled or disabled.
- subscriptions
List 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
- private
Store stringId - The store ID - must use the tenant ID
- all
Subscriptions boolean - Indicating whether all subscriptions are selected (=true) or not (=false).
- claim string
- Gets or sets the association with Commercial's Billing Account.
- collection
Id string - The collection ID
- collection
Name string - Gets or sets collection name.
- enabled boolean
- Indicating whether the collection is enabled or disabled.
- subscriptions
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
- 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
- private
Store StringId - The store ID - must use the tenant ID
- all
Subscriptions Boolean - Indicating whether all subscriptions are selected (=true) or not (=false).
- claim String
- Gets or sets the association with Commercial's Billing Account.
- collection
Id String - The collection ID
- collection
Name String - Gets or sets collection name.
- enabled Boolean
- Indicating whether the collection is enabled or disabled.
- subscriptions
List 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:
- Applied
Rules List<Pulumi.Azure Native. Marketplace. Outputs. Rule Response> - Gets list of collection rules
- Approve
All boolItems - Indicating whether all items are approved for this collection (=true) or not (=false).
- Approve
All 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.
- Number
Of doubleOffers - Gets the number of offers associated with the collection.
- System
Data 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.
- Applied
Rules []RuleResponse - Gets list of collection rules
- Approve
All boolItems - Indicating whether all items are approved for this collection (=true) or not (=false).
- Approve
All 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.
- Number
Of float64Offers - Gets the number of offers associated with the collection.
- System
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- Type string
- The type of the resource.
- applied
Rules List<RuleResponse> - Gets list of collection rules
- approve
All BooleanItems - Indicating whether all items are approved for this collection (=true) or not (=false).
- approve
All 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.
- number
Of DoubleOffers - Gets the number of offers associated with the collection.
- system
Data SystemData Response - Metadata pertaining to creation and last modification of the resource
- type String
- The type of the resource.
- applied
Rules RuleResponse[] - Gets list of collection rules
- approve
All booleanItems - Indicating whether all items are approved for this collection (=true) or not (=false).
- approve
All 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.
- number
Of numberOffers - Gets the number of offers associated with the collection.
- system
Data 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.
- applied
Rules List<Property Map> - Gets list of collection rules
- approve
All BooleanItems - Indicating whether all items are approved for this collection (=true) or not (=false).
- approve
All 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.
- number
Of NumberOffers - Gets the number of offers associated with the collection.
- system
Data 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
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource
- Created
At string - The timestamp of resource creation (UTC)
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource
- created
At String - The timestamp of resource creation (UTC)
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource
- created
At string - The timestamp of resource creation (UTC)
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified 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
- created
At String - The timestamp of resource creation (UTC)
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified 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