Skip to content

Commit

Permalink
Add version 2018-04-02 into IMDS Swagger (#16937)
Browse files Browse the repository at this point in the history
* 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
joshdmcc and jmccarthy authored Dec 9, 2021
1 parent 85d1147 commit c454e10
Show file tree
Hide file tree
Showing 5 changed files with 864 additions and 2 deletions.
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"
}
}
}
}
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"
}
}
}
}
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"
}
}
}
}
Loading

0 comments on commit c454e10

Please sign in to comment.