Dynatrace Environment management API

List environments and clusters and manage their IP allowlist configuration.

Operations 5

GET /env/v1/accounts/{account-uuid}/environments Lists all environments and management zones of an account #
GET /env/v2/accounts/{account-uuid}/environments Lists all environments in an account #
GET /env/v2/accounts/{account-uuid}/clusters Lists all clusters in a managed account #
GET /env/v1/accounts/{account-uuid}/environments/{environment-uuid}/ip-allowlist Get IP configuration for a specific tenant #
PUT /env/v1/accounts/{account-uuid}/environments/{environment-uuid}/ip-allowlist Set IP configuration for a specific tenant #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/dynatrace-environment-management-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

dynatrace-environment-management-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Dynatrace Account Management Environment Management API
  description: The enterprise management API for Dynatrace SaaS enables automation of operational tasks related to user access and environment lifecycle management.
  version: '1.0'
  contact: {}
servers: []
tags:
- name: Environment Management
  description: List environments and clusters and manage their IP allowlist configuration.
paths:
  /env/v1/accounts/{account-uuid}/environments:
    get:
      operationId: EnvironmentResourcesController_getEnvironmentResources
      parameters:
      - name: account-uuid
        required: true
        in: path
        description: "The ID of the required account. \n\n You can find the UUID on the **Account Management** > **Identity & access management** > **OAuth clients** page, during creation of an OAuth client."
        schema:
          type: string
      responses:
        '200':
          description: Success. The response contains a list of the account's environments.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentResourceDto'
      security:
      - bearer: []
      summary: Lists all environments and management zones of an account
      tags:
      - Environment Management
      x-required-permissions:
      - account-viewer
      x-token-scopes:
      - account-idm-read
  /env/v2/accounts/{account-uuid}/environments:
    get:
      operationId: EnvironmentResourcesController_getEnvironments
      parameters:
      - name: account-uuid
        required: true
        in: path
        description: "The ID of the required account. \n\n You can find the UUID on the **Account Management** > **Identity & access management** > **OAuth clients** page, during creation of an OAuth client."
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EnvironmentListDto'
      security:
      - bearer: []
      summary: Lists all environments in an account
      tags:
      - Environment Management
      x-required-permissions:
      - account-viewer
      x-token-scopes:
      - account-env-read
  /env/v2/accounts/{account-uuid}/clusters:
    get:
      operationId: EnvironmentResourcesController_getClusters
      parameters:
      - name: account-uuid
        required: true
        in: path
        description: "The ID of the required account. \n\n You can find the UUID on the **Account Management** > **Identity & access management** > **OAuth clients** page, during creation of an OAuth client."
        schema:
          type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ClusterListDto'
      security:
      - bearer: []
      summary: Lists all clusters in a managed account
      tags:
      - Environment Management
      x-required-permissions:
      - account-viewer
      x-token-scopes:
      - account-env-read
  /env/v1/accounts/{account-uuid}/environments/{environment-uuid}/ip-allowlist:
    get:
      operationId: EnvironmentResourcesController_getConfig
      parameters:
      - name: account-uuid
        required: true
        in: path
        schema:
          type: string
      - name: environment-uuid
        required: true
        in: path
        schema:
          type: string
      responses:
        '200':
          description: The IP configuration has been successfully fetched.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IpConfigDto'
      security:
      - bearer: []
      summary: Get IP configuration for a specific tenant
      tags:
      - Environment Management
      x-required-permissions:
      - account-viewer
      x-token-scopes:
      - account-env-read
    put:
      operationId: EnvironmentResourcesController_setConfig
      parameters:
      - name: account-uuid
        required: true
        in: path
        schema:
          type: string
      - name: environment-uuid
        required: true
        in: path
        schema:
          type: string
      requestBody:
        required: true
        description: The body of the request. Contains the key and serialized value for setting a ip config for a specific tenant on a specific cluster.
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IpConfigDto'
      responses:
        '201':
          description: Success. The IP configuration has been successfully set.
      security:
      - bearer: []
      summary: Set IP configuration for a specific tenant
      tags:
      - Environment Management
      x-required-permissions:
      - account-viewer
      x-token-scopes:
      - account-env-write
components:
  schemas:
    AllowlistItem:
      type: object
      properties:
        name:
          type: string
          description: The name of the list.
          example: Some IP-range
        ipRange:
          type: string
          description: One ip address or the range of ip addresses. Supports the CIDR format.
          example: 10.0.0.0/32
      required:
      - name
      - ipRange
    ManagementZoneResourceDto:
      type: object
      properties:
        parent:
          type: string
          description: The ID of the environment to which the management zone belongs.
        name:
          type: string
          description: The name of the management zone.
        id:
          type: string
          description: The ID of the management zone.
      required:
      - parent
      - name
      - id
    TenantResourceDto:
      type: object
      properties:
        name:
          type: string
          description: The name of the environment.
        id:
          type: string
          description: The ID of the environment.
      required:
      - name
      - id
    ClusterListDto:
      type: object
      properties:
        data:
          description: Lists all clusters in a managed account
          type: array
          items:
            $ref: '#/components/schemas/ClusterDto'
      required:
      - data
    ClusterDto:
      type: object
      properties:
        clusterId:
          type: string
          description: The UUID of the cluster.
      required:
      - clusterId
    EnvironmentDto:
      type: object
      properties:
        id:
          type: string
          description: The UUID of the environment.
        name:
          type: string
          description: Friendly name of the environment
        active:
          type: boolean
          description: Property to determine if environment is active
        url:
          type: string
          description: The url of the environment
      required:
      - id
      - active
      - url
    EnvironmentListDto:
      type: object
      properties:
        data:
          description: Lists all environments in an account
          type: array
          items:
            $ref: '#/components/schemas/EnvironmentDto'
      required:
      - data
    EnvironmentResourceDto:
      type: object
      properties:
        tenantResources:
          description: A list of environments in the account.
          type: array
          items:
            $ref: '#/components/schemas/TenantResourceDto'
        managementZoneResources:
          description: A list of management zones in the account.
          type: array
          items:
            $ref: '#/components/schemas/ManagementZoneResourceDto'
      required:
      - tenantResources
      - managementZoneResources
    IpConfigDto:
      type: object
      properties:
        enabled:
          type: boolean
          description: If enabled the ip config allow list gets applied.
        allowWebhookOverride:
          type: boolean
          description: If enabled the webhook ip allowlists will ignore the main allowlist CIDR range limitations.
        allowlist:
          description: Contains a list of valid IP addresses in CIDR format which are allowed. If enabled it must not be empty.
          type: array
          items:
            $ref: '#/components/schemas/AllowlistItem'
      required:
      - enabled
      - allowWebhookOverride
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http
externalDocs:
  description: OpenAPI specification
  url: /openapi.json