octopusdeploy.LibraryVariableSet
Explore with Pulumi AI
This resource manages library variable sets in Octopus Deploy.
Create LibraryVariableSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LibraryVariableSet(name: string, args?: LibraryVariableSetArgs, opts?: CustomResourceOptions);
@overload
def LibraryVariableSet(resource_name: str,
args: Optional[LibraryVariableSetArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def LibraryVariableSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
space_id: Optional[str] = None,
templates: Optional[Sequence[LibraryVariableSetTemplateArgs]] = None)
func NewLibraryVariableSet(ctx *Context, name string, args *LibraryVariableSetArgs, opts ...ResourceOption) (*LibraryVariableSet, error)
public LibraryVariableSet(string name, LibraryVariableSetArgs? args = null, CustomResourceOptions? opts = null)
public LibraryVariableSet(String name, LibraryVariableSetArgs args)
public LibraryVariableSet(String name, LibraryVariableSetArgs args, CustomResourceOptions options)
type: octopusdeploy:LibraryVariableSet
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 LibraryVariableSetArgs
- 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 LibraryVariableSetArgs
- 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 LibraryVariableSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LibraryVariableSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LibraryVariableSetArgs
- 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 libraryVariableSetResource = new Octopusdeploy.LibraryVariableSet("libraryVariableSetResource", new()
{
Description = "string",
Name = "string",
SpaceId = "string",
Templates = new[]
{
new Octopusdeploy.Inputs.LibraryVariableSetTemplateArgs
{
Name = "string",
DefaultValue = "string",
DisplaySettings =
{
{ "string", "string" },
},
HelpText = "string",
Id = "string",
Label = "string",
},
},
});
example, err := octopusdeploy.NewLibraryVariableSet(ctx, "libraryVariableSetResource", &octopusdeploy.LibraryVariableSetArgs{
Description: pulumi.String("string"),
Name: pulumi.String("string"),
SpaceId: pulumi.String("string"),
Templates: octopusdeploy.LibraryVariableSetTemplateArray{
&octopusdeploy.LibraryVariableSetTemplateArgs{
Name: pulumi.String("string"),
DefaultValue: pulumi.String("string"),
DisplaySettings: pulumi.StringMap{
"string": pulumi.String("string"),
},
HelpText: pulumi.String("string"),
Id: pulumi.String("string"),
Label: pulumi.String("string"),
},
},
})
var libraryVariableSetResource = new LibraryVariableSet("libraryVariableSetResource", LibraryVariableSetArgs.builder()
.description("string")
.name("string")
.spaceId("string")
.templates(LibraryVariableSetTemplateArgs.builder()
.name("string")
.defaultValue("string")
.displaySettings(Map.of("string", "string"))
.helpText("string")
.id("string")
.label("string")
.build())
.build());
library_variable_set_resource = octopusdeploy.LibraryVariableSet("libraryVariableSetResource",
description="string",
name="string",
space_id="string",
templates=[{
"name": "string",
"default_value": "string",
"display_settings": {
"string": "string",
},
"help_text": "string",
"id": "string",
"label": "string",
}])
const libraryVariableSetResource = new octopusdeploy.LibraryVariableSet("libraryVariableSetResource", {
description: "string",
name: "string",
spaceId: "string",
templates: [{
name: "string",
defaultValue: "string",
displaySettings: {
string: "string",
},
helpText: "string",
id: "string",
label: "string",
}],
});
type: octopusdeploy:LibraryVariableSet
properties:
description: string
name: string
spaceId: string
templates:
- defaultValue: string
displaySettings:
string: string
helpText: string
id: string
label: string
name: string
LibraryVariableSet 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 LibraryVariableSet resource accepts the following input properties:
- Description string
- The description of this library variable set.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this library variable set.
- Templates
List<Library
Variable Set Template>
- Description string
- The description of this library variable set.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this library variable set.
- Templates
[]Library
Variable Set Template Args
- description String
- The description of this library variable set.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this library variable set.
- templates
List<Library
Variable Set Template>
- description string
- The description of this library variable set.
- name string
- The name of this resource.
- space
Id string - The space ID associated with this library variable set.
- templates
Library
Variable Set Template[]
- description str
- The description of this library variable set.
- name str
- The name of this resource.
- space_
id str - The space ID associated with this library variable set.
- templates
Sequence[Library
Variable Set Template Args]
- description String
- The description of this library variable set.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this library variable set.
- templates List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the LibraryVariableSet resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Ids Dictionary<string, string> - Variable
Set stringId
- Id string
- The provider-assigned unique ID for this managed resource.
- Template
Ids map[string]string - Variable
Set stringId
- id String
- The provider-assigned unique ID for this managed resource.
- template
Ids Map<String,String> - variable
Set StringId
- id string
- The provider-assigned unique ID for this managed resource.
- template
Ids {[key: string]: string} - variable
Set stringId
- id str
- The provider-assigned unique ID for this managed resource.
- template_
ids Mapping[str, str] - variable_
set_ strid
- id String
- The provider-assigned unique ID for this managed resource.
- template
Ids Map<String> - variable
Set StringId
Look up Existing LibraryVariableSet Resource
Get an existing LibraryVariableSet 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?: LibraryVariableSetState, opts?: CustomResourceOptions): LibraryVariableSet
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
name: Optional[str] = None,
space_id: Optional[str] = None,
template_ids: Optional[Mapping[str, str]] = None,
templates: Optional[Sequence[LibraryVariableSetTemplateArgs]] = None,
variable_set_id: Optional[str] = None) -> LibraryVariableSet
func GetLibraryVariableSet(ctx *Context, name string, id IDInput, state *LibraryVariableSetState, opts ...ResourceOption) (*LibraryVariableSet, error)
public static LibraryVariableSet Get(string name, Input<string> id, LibraryVariableSetState? state, CustomResourceOptions? opts = null)
public static LibraryVariableSet get(String name, Output<String> id, LibraryVariableSetState state, CustomResourceOptions options)
resources: _: type: octopusdeploy:LibraryVariableSet 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.
- Description string
- The description of this library variable set.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this library variable set.
- Template
Ids Dictionary<string, string> - Templates
List<Library
Variable Set Template> - Variable
Set stringId
- Description string
- The description of this library variable set.
- Name string
- The name of this resource.
- Space
Id string - The space ID associated with this library variable set.
- Template
Ids map[string]string - Templates
[]Library
Variable Set Template Args - Variable
Set stringId
- description String
- The description of this library variable set.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this library variable set.
- template
Ids Map<String,String> - templates
List<Library
Variable Set Template> - variable
Set StringId
- description string
- The description of this library variable set.
- name string
- The name of this resource.
- space
Id string - The space ID associated with this library variable set.
- template
Ids {[key: string]: string} - templates
Library
Variable Set Template[] - variable
Set stringId
- description str
- The description of this library variable set.
- name str
- The name of this resource.
- space_
id str - The space ID associated with this library variable set.
- template_
ids Mapping[str, str] - templates
Sequence[Library
Variable Set Template Args] - variable_
set_ strid
- description String
- The description of this library variable set.
- name String
- The name of this resource.
- space
Id String - The space ID associated with this library variable set.
- template
Ids Map<String> - templates List<Property Map>
- variable
Set StringId
Supporting Types
LibraryVariableSetTemplate, LibraryVariableSetTemplateArgs
- Name string
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- Default
Value string - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- Display
Settings Dictionary<string, string> - The display settings for the parameter.
- Help
Text string - The help presented alongside the parameter input.
- Id string
- The unique ID for this resource.
- Label string
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
- Name string
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- Default
Value string - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- Display
Settings map[string]string - The display settings for the parameter.
- Help
Text string - The help presented alongside the parameter input.
- Id string
- The unique ID for this resource.
- Label string
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
- name String
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- default
Value String - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- display
Settings Map<String,String> - The display settings for the parameter.
- help
Text String - The help presented alongside the parameter input.
- id String
- The unique ID for this resource.
- label String
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
- name string
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- default
Value string - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- display
Settings {[key: string]: string} - The display settings for the parameter.
- help
Text string - The help presented alongside the parameter input.
- id string
- The unique ID for this resource.
- label string
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
- name str
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- default_
value str - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- display_
settings Mapping[str, str] - The display settings for the parameter.
- help_
text str - The help presented alongside the parameter input.
- id str
- The unique ID for this resource.
- label str
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
- name String
- The name of the variable set by the parameter. The name can contain letters, digits, dashes and periods. Example:
ServerName
- default
Value String - A default value for the parameter, if applicable. This can be a hard-coded value or a variable reference.
- display
Settings Map<String> - The display settings for the parameter.
- help
Text String - The help presented alongside the parameter input.
- id String
- The unique ID for this resource.
- label String
- The label shown beside the parameter when presented in the deployment process. Example:
Server name
.
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeploy
Terraform Provider.