Ready to level-up your engineering skills? Join a Pulumi Workshop. Register Now

getApiTokenPermissionGroups

Use this data source to look up API Token Permission Groups. Commonly used as references within cloudflare.ApiToken resources.

Example Usage

using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

class MyStack : Stack
{
    public MyStack()
    {
        var test = Output.Create(Cloudflare.GetApiTokenPermissionGroups.InvokeAsync());
        this.DnsReadPermissionId = test.Apply(test => test.Permissions.DNS_Read);
    }

    [Output("dnsReadPermissionId")]
    public Output<string> DnsReadPermissionId { get; set; }
}

Coming soon!

import pulumi
import pulumi_cloudflare as cloudflare

test = cloudflare.get_api_token_permission_groups()
pulumi.export("dnsReadPermissionId", test.permissions["DNS Read"])
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const test = cloudflare.getApiTokenPermissionGroups({});
export const dnsReadPermissionId = test.then(test => test.permissions["DNS Read"]);

Using getApiTokenPermissionGroups

function getApiTokenPermissionGroups(opts?: InvokeOptions): Promise<GetApiTokenPermissionGroupsResult>
def get_api_token_permission_groups(opts: Optional[InvokeOptions] = None) -> GetApiTokenPermissionGroupsResult
func GetApiTokenPermissionGroups(ctx *Context, opts ...InvokeOption) (*GetApiTokenPermissionGroupsResult, error)

Note: This function is named GetApiTokenPermissionGroups in the Go SDK.

public static class GetApiTokenPermissionGroups {
    public static Task<GetApiTokenPermissionGroupsResult> InvokeAsync(InvokeOptions? opts = null)
}

getApiTokenPermissionGroups Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Permissions Dictionary<string, object>

A map of permission groups where keys are human-readable permission names and values are permission IDs.

Id string

The provider-assigned unique ID for this managed resource.

Permissions map[string]interface{}

A map of permission groups where keys are human-readable permission names and values are permission IDs.

id string

The provider-assigned unique ID for this managed resource.

permissions {[key: string]: any}

A map of permission groups where keys are human-readable permission names and values are permission IDs.

id str

The provider-assigned unique ID for this managed resource.

permissions Mapping[str, Any]

A map of permission groups where keys are human-readable permission names and values are permission IDs.

Package Details

Repository
https://github.com/pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.