Microsoft Azure Iscsi Targets API

APIs for iSCSI target operations.

GitHub OpenAPI
Business capability
IT Infrastructure Management BC-600.50

Operations 5

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.StoragePool/diskPools/{diskPoolName}/iscsiTargets List iSCSI targets in a disk pool · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“Which iSCSI targets are exposed by my Azure disk pool?”
“Can I see all iSCSI targets for one disk pool at once?”
Tell an agent
List the iSCSI targets in disk pool {pool}, resource group {rg}.
Show every iSCSI target on disk pool {pool} in subscription {sub}, group {rg}.
PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName} Create or replace an iSCSI target · Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I expose disks from a disk pool as a new iSCSI target?”
“Can I recreate an iSCSI target with a different ACL mode?”
Tell an agent
Create iSCSI target {target} in disk pool {pool}, resource group {rg} with {payload}.
Put iSCSI target {target} on pool {pool} in subscription {sub}, group {rg} using create payload {payload}.
PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName} Update an iSCSI target · Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I add LUNs or change static ACLs on an existing iSCSI target?”
“Can I modify an iSCSI target in place without recreating it?”
Tell an agent
Update iSCSI target {target} in disk pool {pool}, resource group {rg} with {payload}.
Patch iSCSI target {target} on pool {pool} in subscription {sub}, group {rg} with update payload {payload}.
DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName} Delete an iSCSI target · Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“How do I remove an iSCSI target from a disk pool?”
“Will deleting an iSCSI target disconnect the initiators using it?”
Tell an agent destructive · confirm first
Delete iSCSI target {target} from disk pool {pool}, resource group {rg}.
Remove iSCSI target {target} on pool {pool} in subscription {sub}, group {rg}.
GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName} Get an iSCSI target · Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups… #
Ask an LLM
“What IQN and endpoints does a specific iSCSI target use?”
“How do I look up the LUNs and ACL mode of one iSCSI target?”
Tell an agent
Get iSCSI target {target} in disk pool {pool}, resource group {rg}.
Show the details of iSCSI target {target} on pool {pool} in subscription {sub}, group {rg}.

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-iscsitargets-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-iscsitargets-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: 2021-04-01-preview
  title: Microsoft Azure StoragePoolManagement Iscsi Targets API
  description: APIs for iSCSI target operations.
servers:
- url: https://management.azure.com
security:
- azure_auth:
  - user_impersonation
tags:
- name: IscsiTargets
  description: APIs for iSCSI target operations.
paths:
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets
  : get:
      tags:
      - IscsiTargets
      description: Get iSCSI Targets in a Disk pool.
      operationId: microsoftAzureIscsitargetsListbydiskpool
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DiskPoolName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Operation completed successfully; retrieved iSCSI Targets in a Disk pool.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IscsiTargetList'
        default:
          description: Error from the RP
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        List Disk Pools by Resource Group:
          $ref: ./examples/IscsiTargets_ListByDiskPool.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
  ? /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StoragePool/diskPools/{diskPoolName}/iscsiTargets/{iscsiTargetName}
  : put:
      tags:
      - IscsiTargets
      description: Create or Update an iSCSI Target.
      operationId: microsoftAzureIscsitargetsCreateorupdate
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DiskPoolName'
      - $ref: '#/components/parameters/IscsiTargetName'
      - $ref: '#/components/parameters/IscsiTargetCreate'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK -- Returned when the create or update operation is successfully completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IscsiTarget'
        '201':
          description: Accepted -- Create or update request accepted; operation will complete asynchronously.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IscsiTarget'
        default:
          description: Error from the RP.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-examples:
        Create or Update iSCSI Target:
          $ref: ./examples/IscsiTargets_Put.json
      summary: Microsoft Azure Put Subscriptions Subscriptionid Resourcegroups…
    patch:
      tags:
      - IscsiTargets
      description: Update an iSCSI Target.
      operationId: microsoftAzureIscsitargetsUpdate
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DiskPoolName'
      - $ref: '#/components/parameters/IscsiTargetName'
      - $ref: '#/components/parameters/IscsiTargetUpdate'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: OK -- Returned when the update operation is successfully completed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IscsiTarget'
        '202':
          description: Accepted -- Update request accepted; operation will complete asynchronously.
        default:
          description: Error from the RP.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-examples:
        Update iSCSI Target:
          $ref: ./examples/IscsiTargets_Patch.json
      summary: Microsoft Azure Patch Subscriptions Subscriptionid Resourcegroups…
    delete:
      tags:
      - IscsiTargets
      description: Delete an iSCSI Target.
      operationId: microsoftAzureIscsitargetsDelete
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DiskPoolName'
      - $ref: '#/components/parameters/IscsiTargetName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Delete operation completed successfully.
        '202':
          description: Delete request accepted; operation will complete asynchronously.
        '204':
          description: Resource does not exist in the subscription.
        default:
          description: Error from the RP
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: azure-async-operation
      x-ms-examples:
        Delete iSCSI Target:
          $ref: ./examples/IscsiTargets_Delete.json
      summary: Microsoft Azure Delete Subscriptions Subscriptionid Resourcegroups…
    get:
      tags:
      - IscsiTargets
      description: Get an iSCSI Target.
      operationId: microsoftAzureIscsitargetsGet
      parameters:
      - $ref: '#/components/parameters/SubscriptionIdParameter'
      - $ref: '#/components/parameters/ResourceGroupNameParameter'
      - $ref: '#/components/parameters/DiskPoolName'
      - $ref: '#/components/parameters/IscsiTargetName'
      - $ref: '#/components/parameters/ApiVersionParameter'
      responses:
        '200':
          description: Operation completed successfully; retrieved iSCSI Target.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IscsiTarget'
        default:
          description: Error from the RP.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-ms-examples:
        Get iSCSI Target:
          $ref: ./examples/IscsiTargets_Get.json
      summary: Microsoft Azure Get Subscriptions Subscriptionid Resourcegroups…
components:
  parameters:
    DiskPoolName:
      name: diskPoolName
      in: path
      required: true
      description: The name of the Disk Pool.
      x-ms-parameter-location: method
      schema:
        type: string
    IscsiTargetUpdate:
      name: iscsiTargetUpdatePayload
      required: true
      in: body
      description: Request payload for iSCSI Target update operation.
      schema:
        $ref: '#/components/schemas/IscsiTargetUpdate'
      x-ms-parameter-location: method
    IscsiTargetCreate:
      name: iscsiTargetCreatePayload
      required: true
      in: body
      description: Request payload for iSCSI Target create operation.
      schema:
        $ref: '#/components/schemas/IscsiTargetCreate'
      x-ms-parameter-location: method
    ResourceGroupNameParameter:
      name: resourceGroupName
      in: path
      required: true
      description: The name of the resource group. The name is case insensitive.
      x-ms-parameter-location: method
      schema:
        type: string
        maxLength: 90
        minLength: 1
        pattern: ^[-\w\._]*[0-9A-Za-z]$
    SubscriptionIdParameter:
      name: subscriptionId
      in: path
      required: true
      description: The ID of the target subscription.
      schema:
        type: string
        minLength: 1
    ApiVersionParameter:
      name: api-version
      in: query
      required: true
      description: The API version to use for this operation.
      schema:
        type: string
        minLength: 1
    IscsiTargetName:
      name: iscsiTargetName
      required: true
      in: path
      description: The name of the iSCSI Target.
      x-ms-parameter-location: method
      schema:
        type: string
  schemas:
    AclMode:
      type: string
      enum:
      - Dynamic
      - Static
      x-ms-enum:
        name: IscsiTargetAclMode
        modelAsString: true
      description: ACL mode for iSCSI Target.
    IscsiTarget:
      type: object
      description: Response for iSCSI Target requests.
      required:
      - properties
      properties:
        properties:
          x-ms-client-flatten: true
          description: Properties for iSCSI Target operations.
          $ref: '#/components/schemas/IscsiTargetProperties'
        systemData:
          description: Resource metadata required by ARM RPC
          $ref: '#/components/schemas/SystemMetadata'
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    OperationalStatus:
      type: string
      enum:
      - Invalid
      - Unknown
      - Healthy
      - Unhealthy
      - Updating
      - Running
      - Stopped
      - Stopped (deallocated)
      x-ms-enum:
        name: OperationalStatus
        modelAsString: true
      description: Operational status of the resource.
    Resource:
      description: ARM resource model definition.
      properties:
        id:
          readOnly: true
          type: string
          description: Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
        name:
          readOnly: true
          type: string
          description: The name of the resource
        type:
          readOnly: true
          type: string
          description: The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
      x-ms-azure-resource: true
    IscsiTargetProperties:
      type: object
      description: Response properties for iSCSI Target operations.
      required:
      - targetIqn
      - provisioningState
      - status
      - aclMode
      properties:
        aclMode:
          description: Mode for Target connectivity.
          type: string
          $ref: '#/components/schemas/AclMode'
        staticAcls:
          type: array
          description: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
          items:
            $ref: '#/components/schemas/Acl'
        luns:
          type: array
          description: List of LUNs to be exposed through iSCSI Target.
          items:
            $ref: '#/components/schemas/IscsiLun'
        targetIqn:
          type: string
          description: 'iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".'
        provisioningState:
          description: State of the operation on the resource.
          type: string
          $ref: '#/components/schemas/ProvisioningState'
        status:
          type: string
          $ref: '#/components/schemas/OperationalStatus'
          description: Operational status of the iSCSI Target.
        endpoints:
          description: List of private IPv4 addresses to connect to the iSCSI Target.
          type: array
          items:
            type: string
        port:
          type: integer
          format: int32
          description: The port used by iSCSI Target portal group.
    Error:
      type: object
      description: The resource management error response.
      properties:
        error:
          type: object
          description: RP error response.
          $ref: '#/components/schemas/ErrorResponse'
    IscsiLun:
      type: object
      required:
      - name
      - managedDiskAzureResourceId
      description: LUN to expose the Azure Managed Disk.
      additionalProperties: false
      properties:
        name:
          type: string
          minimum: 1
          maximum: 90
          description: 'User defined name for iSCSI LUN; example: "lun0"'
        managedDiskAzureResourceId:
          type: string
          description: Azure Resource ID of the Managed Disk.
        lun:
          type: integer
          format: int32
          readOnly: true
          description: Specifies the Logical Unit Number of the iSCSI LUN.
    IscsiTargetUpdate:
      type: object
      description: Payload for iSCSI Target update requests.
      required:
      - properties
      properties:
        properties:
          x-ms-client-flatten: true
          description: Properties for iSCSI Target update request.
          $ref: '#/components/schemas/IscsiTargetUpdateProperties'
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    SystemMetadata:
      description: Metadata pertaining to creation and last modification of the resource.
      type: object
      readOnly: true
      properties:
        createdBy:
          type: string
          description: The identity that created the resource.
        createdByType:
          type: string
          description: The type of identity that created the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        createdAt:
          type: string
          format: date-time
          description: The timestamp of resource creation (UTC).
        lastModifiedBy:
          type: string
          description: The identity that last modified the resource.
        lastModifiedByType:
          type: string
          description: The type of identity that last modified the resource.
          enum:
          - User
          - Application
          - ManagedIdentity
          - Key
          x-ms-enum:
            name: createdByType
            modelAsString: true
        lastModifiedAt:
          type: string
          format: date-time
          description: The type of identity that last modified the resource.
    IscsiTargetList:
      type: object
      required:
      - value
      description: List of iSCSI Targets.
      additionalProperties: false
      properties:
        value:
          type: array
          description: An array of iSCSI Targets in a Disk Pool.
          items:
            $ref: '#/components/schemas/IscsiTarget'
        nextLink:
          description: URI to fetch the next section of the paginated response.
          type: string
          readOnly: true
    ProxyResource:
      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'
    ErrorAdditionalInfo:
      properties:
        type:
          readOnly: true
          type: string
          description: The additional info type.
        info:
          readOnly: true
          type: object
          description: The additional info.
      description: The resource management error additional info.
    ErrorResponse:
      properties:
        code:
          readOnly: true
          type: string
          description: The error code.
        message:
          readOnly: true
          type: string
          description: The error message.
        target:
          readOnly: true
          type: string
          description: The error target.
        details:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorResponse'
          description: The error details.
        additionalInfo:
          readOnly: true
          type: array
          items:
            $ref: '#/components/schemas/ErrorAdditionalInfo'
          description: The error additional info.
      description: The resource management error response.
    Acl:
      type: object
      description: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
      required:
      - initiatorIqn
      - mappedLuns
      properties:
        initiatorIqn:
          type: string
          description: 'iSCSI initiator IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:client".'
        mappedLuns:
          type: array
          description: List of LUN names mapped to the ACL.
          items:
            type: string
    IscsiTargetCreate:
      type: object
      description: Payload for iSCSI Target create or update requests.
      required:
      - properties
      properties:
        properties:
          x-ms-client-flatten: true
          description: Properties for iSCSI Target create request.
          $ref: '#/components/schemas/IscsiTargetCreateProperties'
      allOf:
      - $ref: '#/components/schemas/ProxyResource'
    IscsiTargetCreateProperties:
      type: object
      description: Properties for iSCSI Target create or update request.
      required:
      - aclMode
      properties:
        aclMode:
          description: Mode for Target connectivity.
          type: string
          $ref: '#/components/schemas/AclMode'
        targetIqn:
          type: string
          description: 'iSCSI Target IQN (iSCSI Qualified Name); example: "iqn.2005-03.org.iscsi:server".'
        staticAcls:
          type: array
          description: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
          items:
            $ref: '#/components/schemas/Acl'
        luns:
          type: array
          description: List of LUNs to be exposed through iSCSI Target.
          items:
            $ref: '#/components/schemas/IscsiLun'
    IscsiTargetUpdateProperties:
      type: object
      description: Properties for iSCSI Target update request.
      properties:
        staticAcls:
          type: array
          description: Access Control List (ACL) for an iSCSI Target; defines LUN masking policy
          items:
            $ref: '#/components/schemas/Acl'
        luns:
          type: array
          description: List of LUNs to be exposed through iSCSI Target.
          items:
            $ref: '#/components/schemas/IscsiLun'
    ProvisioningState:
      type: string
      enum:
      - Invalid
      - Succeeded
      - Failed
      - Canceled
      - Pending
      - Creating
      - Updating
      - Deleting
      x-ms-enum:
        name: ProvisioningStates
        modelAsString: true
      description: Provisioning state of the iSCSI Target.
      readOnly: true
  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