VariableGroup
Manages variable groups within Azure DevOps.
Relevant Links
- Azure DevOps Service REST API 5.1 - Variable Groups
- Azure DevOps Service REST API 5.1 - Authorized Resources
PAT Permissions Required
- Variable Groups: Read, Create, & Manage
Create a VariableGroup Resource
new VariableGroup(name: string, args: VariableGroupArgs, opts?: CustomResourceOptions);def VariableGroup(resource_name, opts=None, allow_access=None, description=None, key_vault=None, name=None, project_id=None, variables=None, __props__=None);func NewVariableGroup(ctx *Context, name string, args VariableGroupArgs, opts ...ResourceOption) (*VariableGroup, error)public VariableGroup(string name, VariableGroupArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VariableGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
VariableGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The VariableGroup resource accepts the following input properties:
- Project
Id string The project ID or project name.
- Variables
List<Pulumi.
Azure Dev Ops. Pipeline. Inputs. Variable Group Variable Args> One or more
variableblocks as documented below.- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault Pulumi.Azure Dev Ops. Pipeline. Inputs. Variable Group Key Vault Args - Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
[]Variable
Group Variable One or more
variableblocks as documented below.- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault VariableGroup Key Vault - Name string
The name of the Variable Group.
- project
Id string The project ID or project name.
- variables
Variable
Group Variable[] One or more
variableblocks as documented below.- allow
Access boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description string
The description of the Variable Group.
- key
Vault VariableGroup Key Vault - name string
The name of the Variable Group.
- project_
id str The project ID or project name.
- variables
List[Variable
Group Variable] One or more
variableblocks as documented below.- allow_
access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- description str
The description of the Variable Group.
- key_
vault Dict[VariableGroup Key Vault] - name str
The name of the Variable Group.
Outputs
All input properties are implicitly available as output properties. Additionally, the VariableGroup resource produces the following output properties:
Look up an Existing VariableGroup Resource
Get an existing VariableGroup 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?: VariableGroupState, opts?: CustomResourceOptions): VariableGroupstatic get(resource_name, id, opts=None, allow_access=None, description=None, key_vault=None, name=None, project_id=None, variables=None, __props__=None);func GetVariableGroup(ctx *Context, name string, id IDInput, state *VariableGroupState, opts ...ResourceOption) (*VariableGroup, error)public static VariableGroup Get(string name, Input<string> id, VariableGroupState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault Pulumi.Azure Dev Ops. Pipeline. Inputs. Variable Group Key Vault Args - Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
List<Pulumi.
Azure Dev Ops. Pipeline. Inputs. Variable Group Variable Args> One or more
variableblocks as documented below.
- Allow
Access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- Description string
The description of the Variable Group.
- Key
Vault VariableGroup Key Vault - Name string
The name of the Variable Group.
- Project
Id string The project ID or project name.
- Variables
[]Variable
Group Variable One or more
variableblocks as documented below.
- allow
Access boolean Boolean that indicate if this variable group is shared by all pipelines of this project.
- description string
The description of the Variable Group.
- key
Vault VariableGroup Key Vault - name string
The name of the Variable Group.
- project
Id string The project ID or project name.
- variables
Variable
Group Variable[] One or more
variableblocks as documented below.
- allow_
access bool Boolean that indicate if this variable group is shared by all pipelines of this project.
- description str
The description of the Variable Group.
- key_
vault Dict[VariableGroup Key Vault] - name str
The name of the Variable Group.
- project_
id str The project ID or project name.
- variables
List[Variable
Group Variable] One or more
variableblocks as documented below.
Supporting Types
VariableGroupKeyVault
- Name string
The name of the Variable Group.
- Service
Endpoint stringId
- Name string
The name of the Variable Group.
- Service
Endpoint stringId
- name string
The name of the Variable Group.
- service
Endpoint stringId
- name str
The name of the Variable Group.
- service
Endpoint strId
VariableGroupVariable
- Name string
The key value used for the variable. Must be unique within the Variable Group.
- Content
Type string - Enabled bool
- Expires string
- Is
Secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false.- Secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secretset totrue.- Value string
The value of the variable. If omitted, it will default to empty string.
- Name string
The key value used for the variable. Must be unique within the Variable Group.
- Content
Type string - Enabled bool
- Expires string
- Is
Secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false.- Secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secretset totrue.- Value string
The value of the variable. If omitted, it will default to empty string.
- name string
The key value used for the variable. Must be unique within the Variable Group.
- content
Type string - enabled boolean
- expires string
- is
Secret boolean A boolean flag describing if the variable value is sensitive. Defaults to
false.- secret
Value string The secret value of the variable. If omitted, it will default to empty string. Used when
is_secretset totrue.- value string
The value of the variable. If omitted, it will default to empty string.
- name str
The key value used for the variable. Must be unique within the Variable Group.
- content
Type str - enabled bool
- expires str
- is
Secret bool A boolean flag describing if the variable value is sensitive. Defaults to
false.- secret
Value str The secret value of the variable. If omitted, it will default to empty string. Used when
is_secretset totrue.- value str
The value of the variable. If omitted, it will default to empty string.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.