Skip to main content

target_types

Creates, updates, deletes, gets or lists a target_types resource.

Overview

Nametarget_types
TypeResource
Idazure.chaos.target_types

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
descriptionstringLocalized string of the description.
displayNamestringLocalized string of the display name.
propertiesSchemastringURL to retrieve JSON schema of the Target Type properties.
resourceTypesarrayList of resource types this Target Type can extend.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectlocation, target_type_name, subscription_idGet a Target Type resources for given location.
listselectlocation, subscription_idcontinuationTokenGet a list of Target Type resources for given location.

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.

NameDatatypeDescription
locationstringThe name of the Azure region. Required.
subscription_idstring
target_type_namestringString that represents a Target Type resource name. Required.
continuationTokenstringString that sets the continuation token. Default value is None.

SELECT examples

Get a Target Type resources for given location.

SELECT
id,
name,
description,
displayName,
propertiesSchema,
resourceTypes,
systemData,
type
FROM azure.chaos.target_types
WHERE location = '{{ location }}' -- required
AND target_type_name = '{{ target_type_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;