Skip to content

Commit e92ad5e

Browse files
xxxxiehfHaofeng Xie
authored andcommitted
[Hub Generated] Review request for Microsoft.InstanceMetadataService to add version stable/2023-07-01 (#26538)
* Adds base for updating Microsoft.InstanceMetadataService from version stable/2021-12-13 to version 2023-07-01 * Updates readme * Updates API version in new specs and examples * Update new fields and add `GetVersions.json`. * Fix version, add new path, fix `GetVersions.json`. * Temp fix. * Prettier format fix. * Minor fix. * Fix wrong schema for `/versions` endpoint. --------- Co-authored-by: Haofeng Xie <haofengxie@microsoft.com>
1 parent 282d13f commit e92ad5e

File tree

7 files changed

+1405
-2
lines changed

7 files changed

+1405
-2
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"nonce": "abcde12345",
5+
"Metadata": "true"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"encoding": "pkcs7",
11+
"signature": "MIID2gYJKoZIhvcNAQcCoIIDyzCCA8cCAQExDzANBgkqhkiG9w0BAQsFADCBggYJKoZIhvcNAQcBoHUEc3sibm9uY2UiOiIxMTExMTExMTExIiwicGxhbiI6eyJuYW1lIjoiIiwicHJvZHVjdCI6IiIsInB1Ymxpc2hlciI6IiJ9LCJ2bUlkIjoiMDJhYWI4YTQtNzRlZi00NzZlLTgxODItZjZkMmJhNDE2NmE2In2gggI/MIICOzCCAaSgAwIBAgIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQQFADArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbTAeFw0xODExMDgxODUzMDRaFw0xODEyMDgxODUzMDNaMCsxKTAnBgNVBAMTIHRlc3RzdWJkb21haW4ubWV0YWRhdGEuYXp1cmUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDEi0FVslYnUX+MneC7ERMU4ZM88z4J80r7RPgvzxCPNhXUQlWm3cmVRZMD8kKMv7brkvEsATP7Ak60/I/XEtOga4LGCvMaQa8I/MW8IhSyp2Vj015glAiV8TeUI5DuOIOS96lQvM+G7bt23swkIwVjm1u1ViTZiKKytwpY/EGqzQIDAQABo2AwXjBcBgNVHQEEVTBTgBAt3MRgJmEoUMiPy7k06cLfoS0wKzEpMCcGA1UEAxMgdGVzdHN1YmRvbWFpbi5tZXRhZGF0YS5henVyZS5jb22CEEFrBY1zd+aASShVyN0KzN0wDQYJKoZIhvcNAQEEBQADgYEAd87qiZnRlGIFQ5IEcL/A7ru23WSQAOBsNPt70Fg1GtaEHcYshKUJFhGwXOgZ11cY5wRfrSvEKuzvhAeIZwkvzkBjC04g8sRrjN5leLY5CsKzQhjN52TUMsHhqTM58tfAnICeTddQwn6LOgfqtYH5WO+F/VbFCwPstYUqjmQEYAoxgegwgeUCAQEwPzArMSkwJwYDVQQDEyB0ZXN0c3ViZG9tYWluLm1ldGFkYXRhLmF6dXJlLmNvbQIQQWsFjXN35oBJKFXI3QrM3TANBgkqhkiG9w0BAQsFADANBgkqhkiG9w0BAQEFAASBgCbkRKmQ1MdWZPVOrX7ZBKHQUWPFrQQNdjk3KB67GkY0W0Taxut4K7D2PmiflVEwxB92pTbaZZr/dldu1k1ab1YamHcVYdgZgxIkoOWohGR0ym8oL9JHjFMEqHUbEPtDwE8X+djtDd8TVdb6LYe77IXmz/VaX4whuejlSvQXjaL"
12+
}
13+
}
14+
}
15+
}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"Metadata": "true"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"tenantId": "abd8daee-d393-4239-9377-883adda3d40f"
10+
}
11+
}
12+
}
13+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"Metadata": "true",
5+
"resource": "https://vault.azure.net"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"access_token": "dummytoken",
11+
"client_id": "be5947ed-3560-4afe-9504-59967a63f810",
12+
"expires_in": "3599",
13+
"expires_on": "1541705014",
14+
"ext_expires_in": "262800",
15+
"not_before": "1508961830",
16+
"resource": "https://va"
17+
}
18+
}
19+
}
20+
}
Lines changed: 165 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,165 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"Metadata": "true"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"compute": {
10+
"azEnvironment": "AZUREPUBLICCLOUD",
11+
"evictionPolicy": "deallocate",
12+
"extendedLocation": {
13+
"type": "edgeZone",
14+
"name": "microsoftlosangeles"
15+
},
16+
"isHostCompatibilityLayerVm": "true",
17+
"licenseType": "Windows_Server",
18+
"location": "westus",
19+
"name": "examplevmname",
20+
"offer": "Windows",
21+
"osProfile": {
22+
"adminUsername": "admin",
23+
"computerName": "examplevmname",
24+
"disablePasswordAuthentication": "true"
25+
},
26+
"osType": "linux",
27+
"placementGroupId": "f67c14ab-e92c-408c-ae2d-da15866ec79a",
28+
"plan": {
29+
"name": "planName",
30+
"product": "planProduct",
31+
"publisher": "planPublisher"
32+
},
33+
"platformFaultDomain": "36",
34+
"platformSubFaultDomain": "15",
35+
"platformUpdateDomain": "42",
36+
"priority": "Spot",
37+
"provider": "Microsoft.Compute",
38+
"publicKeys": [
39+
{
40+
"keyData": "ssh-rsa 0",
41+
"path": "/home/user/.ssh/authorized_keys0"
42+
},
43+
{
44+
"keyData": "ssh-rsa 1",
45+
"path": "/home/user/.ssh/authorized_keys1"
46+
}
47+
],
48+
"publisher": "RDFE-Test-Microsoft-Windows-Server-Group",
49+
"resourceGroupName": "macikgo-test-may-23",
50+
"resourceId": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/virtualMachines/examplevmname",
51+
"securityProfile": {
52+
"secureBootEnabled": "true",
53+
"virtualTpmEnabled": "false",
54+
"encryptionAtHost": "true",
55+
"securityType": "TrustedLaunch"
56+
},
57+
"hostGroup": {
58+
"id": "testHostGroupId"
59+
},
60+
"sku": "Windows-Server-2012-R2-Datacenter",
61+
"storageProfile": {
62+
"dataDisks": [
63+
{
64+
"bytesPerSecondThrottle": "979202048",
65+
"caching": "None",
66+
"createOption": "Empty",
67+
"diskCapacityBytes": "274877906944",
68+
"diskSizeGB": "1024",
69+
"image": {
70+
"uri": ""
71+
},
72+
"isSharedDisk": "false",
73+
"isUltraDisk": "true",
74+
"lun": "0",
75+
"managedDisk": {
76+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampledatadiskname",
77+
"storageAccountType": "Standard_LRS"
78+
},
79+
"name": "exampledatadiskname",
80+
"opsPerSecondThrottle": "65280",
81+
"vhd": {
82+
"uri": ""
83+
},
84+
"writeAcceleratorEnabled": "false"
85+
}
86+
],
87+
"imageReference": {
88+
"id": "",
89+
"offer": "UbuntuServer",
90+
"publisher": "Canonical",
91+
"sku": "16.04.0-LTS",
92+
"version": "latest",
93+
"communityGalleryImageId": "/CommunityGalleries/akstestgallery-ab568100-7a05-4b31-9f7d-3aede6df4420/Images/1804Gen2/Versions/latest",
94+
"sharedGalleryImageId": "/SharedGalleries/CblMariner.1P.Canary/Images/cbl-mariner-2-gen2/Versions/latest",
95+
"exactVersion": "1.1686127202.30113"
96+
},
97+
"osDisk": {
98+
"caching": "ReadWrite",
99+
"createOption": "FromImage",
100+
"diskSizeGB": "30",
101+
"diffDiskSettings": {
102+
"option": "Local"
103+
},
104+
"encryptionSettings": {
105+
"enabled": "true",
106+
"diskEncryptionKey": {
107+
"sourceVault": {
108+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.KeyVault/vaults/test-kv"
109+
},
110+
"secretUrl": "https://test-disk.vault.azure.net/secrets/F825A67F-42B8-4F01-8BB5-A99223A9FD05/8e820e1f85be483ab51c028aa710acfc"
111+
},
112+
"keyEncryptionKey": {
113+
"sourceVault": {
114+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.KeyVault/vaults/test-kv"
115+
},
116+
"keyUrl": "https://test-key.vault.azure.net/secrets/F825A67F-42B8-4F01-8BB5-A99223A9FD05/8e820e1f85be483ab51c028aa710acfc"
117+
}
118+
},
119+
"image": {
120+
"uri": ""
121+
},
122+
"managedDisk": {
123+
"id": "/subscriptions/8d10da13-8125-4ba9-a717-bf7490507b3d/resourceGroups/macikgo-test-may-23/providers/Microsoft.Compute/disks/exampleosdiskname",
124+
"storageAccountType": "Standard_LRS"
125+
},
126+
"name": "exampleosdiskname",
127+
"osType": "Linux",
128+
"vhd": {
129+
"uri": ""
130+
},
131+
"writeAcceleratorEnabled": "false"
132+
},
133+
"resourceDisk": {
134+
"size": "4096"
135+
}
136+
},
137+
"subscriptionId": "8d10da13-8125-4ba9-a717-bf7490507b3d",
138+
"tags": "baz:bash;foo:bar",
139+
"tagsList": [
140+
{
141+
"name": "baz",
142+
"value": "bash"
143+
},
144+
{
145+
"name": "foo",
146+
"value": "bar"
147+
}
148+
],
149+
"userData": "Zm9vYmFy",
150+
"version": "15.05.22",
151+
"virtualMachineScaleSet": {
152+
"id": "/subscriptions/xxxxxxxx-xxxxx-xxx-xxx-xxxx/resourceGroups/resource-group-name/providers/Microsoft.Compute/virtualMachineScaleSets/virtual-machine-scale-set-name"
153+
},
154+
"vmId": "02aab8a4-74ef-476e-8182-f6d2ba4166a6",
155+
"vmScaleSetName": "crpteste9vflji9",
156+
"vmSize": "Standard_A3",
157+
"zone": "",
158+
"additionalCapabilities": {
159+
"hibernationEnabled": "true"
160+
}
161+
}
162+
}
163+
}
164+
}
165+
}
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-07-01",
4+
"Metadata": "true"
5+
},
6+
"responses": {
7+
"200": {
8+
"body": {
9+
"apiVersions": [
10+
"2017-03-01",
11+
"2017-04-02",
12+
"2017-08-01",
13+
"2017-10-01",
14+
"2017-12-01",
15+
"2018-02-01",
16+
"2018-04-02",
17+
"2018-10-01",
18+
"2019-02-01",
19+
"2019-03-11",
20+
"2019-04-30",
21+
"2019-06-01",
22+
"2019-06-04",
23+
"2019-08-01",
24+
"2019-08-15",
25+
"2019-11-01",
26+
"2020-06-01",
27+
"2020-07-15",
28+
"2020-09-01",
29+
"2020-10-01",
30+
"2020-12-01",
31+
"2021-01-01",
32+
"2021-02-01",
33+
"2021-03-01",
34+
"2021-05-01",
35+
"2021-08-01",
36+
"2021-10-01",
37+
"2021-11-01",
38+
"2021-11-15",
39+
"2021-12-13",
40+
"2023-07-01"
41+
]
42+
}
43+
}
44+
}
45+
}

0 commit comments

Comments
 (0)