Capacities - List Capacities

Returns a list of capacities the principal can access (either administrator or a contributor).
This API supports pagination.

Required Delegated Scopes

Capacity.Read.All or Capacity.ReadWrite.All

Microsoft Entra supported identities

This API supports the Microsoft identities listed in this section.

Identity Support
User Yes
Service principal Yes
Managed identities Yes

Interface

GET https://api.fabric.microsoft.com/v1/capacities
GET https://api.fabric.microsoft.com/v1/capacities?continuationToken={continuationToken}

URI Parameters

Name In Required Type Description
continuationToken
query

string

A token for retrieving the next page of results.

Responses

Name Type Description
200 OK

Capacities

Request completed successfully.

Other Status Codes

ErrorResponse

Common error codes:

  • UnknownError - An error occurred.

Examples

List capacities example
List capacities with continuation example

List capacities example

Sample request

GET https://api.fabric.microsoft.com/v1/capacities

Sample response

{
  "value": [
    {
      "id": "96f3f0ff-4fe2-4712-b61b-05a456ba9357",
      "displayName": "F4 Capacity",
      "sku": "F4",
      "region": "West Central US",
      "state": "Active"
    },
    {
      "id": "0b9a4952-b5e7-4a55-8739-3e7251a2fd43",
      "displayName": "F8 Capacity",
      "sku": "F8",
      "region": "West Central US",
      "state": "Inactive"
    },
    {
      "id": "af196b7b-0bf8-4430-b383-ad48d14f4edf",
      "displayName": "F16 Capacity",
      "sku": "F16",
      "region": "West Central US",
      "state": "Active"
    }
  ]
}

List capacities with continuation example

Sample request

GET https://api.fabric.microsoft.com/v1/capacities

Sample response

{
  "value": [
    {
      "id": "96f3f0ff-4fe2-4712-b61b-05a456ba9357",
      "displayName": "F4 Capacity",
      "sku": "F4",
      "region": "West Central US",
      "state": "Active"
    },
    {
      "id": "0b9a4952-b5e7-4a55-8739-3e7251a2fd43",
      "displayName": "F8 Capacity",
      "sku": "F8",
      "region": "West Central US",
      "state": "Inactive"
    },
    {
      "id": "af196b7b-0bf8-4430-b383-ad48d14f4edf",
      "displayName": "F16 Capacity",
      "sku": "F16",
      "region": "West Central US",
      "state": "Active"
    }
  ],
  "continuationToken": "LDEsMTAwMDAwLDA%3D",
  "continuationUri": "https://api.fabric.microsoft.com/v1/capacities?continuationToken=LDEsMTAwMDAwLDA%3D"
}

Definitions

Name Description
Capacities
Capacity

A capacity object.

CapacityState

A Capacity state. Additional capacity states may be added over time.

ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response details.

Capacities

Name Type Description
continuationToken

string

The token for the next result set batch. If there are no more records, it's removed from the response.

continuationUri

string

The URI of the next result set batch. If there are no more records, it's removed from the response.

value

Capacity[]

A list of capacities.

Capacity

A capacity object.

Name Type Description
displayName

string

The capacity display name.

id

string

The capacity ID.

region

string

The Azure region where the capacity was provisioned.

sku

string

The capacity SKU.

state

CapacityState

The capacity state.

CapacityState

A Capacity state. Additional capacity states may be added over time.

Name Type Description
Active

string

The capacity is ready to use.

Inactive

string

The capacity can't be used.

ErrorRelatedResource

The error related resource details object.

Name Type Description
resourceId

string

The resource ID that's involved in the error.

resourceType

string

The type of the resource that's involved in the error.

ErrorResponse

The error response.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

relatedResource

ErrorRelatedResource

The error related resource details.

requestId

string

ID of the request associated with the error.

ErrorResponseDetails

The error response details.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

relatedResource

ErrorRelatedResource

The error related resource details.