Datadog

Pulumi Official
Package maintained by Pulumi
v4.10.0 published on Monday, Jul 25, 2022 by Pulumi

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/v4/go/datadog"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

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

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var permissions = Output.of(DatadogFunctions.getPermissions());

    }
}
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());
variables:
  permissions:
    Fn::Invoke:
      Function: datadog:getPermissions
      Arguments: {}

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)
}
public static CompletableFuture<GetPermissionsResult> getPermissions(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: datadog:index/getPermissions:getPermissions
  Arguments:
    # Arguments dictionary

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 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]
id String

The provider-assigned unique ID for this managed resource.

permissions Map<String>

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.