Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logworkspace link-target and available-service-tier #364

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _monitor log-analytics workspace list-available-service-tier_

List the available service tiers for the workspace.

## Versions

### [2020-08-01](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcmVzb3VyY2Vncm91cHMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL3dvcmtzcGFjZXMve30vYXZhaWxhYmxlc2VydmljZXRpZXJz/2020-08-01.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers 2020-08-01 -->
9 changes: 9 additions & 0 deletions Commands/monitor/log-analytics/workspace/_list-link-target.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# [Command] _monitor log-analytics workspace list-link-target_

List a list of workspaces which the current user has administrator privileges and are not associated with an Azure Subscription.

## Versions

### [2015-03-20](/Resources/mgmt-plane/L3N1YnNjcmlwdGlvbnMve30vcHJvdmlkZXJzL21pY3Jvc29mdC5vcGVyYXRpb25hbGluc2lnaHRzL2xpbmt0YXJnZXRz/2015-03-20.xml) **Stable**

<!-- mgmt-plane /subscriptions/{}/providers/microsoft.operationalinsights/linktargets 2015-03-20 -->
6 changes: 6 additions & 0 deletions Commands/monitor/log-analytics/workspace/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,15 @@ Manage Azure log analytics workspace
- [list](/Commands/monitor/log-analytics/workspace/_list.md)
: Get a list of workspaces under a resource group or a subscription.

- [list-available-service-tier](/Commands/monitor/log-analytics/workspace/_list-available-service-tier.md)
: List the available service tiers for the workspace.

- [list-deleted-workspaces](/Commands/monitor/log-analytics/workspace/_list-deleted-workspaces.md)
: Get a list of deleted workspaces that can be recovered in a subscription or a resource group.

- [list-link-target](/Commands/monitor/log-analytics/workspace/_list-link-target.md)
: List a list of workspaces which the current user has administrator privileges and are not associated with an Azure Subscription.

- [list-management-groups](/Commands/monitor/log-analytics/workspace/_list-management-groups.md)
: Get a list of management groups connected to a workspace.

Expand Down
46 changes: 46 additions & 0 deletions Commands/tree.json
Original file line number Diff line number Diff line change
Expand Up @@ -39177,6 +39177,29 @@
}
]
},
"list-available-service-tier": {
"help": {
"short": "List the available service tiers for the workspace."
},
"names": [
"monitor",
"log-analytics",
"workspace",
"list-available-service-tier"
],
"versions": [
{
"name": "2020-08-01",
"resources": [
{
"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers",
"plane": "mgmt-plane",
"version": "2020-08-01"
}
]
}
]
},
"list-deleted-workspaces": {
"help": {
"short": "Get a list of deleted workspaces that can be recovered in a subscription or a resource group."
Expand Down Expand Up @@ -39236,6 +39259,29 @@
}
]
},
"list-link-target": {
"help": {
"short": "List a list of workspaces which the current user has administrator privileges and are not associated with an Azure Subscription."
},
"names": [
"monitor",
"log-analytics",
"workspace",
"list-link-target"
],
"versions": [
{
"name": "2015-03-20",
"resources": [
{
"id": "/subscriptions/{}/providers/microsoft.operationalinsights/linktargets",
"plane": "mgmt-plane",
"version": "2015-03-20"
}
]
}
]
},
"list-management-groups": {
"help": {
"short": "Get a list of management groups connected to a workspace."
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/providers/microsoft.operationalinsights/linktargets", "version": "2015-03-20", "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvbGlua1RhcmdldHM=/V/MjAxNS0wMy0yMA=="}], "commandGroups": [{"name": "monitor log-analytics workspace", "commands": [{"name": "list-link-target", "version": "2015-03-20", "resources": [{"id": "/subscriptions/{}/providers/microsoft.operationalinsights/linktargets", "version": "2015-03-20", "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvbGlua1RhcmdldHM=/V/MjAxNS0wMy0yMA=="}], "argGroups": [{"name": "", "args": [{"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}]}], "operations": [{"operationId": "Workspaces_ListLinkTargets", "http": {"path": "/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/linkTargets", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2015-03-20"}, "type": "string", "name": "api-version", "required": true}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "array<object>", "item": {"type": "object", "props": [{"type": "string", "name": "accountName"}, {"type": "string", "name": "customerId"}, {"type": "string", "name": "location"}, {"type": "string", "name": "workspaceName"}]}}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/providers/microsoft.operationalinsights/linktargets" version="2015-03-20" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvbGlua1RhcmdldHM=/V/MjAxNS0wMy0yMA=="/>
<commandGroup name="monitor log-analytics workspace">
<command name="list-link-target" version="2015-03-20" confirmation="">
<resource id="/subscriptions/{}/providers/microsoft.operationalinsights/linktargets" version="2015-03-20" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9wcm92aWRlcnMvTWljcm9zb2Z0Lk9wZXJhdGlvbmFsSW5zaWdodHMvbGlua1RhcmdldHM=/V/MjAxNS0wMy0yMA=="/>
<argGroup name="">
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
</argGroup>
<operation operationId="Workspaces_ListLinkTargets">
<http path="/subscriptions/{subscriptionId}/providers/Microsoft.OperationalInsights/linkTargets">
<request method="get">
<path>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True"/>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2015-03-20&quot;"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="array<object>">
<item type="object">
<prop type="string" name="accountName"/>
<prop type="string" name="customerId"/>
<prop type="string" name="location"/>
<prop type="string" name="workspaceName"/>
</item>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"plane": "mgmt-plane", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers", "version": "2020-08-01", "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9hdmFpbGFibGVTZXJ2aWNlVGllcnM=/V/MjAyMC0wOC0wMQ=="}], "commandGroups": [{"name": "monitor log-analytics workspace", "commands": [{"name": "list-available-service-tier", "version": "2020-08-01", "resources": [{"id": "/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers", "version": "2020-08-01", "swagger": "mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9hdmFpbGFibGVTZXJ2aWNlVGllcnM=/V/MjAyMC0wOC0wMQ=="}], "argGroups": [{"name": "", "args": [{"type": "ResourceGroupName", "var": "$Path.resourceGroupName", "options": ["g", "resource-group"], "required": true, "idPart": "resource_group"}, {"type": "SubscriptionId", "var": "$Path.subscriptionId", "options": ["subscription"], "required": true, "idPart": "subscription"}, {"type": "string", "var": "$Path.workspaceName", "options": ["n", "workspace-name"], "required": true, "group": "", "idPart": "name", "help": {"short": "The name of the workspace."}, "format": {"pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", "maxLength": 63, "minLength": 4}}]}], "operations": [{"operationId": "AvailableServiceTiers_ListByWorkspace", "http": {"path": "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers", "request": {"method": "get", "path": {"params": [{"type": "string", "name": "resourceGroupName", "arg": "$Path.resourceGroupName", "required": true, "format": {"maxLength": 90, "minLength": 1}}, {"type": "string", "name": "subscriptionId", "arg": "$Path.subscriptionId", "required": true, "format": {"minLength": 1}}, {"type": "string", "name": "workspaceName", "arg": "$Path.workspaceName", "required": true, "format": {"pattern": "^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$", "maxLength": 63, "minLength": 4}}]}, "query": {"consts": [{"readOnly": true, "const": true, "default": {"value": "2020-08-01"}, "type": "string", "name": "api-version", "required": true, "format": {"minLength": 1}}]}}, "responses": [{"statusCode": [200], "body": {"json": {"var": "$Instance", "schema": {"type": "array<object>", "item": {"type": "object", "props": [{"readOnly": true, "type": "integer64", "name": "capacityReservationLevel"}, {"readOnly": true, "type": "integer64", "name": "defaultRetention"}, {"readOnly": true, "type": "boolean", "name": "enabled"}, {"readOnly": true, "type": "string", "name": "lastSkuUpdate"}, {"readOnly": true, "type": "integer64", "name": "maximumRetention"}, {"readOnly": true, "type": "integer64", "name": "minimumRetention"}, {"readOnly": true, "type": "string", "name": "serviceTier", "enum": {"items": [{"value": "CapacityReservation"}, {"value": "Free"}, {"value": "PerGB2018"}, {"value": "PerNode"}, {"value": "Premium"}, {"value": "Standalone"}, {"value": "Standard"}]}}]}}}}}, {"isError": true, "body": {"json": {"schema": {"type": "@MgmtErrorFormat"}}}}]}}], "outputs": [{"type": "array", "ref": "$Instance", "clientFlatten": true}], "confirmation": ""}]}]}
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<?xml version='1.0' encoding='utf-8'?>
<CodeGen plane="mgmt-plane">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9hdmFpbGFibGVTZXJ2aWNlVGllcnM=/V/MjAyMC0wOC0wMQ=="/>
<commandGroup name="monitor log-analytics workspace">
<command name="list-available-service-tier" version="2020-08-01" confirmation="">
<resource id="/subscriptions/{}/resourcegroups/{}/providers/microsoft.operationalinsights/workspaces/{}/availableservicetiers" version="2020-08-01" swagger="mgmt-plane/operationalinsights/ResourceProviders/Microsoft.OperationalInsights/Paths/L3N1YnNjcmlwdGlvbnMve3N1YnNjcmlwdGlvbklkfS9yZXNvdXJjZWdyb3Vwcy97cmVzb3VyY2VHcm91cE5hbWV9L3Byb3ZpZGVycy9NaWNyb3NvZnQuT3BlcmF0aW9uYWxJbnNpZ2h0cy93b3Jrc3BhY2VzL3t3b3Jrc3BhY2VOYW1lfS9hdmFpbGFibGVTZXJ2aWNlVGllcnM=/V/MjAyMC0wOC0wMQ=="/>
<argGroup name="">
<arg type="ResourceGroupName" var="$Path.resourceGroupName" options="resource-group g" required="True" idPart="resource_group"/>
<arg type="SubscriptionId" var="$Path.subscriptionId" options="subscription" required="True" idPart="subscription"/>
<arg type="string" var="$Path.workspaceName" options="workspace-name n" required="True" group="" idPart="name">
<help short="The name of the workspace."/>
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</arg>
</argGroup>
<operation operationId="AvailableServiceTiers_ListByWorkspace">
<http path="/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/availableServiceTiers">
<request method="get">
<path>
<param type="string" name="resourceGroupName" arg="$Path.resourceGroupName" required="True">
<format maxLength="90" minLength="1"/>
</param>
<param type="string" name="subscriptionId" arg="$Path.subscriptionId" required="True">
<format minLength="1"/>
</param>
<param type="string" name="workspaceName" arg="$Path.workspaceName" required="True">
<format pattern="^[A-Za-z0-9][A-Za-z0-9-]+[A-Za-z0-9]$" maxLength="63" minLength="4"/>
</param>
</path>
<query>
<const readOnly="True" const="True" type="string" name="api-version" required="True">
<default value="&quot;2020-08-01&quot;"/>
<format minLength="1"/>
</const>
</query>
</request>
<response statusCode="200">
<body>
<json var="$Instance">
<schema type="array<object>">
<item type="object">
<prop readOnly="True" type="integer64" name="capacityReservationLevel"/>
<prop readOnly="True" type="integer64" name="defaultRetention"/>
<prop readOnly="True" type="boolean" name="enabled"/>
<prop readOnly="True" type="string" name="lastSkuUpdate"/>
<prop readOnly="True" type="integer64" name="maximumRetention"/>
<prop readOnly="True" type="integer64" name="minimumRetention"/>
<prop readOnly="True" type="string" name="serviceTier">
<enum>
<item value="&quot;CapacityReservation&quot;"/>
<item value="&quot;Free&quot;"/>
<item value="&quot;PerGB2018&quot;"/>
<item value="&quot;PerNode&quot;"/>
<item value="&quot;Premium&quot;"/>
<item value="&quot;Standalone&quot;"/>
<item value="&quot;Standard&quot;"/>
</enum>
</prop>
</item>
</schema>
</json>
</body>
</response>
<response isError="True">
<body>
<json>
<schema type="@MgmtErrorFormat"/>
</json>
</body>
</response>
</http>
</operation>
<output type="array" ref="$Instance" clientFlatten="True"/>
</command>
</commandGroup>
</CodeGen>