RoleTempalte
Create a RoleTempalte Resource
new RoleTempalte(name: string, args?: RoleTempalteArgs, opts?: CustomResourceOptions);def RoleTempalte(resource_name, opts=None, administrative=None, annotations=None, context=None, default_role=None, description=None, external=None, hidden=None, labels=None, locked=None, name=None, role_template_ids=None, rules=None, __props__=None);func NewRoleTempalte(ctx *Context, name string, args *RoleTempalteArgs, opts ...ResourceOption) (*RoleTempalte, error)public RoleTempalte(string name, RoleTempalteArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args RoleTempalteArgs
- 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 RoleTempalteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RoleTempalteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
RoleTempalte Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The RoleTempalte resource accepts the following input properties:
- Administrative bool
Administrative role template. Default
false(bool)- Annotations Dictionary<string, object>
Annotations for role template object (map)
- Context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- Default
Role bool Default role template for new created cluster or project. Default
false(bool)- Description string
Role template description (string)
- External bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- Labels Dictionary<string, object>
Labels for role template object (map)
- Locked bool
Locked role template. Default
false(bool)- Name string
Role template name (string)
- Role
Template List<string>Ids Inherit role template IDs (list)
- Rules
List<Role
Tempalte Rule Args> Role template policy rules (list)
- Administrative bool
Administrative role template. Default
false(bool)- Annotations map[string]interface{}
Annotations for role template object (map)
- Context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- Default
Role bool Default role template for new created cluster or project. Default
false(bool)- Description string
Role template description (string)
- External bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- Labels map[string]interface{}
Labels for role template object (map)
- Locked bool
Locked role template. Default
false(bool)- Name string
Role template name (string)
- Role
Template []stringIds Inherit role template IDs (list)
- Rules
[]Role
Tempalte Rule Role template policy rules (list)
- administrative boolean
Administrative role template. Default
false(bool)- annotations {[key: string]: any}
Annotations for role template object (map)
- context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- default
Role boolean Default role template for new created cluster or project. Default
false(bool)- description string
Role template description (string)
- external boolean
External role template. Default
false(bool)- boolean
Hidden role template. Default
false(bool)- labels {[key: string]: any}
Labels for role template object (map)
- locked boolean
Locked role template. Default
false(bool)- name string
Role template name (string)
- role
Template string[]Ids Inherit role template IDs (list)
- rules
Role
Tempalte Rule[] Role template policy rules (list)
- administrative bool
Administrative role template. Default
false(bool)- annotations Dict[str, Any]
Annotations for role template object (map)
- context str
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- default_
role bool Default role template for new created cluster or project. Default
false(bool)- description str
Role template description (string)
- external bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- labels Dict[str, Any]
Labels for role template object (map)
- locked bool
Locked role template. Default
false(bool)- name str
Role template name (string)
- role_
template_ List[str]ids Inherit role template IDs (list)
- rules
List[Role
Tempalte Rule] Role template policy rules (list)
Outputs
All input properties are implicitly available as output properties. Additionally, the RoleTempalte resource produces the following output properties:
Look up an Existing RoleTempalte Resource
Get an existing RoleTempalte 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?: RoleTempalteState, opts?: CustomResourceOptions): RoleTempaltestatic get(resource_name, id, opts=None, administrative=None, annotations=None, builtin=None, context=None, default_role=None, description=None, external=None, hidden=None, labels=None, locked=None, name=None, role_template_ids=None, rules=None, __props__=None);func GetRoleTempalte(ctx *Context, name string, id IDInput, state *RoleTempalteState, opts ...ResourceOption) (*RoleTempalte, error)public static RoleTempalte Get(string name, Input<string> id, RoleTempalteState? 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:
- Administrative bool
Administrative role template. Default
false(bool)- Annotations Dictionary<string, object>
Annotations for role template object (map)
- Builtin bool
(Computed) Builtin role template (string)
- Context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- Default
Role bool Default role template for new created cluster or project. Default
false(bool)- Description string
Role template description (string)
- External bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- Labels Dictionary<string, object>
Labels for role template object (map)
- Locked bool
Locked role template. Default
false(bool)- Name string
Role template name (string)
- Role
Template List<string>Ids Inherit role template IDs (list)
- Rules
List<Role
Tempalte Rule Args> Role template policy rules (list)
- Administrative bool
Administrative role template. Default
false(bool)- Annotations map[string]interface{}
Annotations for role template object (map)
- Builtin bool
(Computed) Builtin role template (string)
- Context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- Default
Role bool Default role template for new created cluster or project. Default
false(bool)- Description string
Role template description (string)
- External bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- Labels map[string]interface{}
Labels for role template object (map)
- Locked bool
Locked role template. Default
false(bool)- Name string
Role template name (string)
- Role
Template []stringIds Inherit role template IDs (list)
- Rules
[]Role
Tempalte Rule Role template policy rules (list)
- administrative boolean
Administrative role template. Default
false(bool)- annotations {[key: string]: any}
Annotations for role template object (map)
- builtin boolean
(Computed) Builtin role template (string)
- context string
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- default
Role boolean Default role template for new created cluster or project. Default
false(bool)- description string
Role template description (string)
- external boolean
External role template. Default
false(bool)- boolean
Hidden role template. Default
false(bool)- labels {[key: string]: any}
Labels for role template object (map)
- locked boolean
Locked role template. Default
false(bool)- name string
Role template name (string)
- role
Template string[]Ids Inherit role template IDs (list)
- rules
Role
Tempalte Rule[] Role template policy rules (list)
- administrative bool
Administrative role template. Default
false(bool)- annotations Dict[str, Any]
Annotations for role template object (map)
- builtin bool
(Computed) Builtin role template (string)
- context str
Role template context.
clusterandprojectvalues are supported. Default:cluster(string)- default_
role bool Default role template for new created cluster or project. Default
false(bool)- description str
Role template description (string)
- external bool
External role template. Default
false(bool)- bool
Hidden role template. Default
false(bool)- labels Dict[str, Any]
Labels for role template object (map)
- locked bool
Locked role template. Default
false(bool)- name str
Role template name (string)
- role_
template_ List[str]ids Inherit role template IDs (list)
- rules
List[Role
Tempalte Rule] Role template policy rules (list)
Supporting Types
RoleTempalteRule
- Api
Groups List<string> Policy rule api groups (list)
- Non
Resource List<string>Urls Policy rule non resource urls (list)
- Resource
Names List<string> Policy rule resource names (list)
- Resources List<string>
Policy rule resources (list)
- Verbs List<string>
Policy rule verbs.
create,delete,get,list,patch,update,view,watchand*values are supported (list)
- Api
Groups []string Policy rule api groups (list)
- Non
Resource []stringUrls Policy rule non resource urls (list)
- Resource
Names []string Policy rule resource names (list)
- Resources []string
Policy rule resources (list)
- Verbs []string
Policy rule verbs.
create,delete,get,list,patch,update,view,watchand*values are supported (list)
- api
Groups string[] Policy rule api groups (list)
- non
Resource string[]Urls Policy rule non resource urls (list)
- resource
Names string[] Policy rule resource names (list)
- resources string[]
Policy rule resources (list)
- verbs string[]
Policy rule verbs.
create,delete,get,list,patch,update,view,watchand*values are supported (list)
- api
Groups List[str] Policy rule api groups (list)
- non
Resource List[str]Urls Policy rule non resource urls (list)
- resource
Names List[str] Policy rule resource names (list)
- resources List[str]
Policy rule resources (list)
- verbs List[str]
Policy rule verbs.
create,delete,get,list,patch,update,view,watchand*values are supported (list)
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.