-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Update subscription creation ARM API in Microsoft.Subscription RP #2535
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
Merged
Merged
Changes from 11 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3919ecd
Initial version of Subscription Creation API Swagger
amagams 19a919b
Making Offer Type as enum
amagams d799d74
Removing the API to monitor an operation since the client automatical…
amagams 5d44b15
Rename folder to match with the swagger version
amagams 931a5a3
Improving the descriptions of models
amagams a4c75bf
Editing readme.md file
amagams ae55fa6
Correcting the createSubscription.json example file
amagams 7feabda
variable name fix in example json
amagams f64198c
correcting the Tenant id
amagams 85443e0
Correcting the exmaple file name in Swagger
amagams cef2be0
Rename BillingAccount->EnrollmentAccount
amagams 882c078
renaming Billing to Enrollment
amagams 2a4555b
fix createSubscription.json example file
amagams 549bb10
Adding the tag package-all-subscription
amagams d3a8186
Merging subscriptions.json swagger from Microsoft.Resources in Micros…
amagams 95fc8cf
Renaming subscription.json to subscriptions.json to be consistent wit…
amagams 782fa82
file rename in readme.md
amagams bc4c145
Rename the client from SubscriptionManagementClient to SubscriptionCl…
amagams 8c9aef6
making object id a string instead of guid, and removing tenant id
amagams 5d31f58
Updating examples
amagams 05e0359
removed extra property from required in model
amagams 9a5ddb0
Getting the new stable subscriptions.json
amagams File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
35 changes: 35 additions & 0 deletions
35
...anager/Microsoft.Subscription/preview/2018-03-01-preview/examples/createSubscription.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| { | ||
| "parameters": { | ||
| "billingAccountName": "73f8ab6e-cfa0-42be-b886-be6e77c2980c", | ||
| "api-version": "2018-03-01-preview", | ||
| "body": { | ||
| "properties": { | ||
| "offerType": "MS-AZR-0017P", | ||
| "displayName": "Test Ea Azure Sub", | ||
| "owners": [ | ||
| { | ||
| "tenantId": "05053bdf-7e6a-4f96-854f-1dae531c170b", | ||
| "objectId": "973034ff-acb7-409c-b731-e789672c7b31" | ||
| }, | ||
| { | ||
| "tenantId": "05053bdf-7e6a-4f96-854f-1dae531c170b", | ||
| "objectId": "67439a9e-8519-4016-a630-f5f805eba567" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "responses": { | ||
| "202": { | ||
| "headers": { | ||
| "Location": "/providers/Microsoft.Subscription/subscriptionOperations/aeb76128-ebde-4f5a-a9ed-e7bbf2dbc994?api-version=2018-03-01-preview", | ||
| "Retry-After": "60" | ||
| } | ||
| }, | ||
| "200": { | ||
| "body": { | ||
| "subscriptionLink": "/subscriptions/c03acf6e-5295-44c2-92d3-cb1daa4c701c" | ||
| } | ||
| } | ||
| } | ||
| } | ||
22 changes: 22 additions & 0 deletions
22
...rce-manager/Microsoft.Subscription/preview/2018-03-01-preview/examples/getOperations.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-03-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "name": "Microsoft.Subscription/createOperation/action", | ||
| "display": { | ||
| "provider": "Microsoft Subscription", | ||
| "resource": "Resources", | ||
| "operation": "Create a subscription", | ||
| "description": "Create an Azure subscription." | ||
| } | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
28 changes: 28 additions & 0 deletions
28
...Microsoft.Subscription/preview/2018-03-01-preview/examples/getSubscriptionOperations.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| { | ||
| "parameters": { | ||
| "api-version": "2018-03-01-preview" | ||
| }, | ||
| "responses": { | ||
| "200": { | ||
| "body": { | ||
| "value": [ | ||
| { | ||
| "id": "/providers/Microsoft.Subscription/subscriptionOperations/c03acf6e-5295-44c2-92d3-cb1daa4c701c", | ||
| "status": "Pending", | ||
| "statusDetail": "Subscription Creation in Progress" | ||
| }, | ||
| { | ||
| "id": "/providers/Microsoft.Subscription/subscriptionOperations/d46dcd37-f8b3-43a4-aed6-41de9131412d", | ||
| "status": "Pending", | ||
| "statusDetail": "Subscription Creation in Progress" | ||
| }, | ||
| { | ||
| "id": "/providers/Microsoft.Subscription/subscriptionOperations/54e3cde0-2420-451c-969d-f538d5349834", | ||
| "status": "Completed", | ||
| "statusDetail": "Subscription Created Successfully" | ||
| } | ||
| ] | ||
| } | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enrollmentAccountName