Class ClusterRoleTemplateBinding
Provides a Rancher v2 Cluster Role Template Binding resource. This can be used to create Cluster Role Template Bindings for Rancher v2 environments and retrieve their information.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new Rancher2 Cluster Role Template Binding
var foo = new Rancher2.ClusterRoleTemplateBinding("foo", new Rancher2.ClusterRoleTemplateBindingArgs
{
ClusterId = "<cluster_id>",
RoleTemplateId = "<role_template_id>",
UserId = "<user_id>",
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class ClusterRoleTemplateBinding : CustomResource
Constructors
View SourceClusterRoleTemplateBinding(String, ClusterRoleTemplateBindingArgs, CustomResourceOptions)
Create a ClusterRoleTemplateBinding resource with the given unique name, arguments, and options.
Declaration
public ClusterRoleTemplateBinding(string name, ClusterRoleTemplateBindingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ClusterRoleTemplateBindingArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAnnotations
Annotations for cluster role template binding (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
ClusterId
The cluster id where bind cluster role template binding (string)
Declaration
public Output<string> ClusterId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupId
The group ID to assign cluster role template binding (string)
Declaration
public Output<string> GroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupPrincipalId
The group_principal ID to assign cluster role template binding (string)
Declaration
public Output<string> GroupPrincipalId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels for cluster role template binding (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
The name of the cluster role template binding (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RoleTemplateId
The role template id from create cluster role template binding (string)
Declaration
public Output<string> RoleTemplateId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserId
The user ID to assign cluster role template binding (string)
Declaration
public Output<string> UserId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserPrincipalId
The user_principal ID to assign cluster role template binding (string)
Declaration
public Output<string> UserPrincipalId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ClusterRoleTemplateBindingState, CustomResourceOptions)
Get an existing ClusterRoleTemplateBinding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ClusterRoleTemplateBinding Get(string name, Input<string> id, ClusterRoleTemplateBindingState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ClusterRoleTemplateBindingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ClusterRoleTemplateBinding |