1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. TenantCommonVariable
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

octopusdeploy.TenantCommonVariable

Explore with Pulumi AI

octopusdeploy logo
octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs

    Manages a tenant common variable in Octopus Deploy.

    Create TenantCommonVariable Resource

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

    Constructor syntax

    new TenantCommonVariable(name: string, args: TenantCommonVariableArgs, opts?: CustomResourceOptions);
    @overload
    def TenantCommonVariable(resource_name: str,
                             args: TenantCommonVariableArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def TenantCommonVariable(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             library_variable_set_id: Optional[str] = None,
                             template_id: Optional[str] = None,
                             tenant_id: Optional[str] = None,
                             space_id: Optional[str] = None,
                             value: Optional[str] = None)
    func NewTenantCommonVariable(ctx *Context, name string, args TenantCommonVariableArgs, opts ...ResourceOption) (*TenantCommonVariable, error)
    public TenantCommonVariable(string name, TenantCommonVariableArgs args, CustomResourceOptions? opts = null)
    public TenantCommonVariable(String name, TenantCommonVariableArgs args)
    public TenantCommonVariable(String name, TenantCommonVariableArgs args, CustomResourceOptions options)
    
    type: octopusdeploy:TenantCommonVariable
    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 TenantCommonVariableArgs
    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 TenantCommonVariableArgs
    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 TenantCommonVariableArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TenantCommonVariableArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TenantCommonVariableArgs
    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 tenantCommonVariableResource = new Octopusdeploy.TenantCommonVariable("tenantCommonVariableResource", new()
    {
        LibraryVariableSetId = "string",
        TemplateId = "string",
        TenantId = "string",
        SpaceId = "string",
        Value = "string",
    });
    
    example, err := octopusdeploy.NewTenantCommonVariable(ctx, "tenantCommonVariableResource", &octopusdeploy.TenantCommonVariableArgs{
    	LibraryVariableSetId: pulumi.String("string"),
    	TemplateId:           pulumi.String("string"),
    	TenantId:             pulumi.String("string"),
    	SpaceId:              pulumi.String("string"),
    	Value:                pulumi.String("string"),
    })
    
    var tenantCommonVariableResource = new TenantCommonVariable("tenantCommonVariableResource", TenantCommonVariableArgs.builder()
        .libraryVariableSetId("string")
        .templateId("string")
        .tenantId("string")
        .spaceId("string")
        .value("string")
        .build());
    
    tenant_common_variable_resource = octopusdeploy.TenantCommonVariable("tenantCommonVariableResource",
        library_variable_set_id="string",
        template_id="string",
        tenant_id="string",
        space_id="string",
        value="string")
    
    const tenantCommonVariableResource = new octopusdeploy.TenantCommonVariable("tenantCommonVariableResource", {
        libraryVariableSetId: "string",
        templateId: "string",
        tenantId: "string",
        spaceId: "string",
        value: "string",
    });
    
    type: octopusdeploy:TenantCommonVariable
    properties:
        libraryVariableSetId: string
        spaceId: string
        templateId: string
        tenantId: string
        value: string
    

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

    LibraryVariableSetId string
    The ID of the library variable set.
    TemplateId string
    The ID of the variable template.
    TenantId string
    The ID of the tenant.
    SpaceId string
    The space ID associated with this Tenant Common Variable.
    Value string
    The value of the variable.
    LibraryVariableSetId string
    The ID of the library variable set.
    TemplateId string
    The ID of the variable template.
    TenantId string
    The ID of the tenant.
    SpaceId string
    The space ID associated with this Tenant Common Variable.
    Value string
    The value of the variable.
    libraryVariableSetId String
    The ID of the library variable set.
    templateId String
    The ID of the variable template.
    tenantId String
    The ID of the tenant.
    spaceId String
    The space ID associated with this Tenant Common Variable.
    value String
    The value of the variable.
    libraryVariableSetId string
    The ID of the library variable set.
    templateId string
    The ID of the variable template.
    tenantId string
    The ID of the tenant.
    spaceId string
    The space ID associated with this Tenant Common Variable.
    value string
    The value of the variable.
    library_variable_set_id str
    The ID of the library variable set.
    template_id str
    The ID of the variable template.
    tenant_id str
    The ID of the tenant.
    space_id str
    The space ID associated with this Tenant Common Variable.
    value str
    The value of the variable.
    libraryVariableSetId String
    The ID of the library variable set.
    templateId String
    The ID of the variable template.
    tenantId String
    The ID of the tenant.
    spaceId String
    The space ID associated with this Tenant Common Variable.
    value String
    The value of the variable.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TenantCommonVariable Resource

    Get an existing TenantCommonVariable resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TenantCommonVariableState, opts?: CustomResourceOptions): TenantCommonVariable
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            library_variable_set_id: Optional[str] = None,
            space_id: Optional[str] = None,
            template_id: Optional[str] = None,
            tenant_id: Optional[str] = None,
            value: Optional[str] = None) -> TenantCommonVariable
    func GetTenantCommonVariable(ctx *Context, name string, id IDInput, state *TenantCommonVariableState, opts ...ResourceOption) (*TenantCommonVariable, error)
    public static TenantCommonVariable Get(string name, Input<string> id, TenantCommonVariableState? state, CustomResourceOptions? opts = null)
    public static TenantCommonVariable get(String name, Output<String> id, TenantCommonVariableState state, CustomResourceOptions options)
    resources:  _:    type: octopusdeploy:TenantCommonVariable    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    LibraryVariableSetId string
    The ID of the library variable set.
    SpaceId string
    The space ID associated with this Tenant Common Variable.
    TemplateId string
    The ID of the variable template.
    TenantId string
    The ID of the tenant.
    Value string
    The value of the variable.
    LibraryVariableSetId string
    The ID of the library variable set.
    SpaceId string
    The space ID associated with this Tenant Common Variable.
    TemplateId string
    The ID of the variable template.
    TenantId string
    The ID of the tenant.
    Value string
    The value of the variable.
    libraryVariableSetId String
    The ID of the library variable set.
    spaceId String
    The space ID associated with this Tenant Common Variable.
    templateId String
    The ID of the variable template.
    tenantId String
    The ID of the tenant.
    value String
    The value of the variable.
    libraryVariableSetId string
    The ID of the library variable set.
    spaceId string
    The space ID associated with this Tenant Common Variable.
    templateId string
    The ID of the variable template.
    tenantId string
    The ID of the tenant.
    value string
    The value of the variable.
    library_variable_set_id str
    The ID of the library variable set.
    space_id str
    The space ID associated with this Tenant Common Variable.
    template_id str
    The ID of the variable template.
    tenant_id str
    The ID of the tenant.
    value str
    The value of the variable.
    libraryVariableSetId String
    The ID of the library variable set.
    spaceId String
    The space ID associated with this Tenant Common Variable.
    templateId String
    The ID of the variable template.
    tenantId String
    The ID of the tenant.
    value String
    The value of the variable.

    Package Details

    Repository
    octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
    License
    Notes
    This Pulumi package is based on the octopusdeploy Terraform Provider.
    octopusdeploy logo
    octopusdeploy 0.43.1 published on Wednesday, Apr 30, 2025 by octopusdeploylabs