GetAclRole
The consul..AclRole data source returns the information related to a
Consul ACL Role.
Example Usage
using Pulumi;
using Consul = Pulumi.Consul;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Consul.GetAclRole.InvokeAsync(new Consul.GetAclRoleArgs
{
Name = "example-role",
}));
this.ConsulAclRole = test.Apply(test => test.Id);
}
[Output("consulAclRole")]
public Output<string> ConsulAclRole { get; set; }
}
Coming soon!
import pulumi
import pulumi_consul as consul
test = consul.get_acl_role(name="example-role")
pulumi.export("consulAclRole", test.id)import * as pulumi from "@pulumi/pulumi";
import * as consul from "@pulumi/consul";
const test = consul.getAclRole({
name: "example-role",
});
export const consulAclRole = test.then(test => test.id);Using GetAclRole
function getAclRole(args: GetAclRoleArgs, opts?: InvokeOptions): Promise<GetAclRoleResult>function get_acl_role(description=None, name=None, namespace=None, policies=None, service_identities=None, opts=None)func LookupAclRole(ctx *Context, args *LookupAclRoleArgs, opts ...InvokeOption) (*LookupAclRoleResult, error)Note: This function is named
LookupAclRolein the Go SDK.
public static class GetAclRole {
public static Task<GetAclRoleResult> InvokeAsync(GetAclRoleArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the ACL Role.
- Description string
The description of the ACL Role.
- Namespace string
The namespace to lookup the role.
- Policies
List<Get
Acl Role Policy Args> The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- Service
Identities List<GetAcl Role Service Identity Args> The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- Name string
The name of the ACL Role.
- Description string
The description of the ACL Role.
- Namespace string
The namespace to lookup the role.
- Policies
[]Get
Acl Role Policy The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- Service
Identities []GetAcl Role Service Identity The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- name string
The name of the ACL Role.
- description string
The description of the ACL Role.
- namespace string
The namespace to lookup the role.
- policies
Get
Acl Role Policy[] The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- service
Identities GetAcl Role Service Identity[] The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- name str
The name of the ACL Role.
- description str
The description of the ACL Role.
- namespace str
The namespace to lookup the role.
- policies
List[Get
Acl Role Policy] The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- service_
identities List[GetAcl Role Service Identity] The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
GetAclRole Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Description string
The description of the ACL Role.
- Namespace string
- Policies
List<Get
Acl Role Policy> The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- Service
Identities List<GetAcl Role Service Identity> The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Description string
The description of the ACL Role.
- Namespace string
- Policies
[]Get
Acl Role Policy The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- Service
Identities []GetAcl Role Service Identity The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- description string
The description of the ACL Role.
- namespace string
- policies
Get
Acl Role Policy[] The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- service
Identities GetAcl Role Service Identity[] The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- description str
The description of the ACL Role.
- namespace str
- policies
List[Get
Acl Role Policy] The list of policies associated with the ACL Role. Each entry has an
idand anameattribute.- service_
identities List[GetAcl Role Service Identity] The list of service identities associated with the ACL Role. Each entry has a
service_nameattribute and a list ofdatacenters.
Supporting Types
GetAclRolePolicy
GetAclRoleServiceIdentity
Package Details
- Repository
- https://github.com/pulumi/pulumi-consul
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
consulTerraform Provider.