Microsoft Azure · Capability

Microsoft Azure ApiManagementClient — PolicyFragment

Microsoft Azure ApiManagementClient — PolicyFragment. 6 operations. Lead operation: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments. Self-contained Naftiko capability covering one Microsoft Azure business surface.

Run with Naftiko Microsoft AzurePolicyFragment

What You Can Do

GET
Microsoftazureworkspacepolicyfragmentlistbyservice — Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments
HEAD
Microsoftazureworkspacepolicyfragmentgetentitytag — Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}
GET
Microsoftazureworkspacepolicyfragmentget — Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}
PUT
Microsoftazureworkspacepolicyfragmentcreateorupdate — Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}
DELETE
Microsoftazureworkspacepolicyfragmentdelete — Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}
POST
Microsoftazureworkspacepolicyfragmentlistreferences — Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id Listreferences
/v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}/listreferences

MCP Tools

microsoft-azure-get-subscriptions-subscriptionid

Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments

read-only idempotent
microsoft-azure-head-subscriptions-subscriptionid

Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id

microsoft-azure-get-subscriptions-subscriptionid-2

Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id

read-only idempotent
microsoft-azure-put-subscriptions-subscriptionid

Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id

idempotent
microsoft-azure-delete-subscriptions-subscriptionid

Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id

idempotent
microsoft-azure-post-subscriptions-subscriptionid

Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id Listreferences

Capability Spec

apimanagementclient-policyfragment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Microsoft Azure ApiManagementClient — PolicyFragment
  description: 'Microsoft Azure ApiManagementClient — PolicyFragment. 6 operations. Lead operation: Microsoft Azure Get Subscriptions
    Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement Service Servicename Workspaces Workspaceid
    Policyfragments. Self-contained Naftiko capability covering one Microsoft Azure business surface.'
  tags:
  - Microsoft Azure
  - PolicyFragment
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    MICROSOFT_AZURE_API_KEY: MICROSOFT_AZURE_API_KEY
capability:
  consumes:
  - type: http
    namespace: apimanagementclient-policyfragment
    baseUri: https://management.azure.com
    description: Microsoft Azure ApiManagementClient — PolicyFragment business capability. Self-contained, no shared references.
    resources:
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments
      operations:
      - name: microsoftazureworkspacepolicyfragmentlistbyservice
        method: GET
        description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: $filter
          in: query
          type: string
          description: '|     Field     |     Usage     |     Supported operators     |     Supported functions     |</br>|-------------|-------------|-------------|-------------|</br>'
        - name: $orderby
          in: query
          type: string
          description: OData order by query option.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}
      operations:
      - name: microsoftazureworkspacepolicyfragmentgetentitytag
        method: HEAD
        description: Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: microsoftazureworkspacepolicyfragmentget
        method: GET
        description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: microsoftazureworkspacepolicyfragmentcreateorupdate
        method: PUT
        description: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: parameters
          in: body
          type: string
          description: The policy fragment contents to apply.
          required: true
      - name: microsoftazureworkspacepolicyfragmentdelete
        method: DELETE
        description: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof
      path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}/policyFragments/{id}/listReferences
      operations:
      - name: microsoftazureworkspacepolicyfragmentlistreferences
        method: POST
        description: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id Listreferences
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    namespace: apimanagementclient-policyfragment-rest
    port: 8080
    description: REST adapter for Microsoft Azure ApiManagementClient — PolicyFragment. One Spectral-compliant resource per
      consumed operation, prefixed with /v1.
    resources:
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: GET
        name: microsoftazureworkspacepolicyfragmentlistbyservice
        description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentlistbyservice
        with:
          $filter: rest.$filter
          $orderby: rest.$orderby
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: HEAD
        name: microsoftazureworkspacepolicyfragmentgetentitytag
        description: Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentgetentitytag
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: microsoftazureworkspacepolicyfragmentget
        description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentget
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: microsoftazureworkspacepolicyfragmentcreateorupdate
        description: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentcreateorupdate
        with:
          parameters: rest.parameters
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: microsoftazureworkspacepolicyfragmentdelete
        description: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentdelete
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/subscriptions/{subscriptionid}/resourcegroups/{resourcegroupname}/providers/microsoft-apimanagement/service/{servicename}/workspaces/{workspaceid}/policyfragments/{id}/listreferences
      name: subscriptions-subscriptionid-resourcegroups-resourcegroupname-providers-microsof
      description: REST surface for subscriptions-subscriptionId-resourceGroups-resourceGroupName-providers-Microsof.
      operations:
      - method: POST
        name: microsoftazureworkspacepolicyfragmentlistreferences
        description: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
          Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id Listreferences
        call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentlistreferences
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: apimanagementclient-policyfragment-mcp
    port: 9090
    transport: http
    description: MCP adapter for Microsoft Azure ApiManagementClient — PolicyFragment. One tool per consumed operation, routed
      inline through this capability's consumes block.
    tools:
    - name: microsoft-azure-get-subscriptions-subscriptionid
      description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement
        Service Servicename Workspaces Workspaceid Policyfragments
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentlistbyservice
      with:
        $filter: tools.$filter
        $orderby: tools.$orderby
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-head-subscriptions-subscriptionid
      description: Microsoft Azure Head Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
        Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentgetentitytag
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-get-subscriptions-subscriptionid-2
      description: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement
        Service Servicename Workspaces Workspaceid Policyfragments Id
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentget
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-put-subscriptions-subscriptionid
      description: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft Apimanagement
        Service Servicename Workspaces Workspaceid Policyfragments Id
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentcreateorupdate
      with:
        parameters: tools.parameters
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-delete-subscriptions-subscriptionid
      description: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
        Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentdelete
      outputParameters:
      - type: object
        mapping: $.
    - name: microsoft-azure-post-subscriptions-subscriptionid
      description: Microsoft Azure Post Subscriptions Subscriptionid Resourcegroups Resourcegroupname Providers Microsoft
        Apimanagement Service Servicename Workspaces Workspaceid Policyfragments Id Listreferences
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: apimanagementclient-policyfragment.microsoftazureworkspacepolicyfragmentlistreferences
      outputParameters:
      - type: object
        mapping: $.