-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add version 2018-04-02 into IMDS Swagger (#16937)
* Adding swagger for version 2020-12-01 * Reverting new version * Adds base for updating Microsoft.InstanceMetadataService from version stable/2018-10-01 to version 2018-04-02 * Updates readme * Updates API version in new specs and examples * Swagger for 2018-04-02 * Updating readme * Adding new versions to readme * ??? * Small json change to rebuild Co-authored-by: jmccarthy <[email protected]>
- Loading branch information
Showing
5 changed files
with
864 additions
and
2 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...a-plane/Microsoft.InstanceMetadataService/stable/2018-04-02/examples/getIdentityInfo.json
This file contains 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,43 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-04-02", | ||
"Metadata": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"tenantId": "abd8daee-d393-4239-9377-883adda3d40f" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": "invalid_request", | ||
"error_description": "Bad request" | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": "not_found", | ||
"error_description": "Not found" | ||
} | ||
}, | ||
"405": { | ||
"body": { | ||
"error": "method_not_allowed", | ||
"error_description": "Not allowed" | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": "too_many_requests", | ||
"error_description": "Too many requests" | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": "server_error", | ||
"error_description": "Server error" | ||
} | ||
} | ||
} | ||
} |
50 changes: 50 additions & 0 deletions
50
...-plane/Microsoft.InstanceMetadataService/stable/2018-04-02/examples/getIdentityToken.json
This file contains 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,50 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-04-02", | ||
"Metadata": "true", | ||
"resource": "https://vault.azure.net" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"access_token": "dummytoken", | ||
"client_id": "be5947ed-3560-4afe-9504-59967a63f810", | ||
"expires_in": "3599", | ||
"expires_on": "1541705014", | ||
"ext_expires_in": "262800", | ||
"not_before": "1508961830", | ||
"resource": "https://va" | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": "invalid_request", | ||
"error_description": "Bad request" | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": "not_found", | ||
"error_description": "Not found" | ||
} | ||
}, | ||
"405": { | ||
"body": { | ||
"error": "method_not_allowed", | ||
"error_description": "Not allowed" | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": "too_many_requests", | ||
"error_description": "Too many requests" | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": "server_error", | ||
"error_description": "Server error" | ||
} | ||
} | ||
} | ||
} |
81 changes: 81 additions & 0 deletions
81
...ane/Microsoft.InstanceMetadataService/stable/2018-04-02/examples/getInstanceMetadata.json
This file contains 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,81 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-04-02", | ||
"Metadata": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"compute": { | ||
"location": "eastus", | ||
"name": "examplevmname", | ||
"offer": "Windows", | ||
"osType": "linux", | ||
"placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", | ||
"plan": { | ||
"name": "planName", | ||
"product": "planProduct", | ||
"publisher": "planPublisher" | ||
}, | ||
"platformFaultDomain": "36", | ||
"platformUpdateDomain": "42", | ||
"publicKeys": [ | ||
{ | ||
"keyData": "ssh-rsa 0", | ||
"path": "/home/user/.ssh/authorized_keys0" | ||
}, | ||
{ | ||
"keyData": "ssh-rsa 1", | ||
"path": "/home/user/.ssh/authorized_keys1" | ||
} | ||
], | ||
"publisher": "RDFE-Test-Microsoft-Windows-Server-Group", | ||
"resourceGroupName": "macikgo-test-may-23", | ||
"sku": "Windows-Server-2012-R2-Datacenter", | ||
"subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d", | ||
"tags": "baz:bash;foo:bar", | ||
"version": "15.05.22", | ||
"vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6", | ||
"vmScaleSetName": "crpteste9vflji9", | ||
"vmSize": "Standard_A3", | ||
"zone": "" | ||
} | ||
} | ||
}, | ||
"400": { | ||
"body": { | ||
"error": "Bad request" | ||
} | ||
}, | ||
"403": { | ||
"body": { | ||
"error": "Forbidden" | ||
} | ||
}, | ||
"404": { | ||
"body": { | ||
"error": "Not found" | ||
} | ||
}, | ||
"405": { | ||
"body": { | ||
"error": "Not allowed" | ||
} | ||
}, | ||
"429": { | ||
"body": { | ||
"error": "Too many requests" | ||
} | ||
}, | ||
"503": { | ||
"body": { | ||
"error": "Service unavailable" | ||
} | ||
}, | ||
"500": { | ||
"body": { | ||
"error": "Server error" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.