RoleTempalte

Create a RoleTempalte Resource

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. cluster and project values are supported. Default: cluster (string)

DefaultRole 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)

Hidden 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)

RoleTemplateIds List<string>

Inherit role template IDs (list)

Rules List<RoleTempalteRuleArgs>

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. cluster and project values are supported. Default: cluster (string)

DefaultRole 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)

Hidden 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)

RoleTemplateIds []string

Inherit role template IDs (list)

Rules []RoleTempalteRule

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. cluster and project values are supported. Default: cluster (string)

defaultRole 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)

hidden 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)

roleTemplateIds string[]

Inherit role template IDs (list)

rules RoleTempalteRule[]

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. cluster and project values 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)

hidden 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_ids List[str]

Inherit role template IDs (list)

rules List[RoleTempalteRule]

Role template policy rules (list)

Outputs

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

Builtin bool

(Computed) Builtin role template (string)

Id string
The provider-assigned unique ID for this managed resource.
Builtin bool

(Computed) Builtin role template (string)

Id string
The provider-assigned unique ID for this managed resource.
builtin boolean

(Computed) Builtin role template (string)

id string
The provider-assigned unique ID for this managed resource.
builtin bool

(Computed) Builtin role template (string)

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

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): RoleTempalte
static 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. cluster and project values are supported. Default: cluster (string)

DefaultRole 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)

Hidden 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)

RoleTemplateIds List<string>

Inherit role template IDs (list)

Rules List<RoleTempalteRuleArgs>

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. cluster and project values are supported. Default: cluster (string)

DefaultRole 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)

Hidden 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)

RoleTemplateIds []string

Inherit role template IDs (list)

Rules []RoleTempalteRule

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. cluster and project values are supported. Default: cluster (string)

defaultRole 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)

hidden 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)

roleTemplateIds string[]

Inherit role template IDs (list)

rules RoleTempalteRule[]

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. cluster and project values 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)

hidden 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_ids List[str]

Inherit role template IDs (list)

rules List[RoleTempalteRule]

Role template policy rules (list)

Supporting Types

RoleTempalteRule

See the input and output API doc for this type.

See the input and output API doc for this type.

See the input and output API doc for this type.

ApiGroups List<string>

Policy rule api groups (list)

NonResourceUrls List<string>

Policy rule non resource urls (list)

ResourceNames 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, watch and * values are supported (list)

ApiGroups []string

Policy rule api groups (list)

NonResourceUrls []string

Policy rule non resource urls (list)

ResourceNames []string

Policy rule resource names (list)

Resources []string

Policy rule resources (list)

Verbs []string

Policy rule verbs. create, delete, get, list, patch, update, view, watch and * values are supported (list)

apiGroups string[]

Policy rule api groups (list)

nonResourceUrls string[]

Policy rule non resource urls (list)

resourceNames string[]

Policy rule resource names (list)

resources string[]

Policy rule resources (list)

verbs string[]

Policy rule verbs. create, delete, get, list, patch, update, view, watch and * values are supported (list)

apiGroups List[str]

Policy rule api groups (list)

nonResourceUrls List[str]

Policy rule non resource urls (list)

resourceNames 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, watch and * 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 rancher2 Terraform Provider.