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

[Hub Generated] Review request for Microsoft.Subscription to add version preview/2018-11-01-preview #7352

Merged
merged 5 commits into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from 4 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,24 @@
{
"parameters": {
"billingAccountName": "cd3ae1d5-9cb9-5950-9ffc-bc522547dbad:34756dd9-25b9-40c6-bc85-c25f68bff94f_2018-09-30",
sriramvu marked this conversation as resolved.
Show resolved Hide resolved
"customerName": "0ec9a816-e305-4571-8963-32db796dc43d",
"api-version": "2018-11-01-preview",
"body": {
"displayName": "Contoso MCA subscription",
"skuId": "0001"
}
},
"responses": {
"202": {
"headers": {
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/aeb76128-ebde-4f5a-a9ed-e7bbf2dbc994?api-version=2018-11-01-preview",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/d0d6ee57-6530-4fca-93a6-b755a070be35"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"parameters": {
"billingAccountName": "12a6eed9-5d39-4103-a5db-2db1db0a8c67",
"billingProfileName": "27VR-HDWX-BG7-TGB",
sriramvu marked this conversation as resolved.
Show resolved Hide resolved
"invoiceSectionName": "b859d705-1ed7-4769-9d4b-19238e9e8ac2_10_31",
"api-version": "2018-11-01-preview",
"body": {
"displayName": "Contoso MCA subscription",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/12a6eed9-5d39-4103-a5db-2db1db0a8c67/billingProfiles/dbcb81c8-cda9-4b01-b9fc-831e6a2e152e",
"skuId": "0001",
"costCenter": "135366376",
"owner": {
"objectId": "973034ff-acb7-409c-b731-e789672c7b31"
}
}
},
"responses": {
"202": {
"headers": {
"Location": "/providers/Microsoft.Subscription/subscriptionOperations/aeb76128-ebde-4f5a-a9ed-e7bbf2dbc994?api-version=2018-11-01-preview",
"Retry-After": 8
}
},
"200": {
"body": {
"subscriptionLink": "/subscriptions/d0d6ee57-6530-4fca-93a6-b755a070be35"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Subscription/createSubscription": {
"post": {
"description": "The operation to create a new Azure subscription",
"operationId": "SubscriptionFactory_CreateSubscription",
"description": "The operation to create a new WebDirect or EA Azure subscription.",
"operationId": "Subscriptions_CreateSubscription",
"x-ms-examples": {
"createSubscription": {
"$ref": "./examples/createSubscription.json"
Expand Down Expand Up @@ -126,6 +126,147 @@
}
]
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}/invoiceSections/{invoiceSectionName}/providers/Microsoft.Subscription/createSubscription": {
"post": {
"description": "The operation to create a new WebDirect or EA Azure subscription (under billingProfiles).",
"operationId": "Subscriptions_CreateSubscriptionUnderBillingProfile",
"x-ms-examples": {
"createSubscription": {
"$ref": "./examples/createSubscriptionUnderBillingProfile.json"
}
},
"x-ms-long-running-operation": true,
"responses": {
"200": {
"description": "Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.",
"schema": {
"$ref": "#/definitions/SubscriptionCreationResult"
}
},
"202": {
"description": "Accepted. Subscription creation is in progress.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "integer"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"parameters": [
{
"name": "billingAccountName",
"in": "path",
"description": "The name of the Microsoft Customer Agreement billing account for which you want to create the subscription.",
"required": true,
"type": "string"
},
{
"name": "billingProfileName",
"in": "path",
"description": "The name of the billing profile in the billing account for which you want to create the subscription.",
"required": true,
"type": "string"
},
{
"name": "invoiceSectionName",
"in": "path",
"description": "The name of the invoice section in the billing account for which you want to create the subscription.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"name": "body",
"in": "body",
"description": "The subscription creation parameters.",
"required": true,
"schema": {
"$ref": "#/definitions/ModernSubscriptionCreationParameters"
sriramvu marked this conversation as resolved.
Show resolved Hide resolved
}
}
]
}
},
"/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/{customerName}/providers/Microsoft.Subscription/createSubscription": {
"post": {
"description": "The operation to create a new CSP subscription.",
"operationId": "Subscriptions_CreateCspSubscription",
"x-ms-examples": {
"createSubscription": {
"$ref": "./examples/createCspSubscription.json"
}
},
"x-ms-long-running-operation": true,
"responses": {
"200": {
"description": "Normal response for a successful query. The response body will contain the data that matches the filters specified in the query parameters.",
"schema": {
"$ref": "#/definitions/SubscriptionCreationResult"
}
},
"202": {
"description": "Accepted. Subscription creation is in progress.",
"headers": {
"Location": {
"description": "GET this URL to retrieve the status of the asynchronous operation.",
"type": "string"
},
"Retry-After": {
"description": "The amount of delay to use while the status of the operation is checked. The value is expressed in seconds.",
"type": "integer"
}
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/ErrorResponse"
}
}
},
"parameters": [
{
"name": "billingAccountName",
"in": "path",
"description": "The name of the Microsoft Customer Agreement billing account for which you want to create the subscription.",
"required": true,
"type": "string"
},
{
"name": "customerName",
"in": "path",
"description": "The name of the customer.",
"required": true,
"type": "string"
},
{
"$ref": "#/parameters/apiVersionParameter"
},
{
"name": "body",
"in": "body",
"description": "The subscription creation parameters.",
"required": true,
"schema": {
"$ref": "#/definitions/ModernCspSubscriptionCreationParameters"
}
}
]
}
}
},
"definitions": {
Expand Down Expand Up @@ -179,6 +320,31 @@
}
}
},
"ModernCspSubscriptionCreationParameters": {
"description": "The parameters required to create a new CSP subscription.",
"required": [
"displayName",
"skuId"
],
"properties": {
"displayName": {
"description": "The friendly name of the subscription.",
"type": "string"
},
"skuId": {
"description": "The SKU ID of the Azure plan. Azure plan determines the pricing and service-level agreement of the subscription. Use 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for DevTest.",
"type": "string"
},
"resellerId": {
"description": "Reseller ID, basically MPN Id.",
"type": "string"
},
"serviceProviderId": {
"description": "Service provider ID, basically MPN Id.",
"type": "string"
}
}
},
"ErrorResponse": {
"description": "Describes the format of Error response.",
"type": "object",
Expand Down