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

API Management service SKU API documentation #4466

Merged
merged 8 commits into from
Dec 4, 2018
Merged
Show file tree
Hide file tree
Changes from 5 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
Expand Up @@ -63,6 +63,46 @@
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/skus": {
"get": {
"tags": [
"ApiManagementServiceSkus"
],
"summary": "Gets available SKUs for API Management service",
"description": "Gets all available SKU for a given API Management service",
"operationId": "ApiManagementServiceSkus_ListAvailableServiceSkus",
"x-ms-examples": {
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"ApiManagementListSKUs": {
"$ref": "./examples/ApiManagementListSKUs.json"
}
},
"parameters": [
{
"$ref": "./apimanagement.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ServiceNameParameter"
},
{
"$ref": "./apimanagement.json#/parameters/ApiVersionParameter"
},
{
"$ref": "./apimanagement.json#/parameters/SubscriptionIdParameter"
}
],
"responses": {
"200": {
"description": "OK",
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"schema": {
"$ref": "#/definitions/ResourceSkuResults"
}
}
},
"x-ms-pageable": {
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"nextLinkName": "nextLink"
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/restore": {
"post": {
Expand Down Expand Up @@ -646,6 +686,127 @@
}
},
"definitions": {
"ResourceSkuResults": {
"properties": {
"value": {
"type": "array",
"items": {
"$ref": "#/definitions/ResourceSkuResult"
},
"description": "The list of skus available for the service."
},
"nextLink": {
"type": "string",
"description": "The uri to fetch the next page of API Management service Skus."
}
},
"required": [
"value"
],
"description": "The API Management service SKUs operation response."
},
"ResourceSkuResult": {
"properties": {
"resourceType": {
"readOnly": true,
"type": "string",
"description": "The type of resource the SKU applies to."
},
"sku": {
"$ref": "#/definitions/ResourceSku",
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"readOnly": true,
"description": "Specifies API Management SKU."
},
"capacity": {
"$ref": "#/definitions/ResourceSkuCapacity",
"readOnly": true,
"description": "Specifies the number of API Management units."
}
},
"description": "Describes an available API Management service SKU."
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
},
"ResourceSkuCapacity": {
"properties": {
"minimum": {
"type": "integer",
"readOnly": true,
"format": "int64",
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"description": "The minimum capacity."
},
"maximum": {
"type": "integer",
"readOnly": true,
"format": "int64",
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"description": "The maximum capacity that can be set."
},
"default": {
"type": "integer",
"readOnly": true,
"format": "int64",
"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": "ResourceSkuCapacityScaleType",
"modelAsString": false
}
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
}
},
"description": "Describes scaling information of a SKU."
},
"ResourceSku": {
"properties": {
"name": {
"type": "string",
"description": "Name of the Sku.",
"externalDocs": {
"url": "https://azure.microsoft.com/en-us/pricing/details/api-management/"
},
"enum": [
"Developer",
"Standard",
"Premium",
"Basic",
"Consumption"
],
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"x-ms-enum": {
"name": "SkuType",
"modelAsString": true,
"values": [
{
"value": "Developer",
"description": "Developer SKU of Api Management."
},
{
"value": "Standard",
"description": "Standard SKU of Api Management."
},
{
"value": "Premium",
"description": "Premium SKU of Api Management."
},
{
"value": "Basic",
"description": "Basic SKU of Api Management."
},
{
"value": "Consumption",
"description": "Consumption SKU of Api Management."
}
]
}
}
},
"description": "Describes an available API Management SKU."
},
"CertificateInformation": {
"properties": {
"expiry": {
Expand Down Expand Up @@ -1022,7 +1183,8 @@
"Developer",
"Standard",
"Premium",
"Basic"
"Basic",
"Consumption"
],
"x-ms-enum": {
"name": "SkuType",
Expand All @@ -1043,6 +1205,10 @@
{
"value": "Basic",
"description": "Basic SKU of Api Management."
},
{
"value": "Consumption",
"description": "Consumption SKU of Api Management."
}
]
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"parameters": {
"api-version": "2018-06-01-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"resourceType": "Microsoft.ApiManagement/service",
"sku": {
"name": "Developer"
},
"capacity": {
"minimum": 1,
"maximum": 1,
"default": 1,
"scaleType": "none"
}
},
{
"resourceType": "Microsoft.ApiManagement/service",
"sku": {
"name": "Basic"
},
"capacity": {
"minimum": 1,
"maximum": 2,
"default": 1,
"scaleType": "manual"
}
},
{
"resourceType": "Microsoft.ApiManagement/service",
"sku": {
"name": "Standard"
},
"capacity": {
"minimum": 1,
"maximum": 4,
"default": 1,
"scaleType": "automatic"
}
},
{
"resourceType": "Microsoft.ApiManagement/service",
"sku": {
"name": "Premium"
},
KedarJoshi marked this conversation as resolved.
Show resolved Hide resolved
"capacity": {
"minimum": 1,
"maximum": 10,
"default": 1,
"scaleType": "automatic"
}
}
],
"nextLink": null
}
}
}
}
Loading