octopusdeploy.TenantProjectVariable
Explore with Pulumi AI
Manages a tenant project variable in Octopus Deploy.
Create TenantProjectVariable Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TenantProjectVariable(name: string, args: TenantProjectVariableArgs, opts?: CustomResourceOptions);
@overload
def TenantProjectVariable(resource_name: str,
args: TenantProjectVariableArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TenantProjectVariable(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
project_id: Optional[str] = None,
template_id: Optional[str] = None,
tenant_id: Optional[str] = None,
space_id: Optional[str] = None,
value: Optional[str] = None)
func NewTenantProjectVariable(ctx *Context, name string, args TenantProjectVariableArgs, opts ...ResourceOption) (*TenantProjectVariable, error)
public TenantProjectVariable(string name, TenantProjectVariableArgs args, CustomResourceOptions? opts = null)
public TenantProjectVariable(String name, TenantProjectVariableArgs args)
public TenantProjectVariable(String name, TenantProjectVariableArgs args, CustomResourceOptions options)
type: octopusdeploy:TenantProjectVariable
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 TenantProjectVariableArgs
- 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 TenantProjectVariableArgs
- 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 TenantProjectVariableArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantProjectVariableArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantProjectVariableArgs
- 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 tenantProjectVariableResource = new Octopusdeploy.TenantProjectVariable("tenantProjectVariableResource", new()
{
EnvironmentId = "string",
ProjectId = "string",
TemplateId = "string",
TenantId = "string",
SpaceId = "string",
Value = "string",
});
example, err := octopusdeploy.NewTenantProjectVariable(ctx, "tenantProjectVariableResource", &octopusdeploy.TenantProjectVariableArgs{
EnvironmentId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
TemplateId: pulumi.String("string"),
TenantId: pulumi.String("string"),
SpaceId: pulumi.String("string"),
Value: pulumi.String("string"),
})
var tenantProjectVariableResource = new TenantProjectVariable("tenantProjectVariableResource", TenantProjectVariableArgs.builder()
.environmentId("string")
.projectId("string")
.templateId("string")
.tenantId("string")
.spaceId("string")
.value("string")
.build());
tenant_project_variable_resource = octopusdeploy.TenantProjectVariable("tenantProjectVariableResource",
environment_id="string",
project_id="string",
template_id="string",
tenant_id="string",
space_id="string",
value="string")
const tenantProjectVariableResource = new octopusdeploy.TenantProjectVariable("tenantProjectVariableResource", {
environmentId: "string",
projectId: "string",
templateId: "string",
tenantId: "string",
spaceId: "string",
value: "string",
});
type: octopusdeploy:TenantProjectVariable
properties:
environmentId: string
projectId: string
spaceId: string
templateId: string
tenantId: string
value: string
TenantProjectVariable 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 TenantProjectVariable resource accepts the following input properties:
- Environment
Id string - The ID of the environment.
- Project
Id string - The ID of the project.
- Template
Id string - The ID of the variable template.
- Tenant
Id string - The ID of the tenant.
- Space
Id string - The space ID associated with this Tenant Project Variable.
- Value string
- The value of the variable.
- Environment
Id string - The ID of the environment.
- Project
Id string - The ID of the project.
- Template
Id string - The ID of the variable template.
- Tenant
Id string - The ID of the tenant.
- Space
Id string - The space ID associated with this Tenant Project Variable.
- Value string
- The value of the variable.
- environment
Id String - The ID of the environment.
- project
Id String - The ID of the project.
- template
Id String - The ID of the variable template.
- tenant
Id String - The ID of the tenant.
- space
Id String - The space ID associated with this Tenant Project Variable.
- value String
- The value of the variable.
- environment
Id string - The ID of the environment.
- project
Id string - The ID of the project.
- template
Id string - The ID of the variable template.
- tenant
Id string - The ID of the tenant.
- space
Id string - The space ID associated with this Tenant Project Variable.
- value string
- The value of the variable.
- environment_
id str - The ID of the environment.
- project_
id str - The ID of the project.
- 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 Project Variable.
- value str
- The value of the variable.
- environment
Id String - The ID of the environment.
- project
Id String - The ID of the project.
- template
Id String - The ID of the variable template.
- tenant
Id String - The ID of the tenant.
- space
Id String - The space ID associated with this Tenant Project Variable.
- value String
- The value of the variable.
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantProjectVariable 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 TenantProjectVariable Resource
Get an existing TenantProjectVariable 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?: TenantProjectVariableState, opts?: CustomResourceOptions): TenantProjectVariable
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
project_id: Optional[str] = None,
space_id: Optional[str] = None,
template_id: Optional[str] = None,
tenant_id: Optional[str] = None,
value: Optional[str] = None) -> TenantProjectVariable
func GetTenantProjectVariable(ctx *Context, name string, id IDInput, state *TenantProjectVariableState, opts ...ResourceOption) (*TenantProjectVariable, error)
public static TenantProjectVariable Get(string name, Input<string> id, TenantProjectVariableState? state, CustomResourceOptions? opts = null)
public static TenantProjectVariable get(String name, Output<String> id, TenantProjectVariableState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:TenantProjectVariable 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.
- Environment
Id string - The ID of the environment.
- Project
Id string - The ID of the project.
- Space
Id string - The space ID associated with this Tenant Project Variable.
- Template
Id string - The ID of the variable template.
- Tenant
Id string - The ID of the tenant.
- Value string
- The value of the variable.
- Environment
Id string - The ID of the environment.
- Project
Id string - The ID of the project.
- Space
Id string - The space ID associated with this Tenant Project Variable.
- Template
Id string - The ID of the variable template.
- Tenant
Id string - The ID of the tenant.
- Value string
- The value of the variable.
- environment
Id String - The ID of the environment.
- project
Id String - The ID of the project.
- space
Id String - The space ID associated with this Tenant Project Variable.
- template
Id String - The ID of the variable template.
- tenant
Id String - The ID of the tenant.
- value String
- The value of the variable.
- environment
Id string - The ID of the environment.
- project
Id string - The ID of the project.
- space
Id string - The space ID associated with this Tenant Project Variable.
- template
Id string - The ID of the variable template.
- tenant
Id string - The ID of the tenant.
- value string
- The value of the variable.
- environment_
id str - The ID of the environment.
- project_
id str - The ID of the project.
- space_
id str - The space ID associated with this Tenant Project 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.
- environment
Id String - The ID of the environment.
- project
Id String - The ID of the project.
- space
Id String - The space ID associated with this Tenant Project Variable.
- template
Id String - The ID of the variable template.
- tenant
Id 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.