-
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.
[Hub Generated] Review request for Microsoft.InstanceMetadataService …
…to add version stable/2018-02-01 (#17316) * Adds base for updating Microsoft.InstanceMetadataService from version stable/2018-04-02 to version 2018-02-01 * Updates readme * Updates API version in new specs and examples * Back-adding version 2018-02-01 Co-authored-by: jmccarthy <[email protected]>
- Loading branch information
Showing
5 changed files
with
802 additions
and
1 deletion.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
...a-plane/Microsoft.InstanceMetadataService/stable/2018-02-01/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-02-01", | ||
"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-02-01/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-02-01", | ||
"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" | ||
} | ||
} | ||
} | ||
} |
66 changes: 66 additions & 0 deletions
66
...ane/Microsoft.InstanceMetadataService/stable/2018-02-01/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,66 @@ | ||
{ | ||
"parameters": { | ||
"api-version": "2018-02-01", | ||
"Metadata": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"compute": { | ||
"location": "eastus", | ||
"name": "examplevmname", | ||
"offer": "Windows", | ||
"osType": "linux", | ||
"placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a", | ||
"platformFaultDomain": "36", | ||
"platformUpdateDomain": "42", | ||
"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.