discovered_resources
Creates, updates, deletes, gets or lists a discovered_resources resource.
Overview
| Name | discovered_resources |
| Type | Resource |
| Id | azure.chaos.discovered_resources |
Fields
The following fields are returned by SELECT queries:
- get
- list_by_workspace
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
discoveredAt | string (date-time) | The date and time when the resource was discovered. Required. |
fullyQualifiedIdentifier | string | The fully qualified identifier of the discovered resource. Required. |
namespace | string | The namespace of the discovered resource. Required. |
resourceName | string | The name of the discovered resource. Required. |
resourceType | string | The resource type of the discovered resource. Required. |
scope | string | The scope of the discovered resource. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
discoveredAt | string (date-time) | The date and time when the resource was discovered. Required. |
fullyQualifiedIdentifier | string | The fully qualified identifier of the discovered resource. Required. |
namespace | string | The namespace of the discovered resource. Required. |
resourceName | string | The name of the discovered resource. Required. |
resourceType | string | The resource type of the discovered resource. Required. |
scope | string | The scope of the discovered resource. Required. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | resource_group_name, workspace_name, discovered_resource_name, subscription_id | Get a discovered resource. | |
list_by_workspace | select | resource_group_name, workspace_name, subscription_id | Get a list of discovered resources for a workspace. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
discovered_resource_name | string | Name of the discovered resource. Required. |
resource_group_name | string | The name of the resource group. The name is case insensitive. Required. |
subscription_id | string | |
workspace_name | string | String that represents a Workspace resource name. Required. |
SELECT examples
- get
- list_by_workspace
Get a discovered resource.
SELECT
id,
name,
discoveredAt,
fullyQualifiedIdentifier,
namespace,
resourceName,
resourceType,
scope,
systemData,
type
FROM azure.chaos.discovered_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND discovered_resource_name = '{{ discovered_resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;
Get a list of discovered resources for a workspace.
SELECT
id,
name,
discoveredAt,
fullyQualifiedIdentifier,
namespace,
resourceName,
resourceType,
scope,
systemData,
type
FROM azure.chaos.discovered_resources
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND workspace_name = '{{ workspace_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;