Azure Traffic Manager Profiles API

Traffic Manager profile operations

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 7

GET /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles List Traffic Manager profiles in a subscription #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles List Traffic Manager profiles in a resource group #
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName} Get a Traffic Manager profile #
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName} Create or update a Traffic Manager profile #
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName} Update a Traffic Manager profile #
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName} Delete a Traffic Manager profile #
POST /providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2 Check Traffic Manager relative DNS name availability #

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/microsoft-azure-traffic-manager:microsoft-azure-traffic-manager-profiles-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

microsoft-azure-traffic-manager-profiles-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Azure Traffic Manager REST Profiles API
  description: 'REST API for managing Azure Traffic Manager profiles, endpoints, heatmaps,

    user metrics, and geographic hierarchies via Azure Resource Manager.

    Traffic Manager is a DNS-based traffic load balancer that distributes

    traffic optimally to services across global Azure regions.

    Authentication uses Azure AD OAuth 2.0 bearer tokens.'
  version: '2022-04-01'
  contact:
    name: Kin Lane
    email: kin@apievangelist.com
  license:
    name: Microsoft Terms of Use
    url: https://www.microsoft.com/en-us/legal/terms-of-use
servers:
- url: https://management.azure.com
  description: Azure Resource Manager endpoint
security:
- azure_auth:
  - user_impersonation
tags:
- name: Profiles
  description: Traffic Manager profile operations
paths:
  /subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles:
    get:
      tags:
      - Profiles
      summary: List Traffic Manager profiles in a subscription
      operationId: profiles_listBySubscription
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileListResult'
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles:
    get:
      tags:
      - Profiles
      summary: List Traffic Manager profiles in a resource group
      operationId: profiles_listByResourceGroup
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProfileListResult'
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}
  : get:
      tags:
      - Profiles
      summary: Get a Traffic Manager profile
      operationId: profiles_get
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/profileName'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
    put:
      tags:
      - Profiles
      summary: Create or update a Traffic Manager profile
      operationId: profiles_createOrUpdate
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/profileName'
      - $ref: '#/components/parameters/apiVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Profile'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
        '201':
          description: Created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Profile'
    patch:
      tags:
      - Profiles
      summary: Update a Traffic Manager profile
      operationId: profiles_update
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/profileName'
      - $ref: '#/components/parameters/apiVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Profile'
      responses:
        '200':
          description: OK
    delete:
      tags:
      - Profiles
      summary: Delete a Traffic Manager profile
      operationId: profiles_delete
      parameters:
      - $ref: '#/components/parameters/subscriptionId'
      - $ref: '#/components/parameters/resourceGroupName'
      - $ref: '#/components/parameters/profileName'
      - $ref: '#/components/parameters/apiVersion'
      responses:
        '200':
          description: OK
        '204':
          description: No Content
  /providers/Microsoft.Network/checkTrafficManagerNameAvailabilityV2:
    post:
      tags:
      - Profiles
      summary: Check Traffic Manager relative DNS name availability
      operationId: profiles_checkTrafficManagerNameAvailabilityV2
      parameters:
      - $ref: '#/components/parameters/apiVersion'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                type:
                  type: string
      responses:
        '200':
          description: OK
components:
  parameters:
    subscriptionId:
      name: subscriptionId
      in: path
      required: true
      schema:
        type: string
    profileName:
      name: profileName
      in: path
      required: true
      schema:
        type: string
    apiVersion:
      name: api-version
      in: query
      required: true
      schema:
        type: string
        default: '2022-04-01'
    resourceGroupName:
      name: resourceGroupName
      in: path
      required: true
      schema:
        type: string
        minLength: 1
        maxLength: 90
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      description: The name of the resource group. The name is case insensitive.
      required: true
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      description: The ID of the target subscription. The value must be an UUID.
      required: true
      schema:
        type: string
        format: uuid
  schemas:
    Endpoint:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
        properties:
          type: object
          properties:
            targetResourceId:
              type: string
            target:
              type: string
            endpointStatus:
              type: string
              enum:
              - Enabled
              - Disabled
            weight:
              type: integer
              format: int64
            priority:
              type: integer
              format: int64
            endpointLocation:
              type: string
            endpointMonitorStatus:
              type: string
            geoMapping:
              type: array
              items:
                type: string
    ProfileListResult:
      type: object
      properties:
        value:
          type: array
          items:
            $ref: '#/components/schemas/Profile'
    MonitorConfig:
      type: object
      properties:
        protocol:
          type: string
          enum:
          - HTTP
          - HTTPS
          - TCP
        port:
          type: integer
          format: int64
        path:
          type: string
        intervalInSeconds:
          type: integer
          format: int64
        timeoutInSeconds:
          type: integer
          format: int64
        toleratedNumberOfFailures:
          type: integer
          format: int64
    DnsConfig:
      type: object
      properties:
        relativeName:
          type: string
        fqdn:
          type: string
        ttl:
          type: integer
          format: int64
    Profile:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        type:
          type: string
        location:
          type: string
        tags:
          type: object
          additionalProperties:
            type: string
        properties:
          type: object
          properties:
            profileStatus:
              type: string
              enum:
              - Enabled
              - Disabled
            trafficRoutingMethod:
              type: string
              enum:
              - Performance
              - Priority
              - Weighted
              - Geographic
              - MultiValue
              - Subnet
            dnsConfig:
              $ref: '#/components/schemas/DnsConfig'
            monitorConfig:
              $ref: '#/components/schemas/MonitorConfig'
            endpoints:
              type: array
              items:
                $ref: '#/components/schemas/Endpoint'
            trafficViewEnrollmentStatus:
              type: string
              enum:
              - Enabled
              - Disabled
            maxReturn:
              type: integer
              format: int64
    TrackedResource:
      type: object
      description: The resource model definition for a ARM tracked top level resource
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
          x-ms-mutability:
          - read
          - update
          - create
        location:
          type: string
          description: The Azure Region where the resource lives
          x-ms-mutability:
          - read
          - create
      allOf:
      - $ref: '#/components/schemas/Resource'
    AlwaysServe:
      type: string
      description: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
      enum:
      - Enabled
      - Disabled
      x-ms-enum:
        name: AlwaysServe
        modelAsString: true
        values:
        - name: Enabled
          value: Enabled
        - name: Disabled
          value: Disabled
    MonitorProtocol:
      type: string
      description: The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health.
      enum:
      - HTTP
      - HTTPS
      - TCP
      x-ms-enum:
        name: MonitorProtocol
        modelAsString: true
        values:
        - name: HTTP
          value: HTTP
        - name: HTTPS
          value: HTTPS
        - name: TCP
          value: TCP
    EndpointMonitorStatus:
      type: string
      description: The monitoring status of the endpoint.
      enum:
      - CheckingEndpoint
      - Online
      - Degraded
      - Disabled
      - Inactive
      - Stopped
      - Unmonitored
      x-ms-enum:
        name: EndpointMonitorStatus
        modelAsString: true
        values:
        - name: CheckingEndpoint
          value: CheckingEndpoint
        - name: Online
          value: Online
        - name: Degraded
          value: Degraded
        - name: Disabled
          value: Disabled
        - name: Inactive
          value: Inactive
        - name: Stopped
          value: Stopped
        - name: Unmonitored
          value: Unmonitored
    ProfileProperties:
      type: object
      description: Class representing the Traffic Manager profile properties.
      properties:
        profileStatus:
          $ref: '#/components/schemas/ProfileStatus'
          description: The status of the Traffic Manager profile.
        trafficRoutingMethod:
          $ref: '#/components/schemas/TrafficRoutingMethod'
          description: The traffic routing method of the Traffic Manager profile.
        dnsConfig:
          $ref: '#/components/schemas/DnsConfig'
          description: The DNS settings of the Traffic Manager profile.
        monitorConfig:
          $ref: '#/components/schemas/MonitorConfig'
          description: The endpoint monitoring settings of the Traffic Manager profile.
        endpoints:
          type: array
          description: The list of endpoints in the Traffic Manager profile.
          items:
            $ref: '#/components/schemas/Endpoint'
        trafficViewEnrollmentStatus:
          $ref: '#/components/schemas/TrafficViewEnrollmentStatus'
          description: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
        allowedEndpointRecordTypes:
          type: array
          description: The list of allowed endpoint record types.
          items:
            $ref: '#/components/schemas/AllowedEndpointRecordType'
        maxReturn:
          type: integer
          format: int64
          description: Maximum number of endpoints to be returned for MultiValue routing type.
        recordType:
          $ref: '#/components/schemas/RecordType'
          description: When record type is set, a traffic manager profile will allow only endpoints that match this type. If it is not set, traffic manager profile will allow adding all types of endpoints. It is returned as null when this is not set.
    EndpointPropertiesCustomHeadersItem:
      type: object
      description: Custom header name and value.
      properties:
        name:
          type: string
          description: Header name.
        value:
          type: string
          description: Header value.
    EndpointStatus:
      type: string
      description: The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
      enum:
      - Enabled
      - Disabled
      x-ms-enum:
        name: EndpointStatus
        modelAsString: true
        values:
        - name: Enabled
          value: Enabled
        - name: Disabled
          value: Disabled
    TrafficRoutingMethod:
      type: string
      description: The traffic routing method of the Traffic Manager profile.
      enum:
      - Performance
      - Priority
      - Weighted
      - Geographic
      - MultiValue
      - Subnet
      x-ms-enum:
        name: TrafficRoutingMethod
        modelAsString: true
        values:
        - name: Performance
          value: Performance
        - name: Priority
          value: Priority
        - name: Weighted
          value: Weighted
        - name: Geographic
          value: Geographic
        - name: MultiValue
          value: MultiValue
        - name: Subnet
          value: Subnet
    CloudError:
      type: object
      description: An error returned by the Azure Resource Manager
      properties:
        error:
          $ref: '#/components/schemas/CloudErrorBody'
          description: The content of the error.
      x-ms-external: true
    CloudErrorBody:
      type: object
      description: The content of an error returned by the Azure Resource Manager
      properties:
        code:
          type: string
          description: Error code
        message:
          type: string
          description: Error message
        target:
          type: string
          description: Error target
        details:
          type: array
          description: Error details
          items:
            $ref: '#/components/schemas/CloudErrorBody'
      x-ms-external: true
    MonitorConfigExpectedStatusCodeRangesItem:
      type: object
      description: Min and max value of a status code range.
      properties:
        min:
          type: integer
          format: int32
          description: Min status code.
        max:
          type: integer
          format: int32
          description: Max status code.
    DeleteOperationResult:
      type: object
      description: The result of the request or operation.
      properties:
        boolean:
          type: boolean
          description: The result of the operation or request.
          readOnly: true
          x-ms-client-name: operationResult
    RecordType:
      type: string
      description: When record type is set, a traffic manager profile will allow only endpoints that match this type.
      enum:
      - A
      - AAAA
      - CNAME
      x-ms-enum:
        name: RecordType
        modelAsString: true
        values:
        - name: A
          value: A
          description: A record type.
        - name: AAAA
          value: AAAA
          description: AAAA record type.
        - name: CNAME
          value: CNAME
          description: CNAME record type.
    Resource:
      type: object
      description: The core properties of ARM resources
      properties:
        id:
          type: string
          format: arm-id
          description: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
        name:
          type: string
          description: The name of the resource
        type:
          type: string
          description: The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
      x-ms-azure-resource: true
    EndpointProperties:
      type: object
      description: Class representing a Traffic Manager endpoint properties.
      properties:
        targetResourceId:
          type: string
          description: The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
        target:
          type: string
          description: The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
        endpointStatus:
          $ref: '#/components/schemas/EndpointStatus'
          description: The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method.
        weight:
          type: integer
          format: int64
          description: The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.
        priority:
          type: integer
          format: int64
          description: The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter.  If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.
        endpointLocation:
          type: string
          description: Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
        endpointMonitorStatus:
          $ref: '#/components/schemas/EndpointMonitorStatus'
          description: The monitoring status of the endpoint.
        minChildEndpoints:
          type: integer
          format: int64
          description: The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
        minChildEndpointsIPv4:
          type: integer
          format: int64
          description: The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
        minChildEndpointsIPv6:
          type: integer
          format: int64
          description: The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.
        geoMapping:
          type: array
          description: The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.
          items:
            type: string
        subnets:
          type: array
          description: The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.
          items:
            $ref: '#/components/schemas/EndpointPropertiesSubnetsItem'
        customHeaders:
          type: array
          description: List of custom headers.
          items:
            $ref: '#/components/schemas/EndpointPropertiesCustomHeadersItem'
        alwaysServe:
          $ref: '#/components/schemas/AlwaysServe'
          description: If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
    MonitorConfigCustomHeadersItem:
      type: object
      description: Custom header name and value.
      properties:
        name:
          type: string
          description: Header name.
        value:
          type: string
          description: Header value.
    ProxyResource:
      type: object
      description: The resource model definition for a ARM proxy resource. It will have everything other than required location and tags
      allOf:
      - $ref: '#/components/schemas/Resource'
    AllowedEndpointRecordType:
      type: string
      description: The allowed type DNS record types for this profile.
      enum:
      - DomainName
      - IPv4Address
      - IPv6Address
      - Any
      x-ms-enum:
        name: AllowedEndpointRecordType
        modelAsString: true
        values:
        - name: DomainName
          value: DomainName
        - name: IPv4Address
          value: IPv4Address
        - name: IPv6Address
          value: IPv6Address
        - name: Any
          value: Any
    EndpointPropertiesSubnetsItem:
      type: object
      description: Subnet first address, scope, and/or last address.
      properties:
        first:
          type: string
          description: First address in the subnet.
        last:
          type: string
          description: Last address in the subnet.
        scope:
          type: integer
          format: int32
          description: Block size (number of leading bits in the subnet mask).
    TrafficViewEnrollmentStatus:
      type: string
      description: Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile.
      enum:
      - Enabled
      - Disabled
      x-ms-enum:
        name: TrafficViewEnrollmentStatus
        modelAsString: true
        values:
        - name: Enabled
          value: Enabled
        - name: Disabled
          value: Disabled
    ProfileStatus:
      type: string
      description: The status of the Traffic Manager profile.
      enum:
      - Enabled
      - Disabled
      x-ms-enum:
        name: ProfileStatus
        modelAsString: true
        values:
        - name: Enabled
          value: Enabled
        - name: Disabled
          value: Disabled
    ProfileMonitorStatus:
      type: string
      description: The profile-level monitoring status of the Traffic Manager profile.
      enum:
      - CheckingEndpoints
      - Online
      - Degraded
      - Disabled
      - Inactive
      x-ms-enum:
        name: ProfileMonitorStatus
        modelAsString: true
        values:
        - name: CheckingEndpoints
          value: CheckingEndpoints
        - name: Online
          value: Online
        - name: Degraded
          value: Degraded
        - name: Disabled
          value: Disabled
        - name: Inactive
          value: Inactive
  securitySchemes:
    azure_auth:
      type: oauth2
      description: Azure Active Directory OAuth 2.0
      flows:
        implicit:
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
          scopes:
            user_impersonation: impersonate your user account