Skip to content
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

APIM SKUs API #12752

Merged
merged 4 commits into from
Feb 8, 2021
Merged
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,371 @@
{
"swagger": "2.0",
"info": {
"title": "ApiManagementClient",
"description": "SKUs available for Microsoft.ApiManagement",
"version": "2020-06-01-preview"
solankisamir marked this conversation as resolved.
Show resolved Hide resolved
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow.",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.ApiManagement/skus": {
"get": {
"tags": [
"Skus"
],
"operationId": "ApiManagementSkus_List",
"description": "Gets the list of Microsoft.ApiManagement SKUs available for your Subscription.",
"x-ms-examples": {
"Lists all available Resource SKUs": {
"$ref": "./examples/ApiManagementListSku.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/ApiManagementSkusResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "./apimanagement.json#/definitions/ErrorResponse"
}
}
},
"x-ms-pageable": {
"nextLinkName": "nextLink"
}
}
}
},
"definitions": {
"ApiManagementSkuCapacity": {
"properties": {
"minimum": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The minimum capacity."
},
"maximum": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The maximum capacity that can be set."
},
"default": {
"type": "integer",
"readOnly": true,
"format": "int32",
"description": "The default capacity."
},
"scaleType": {
"type": "string",
"readOnly": true,
"description": "The scale type applicable to the sku.",
"enum": [
"Automatic",
"Manual",
"None"
],
"x-ms-enum": {
"name": "ApiManagementSkuCapacityScaleType",
"modelAsString": false
}
}
},
"description": "Describes scaling information of a SKU."
},
"ApiManagementSkuCosts": {
"properties": {
"meterID": {
"type": "string",
"readOnly": true,
"description": "Used for querying price from commerce."
},
"quantity": {
"type": "integer",
"readOnly": true,
"format": "int64",
"description": "The multiplier is needed to extend the base metered cost."
},
"extendedUnit": {
"type": "string",
"readOnly": true,
"description": "An invariant to show the extended unit."
}
},
"description": "Describes metadata for retrieving price info."
},
"ApiManagementSkuCapabilities": {
"properties": {
"name": {
"type": "string",
"readOnly": true,
"description": "An invariant to describe the feature."
},
"value": {
"type": "string",
"readOnly": true,
"description": "An invariant if the feature is measured by quantity."
}
},
"description": "Describes The SKU capabilities object."
},
"ApiManagementSkuZoneDetails": {
"properties": {
"name": {
"type": "array",
"readOnly": true,
"items": {
"type": "string"
},
"description": "The set of zones that the SKU is available in with the specified capabilities."
},
"capabilities": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/ApiManagementSkuCapabilities"
},
"description": "A list of capabilities that are available for the SKU in the specified list of zones."
}
},
"description": "Describes The zonal capabilities of a SKU."
},
"ApiManagementSkuRestrictions": {
"properties": {
"type": {
"type": "string",
"readOnly": true,
"description": "The type of restrictions.",
"enum": [
"Location",
"Zone"
],
"x-ms-enum": {
"name": "ApiManagementSkuRestrictionsType",
"modelAsString": false
}
},
"values": {
"type": "array",
"readOnly": true,
"items": {
"type": "string"
},
"description": "The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted."
},
"restrictionInfo": {
"$ref": "#/definitions/ApiManagementSkuRestrictionInfo",
"readOnly": true,
"description": "The information about the restriction where the SKU cannot be used."
},
"reasonCode": {
"type": "string",
"readOnly": true,
"description": "The reason for restriction.",
"enum": [
"QuotaId",
"NotAvailableForSubscription"
],
"x-ms-enum": {
"name": "ApiManagementSkuRestrictionsReasonCode",
"modelAsString": false
}
}
},
"description": "Describes scaling information of a SKU."
},
"ApiManagementSku": {
"properties": {
"resourceType": {
"readOnly": true,
"type": "string",
"description": "The type of resource the SKU applies to."
},
"name": {
"readOnly": true,
"type": "string",
"description": "The name of SKU."
},
"tier": {
"readOnly": true,
"type": "string",
"description": "Specifies the tier of virtual machines in a scale set.<br /><br /> Possible Values:<br /><br /> **Standard**<br /><br /> **Basic**"
},
"size": {
"readOnly": true,
"type": "string",
"description": "The Size of the SKU."
},
"family": {
"readOnly": true,
"type": "string",
"description": "The Family of this particular SKU."
},
"kind": {
"readOnly": true,
"type": "string",
"description": "The Kind of resources that are supported in this SKU."
},
"capacity": {
"$ref": "#/definitions/ApiManagementSkuCapacity",
"readOnly": true,
"description": "Specifies the number of virtual machines in the scale set."
},
"locations": {
"type": "array",
"readOnly": true,
"items": {
"type": "string"
},
"description": "The set of locations that the SKU is available."
},
"locationInfo": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/ApiManagementSkuLocationInfo"
},
"description": "A list of locations and availability zones in those locations where the SKU is available."
},
"apiVersions": {
"type": "array",
"readOnly": true,
"items": {
"type": "string"
},
"description": "The api versions that support this SKU."
},
"costs": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/ApiManagementSkuCosts"
},
"description": "Metadata for retrieving price info."
},
"capabilities": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/ApiManagementSkuCapabilities"
},
"description": "A name value pair to describe the capability."
},
"restrictions": {
"type": "array",
"readOnly": true,
"items": {
"$ref": "#/definitions/ApiManagementSkuRestrictions"
},
"description": "The restrictions because of which SKU cannot be used. This is empty if there are no restrictions."
}
},
"description": "Describes an available ApiManagement SKU."
},
"ApiManagementSkuLocationInfo": {
"properties": {
"location": {
"readOnly": true,
"type": "string",
"description": "Location of the SKU"
},
"zones": {
"readOnly": true,
"type": "array",
"items": {
"type": "string"
},
"description": "List of availability zones where the SKU is supported."
},
"zoneDetails": {
"readOnly": true,
"type": "array",
"items": {
"$ref": "#/definitions/ApiManagementSkuZoneDetails"
},
"description": "Details of capabilities available to a SKU in specific zones."
}
}
},
"ApiManagementSkuRestrictionInfo": {
"properties": {
"locations": {
"readOnly": true,
"type": "array",
"items": {
"type": "string"
},
"description": "Locations where the SKU is restricted"
},
"zones": {
"readOnly": true,
"type": "array",
"items": {
"type": "string"
},
"description": "List of availability zones where the SKU is restricted."
}
}
},
"ApiManagementSkusResult": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ApiManagementSku"
},
"description": "The list of skus available for the subscription."
},
"nextLink": {
solankisamir marked this conversation as resolved.
Show resolved Hide resolved
"type": "string",
"readOnly": true,
"description": "The URI to fetch the next page of Resource Skus. Call ListNext() with this URI to fetch the next page of Resource Skus"
}
},
"required": [
"value"
],
"description": "The List Resource Skus operation response."
}
},
"parameters": {}
}
Loading