Show / Hide Table of Contents

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",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
GlobalRoleBinding
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class GlobalRoleBinding : CustomResource

Constructors

View Source

GlobalRoleBinding(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 Source

Annotations

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>>
View Source

GlobalRoleId

The role id from create global role binding (string)

Declaration
public Output<string> GlobalRoleId { get; }
Property Value
Type Description
Output<System.String>
View Source

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>
View Source

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>>
View Source

Name

The name of the global role binding (string)

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.