Skip to content

Added workspace per subscription usage api #22409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"subscriptionId": "00000000-1111-2222-3333-444444444444",
"location": "WestUS",
"api-version": "2021-06-01"
},
"responses": {
"200": {
"body": {
"name": "WorkspaceQuota",
"currentValue": 1,
"limit": 20,
"unit": "Count"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"swagger": "2.0",
"info": {
"version": "2021-06-01",
"title": "SynapseManagementClient",
"description": "Azure Synapse Analytics APIs"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"securityDefinitions": {
"azure_auth": {
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"type": "oauth2",
"scopes": {
"user_impersonation": "impersonate your user account"
},
"description": "Azure Active Directory OAuth2 Flow"
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Synapse/locations/{location}/usages": {
"get": {
"operationId": "Operations_GetWorkspacePerSubscriptionQuota",
"summary": "Gets the current usage and quota of workspaces in a subscription/region",
"description": "Gets the current usage and quota of workspaces in a subscription/region",
"tags": [
"Usages"
],
"deprecated": false,
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/SubscriptionIdParameter"
},
{
"name": "location",
"in": "path",
"required": true,
"type": "string",
"description": "The location on which resource usage is queried."
}
],
"responses": {
"200": {
"schema": {
"$ref": "#/definitions/WorkspaceUsageQuotaResponse"
},
"description": ""
},
"default": {
"schema": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse"
},
"description": ""
}
},
"produces": [
"application/json"
],
"x-ms-examples": {
"Workspace per subscription usage in given location": {
"$ref": "./examples/WorkspacePerSubscriptionUsageGet.json"
}
}
}
}
},
"definitions": {
"WorkspaceUsageQuotaResponse": {
"description": "Workspaces per subscription usage and limit.",
"type": "object",
"properties": {
"name": {
"description": "User-readable name of the metric.",
"type": "string",
"readOnly": true
},
"currentValue": {
"format": "double",
"description": "Current value of the metric.",
"type": "number",
"readOnly": true
},
"limit": {
"format": "double",
"description": "Boundary value of the metric.",
"type": "number",
"readOnly": true
},
"unit": {
"description": "Unit of the metric.",
"type": "string",
"readOnly": true
}
}
}
}
}
2 changes: 2 additions & 0 deletions specification/synapse/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ input-file:
- Microsoft.Synapse/stable/2021-06-01/sqlPool.json
- Microsoft.Synapse/stable/2021-06-01/sqlServer.json
- Microsoft.Synapse/stable/2021-06-01/workspace.json
- Microsoft.Synapse/stable/2021-06-01/workspacesPerSubscriptionUsage.json
- Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json
- Microsoft.Synapse/preview/2021-06-01-preview/library.json
- Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json
Expand All @@ -75,6 +76,7 @@ input-file:
- Microsoft.Synapse/stable/2021-06-01/sqlPool.json
- Microsoft.Synapse/stable/2021-06-01/sqlServer.json
- Microsoft.Synapse/stable/2021-06-01/workspace.json
- Microsoft.Synapse/stable/2021-06-01/workspacesPerSubscriptionUsage.json
- Microsoft.Synapse/preview/2021-06-01-preview/bigDataPool.json
- Microsoft.Synapse/preview/2021-06-01-preview/library.json
- Microsoft.Synapse/preview/2021-06-01-preview/integrationRuntime.json
Expand Down