1. Packages
  2. Dynatrace
  3. API Docs
  4. IamPermission
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

dynatrace.IamPermission

Explore with Pulumi AI

dynatrace logo
Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs

    Dynatrace Documentation

    • Dynatrace IAM - https://www.dynatrace.com/support/help/how-to-use-dynatrace/user-management-and-sso/manage-groups-and-permissions

    • Settings API - https://www.dynatrace.com/support/help/how-to-use-dynatrace/user-management-and-sso/manage-groups-and-permissions/iam/iam-getting-started

    Prerequisites

    Using this resource requires an OAuth client to be configured within your account settings. The scopes of the OAuth Client need to include account-idm-read, account-idm-write, account-env-read, account-env-write, iam-policies-management, iam:policies:write, iam:policies:read, iam:bindings:write, iam:bindings:read and iam:effective-permissions:read.

    Finally the provider configuration requires the credentials for that OAuth Client. The configuration section of your provider needs to look like this.

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    
    return await Deployment.RunAsync(() => 
    {
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
        }
    }
    
    {}
    

    Resource Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as dynatrace from "@lbrlabs/pulumi-dynatrace";
    
    const permA = new dynatrace.IamPermission("permA", {
        account: "023733f0-86d8-47d1-88bd-7f5cc2e22eb8",
        group: "74ec0a82-8010-4f11-8579-b29a5ba865f0",
    });
    
    import pulumi
    import lbrlabs_pulumi_dynatrace as dynatrace
    
    perm_a = dynatrace.IamPermission("permA",
        account="023733f0-86d8-47d1-88bd-7f5cc2e22eb8",
        group="74ec0a82-8010-4f11-8579-b29a5ba865f0")
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Dynatrace = Lbrlabs.PulumiPackage.Dynatrace;
    
    return await Deployment.RunAsync(() => 
    {
        var permA = new Dynatrace.IamPermission("permA", new()
        {
            Account = "023733f0-86d8-47d1-88bd-7f5cc2e22eb8",
            Group = "74ec0a82-8010-4f11-8579-b29a5ba865f0",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-dynatrace/sdk/go/dynatrace"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := dynatrace.NewIamPermission(ctx, "permA", &dynatrace.IamPermissionArgs{
    			Account: pulumi.String("023733f0-86d8-47d1-88bd-7f5cc2e22eb8"),
    			Group:   pulumi.String("74ec0a82-8010-4f11-8579-b29a5ba865f0"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.dynatrace.IamPermission;
    import com.pulumi.dynatrace.IamPermissionArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var permA = new IamPermission("permA", IamPermissionArgs.builder()        
                .account("023733f0-86d8-47d1-88bd-7f5cc2e22eb8")
                .group("74ec0a82-8010-4f11-8579-b29a5ba865f0")
                .build());
    
        }
    }
    
    resources:
      permA:
        type: dynatrace:IamPermission
        properties:
          # environment     = "siz65484"
          #     // management_zone = "107678256803363569"
          account: 023733f0-86d8-47d1-88bd-7f5cc2e22eb8
          group: 74ec0a82-8010-4f11-8579-b29a5ba865f0
    

    Create IamPermission Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IamPermission(name: string, args: IamPermissionArgs, opts?: CustomResourceOptions);
    @overload
    def IamPermission(resource_name: str,
                      args: IamPermissionArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamPermission(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      group: Optional[str] = None,
                      account: Optional[str] = None,
                      environment: Optional[str] = None,
                      management_zone: Optional[str] = None,
                      name: Optional[str] = None)
    func NewIamPermission(ctx *Context, name string, args IamPermissionArgs, opts ...ResourceOption) (*IamPermission, error)
    public IamPermission(string name, IamPermissionArgs args, CustomResourceOptions? opts = null)
    public IamPermission(String name, IamPermissionArgs args)
    public IamPermission(String name, IamPermissionArgs args, CustomResourceOptions options)
    
    type: dynatrace:IamPermission
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IamPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IamPermissionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IamPermissionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamPermissionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamPermissionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var iamPermissionResource = new Dynatrace.IamPermission("iamPermissionResource", new()
    {
        Group = "string",
        Account = "string",
        Environment = "string",
        ManagementZone = "string",
        Name = "string",
    });
    
    example, err := dynatrace.NewIamPermission(ctx, "iamPermissionResource", &dynatrace.IamPermissionArgs{
    	Group:          pulumi.String("string"),
    	Account:        pulumi.String("string"),
    	Environment:    pulumi.String("string"),
    	ManagementZone: pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    var iamPermissionResource = new IamPermission("iamPermissionResource", IamPermissionArgs.builder()        
        .group("string")
        .account("string")
        .environment("string")
        .managementZone("string")
        .name("string")
        .build());
    
    iam_permission_resource = dynatrace.IamPermission("iamPermissionResource",
        group="string",
        account="string",
        environment="string",
        management_zone="string",
        name="string")
    
    const iamPermissionResource = new dynatrace.IamPermission("iamPermissionResource", {
        group: "string",
        account: "string",
        environment: "string",
        managementZone: "string",
        name: "string",
    });
    
    type: dynatrace:IamPermission
    properties:
        account: string
        environment: string
        group: string
        managementZone: string
        name: string
    

    IamPermission Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IamPermission resource accepts the following input properties:

    Group string
    The ID of the group this permission is valid for
    Account string
    The UUID of the account this permission is valid for
    Environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    ManagementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    Name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    Group string
    The ID of the group this permission is valid for
    Account string
    The UUID of the account this permission is valid for
    Environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    ManagementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    Name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    group String
    The ID of the group this permission is valid for
    account String
    The UUID of the account this permission is valid for
    environment String
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    managementZone String
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name String
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    group string
    The ID of the group this permission is valid for
    account string
    The UUID of the account this permission is valid for
    environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    managementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    group str
    The ID of the group this permission is valid for
    account str
    The UUID of the account this permission is valid for
    environment str
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    management_zone str
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name str
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    group String
    The ID of the group this permission is valid for
    account String
    The UUID of the account this permission is valid for
    environment String
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    managementZone String
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name String
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IamPermission resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing IamPermission Resource

    Get an existing IamPermission resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IamPermissionState, opts?: CustomResourceOptions): IamPermission
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account: Optional[str] = None,
            environment: Optional[str] = None,
            group: Optional[str] = None,
            management_zone: Optional[str] = None,
            name: Optional[str] = None) -> IamPermission
    func GetIamPermission(ctx *Context, name string, id IDInput, state *IamPermissionState, opts ...ResourceOption) (*IamPermission, error)
    public static IamPermission Get(string name, Input<string> id, IamPermissionState? state, CustomResourceOptions? opts = null)
    public static IamPermission get(String name, Output<String> id, IamPermissionState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Account string
    The UUID of the account this permission is valid for
    Environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    Group string
    The ID of the group this permission is valid for
    ManagementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    Name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    Account string
    The UUID of the account this permission is valid for
    Environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    Group string
    The ID of the group this permission is valid for
    ManagementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    Name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    account String
    The UUID of the account this permission is valid for
    environment String
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    group String
    The ID of the group this permission is valid for
    managementZone String
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name String
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    account string
    The UUID of the account this permission is valid for
    environment string
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    group string
    The ID of the group this permission is valid for
    managementZone string
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name string
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    account str
    The UUID of the account this permission is valid for
    environment str
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    group str
    The ID of the group this permission is valid for
    management_zone str
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name str
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets
    account String
    The UUID of the account this permission is valid for
    environment String
    The environment this permission is valid (https://<environmentid>.live.dynatrace.com). Also required in when trying to specify a management zone permission.
    group String
    The ID of the group this permission is valid for
    managementZone String
    The management zone this permission is valid for. You need to use the attribute legacy_id when referring to a resource dynatrace.ManagementZoneV2 or a data source dynatrace.ManagementZone. The attribute environment is required to get specified also in order to identify the management zone uniquely.
    name String
    Possible values: account-company-info, account-user-management, account-viewer, tenant-viewer, tenant-manage-settings, tenant-agent-install, tenant-logviewer, tenant-view-sensitive-request-data, tenant-configure-request-capture-data, tenant-replay-sessions-with-masking, tenant-replay-sessions-without-masking, tenant-manage-security-problems, tenant-manage-support-tickets

    Package Details

    Repository
    dynatrace lbrlabs/pulumi-dynatrace
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dynatrace Terraform Provider.
    dynatrace logo
    Dynatrace v0.1.0 published on Wednesday, May 24, 2023 by Lbrlabs