1. Packages
  2. Packages
  3. Pulumi Cloud (Pulumi Service provider)
  4. API Docs
  5. api
  6. OrgTemplateCollection

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.1.0
published on Thursday, May 21, 2026 by Pulumi
pulumiservice logo

This provider is currently in preview.

Viewing docs for Pulumi Cloud v1.1.0
published on Thursday, May 21, 2026 by Pulumi

    Creates a new template collection (source) for an organization. Template collections define where project templates are sourced from, such as a Git repository. Organization members can use these templates to create new stacks with pre-configured infrastructure code.

    Create OrgTemplateCollection Resource

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

    Constructor syntax

    new OrgTemplateCollection(name: string, args: OrgTemplateCollectionArgs, opts?: CustomResourceOptions);
    @overload
    def OrgTemplateCollection(resource_name: str,
                              args: OrgTemplateCollectionArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrgTemplateCollection(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              name: Optional[str] = None,
                              org_name: Optional[str] = None,
                              source_url: Optional[str] = None,
                              destination: Optional[Any] = None,
                              destination_url: Optional[str] = None)
    func NewOrgTemplateCollection(ctx *Context, name string, args OrgTemplateCollectionArgs, opts ...ResourceOption) (*OrgTemplateCollection, error)
    public OrgTemplateCollection(string name, OrgTemplateCollectionArgs args, CustomResourceOptions? opts = null)
    public OrgTemplateCollection(String name, OrgTemplateCollectionArgs args)
    public OrgTemplateCollection(String name, OrgTemplateCollectionArgs args, CustomResourceOptions options)
    
    type: pulumiservice:api:OrgTemplateCollection
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "pulumiservice_api_orgtemplatecollection" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OrgTemplateCollectionArgs
    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 OrgTemplateCollectionArgs
    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 OrgTemplateCollectionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrgTemplateCollectionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrgTemplateCollectionArgs
    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 orgTemplateCollectionResource = new PulumiService.Api.OrgTemplateCollection("orgTemplateCollectionResource", new()
    {
        Name = "string",
        OrgName = "string",
        SourceURL = "string",
        Destination = "any",
        DestinationURL = "string",
    });
    
    example, err := api.NewOrgTemplateCollection(ctx, "orgTemplateCollectionResource", &api.OrgTemplateCollectionArgs{
    	Name:           pulumi.String("string"),
    	OrgName:        pulumi.String("string"),
    	SourceURL:      pulumi.String("string"),
    	Destination:    pulumi.Any("any"),
    	DestinationURL: pulumi.String("string"),
    })
    
    resource "pulumiservice_api_orgtemplatecollection" "orgTemplateCollectionResource" {
      name            = "string"
      org_name        = "string"
      source_url      = "string"
      destination     = "any"
      destination_url = "string"
    }
    
    var orgTemplateCollectionResource = new OrgTemplateCollection("orgTemplateCollectionResource", OrgTemplateCollectionArgs.builder()
        .name("string")
        .orgName("string")
        .sourceURL("string")
        .destination("any")
        .destinationURL("string")
        .build());
    
    org_template_collection_resource = pulumiservice.api.OrgTemplateCollection("orgTemplateCollectionResource",
        name="string",
        org_name="string",
        source_url="string",
        destination="any",
        destination_url="string")
    
    const orgTemplateCollectionResource = new pulumiservice.api.OrgTemplateCollection("orgTemplateCollectionResource", {
        name: "string",
        orgName: "string",
        sourceURL: "string",
        destination: "any",
        destinationURL: "string",
    });
    
    type: pulumiservice:api:OrgTemplateCollection
    properties:
        destination: any
        destinationURL: string
        name: string
        orgName: string
        sourceURL: string
    

    OrgTemplateCollection 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 OrgTemplateCollection resource accepts the following input properties:

    Name string
    The name of the template source.
    OrgName string
    The organization name
    SourceURL string
    The source URL to fetch templates from.
    Destination object
    deprecated - use DestinationURL instead
    DestinationURL string
    The destination URL for the template source.
    Name string
    The name of the template source.
    OrgName string
    The organization name
    SourceURL string
    The source URL to fetch templates from.
    Destination interface{}
    deprecated - use DestinationURL instead
    DestinationURL string
    The destination URL for the template source.
    name string
    The name of the template source.
    org_name string
    The organization name
    source_url string
    The source URL to fetch templates from.
    destination any
    deprecated - use DestinationURL instead
    destination_url string
    The destination URL for the template source.
    name String
    The name of the template source.
    orgName String
    The organization name
    sourceURL String
    The source URL to fetch templates from.
    destination Object
    deprecated - use DestinationURL instead
    destinationURL String
    The destination URL for the template source.
    name string
    The name of the template source.
    orgName string
    The organization name
    sourceURL string
    The source URL to fetch templates from.
    destination any
    deprecated - use DestinationURL instead
    destinationURL string
    The destination URL for the template source.
    name str
    The name of the template source.
    org_name str
    The organization name
    source_url str
    The source URL to fetch templates from.
    destination Any
    deprecated - use DestinationURL instead
    destination_url str
    The destination URL for the template source.
    name String
    The name of the template source.
    orgName String
    The organization name
    sourceURL String
    The source URL to fetch templates from.
    destination Any
    deprecated - use DestinationURL instead
    destinationURL String
    The destination URL for the template source.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Whether the template source configuration is valid.
    TemplateID string
    The unique identifier of the template source.
    Error string
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    Id string
    The provider-assigned unique ID for this managed resource.
    IsValid bool
    Whether the template source configuration is valid.
    TemplateID string
    The unique identifier of the template source.
    Error string
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    id string
    The provider-assigned unique ID for this managed resource.
    is_valid bool
    Whether the template source configuration is valid.
    template_id string
    The unique identifier of the template source.
    error string
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Whether the template source configuration is valid.
    templateID String
    The unique identifier of the template source.
    error String
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    id string
    The provider-assigned unique ID for this managed resource.
    isValid boolean
    Whether the template source configuration is valid.
    templateID string
    The unique identifier of the template source.
    error string
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    id str
    The provider-assigned unique ID for this managed resource.
    is_valid bool
    Whether the template source configuration is valid.
    template_id str
    The unique identifier of the template source.
    error str
    An error message if the template source is invalid. Omitted or empty when the source is valid.
    id String
    The provider-assigned unique ID for this managed resource.
    isValid Boolean
    Whether the template source configuration is valid.
    templateID String
    The unique identifier of the template source.
    error String
    An error message if the template source is invalid. Omitted or empty when the source is valid.

    Package Details

    Repository
    pulumiservice pulumi/pulumi-pulumiservice
    License
    Apache-2.0
    pulumiservice logo

    This provider is currently in preview.

    Viewing docs for Pulumi Cloud v1.1.0
    published on Thursday, May 21, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial