Azure Cosmos DB Data Transfer API

The DataTransfer API from Azure Cosmos DB — 1 operation(s) for datatransfer.

Operations 3

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName} Get a Cosmos DB service · Service get #
Ask an LLM
“Is a particular Cosmos DB service up and running?”
“What status does a service in my database account report?”
Tell an agent
Get service {serviceName} in account {accountName}.
Check the status of service {serviceName} in {accountName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName} Create a Cosmos DB service · Service create #
Ask an LLM
“How do I add a new service to my Cosmos DB account?”
“Can I create a service with custom properties?”
Tell an agent
Create service {serviceName} in account {accountName}.
Create service {serviceName} in {accountName} with properties {properties}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName} Delete a Cosmos DB service · Service delete #
Ask an LLM
“How do I remove a service from my Cosmos DB account?”
“Can I delete a service by its name?”
Tell an agent destructive · confirm first
Delete service {serviceName} from account {accountName}.
Remove the {serviceName} service in {accountName}.

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/azure-cosmos-db:azure-cosmos-db-datatransfer-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

azure-cosmos-db-datatransfer-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cosmos DB Data Transfer API
  version: '2026-07-15'
  description: Azure Cosmos DB Throughput Pool REST API
  x-typespec-generated:
  - emitter: '@azure-tools/typespec-autorest'
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: DataTransfer
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/services/{serviceName}
  : get:
      operationId: Service_Get
      tags:
      - DataTransfer
      description: Gets the status of service.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: accountName
        in: path
        description: Cosmos DB database account name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*
      - name: serviceName
        in: path
        description: Cosmos DB service name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResource'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      summary: Service get
      x-summary-source: derived
    put:
      operationId: Service_Create
      tags:
      - DataTransfer
      description: Creates a service.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: accountName
        in: path
        description: Cosmos DB database account name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*
      - name: serviceName
        in: path
        description: Cosmos DB service name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
      responses:
        '200':
          description: Resource 'ServiceResource' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceResource'
        '202':
          description: Resource operation accepted.
          headers:
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
            Retry-After:
              description: The Retry-After header can indicate how long the client should wait before polling the operation status.
              schema:
                type: integer
                format: int32
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
        final-state-schema: '#/definitions/ServiceResource'
      x-ms-long-running-operation: true
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceResourceCreateUpdateParameters'
        description: The Service resource parameters.
        required: true
      summary: Service create
      x-summary-source: derived
    delete:
      operationId: Service_Delete
      tags:
      - DataTransfer
      description: Deletes service with the given serviceName.
      parameters:
      - $ref: '#/components/parameters/ApiVersionParameter'
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - name: accountName
        in: path
        description: Cosmos DB database account name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*
      - name: serviceName
        in: path
        description: Cosmos DB service name.
        required: true
        schema:
          type: string
          maxLength: 50
          minLength: 3
      responses:
        '200':
          description: Resource deleted successfully.
        '202':
          description: Resource deletion accepted.
          headers:
            Azure-AsyncOperation:
              description: A link to the status monitor
              schema:
                type: string
                format: uri
            Location:
              description: The Location header contains the URL where the status of the long running operation can be checked.
              schema:
                type: string
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CloudError'
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Service delete
      x-summary-source: derived
components:
  schemas:
    ErrorResponse:
      type: object
      description: Error Response.
      properties:
        code:
          type: string
          description: Error code.
        message:
          type: string
          description: Error message indicating why the operation failed.
    ServiceResourceCreateUpdateParameters:
      type: object
      description: Parameters for Create or Update request for ServiceResource
      properties:
        properties:
          $ref: '#/components/schemas/ServiceResourceCreateUpdateProperties'
          description: Properties in ServiceResourceCreateUpdateParameters.
    ServiceResource:
      type: object
      description: Properties for the database account.
      properties:
        properties:
          $ref: '#/components/schemas/ServiceResourceProperties'
          description: Services response resource.
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    ServiceStatus:
      type: string
      description: Describes the status of a service.
      enum:
      - Creating
      - Running
      - Updating
      - Deleting
      - Error
      - Stopped
      x-ms-enum:
        name: ServiceStatus
        modelAsString: true
        values:
        - name: Creating
          value: Creating
        - name: Running
          value: Running
        - name: Updating
          value: Updating
        - name: Deleting
          value: Deleting
        - name: Error
          value: Error
        - name: Stopped
          value: Stopped
    ServiceSize:
      type: string
      description: Instance type for the service.
      enum:
      - Cosmos.D4s
      - Cosmos.D8s
      - Cosmos.D16s
      x-ms-enum:
        name: ServiceSize
        modelAsString: true
        values:
        - name: CosmosD4S
          value: Cosmos.D4s
        - name: CosmosD8S
          value: Cosmos.D8s
        - name: CosmosD16S
          value: Cosmos.D16s
    ServiceResourceProperties:
      type: object
      description: Services response resource.
      properties:
        creationTime:
          type: string
          format: date-time
          description: Time of the last state change (ISO-8601 format).
          readOnly: true
        instanceSize:
          $ref: '#/components/schemas/ServiceSize'
          description: Instance type for the service.
        instanceCount:
          type: integer
          format: int32
          description: Instance count for the service.
          minimum: 0
        serviceType:
          $ref: '#/components/schemas/ServiceType'
          description: ServiceType for the service.
        status:
          $ref: '#/components/schemas/ServiceStatus'
          description: Describes the status of a service.
          readOnly: true
      discriminator:
        propertyName: serviceType
      required:
      - serviceType
      additionalProperties: {}
    ServiceType:
      type: string
      description: ServiceType for the service.
      enum:
      - SqlDedicatedGateway
      - DataTransfer
      - GraphAPICompute
      - MaterializedViewsBuilder
      x-ms-enum:
        name: ServiceType
        modelAsString: true
        values:
        - name: SqlDedicatedGateway
          value: SqlDedicatedGateway
        - name: DataTransfer
          value: DataTransfer
        - name: GraphAPICompute
          value: GraphAPICompute
        - name: MaterializedViewsBuilder
          value: MaterializedViewsBuilder
    ProxyResource:
      type: object
      title: Proxy Resource
      description: The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location
      allOf:
      - $ref: '#/components/schemas/Resource'
    CloudError:
      type: object
      description: An error response from the service.
      properties:
        error:
          $ref: '#/components/schemas/ErrorResponse'
          description: Error Response.
      x-ms-external: true
    ServiceResourceCreateUpdateProperties:
      type: object
      description: Properties in ServiceResourceCreateUpdateParameters.
      properties:
        instanceSize:
          $ref: '#/components/schemas/ServiceSize'
          description: Instance type for the service.
        instanceCount:
          type: integer
          format: int32
          description: Instance count for the service.
          minimum: 0
        serviceType:
          $ref: '#/components/schemas/ServiceType'
          description: ServiceType for the service.
      discriminator:
        propertyName: serviceType
      required:
      - serviceType
  parameters:
    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
    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
    ApiVersionParameter:
      name: api-version
      in: query
      description: The API version to use for this operation.
      required: true
      schema:
        type: string
        minLength: 1
  securitySchemes:
    azure_auth:
      type: oauth2
      flows:
        implicit:
          scopes:
            user_impersonation: impersonate your user account
          authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
      description: Azure Active Directory OAuth2 Flow.