dynatrace.IamPermission
Explore with Pulumi AI
This resource is excluded by default in the export utility since it is part of the account management API. You can, of course, specify that resource explicitly in order to export it. In that case, don’t forget to specify the environment variables
DT_CLIENT_ID
,DT_ACCOUNT_ID
andDT_CLIENT_SECRET
for authentication.
This resource requires the OAuth client permissions Allow read access for identity resources (users and groups) (
account-idm-read
) and Allow write access for identity resources (users and groups) (account-idm-write
)
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
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
return await Deployment.RunAsync(() =>
{
});
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 "@pulumiverse/dynatrace";
const permA = new dynatrace.IamPermission("permA", {
account: "023733f0-86d8-47d1-88bd-7f5cc2e22eb8",
group: "74ec0a82-8010-4f11-8579-b29a5ba865f0",
});
import pulumi
import pulumiverse_dynatrace as dynatrace
perm_a = dynatrace.IamPermission("permA",
account="023733f0-86d8-47d1-88bd-7f5cc2e22eb8",
group="74ec0a82-8010-4f11-8579-b29a5ba865f0")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-dynatrace/sdk/go/dynatrace"
)
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
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Dynatrace = Pulumiverse.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 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.
Constructor 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. - Management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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. - Management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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. - management
Zone String - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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. - management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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 resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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. - management
Zone String - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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.
- 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
- Management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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
- Management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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
- management
Zone String - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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
- management
Zone string - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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 resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-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
- management
Zone String - The management zone this permission is valid for. You need to use the attribute
legacy_id
when referring to a resourcedynatrace.ManagementZoneV2
or a data sourcedynatrace.ManagementZone
. The attributeenvironment
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
,account-saml-flexible-federation
,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-view-security-problems
,tenant-manage-support-tickets
Package Details
- Repository
- dynatrace pulumiverse/pulumi-dynatrace
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dynatrace
Terraform Provider.