Microsoft Azure Targets API

The Targets API from Microsoft Azure, for targets.

GitHub OpenAPI

Operations 14

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/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets List Chaos Studio targets on a resource · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which Chaos Studio targets are enabled on this Azure resource?”
“Can I see every chaos experiment target that extends a tracked regional resource?”
Tell an agent
List the Chaos Studio targets on {parentProviderNamespace}/{parentResourceType} resource {parentResourceName}.
Show every chaos target attached to parent resource {parentResourceName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName} Get a Chaos Studio target · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Is a particular Chaos Studio target enabled on my resource?”
“What does a single chaos target on a regional resource look like?”
Tell an agent
Get Chaos Studio target {targetName} on {parentProviderNamespace}/{parentResourceType} resource {parentResourceName}.
Show the details of chaos target {targetName} for parent resource {parentResourceName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName} Remove a Chaos Studio target from a resource · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I stop a resource from being a Chaos Studio target?”
“What happens to chaos experiments when I delete the target?”
Tell an agent destructive · confirm first
Delete Chaos Studio target {targetName} from {parentProviderNamespace}/{parentResourceType} resource {parentResourceName}.
Offboard parent resource {parentResourceName} from chaos targeting by removing {targetName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName} Enable a Chaos Studio target on a resource · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I onboard a resource as a Chaos Studio target?”
“Can I update an existing chaos target on a regional resource?”
Tell an agent
Enable Chaos Studio target {targetName} on {parentProviderNamespace}/{parentResourceType} resource {parentResourceName}.
Create or update chaos target {targetName} for parent resource {parentResourceName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets List database watcher targets · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which databases is my database watcher monitoring?”
“Can I list all targets configured on one database watcher?”
Tell an agent
List the targets of database watcher {watcherName}.
Show every monitored target on watcher {watcherName}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName} Get a database watcher target · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What settings does a single database watcher target have?”
“Can I look up one monitored database target by name?”
Tell an agent
Get target {targetName} on database watcher {watcherName}.
Show the configuration of watcher target {targetName}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName} Add a target to a database watcher · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add a database for a database watcher to monitor?”
“Can I create a new monitored target on an existing watcher?”
Tell an agent
Add target {targetName} to database watcher {watcherName}.
Create watcher target {targetName} under {watcherName}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName} Remove a target from a database watcher · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I stop a database watcher from monitoring one database?”
“Is deleting a watcher target reversible?”
Tell an agent destructive · confirm first
Delete target {targetName} from database watcher {watcherName}.
Stop watcher {watcherName} from monitoring target {targetName}.
GET /subscriptions/{subscriptionId}/providers/Microsoft.IoTOperationsOrchestrator/targets List IoT Operations orchestrator targets in a subscription · Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft… #
Ask an LLM
“What IoT Operations orchestrator targets exist across my subscription?”
“Is there a subscription-wide list of orchestrator deployment targets?”
Tell an agent
List all IoT Operations orchestrator targets in my subscription.
Show every orchestrator target across the subscription.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets List IoT Operations orchestrator targets in a group · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which IoT Operations orchestrator targets are in this resource group?”
“Can I list orchestrator targets for just one resource group?”
Tell an agent
List the IoT Operations orchestrator targets in my resource group.
Show the orchestrator targets defined in this resource group.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name} Get an IoT Operations orchestrator target · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What is configured on a specific IoT Operations orchestrator target?”
“Can I fetch one orchestrator target by name?”
Tell an agent
Get IoT Operations orchestrator target {name}.
Show the extended location and properties of orchestrator target {name}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name} Create an IoT Operations orchestrator target · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I create an orchestrator target for IoT Operations at an extended location?”
“Does creating an IoT Operations orchestrator target require an extended location?”
Tell an agent
Create IoT Operations orchestrator target {name} at extended location {extendedLocation}.
Create or replace orchestrator target {name}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name} Update tags on an IoT Operations orchestrator target · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I change the tags on an IoT Operations orchestrator target?”
“Which fields can I patch on an existing orchestrator target?”
Tell an agent
Update the tags on IoT Operations orchestrator target {name} to {tags}.
Retag orchestrator target {name}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name} Delete an IoT Operations orchestrator target · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Can I remove an IoT Operations orchestrator target I no longer deploy to?”
“What happens to an orchestrator target once it is deleted?”
Tell an agent destructive · confirm first
Delete IoT Operations orchestrator target {name}.
Remove orchestrator target {name} from the resource group.

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:microsoft-azure-targets-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-targets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Chaos Management Targets API
  description: Azure Chaos Resource Provider REST API
  version: 2023-10-27-preview
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: Targets
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets
  : get:
      description: Get a list of Target resources that extend a tracked regional resource.
      tags:
      - Targets
      operationId: microsoftAzureTargetsList
      parameters:
      - $ref: ./types/common.json#/parameters/apiVersion
      - $ref: ./types/common.json#/parameters/subscriptionId
      - $ref: ./types/common.json#/parameters/resourceGroupName
      - $ref: ./types/common.json#/parameters/parentProviderNamespace
      - $ref: ./types/common.json#/parameters/parentResourceType
      - $ref: ./types/common.json#/parameters/parentResourceName
      - $ref: ./types/common.json#/parameters/continuationToken
      responses:
        '200':
          description: List of Target resources returned if request was successful.
          content:
            application/json:
              schema:
                $ref: ./types/targets.json#/definitions/targetListResult
        default:
          description: Error response returned if request was unsuccessful.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List all Targets that extend a virtual machine resource.:
          $ref: ./examples/ListTargets.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}
  : get:
      description: Get a Target resource that extends a tracked regional resource.
      tags:
      - Targets
      operationId: microsoftAzureTargetsGet
      parameters:
      - $ref: ./types/common.json#/parameters/apiVersion
      - $ref: ./types/common.json#/parameters/subscriptionId
      - $ref: ./types/common.json#/parameters/resourceGroupName
      - $ref: ./types/common.json#/parameters/parentProviderNamespace
      - $ref: ./types/common.json#/parameters/parentResourceType
      - $ref: ./types/common.json#/parameters/parentResourceName
      - $ref: ./types/common.json#/parameters/targetName
      responses:
        '200':
          description: Target resource returned if request was successful.
          content:
            application/json:
              schema:
                $ref: ./types/targets.json#/definitions/target
        default:
          description: Error response returned if request was unsuccessful.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Get a Target that extends a virtual machine resource.:
          $ref: ./examples/GetTarget.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    delete:
      description: Delete a Target resource that extends a tracked regional resource.
      tags:
      - Targets
      operationId: microsoftAzureTargetsDelete
      parameters:
      - $ref: ./types/common.json#/parameters/apiVersion
      - $ref: ./types/common.json#/parameters/subscriptionId
      - $ref: ./types/common.json#/parameters/resourceGroupName
      - $ref: ./types/common.json#/parameters/parentProviderNamespace
      - $ref: ./types/common.json#/parameters/parentResourceType
      - $ref: ./types/common.json#/parameters/parentResourceName
      - $ref: ./types/common.json#/parameters/targetName
      responses:
        '200':
          description: Target resource deletion was successful.
        '204':
          description: Target resource deletion was successful.
        default:
          description: Error response returned if request was unsuccessful.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Delete a Target that extends a virtual machine resource.:
          $ref: ./examples/DeleteTarget.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    put:
      description: Create or update a Target resource that extends a tracked regional resource.
      tags:
      - Targets
      operationId: microsoftAzureTargetsCreateorupdate
      parameters:
      - $ref: ./types/common.json#/parameters/apiVersion
      - $ref: ./types/common.json#/parameters/subscriptionId
      - $ref: ./types/common.json#/parameters/resourceGroupName
      - $ref: ./types/common.json#/parameters/parentProviderNamespace
      - $ref: ./types/common.json#/parameters/parentResourceType
      - $ref: ./types/common.json#/parameters/parentResourceName
      - $ref: ./types/common.json#/parameters/targetName
      responses:
        '200':
          description: Target resource returned if request was successful.
          content:
            application/json:
              schema:
                $ref: ./types/targets.json#/definitions/target
        default:
          description: Error response returned if request was unsuccessful.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Create/update a Target that extends a virtual machine resource.:
          $ref: ./examples/CreateUpdateTarget.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: ./types/targets.json#/definitions/target
        description: Target resource to be created or updated.
        required: true
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets
  : get:
      operationId: microsoftAzureTargetsListbywatcher
      tags:
      - Targets
      description: List Target resources by Watcher
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TargetListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_ListByWatcher:
          $ref: ./examples/Targets_ListByWatcher_200.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DatabaseWatcher/watchers/{watcherName}/targets/{targetName}
  : get:
      operationId: microsoftAzureTargetsGet
      tags:
      - Targets
      description: Get a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      - name: targetName
        in: path
        description: The target resource name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_Get:
          $ref: ./examples/Targets_Get_200.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      operationId: microsoftAzureTargetsCreateorupdate
      tags:
      - Targets
      description: Create a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      - name: targetName
        in: path
        description: The target resource name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Resource 'Target' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        '201':
          description: Resource 'Target' create operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_CreateOrUpdate:
          $ref: ./examples/Targets_CreateOrUpdate_200.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Target'
        description: Resource create parameters.
        required: true
    delete:
      operationId: microsoftAzureTargetsDelete
      tags:
      - Targets
      description: Delete a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: watcherName
        in: path
        description: The database watcher name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      - name: targetName
        in: path
        description: The target resource name.
        required: true
        schema:
          type: string
          pattern: ^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{3,60}$
      responses:
        '200':
          description: Resource deleted successfully.
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_Delete:
          $ref: ./examples/Targets_Delete_200.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
  /subscriptions/{subscriptionId}/providers/Microsoft.IoTOperationsOrchestrator/targets:
    get:
      operationId: microsoftAzureTargetsListbysubscription
      tags:
      - Targets
      description: List Target resources by subscription ID
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TargetListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_ListBySubscription - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_ListBySubscription_MaximumSet_Gen.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Providers Microsoft…
  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets:
    get:
      operationId: microsoftAzureTargetsListbyresourcegroup
      tags:
      - Targets
      description: List Target resources by resource group
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TargetListResult'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_ListByResourceGroup - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_ListByResourceGroup_MaximumSet_Gen.json
      x-ms-pageable:
        nextLinkName: nextLink
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsOrchestrator/targets/{name}
  : get:
      operationId: microsoftAzureTargetsGet
      tags:
      - Targets
      description: Get a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: Name of target.
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,60}[a-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_Get - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_Get_MaximumSet_Gen.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
    put:
      operationId: microsoftAzureTargetsCreateorupdate
      tags:
      - Targets
      description: Create a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: Name of target.
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,60}[a-z0-9]$
      responses:
        '200':
          description: Resource 'Target' update operation succeeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        '201':
          description: Resource 'Target' create operation succeeded
          headers:
            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
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_CreateOrUpdate - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_CreateOrUpdate_MaximumSet_Gen.json
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-long-running-operation: true
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Target'
        description: Resource create parameters.
        required: true
    patch:
      operationId: microsoftAzureTargetsUpdate
      tags:
      - Targets
      description: Update a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: Name of target.
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,60}[a-z0-9]$
      responses:
        '200':
          description: Azure operation completed successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Target'
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_Update - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_Update_MaximumSet_Gen.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TargetTagsUpdate'
        description: The resource properties to be updated.
        required: true
    delete:
      operationId: microsoftAzureTargetsDelete
      tags:
      - Targets
      description: Delete a Target
      parameters:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter
      - name: name
        in: path
        description: Name of target.
        required: true
        schema:
          type: string
          pattern: ^[a-z0-9][a-z0-9-]{1,60}[a-z0-9]$
      responses:
        '202':
          description: Resource deletion 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
        '204':
          description: Resource does not exist.
        default:
          description: An unexpected error response.
          content:
            application/json:
              schema:
                $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ErrorResponse
      x-ms-examples:
        Targets_Delete - generated by [MaximumSet] rule - generated by [MaximumSet] rule:
          $ref: ./examples/Targets_Delete_MaximumSet_Gen.json
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-long-running-operation: true
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
components:
  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
  schemas:
    Azure.ResourceManager.ResourceProvisioningState:
      type: string
      description: The provisioning state of a resource type.
      enum:
      - Succeeded
      - Failed
      - Canceled
      x-ms-enum:
        name: ResourceProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Resource has been created.
        - name: Failed
          value: Failed
          description: Resource creation failed.
        - name: Canceled
          value: Canceled
          description: Resource creation was canceled.
      readOnly: true
    VaultSecret:
      type: object
      description: The vault specific details required if using SQL authentication to connect to a target.
      properties:
        akvResourceId:
          type: string
          format: arm-id
          description: The Azure ResourceId of the Key Vault instance storing database authentication secrets.
          x-ms-arm-id-details:
            allowedResources:
            - type: Microsoft.KeyVault/vaults
        akvTargetUser:
          type: string
          description: The path to the Key Vault secret storing the login name (aka user name, aka account name) for authentication to a target.
          pattern: ^[a-zA-Z0-9-]{1,127}$
        akvTargetPassword:
          type: string
          description: The path to the Key Vault secret storing the password for authentication to a target.
          pattern: ^[a-zA-Z0-9-]{1,127}$
    TargetProperties:
      type: object
      description: The generic properties of a target.
      properties:
        targetType:
          type: string
          description: Discriminator property for TargetProperties.
        targetAuthenticationType:
          $ref: '#/components/schemas/TargetAuthenticationType'
          description: The type of authentication to use when connecting to a target.
        targetVault:
          $ref: '#/components/schemas/VaultSecret'
          description: To use SQL authentication when connecting to targets, specify the vault where the login name and password secrets are stored.
        connectionServerName:
          type: string
          description: The server name to use in the connection string when connecting to a target. Port number and instance name must be specified separately.
          maxLength: 200
        provisioningState:
          $ref: '#/components/schemas/Azure.ResourceManager.ResourceProvisioningState'
          description: The provisioning state of the resource.
          readOnly: true
      discriminator:
        propertyName: targetType
      required:
      - targetType
      - targetAuthenticationType
      - connectionServerName
    TargetListResult:
      type: object
      description: The response of a Target list operation.
      properties:
        value:
          type: array
          description: The Target items on this page
          items:
            $ref: '#/components/schemas/Target'
        nextLink:
          type: string
          format: uri
          description: The link to the next page of items
      required:
      - value
    TargetAuthenticationType:
      type: string
      description: The type of authentication to use when connecting to a target.
      enum:
      - Aad
      - Sql
      x-ms-enum:
        name: TargetAuthenticationType
        modelAsString: true
        values:
        - name: Aad
          value: Aad
          description: The Azure Active Directory authentication.
        - name: Sql
          value: Sql
          description: The SQL password authentication.
    Target:
      type: object
      description: Concrete proxy resource types can be created by aliasing this type using a specific property type.
      properties:
        properties:
          $ref: '#/components/schemas/TargetProperties'
          description: The resource-specific properties for this resource.
          x-ms-client-flatten: true
          x-ms-mutability:
          - read
          - create
      allOf:
      - $ref: ../../../../../common-types/resource-management/v3/types.json#/definitions/ProxyResource
    TopologiesProperties:
      type: object
      description: Defines a desired runtime component.
      properties:
        bindings:
          type: array
          description: bindings description.
          items:
            $ref: '#/components/schemas/BindingProperties'
          x-ms-identifiers: []
    ExtendedLocation:
      type: object
      description: Extended location is an extension of Azure locations. They provide a way to use their Azure ARC enabled Kubernetes clusters as target locations for deploying Azure services instances.
      properties:
        name:
          type: string
          description: The name of the extended location.
        type:
          type: string
          description: The type of the extended location.
      required:
      - name
      - type
    ComponentProperties:
      type: object
      description: Defines a desired runtime component.
      properties:
        dependencies:
          type: array
          description: Component dependencies.
          items:
            type: string
        name:
          type: string
          description: Name of the component.
        properties:
          type: object
          description: Properties of the component.
          additionalProperties: {}
        type:
          type: string
          description: Component type.
      required:
      - name
      - type
    ReconciliationPolicy:
      type: object
      description: Reconciliation Policy.
      properties:
        type:
          $ref: '#/components/schemas/ReconciliationPolicies'
          description: Policy type
        interval:
          type: string
          description: Policy interval.
          minLength: 1
      required:
      - type
    ReconciliationPolicies:
      type: string
      description: Policies to control how the resource should reconcile.
      enum:
      - periodic
      x-ms-enum:
        name: ReconciliationPolicies
        modelAsString: true
        values:
        - name: periodic
          value: periodic
          description: Allows resource to reconcile periodically.
    ProvisioningState:
      type: string
      description: The provisioning status of the resource.
      enum:
      - Succeeded
      - Failed
      - Canceled
      - Reconciling
      - Deleting
      - Accepted
      x-ms-enum:
        name: ProvisioningState
        modelAsString: true
        values:
        - name: Succeeded
          value: Succeeded
          description: Resource has been created.
        - name: Failed
          value: Failed
          description: Resource creation failed.
        - name: Canceled
          value: Canceled
          description: Resource creation was canceled.
        - name: Reconciling
          value: Reconciling
          description: The resource is being updated.
        - name: Deleting
          value: Deleting
          description: The resource is being deleted.
        - name: Accepted
          value: Accepted
          description: The resource was accepted by the server.
    TargetTagsUpdate:
      type: object
      description: The type used for updating tags in Target resources.
      properties:
        tags:
          type: object
          description: Resource tags.
          additionalProperties:
            type: string
    BindingProperties:
      type: object
      description: Defines a component binding for a provider.
      properties:
        config:
          type: object
          description: Configuration values for the binding.
          additionalProperties: {}
        provider:
          type: string
          description: Name of the provider.
        role:
          type: string
          description: Role that the provider binds to with the component.
      required:
      - config
      - provider
      - role