GetProjectRoleTemplateBinding
Use this data source to retrieve information about a Rancher v2 project role template binding.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
var foo = Output.Create(Rancher2.GetProjectRoleTemplateBinding.InvokeAsync(new Rancher2.GetProjectRoleTemplateBindingArgs
{
Name = "foo",
ProjectId = "foo_id",
}));
}
}
Coming soon!
import pulumi
import pulumi_rancher2 as rancher2
foo = rancher2.get_project_role_template_binding(name="foo",
project_id="foo_id")import * as pulumi from "@pulumi/pulumi";
import * as rancher2 from "@pulumi/rancher2";
const foo = pulumi.output(rancher2.getProjectRoleTemplateBinding({
name: "foo",
projectId: "foo_id",
}, { async: true }));Using GetProjectRoleTemplateBinding
function getProjectRoleTemplateBinding(args: GetProjectRoleTemplateBindingArgs, opts?: InvokeOptions): Promise<GetProjectRoleTemplateBindingResult>function get_project_role_template_binding(name=None, project_id=None, role_template_id=None, opts=None)func LookupProjectRoleTemplateBinding(ctx *Context, args *LookupProjectRoleTemplateBindingArgs, opts ...InvokeOption) (*LookupProjectRoleTemplateBindingResult, error)Note: This function is named
LookupProjectRoleTemplateBindingin the Go SDK.
public static class GetProjectRoleTemplateBinding {
public static Task<GetProjectRoleTemplateBindingResult> InvokeAsync(GetProjectRoleTemplateBindingArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- name str
The name of the project role template binding (string)
- project_
id str The project id where bind project role template (string)
- role_
template_ strid The role template id from create project role template binding (string)
GetProjectRoleTemplateBinding Result
The following output properties are available:
- Annotations Dictionary<string, object>
(Computed) Annotations of the resource (map)
- Group
Id string (Computed) The group ID to assign project role template binding (string)
- Group
Principal stringId (Computed) The group_principal ID to assign project role template binding (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, object>
(Computed) Labels of the resource (map)
- Name string
- Project
Id string - Role
Template stringId - User
Id string (Computed) The user ID to assign project role template binding (string)
- User
Principal stringId (Computed) The user_principal ID to assign project role template binding (string)
- Annotations map[string]interface{}
(Computed) Annotations of the resource (map)
- Group
Id string (Computed) The group ID to assign project role template binding (string)
- Group
Principal stringId (Computed) The group_principal ID to assign project role template binding (string)
- Id string
The provider-assigned unique ID for this managed resource.
- Labels map[string]interface{}
(Computed) Labels of the resource (map)
- Name string
- Project
Id string - Role
Template stringId - User
Id string (Computed) The user ID to assign project role template binding (string)
- User
Principal stringId (Computed) The user_principal ID to assign project role template binding (string)
- annotations {[key: string]: any}
(Computed) Annotations of the resource (map)
- group
Id string (Computed) The group ID to assign project role template binding (string)
- group
Principal stringId (Computed) The group_principal ID to assign project role template binding (string)
- id string
The provider-assigned unique ID for this managed resource.
- labels {[key: string]: any}
(Computed) Labels of the resource (map)
- name string
- project
Id string - role
Template stringId - user
Id string (Computed) The user ID to assign project role template binding (string)
- user
Principal stringId (Computed) The user_principal ID to assign project role template binding (string)
- annotations Dict[str, Any]
(Computed) Annotations of the resource (map)
- group_
id str (Computed) The group ID to assign project role template binding (string)
- group_
principal_ strid (Computed) The group_principal ID to assign project role template binding (string)
- id str
The provider-assigned unique ID for this managed resource.
- labels Dict[str, Any]
(Computed) Labels of the resource (map)
- name str
- project_
id str - role_
template_ strid - user_
id str (Computed) The user ID to assign project role template binding (string)
- user_
principal_ strid (Computed) The user_principal ID to assign project role template binding (string)
Package Details
- Repository
- https://github.com/pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.