GetRoleTempalte
Use this data source to retrieve information about a Rancher v2 role template resource.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetRoleTemplate.InvokeAsync(new Rancher2.GetRoleTemplateArgs
{
Name = "foo",
}));
}
}
Coming soon!
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_role_template(name="foo")import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getRoleTemplate({
name: "foo",
}, { async: true }));Deprecated: rancher2.getRoleTempalte has been deprecated in favor of rancher2.getRoleTemplate
Using GetRoleTempalte
function getRoleTempalte(args: GetRoleTempalteArgs, opts?: InvokeOptions): Promise<GetRoleTempalteResult>function get_role_tempalte(context=None, name=None, opts=None)func LookupRoleTempalte(ctx *Context, args *LookupRoleTempalteArgs, opts ...InvokeOption) (*LookupRoleTempalteResult, error)Note: This function is named
LookupRoleTempaltein the Go SDK.
public static class GetRoleTempalte {
public static Task<GetRoleTempalteResult> InvokeAsync(GetRoleTempalteArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetRoleTempalte Result
The following output properties are available:
- Administrative bool
(Computed) Administrative role template (bool)
- Annotations Dictionary<string, object>
(Computed) Annotations for role template object (map)
- Builtin bool
(Computed) Builtin role template (string)
- Context string
- Default
Role bool (Computed) Default role template for new created cluster or project (bool)
- Description string
(Computed) Role template description (string)
- External bool
(Computed) External role template (bool)
- bool
(Computed) Hidden role template (bool)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels for role template object (map)
- Locked bool
(Computed) Locked role template (bool)
- Name string
- Role
Template List<string>Ids (Computed) Inherit role template IDs (list)
- Rules
List<Get
Role Tempalte Rule> (Computed) Role template policy rules (list)
- Administrative bool
(Computed) Administrative role template (bool)
- Annotations map[string]interface{}
(Computed) Annotations for role template object (map)
- Builtin bool
(Computed) Builtin role template (string)
- Context string
- Default
Role bool (Computed) Default role template for new created cluster or project (bool)
- Description string
(Computed) Role template description (string)
- External bool
(Computed) External role template (bool)
- bool
(Computed) Hidden role template (bool)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels for role template object (map)
- Locked bool
(Computed) Locked role template (bool)
- Name string
- Role
Template []stringIds (Computed) Inherit role template IDs (list)
- Rules
[]Get
Role Tempalte Rule (Computed) Role template policy rules (list)
- administrative boolean
(Computed) Administrative role template (bool)
- annotations {[key: string]: any}
(Computed) Annotations for role template object (map)
- builtin boolean
(Computed) Builtin role template (string)
- context string
- default
Role boolean (Computed) Default role template for new created cluster or project (bool)
- description string
(Computed) Role template description (string)
- external boolean
(Computed) External role template (bool)
- boolean
(Computed) Hidden role template (bool)
- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels for role template object (map)
- locked boolean
(Computed) Locked role template (bool)
- name string
- role
Template string[]Ids (Computed) Inherit role template IDs (list)
- rules
Get
Role Tempalte Rule[] (Computed) Role template policy rules (list)
- administrative bool
(Computed) Administrative role template (bool)
- annotations Dict[str, Any]
(Computed) Annotations for role template object (map)
- builtin bool
(Computed) Builtin role template (string)
- context str
- default_
role bool (Computed) Default role template for new created cluster or project (bool)
- description str
(Computed) Role template description (string)
- external bool
(Computed) External role template (bool)
- bool
(Computed) Hidden role template (bool)
- id str
The provider-assigned unique ID for this managed resource.
- labels Dict[str, Any]
(Computed) Labels for role template object (map)
- locked bool
(Computed) Locked role template (bool)
- name str
- role_
template_ List[str]ids (Computed) Inherit role template IDs (list)
- rules
List[Get
Role Tempalte Rule] (Computed) Role template policy rules (list)
Supporting Types
GetRoleTempalteRule
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.