зеркало из https://github.com/Azure/aaz.git
add costmanagement model
This commit is contained in:
Родитель
e9d7d46a4e
Коммит
2be30684f2
Commands
Resources/mgmt-plane
L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5jb3N0bWFuYWdlbWVudC9vcGVyYXRpb25yZXN1bHRzL3t9
L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5jb3N0bWFuYWdlbWVudC9vcGVyYXRpb25zdGF0dXMve30=
|
@ -0,0 +1,9 @@
|
|||
# [Command] _costmanagement show-operation-result_
|
||||
|
||||
Get the result of the specified operation. The link with this operationId is provided as a response header of the initial request.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2023-08-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5jb3N0bWFuYWdlbWVudC9vcGVyYXRpb25yZXN1bHRzL3t9/2023-08-01.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /{scope}/providers/microsoft.costmanagement/operationresults/{} 2023-08-01 -->
|
|
@ -0,0 +1,9 @@
|
|||
# [Command] _costmanagement show-operation-status_
|
||||
|
||||
Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
|
||||
|
||||
## Versions
|
||||
|
||||
### [2023-08-01](/Resources/mgmt-plane/L3tzY29wZX0vcHJvdmlkZXJzL21pY3Jvc29mdC5jb3N0bWFuYWdlbWVudC9vcGVyYXRpb25zdGF0dXMve30=/2023-08-01.xml) **Stable**
|
||||
|
||||
<!-- mgmt-plane /{scope}/providers/microsoft.costmanagement/operationstatus/{} 2023-08-01 -->
|
|
@ -0,0 +1,11 @@
|
|||
# [Group] _costmanagement_
|
||||
|
||||
costmanagement
|
||||
|
||||
## Commands
|
||||
|
||||
- [show-operation-result](/Commands/costmanagement/_show-operation-result.md)
|
||||
: Get the result of the specified operation. The link with this operationId is provided as a response header of the initial request.
|
||||
|
||||
- [show-operation-status](/Commands/costmanagement/_show-operation-status.md)
|
||||
: Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header.
|
|
@ -56,6 +56,9 @@
|
|||
- [cosmosdb](/Commands/cosmosdb/readme.md)
|
||||
: Manage Azure Cosmos DB database accounts.
|
||||
|
||||
- [costmanagement](/Commands/costmanagement/readme.md)
|
||||
: costmanagement
|
||||
|
||||
- [databox](/Commands/databox/readme.md)
|
||||
: Manage data box
|
||||
|
||||
|
|
|
@ -12073,6 +12073,58 @@
|
|||
"cosmosdb"
|
||||
]
|
||||
},
|
||||
"costmanagement": {
|
||||
"commands": {
|
||||
"show-operation-result": {
|
||||
"help": {
|
||||
"short": "Get the result of the specified operation. The link with this operationId is provided as a response header of the initial request."
|
||||
},
|
||||
"names": [
|
||||
"costmanagement",
|
||||
"show-operation-result"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"name": "2023-08-01",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/{scope}/providers/microsoft.costmanagement/operationresults/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2023-08-01"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"show-operation-status": {
|
||||
"help": {
|
||||
"short": "Get the status of the specified operation. This link is provided in the GenerateDetailedCostReport creation request response header."
|
||||
},
|
||||
"names": [
|
||||
"costmanagement",
|
||||
"show-operation-status"
|
||||
],
|
||||
"versions": [
|
||||
{
|
||||
"name": "2023-08-01",
|
||||
"resources": [
|
||||
{
|
||||
"id": "/{scope}/providers/microsoft.costmanagement/operationstatus/{}",
|
||||
"plane": "mgmt-plane",
|
||||
"version": "2023-08-01"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"help": {
|
||||
"short": "costmanagement"
|
||||
},
|
||||
"names": [
|
||||
"costmanagement"
|
||||
]
|
||||
},
|
||||
"databox": {
|
||||
"commandGroups": {
|
||||
"job": {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/{scope}/providers/microsoft.costmanagement/operationresults/{}", "version": "2023-08-01", "swagger": "mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL3tvcGVyYXRpb25JZH0=/V/MjAyMy0wOC0wMQ=="}], "commandGroups": [{"name": "costmanagement", "commands": [{"name": "show-operation-result", "version": "2023-08-01", "resources": [{"id": "/{scope}/providers/microsoft.costmanagement/operationresults/{}", "version": "2023-08-01", "swagger": "mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL3tvcGVyYXRpb25JZH0=/V/MjAyMy0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.operationId", "options": ["operation-id"], "required": true, "help": {"short": "The target operation Id."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "help": {"short": "The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes."}}]}], "operations": [{"longRunning": {"finalStateVia": "azure-async-operation"}, "operationId": "GenerateDetailedCostReportOperationResults_Get", "http": {"path": "/{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "operationId", "arg": "$Path.operationId", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-08-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "downloadUrl"}, {"readOnly": true, "type": "dateTime", "name": "expiryTime"}, {"type": "dateTime", "name": "validTill"}], "clientFlatten": true}, {"type": "string", "name": "type"}]}}}}, {"statusCode": [202]}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,59 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/{scope}/providers/microsoft.costmanagement/operationresults/{}" version="2023-08-01" swagger="mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL3tvcGVyYXRpb25JZH0=/V/MjAyMy0wOC0wMQ=="/>
|
||||
<commandGroup name="costmanagement">
|
||||
<command name="show-operation-result" version="2023-08-01" confirmation="">
|
||||
<resource id="/{scope}/providers/microsoft.costmanagement/operationresults/{}" version="2023-08-01" swagger="mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25SZXN1bHRzL3tvcGVyYXRpb25JZH0=/V/MjAyMy0wOC0wMQ=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.operationId" options="operation-id" required="True">
|
||||
<help short="The target operation Id."/>
|
||||
</arg>
|
||||
<arg type="string" var="$Path.scope" options="scope" required="True">
|
||||
<help short="The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes."/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="GenerateDetailedCostReportOperationResults_Get">
|
||||
<longRunning finalStateVia="azure-async-operation"/>
|
||||
<http path="/{scope}/providers/Microsoft.CostManagement/operationResults/{operationId}">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="operationId" arg="$Path.operationId" required="True"/>
|
||||
<param type="string" name="scope" arg="$Path.scope" required="True" skipUrlEncoding="True"/>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2023-08-01""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="id"/>
|
||||
<prop type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="downloadUrl"/>
|
||||
<prop readOnly="True" type="dateTime" name="expiryTime"/>
|
||||
<prop type="dateTime" name="validTill"/>
|
||||
</prop>
|
||||
<prop type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response statusCode="202"/>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@ODataV4Format"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
|
@ -0,0 +1 @@
|
|||
{"plane": "mgmt-plane", "resources": [{"id": "/{scope}/providers/microsoft.costmanagement/operationstatus/{}", "version": "2023-08-01", "swagger": "mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25TdGF0dXMve29wZXJhdGlvbklkfQ==/V/MjAyMy0wOC0wMQ=="}], "commandGroups": [{"name": "costmanagement", "commands": [{"name": "show-operation-status", "version": "2023-08-01", "resources": [{"id": "/{scope}/providers/microsoft.costmanagement/operationstatus/{}", "version": "2023-08-01", "swagger": "mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25TdGF0dXMve29wZXJhdGlvbklkfQ==/V/MjAyMy0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "string", "var": "$Path.operationId", "options": ["operation-id"], "required": true, "help": {"short": "The target operation Id."}}, {"type": "string", "var": "$Path.scope", "options": ["scope"], "required": true, "help": {"short": "The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes."}}]}], "operations": [{"operationId": "GenerateDetailedCostReportOperationStatus_Get", "http": {"path": "/{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "operationId", "arg": "$Path.operationId", "required": true}, {"type": "string", "name": "scope", "arg": "$Path.scope", "required": true, "skipUrlEncoding": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2023-08-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "object", "props": [{"type": "string", "name": "endTime"}, {"type": "object", "name": "error", "props": [{"readOnly": true, "type": "string", "name": "code"}, {"readOnly": true, "type": "string", "name": "message"}], "cls": "ErrorDetails_read"}, {"type": "string", "name": "id"}, {"type": "string", "name": "name"}, {"type": "object", "name": "properties", "props": [{"type": "string", "name": "downloadUrl"}, {"readOnly": true, "type": "dateTime", "name": "expiryTime"}, {"type": "dateTime", "name": "validTill"}], "clientFlatten": true}, {"type": "string", "name": "startTime"}, {"type": "object", "name": "status", "props": [{"type": "string", "name": "status", "enum": {"items": [{"value": "Completed"}, {"value": "Failed"}, {"value": "InProgress"}, {"value": "NoDataFound"}, {"value": "Queued"}, {"value": "ReadyToDownload"}, {"value": "TimedOut"}]}}]}, {"type": "string", "name": "type"}]}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@ODataV4Format"}}}}]}}], "outputs": [{"type": "object", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
|
|
@ -0,0 +1,76 @@
|
|||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<CodeGen plane="mgmt-plane">
|
||||
<resource id="/{scope}/providers/microsoft.costmanagement/operationstatus/{}" version="2023-08-01" swagger="mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25TdGF0dXMve29wZXJhdGlvbklkfQ==/V/MjAyMy0wOC0wMQ=="/>
|
||||
<commandGroup name="costmanagement">
|
||||
<command name="show-operation-status" version="2023-08-01" confirmation="">
|
||||
<resource id="/{scope}/providers/microsoft.costmanagement/operationstatus/{}" version="2023-08-01" swagger="mgmt-plane/cost-management/ResourceProviders/Microsoft.CostManagement/Paths/L3tzY29wZX0vcHJvdmlkZXJzL01pY3Jvc29mdC5Db3N0TWFuYWdlbWVudC9vcGVyYXRpb25TdGF0dXMve29wZXJhdGlvbklkfQ==/V/MjAyMy0wOC0wMQ=="/>
|
||||
<argGroup name="">
|
||||
<arg type="string" var="$Path.operationId" options="operation-id" required="True">
|
||||
<help short="The target operation Id."/>
|
||||
</arg>
|
||||
<arg type="string" var="$Path.scope" options="scope" required="True">
|
||||
<help short="The ARM Resource ID for subscription, resource group, billing account, or other billing scopes. For details, see https://aka.ms/costmgmt/scopes."/>
|
||||
</arg>
|
||||
</argGroup>
|
||||
<operation operationId="GenerateDetailedCostReportOperationStatus_Get">
|
||||
<http path="/{scope}/providers/Microsoft.CostManagement/operationStatus/{operationId}">
|
||||
<request method="get">
|
||||
<path>
|
||||
<param type="string" name="operationId" arg="$Path.operationId" required="True"/>
|
||||
<param type="string" name="scope" arg="$Path.scope" required="True" skipUrlEncoding="True"/>
|
||||
</path>
|
||||
<query>
|
||||
<const readOnly="True" const="True" type="string" name="api-version" required="True">
|
||||
<default value=""2023-08-01""/>
|
||||
<format minLength="1"/>
|
||||
</const>
|
||||
</query>
|
||||
</request>
|
||||
<response statusCode="200">
|
||||
<body>
|
||||
<json var="$Instance">
|
||||
<schema type="object">
|
||||
<prop type="string" name="endTime"/>
|
||||
<prop type="object" name="error" cls="ErrorDetails_read">
|
||||
<prop readOnly="True" type="string" name="code"/>
|
||||
<prop readOnly="True" type="string" name="message"/>
|
||||
</prop>
|
||||
<prop type="string" name="id"/>
|
||||
<prop type="string" name="name"/>
|
||||
<prop type="object" name="properties" clientFlatten="True">
|
||||
<prop type="string" name="downloadUrl"/>
|
||||
<prop readOnly="True" type="dateTime" name="expiryTime"/>
|
||||
<prop type="dateTime" name="validTill"/>
|
||||
</prop>
|
||||
<prop type="string" name="startTime"/>
|
||||
<prop type="object" name="status">
|
||||
<prop type="string" name="status">
|
||||
<enum>
|
||||
<item value=""Completed""/>
|
||||
<item value=""Failed""/>
|
||||
<item value=""InProgress""/>
|
||||
<item value=""NoDataFound""/>
|
||||
<item value=""Queued""/>
|
||||
<item value=""ReadyToDownload""/>
|
||||
<item value=""TimedOut""/>
|
||||
</enum>
|
||||
</prop>
|
||||
</prop>
|
||||
<prop type="string" name="type"/>
|
||||
</schema>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
<response isError="True">
|
||||
<body>
|
||||
<json>
|
||||
<schema type="@ODataV4Format"/>
|
||||
</json>
|
||||
</body>
|
||||
</response>
|
||||
</http>
|
||||
</operation>
|
||||
<output type="object" ref="$Instance" clientFlatten="True"/>
|
||||
</command>
|
||||
</commandGroup>
|
||||
</CodeGen>
|
Загрузка…
Ссылка в новой задаче