Skip to content
Merged
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"swagger": "2.0",
Comment thread
navysingla marked this conversation as resolved.
Outdated
"info": {
"version": "2018-11-01-preview",
"title": "BillingManagementClient",
"description": "Billing client provides access to billing resources for Azure subscriptions."
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"paths": {
"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/cancel": {
Comment thread
navysingla marked this conversation as resolved.
Outdated
"post": {
"operationId": "CancelSubscription",
"description": "Cancels the subscription",
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"description": "Subscription Id.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"tags": [
"SubscriptionController"
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/CancelSubscriptionResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
},
"/providers/Microsoft.Subscription/subscriptions/{subscriptionId}/rename": {
Comment thread
navysingla marked this conversation as resolved.
Outdated
"post": {
"operationId": "RenameSubscription",
"description": "Renames the subscription",
"parameters": [
{
"name": "subscriptionId",
"in": "path",
"description": "Subscription Id.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
}
],
"tags": [
"SubscriptionController"
],
"responses": {
"200": {
"description": "OK. The request has succeeded.",
"schema": {
"$ref": "#/definitions/RenameSubscriptionResult"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
}
}
}
},
"definitions": {
"CancelSubscriptionResult": {
"description": "Canceled Subscription Id",
"properties": {
"value": {
Comment thread
navysingla marked this conversation as resolved.
Outdated
"description": "Canceled Subscription Id",
"type": "string",
"readOnly": true
}
}
},
"RenameSubscriptionResult": {
"description": "Renamed Subscription Id",
"properties": {
"value": {
Comment thread
navysingla marked this conversation as resolved.
Outdated
"description": "Renamed Subscription Id",
"type": "string",
"readOnly": true
}
}
},
"ErrorDetails": {
"description": "The details of the error.",
"properties": {
"code": {
"description": "Error code.",
"type": "string",
"readOnly": true
},
"message": {
"description": "Error message indicating why the operation failed.",
"type": "string",
"readOnly": true
},
"target": {
"description": "The target of the particular error.",
"type": "string",
"readOnly": true
}
}
},
"ErrorResponse": {
"description": "Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"error": {
"$ref": "#/definitions/ErrorDetails"
}
}
}
},
"parameters": {
"apiVersionParameter": {
"name": "api-version",
"in": "query",
"required": true,
"type": "string",
"description": "Version of the API to be used with the client request. The current version is 2018-11-01-preview."
},
"subscriptionIdParameter": {
"name": "subscriptionId",
"in": "path",
"description": "Azure Subscription ID.",
"required": true,
"type": "string"
}
}
}