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

getPermissions

Use this data source to retrieve the list of Datadog permissions by name and their corresponding ID, for use in the role resource.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var permissions = Output.Create(Datadog.GetPermissions.InvokeAsync());
    }

}
package main

import (
    "github.com/pulumi/pulumi-datadog/sdk/v2/go/datadog"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := datadog.GetPermissions(ctx, nil, nil)
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_datadog as datadog

permissions = datadog.get_permissions()
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const permissions = pulumi.output(datadog.getPermissions({ async: true }));

Using getPermissions

function getPermissions(opts?: InvokeOptions): Promise<GetPermissionsResult>
def get_permissions(opts: Optional[InvokeOptions] = None) -> GetPermissionsResult
func GetPermissions(ctx *Context, opts ...InvokeOption) (*GetPermissionsResult, error)

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

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

getPermissions Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Permissions Dictionary<string, string>
Id string

The provider-assigned unique ID for this managed resource.

Permissions map[string]string
id string

The provider-assigned unique ID for this managed resource.

permissions {[key: string]: string}
id str

The provider-assigned unique ID for this managed resource.

permissions Mapping[str, str]

Package Details

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