ManagedComputeCapacitiesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
CognitiveServicesManagementClient's
<xref:managed_compute_capacities> attribute.
Constructor
ManagedComputeCapacitiesOperations(*args, **kwargs)
Methods
| list |
Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information. |
list
Gets the managed compute capacities for a subscription. Returns available capacity per accelerator type, including deployment size information.
list(*, offer: str, accelerator_type: str | None = None, deployment_id: str | None = None, location: str | None = None, **kwargs: Any) -> ItemPaged[ManagedComputeCapacity]
Keyword-Only Parameters
| Name | Description |
|---|---|
|
offer
|
The offer name to query capacity for (required). Required. |
|
accelerator_type
|
Optional accelerator type filter to narrow results to a specific accelerator type. Default value is None. Default value: None
|
|
deployment_id
|
Optional deployment resource ID. When provided, returns capacity for the specific region where the deployment is hosted rather than the best available region. Default value is None. Default value: None
|
|
location
|
Optional Azure location used to select a DataZone scope. Without a deployment ID, omitted or blank location returns Global and both US and EU DataZone capacities. A supported location returns Global and the matching DataZone capacities; an unsupported location returns Global capacity only. With a deployment ID, a nonblank location must match the parent account location, ignoring case and surrounding whitespace, or the request returns HTTP 400. Capacity is still returned for the deployment's backend region. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of ManagedComputeCapacity |
Exceptions
| Type | Description |
|---|---|