Skip to content

Commit 0435d4b

Browse files
authored
Merge pull request #875 from yaotongms/main
[connectedmachine] update get extension image command
2 parents f0a14e4 + 5a7c43d commit 0435d4b

6 files changed

Lines changed: 227 additions & 0 deletions

File tree

Commands/connectedmachine/extension/image/_list.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ List all Extension versions based on location, publisher, extensionType.
4747
```bash
4848
connectedmachine extension image list --publisher microsoft.azure.monitor --extension-type azuremonitorlinuxagent --location eastus
4949
```
50+
51+
### [2024-11-10-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuaHlicmlkY29tcHV0ZS9sb2NhdGlvbnMve30vcHVibGlzaGVycy97fS9leHRlbnNpb250eXBlcy97fS92ZXJzaW9ucw==/2024-11-10-preview.xml) **Stable**
52+
53+
<!-- mgmt-plane /providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions 2024-11-10-preview -->
54+
55+
#### examples
56+
57+
- GET a list of extension metadata
58+
```bash
59+
connectedmachine extension image list --location EastUS --publisher microsoft.azure.monitor --extension-type azuremonitorlinuxagent
60+
```

Commands/connectedmachine/extension/image/_show.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,14 @@ Get an Extension Metadata based on location, publisher, extensionType and versio
4747
```bash
4848
connectedmachine extension image show --publisher microsoft.azure.monitor --extension-type azuremonitorlinuxagent --location eastus --version 1.9.1
4949
```
50+
51+
### [2024-11-10-preview](/Resources/mgmt-plane/L3Byb3ZpZGVycy9taWNyb3NvZnQuaHlicmlkY29tcHV0ZS9sb2NhdGlvbnMve30vcHVibGlzaGVycy97fS9leHRlbnNpb250eXBlcy97fS92ZXJzaW9ucy97fQ==/2024-11-10-preview.xml) **Stable**
52+
53+
<!-- mgmt-plane /providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions/{} 2024-11-10-preview -->
54+
55+
#### examples
56+
57+
- GET an extension metadata
58+
```bash
59+
connectedmachine extension image show --location EastUS --publisher microsoft.azure.monitor --extension-type azuremonitorlinuxagent --version 1.33.0
60+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions", "version": "2024-11-10-preview", "swagger": "mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucw==/V/MjAyNC0xMS0xMC1wcmV2aWV3"}], "commandGroups": [{"name": "connectedmachine extension image", "commands": [{"name": "list", "version": "2024-11-10-preview", "resources": [{"id": "/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions", "version": "2024-11-10-preview", "swagger": "mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucw==/V/MjAyNC0xMS0xMC1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.extensionType", "options": ["type", "extension-type"], "required": true, "group": "", "help": {"short": "The extensionType of the Extension being received."}}, {"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true}, {"type": "string", "var": "$Path.publisher", "options": ["p", "publisher"], "required": true, "group": "", "help": {"short": "The publisher of the Extension being received."}}]}], "operations": [{"operationId": "ExtensionMetadataV2_List", "http": {"path": "/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "extensionType", "arg": "$Path.extensionType", "required": true}, {"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "publisher", "arg": "$Path.publisher", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-10-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "nextLink"}, {"readOnly": true, "type": "array<object>", "name": "value", "item": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.HybridCompute/locations/{}/publishers/{}/extensionTypes/{}/versions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "array<string>", "name": "architecture", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "extensionSignatureUri"}, {"readOnly": true, "type": "string", "name": "extensionType"}, {"readOnly": true, "type": "array<string>", "name": "extensionUris", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "operatingSystem"}, {"readOnly": true, "type": "string", "name": "publisher"}, {"readOnly": true, "type": "string", "name": "version"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance.value", "clientFlatten": true, "nextLink": "$Instance.nextLink"}], "confirmation": ""}]}]}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version='1.0' encoding='utf-8'?>
2+
<CodeGen plane="mgmt-plane">
3+
<resource id="/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions" version="2024-11-10-preview" swagger="mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucw==/V/MjAyNC0xMS0xMC1wcmV2aWV3"/>
4+
<commandGroup name="connectedmachine extension image">
5+
<command name="list" version="2024-11-10-preview" confirmation="">
6+
<resource id="/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions" version="2024-11-10-preview" swagger="mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucw==/V/MjAyNC0xMS0xMC1wcmV2aWV3"/>
7+
<argGroup name="">
8+
<arg type="string" var="$Path.extensionType" options="extension-type type" required="True" group="">
9+
<help short="The extensionType of the Extension being received."/>
10+
</arg>
11+
<arg type="ResourceLocation" var="$Path.location" options="location l" required="True"/>
12+
<arg type="string" var="$Path.publisher" options="publisher p" required="True" group="">
13+
<help short="The publisher of the Extension being received."/>
14+
</arg>
15+
</argGroup>
16+
<operation operationId="ExtensionMetadataV2_List">
17+
<http path="/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions">
18+
<request method="get">
19+
<path>
20+
<param type="string" name="extensionType" arg="$Path.extensionType" required="True"/>
21+
<param type="string" name="location" arg="$Path.location" required="True">
22+
<format minLength="1"/>
23+
</param>
24+
<param type="string" name="publisher" arg="$Path.publisher" required="True"/>
25+
</path>
26+
<query>
27+
<const readOnly="True" const="True" type="string" name="api-version" required="True">
28+
<default value="&quot;2024-11-10-preview&quot;"/>
29+
<format minLength="1"/>
30+
</const>
31+
</query>
32+
</request>
33+
<response statusCode="200">
34+
<body>
35+
<json var="$Instance">
36+
<schema type="object">
37+
<prop type="string" name="nextLink"/>
38+
<prop readOnly="True" type="array<object>" name="value">
39+
<item type="object">
40+
<prop readOnly="True" type="ResourceId" name="id">
41+
<format template="/providers/Microsoft.HybridCompute/locations/{}/publishers/{}/extensionTypes/{}/versions/{}"/>
42+
</prop>
43+
<prop readOnly="True" type="string" name="name"/>
44+
<prop type="object" name="properties" clientFlatten="True">
45+
<prop readOnly="True" type="array<string>" name="architecture">
46+
<item type="string"/>
47+
</prop>
48+
<prop readOnly="True" type="string" name="extensionSignatureUri"/>
49+
<prop readOnly="True" type="string" name="extensionType"/>
50+
<prop readOnly="True" type="array<string>" name="extensionUris">
51+
<item type="string"/>
52+
</prop>
53+
<prop readOnly="True" type="string" name="operatingSystem"/>
54+
<prop readOnly="True" type="string" name="publisher"/>
55+
<prop readOnly="True" type="string" name="version"/>
56+
</prop>
57+
<prop readOnly="True" type="object" name="systemData">
58+
<prop type="dateTime" name="createdAt">
59+
<format protocol="iso"/>
60+
</prop>
61+
<prop type="string" name="createdBy"/>
62+
<prop type="string" name="createdByType">
63+
<enum>
64+
<item value="&quot;Application&quot;"/>
65+
<item value="&quot;Key&quot;"/>
66+
<item value="&quot;ManagedIdentity&quot;"/>
67+
<item value="&quot;User&quot;"/>
68+
</enum>
69+
</prop>
70+
<prop type="dateTime" name="lastModifiedAt">
71+
<format protocol="iso"/>
72+
</prop>
73+
<prop type="string" name="lastModifiedBy"/>
74+
<prop type="string" name="lastModifiedByType">
75+
<enum>
76+
<item value="&quot;Application&quot;"/>
77+
<item value="&quot;Key&quot;"/>
78+
<item value="&quot;ManagedIdentity&quot;"/>
79+
<item value="&quot;User&quot;"/>
80+
</enum>
81+
</prop>
82+
</prop>
83+
<prop readOnly="True" type="string" name="type"/>
84+
</item>
85+
</prop>
86+
</schema>
87+
</json>
88+
</body>
89+
</response>
90+
<response isError="True">
91+
<body>
92+
<json>
93+
<schema type="@MgmtErrorFormat"/>
94+
</json>
95+
</body>
96+
</response>
97+
</http>
98+
</operation>
99+
<output type="array" ref="$Instance.value" clientFlatten="True" nextLink="$Instance.nextLink"/>
100+
</command>
101+
</commandGroup>
102+
</CodeGen>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"plane": "mgmt-plane", "resources": [{"id": "/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions/{}", "version": "2024-11-10-preview", "swagger": "mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucy97dmVyc2lvbn0=/V/MjAyNC0xMS0xMC1wcmV2aWV3"}], "commandGroups": [{"name": "connectedmachine extension image", "commands": [{"name": "show", "version": "2024-11-10-preview", "resources": [{"id": "/providers/microsoft.hybridcompute/locations/{}/publishers/{}/extensiontypes/{}/versions/{}", "version": "2024-11-10-preview", "swagger": "mgmt-plane/hybridcompute/ResourceProviders/Microsoft.HybridCompute/Paths/L3Byb3ZpZGVycy9NaWNyb3NvZnQuSHlicmlkQ29tcHV0ZS9sb2NhdGlvbnMve2xvY2F0aW9ufS9wdWJsaXNoZXJzL3twdWJsaXNoZXJ9L2V4dGVuc2lvblR5cGVzL3tleHRlbnNpb25UeXBlfS92ZXJzaW9ucy97dmVyc2lvbn0=/V/MjAyNC0xMS0xMC1wcmV2aWV3"}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.extensionType", "options": ["type", "extension-type"], "required": true, "group": "", "help": {"short": "The extensionType of the Extension being received."}}, {"type": "ResourceLocation", "var": "$Path.location", "options": ["l", "location"], "required": true}, {"type": "string", "var": "$Path.publisher", "options": ["p", "publisher"], "required": true, "group": "", "help": {"short": "The publisher of the Extension being received."}}, {"type": "string", "var": "$Path.version", "options": ["n", "name", "version"], "required": true, "group": "", "help": {"short": "The version of the Extension being received."}}]}], "operations": [{"operationId": "ExtensionMetadataV2_Get", "http": {"path": "/providers/Microsoft.HybridCompute/locations/{location}/publishers/{publisher}/extensionTypes/{extensionType}/versions/{version}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "extensionType", "arg": "$Path.extensionType", "required": true}, {"type": "string", "name": "location", "arg": "$Path.location", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "publisher", "arg": "$Path.publisher", "required": true}, {"type": "string", "name": "version", "arg": "$Path.version", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2024-11-10-preview"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"readOnly": true, "type": "ResourceId", "name": "id", "format": {"template": "/providers/Microsoft.HybridCompute/locations/{}/publishers/{}/extensionTypes/{}/versions/{}"}}, {"readOnly": true, "type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"readOnly": true, "type": "array<string>", "name": "architecture", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "extensionSignatureUri"}, {"readOnly": true, "type": "string", "name": "extensionType"}, {"readOnly": true, "type": "array<string>", "name": "extensionUris", "item": {"type": "string"}}, {"readOnly": true, "type": "string", "name": "operatingSystem"}, {"readOnly": true, "type": "string", "name": "publisher"}, {"readOnly": true, "type": "string", "name": "version"}], "clientFlatten": true}, {"readOnly": true, "type": "object", "name": "systemData", "props": [{"type": "dateTime", "name": "createdAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "createdBy"}, {"type": "string", "name": "createdByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}, {"type": "dateTime", "name": "lastModifiedAt", "format": {"protocol": "iso"}}, {"type": "string", "name": "lastModifiedBy"}, {"type": "string", "name": "lastModifiedByType", "enum": {"items": [{"value": "Application"}, {"value": "Key"}, {"value": "ManagedIdentity"}, {"value": "User"}]}}]}, {"readOnly": true, "type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}

0 commit comments

Comments
 (0)