Class GlobalRoleBinding
Provides a Rancher v2 Global Role Binding resource. This can be used to create Global Role 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 Global Role Binding using user_id
var foo = new Rancher2.GlobalRoleBinding("foo", new Rancher2.GlobalRoleBindingArgs
{
GlobalRoleId = "admin",
UserId = "user-XXXXX",
});
// Create a new rancher2 Global Role Binding using group_principal_id
var foo2 = new Rancher2.GlobalRoleBinding("foo2", new Rancher2.GlobalRoleBindingArgs
{
GlobalRoleId = "admin",
GroupPrincipalId = "local://g-XXXXX",
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class GlobalRoleBinding : CustomResource
Constructors
View SourceGlobalRoleBinding(String, GlobalRoleBindingArgs, CustomResourceOptions)
Create a GlobalRoleBinding resource with the given unique name, arguments, and options.
Declaration
public GlobalRoleBinding(string name, GlobalRoleBindingArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| GlobalRoleBindingArgs | 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 global role binding (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
GlobalRoleId
The role id from create global role binding (string)
Declaration
public Output<string> GlobalRoleId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GroupPrincipalId
The group principal ID to assign global role binding (only works with external auth providers that support groups). Rancher v2.4.0 or higher is required (string)
Declaration
public Output<string> GroupPrincipalId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels for global role 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 global role binding (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserId
The user ID to assign global role binding (string)
Declaration
public Output<string> UserId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, GlobalRoleBindingState, CustomResourceOptions)
Get an existing GlobalRoleBinding resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static GlobalRoleBinding Get(string name, Input<string> id, GlobalRoleBindingState 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. |
| GlobalRoleBindingState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| GlobalRoleBinding |