Skip to main content

capabilities

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

Overview

Namecapabilities
TypeResource
Idazure.chaos.capabilities

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.
parametersSchemastringURL to retrieve JSON schema of the Capability parameters.
provisioningStatestringResource provisioning state. Not currently in use because resource is created synchronously. Known values are: "Succeeded", "Failed", "Canceled", "Creating", "Updating", "Deleting", and "Running". (Succeeded, Failed, Canceled, Creating, Updating, Deleting, Running)
publisherstringString of the Publisher that this Capability extends.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
targetTypestringString of the Target Type that this Capability extends.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
urnstringString of the URN for this Capability Type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, parent_provider_namespace, parent_resource_type, parent_resource_name, target_name, capability_name, subscription_idGet a Capability resource that extends a Target resource.
listselectresource_group_name, parent_provider_namespace, parent_resource_type, parent_resource_name, target_name, subscription_idcontinuationTokenGet a list of Capability resources that extend a Target resource.
create_or_updateinsertresource_group_name, parent_provider_namespace, parent_resource_type, parent_resource_name, target_name, capability_name, subscription_idCreate or update a Capability resource that extends a Target resource.
create_or_updatereplaceresource_group_name, parent_provider_namespace, parent_resource_type, parent_resource_name, target_name, capability_name, subscription_idCreate or update a Capability resource that extends a Target resource.
deletedeleteresource_group_name, parent_provider_namespace, parent_resource_type, parent_resource_name, target_name, capability_name, subscription_idDelete a Capability that extends a Target resource.

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
capability_namestringString that represents a Capability resource name. Required.
parent_provider_namespacestringThe parent resource provider namespace. Required.
parent_resource_namestringThe parent resource name. Required.
parent_resource_typestringThe parent resource type. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring
target_namestringString that represents a Target resource name. Required.
continuationTokenstringString that sets the continuation token. Default value is None.

SELECT examples

Get a Capability resource that extends a Target resource.

SELECT
id,
name,
description,
parametersSchema,
provisioningState,
publisher,
systemData,
targetType,
type,
urn
FROM azure.chaos.capabilities
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND parent_provider_namespace = '{{ parent_provider_namespace }}' -- required
AND parent_resource_type = '{{ parent_resource_type }}' -- required
AND parent_resource_name = '{{ parent_resource_name }}' -- required
AND target_name = '{{ target_name }}' -- required
AND capability_name = '{{ capability_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a Capability resource that extends a Target resource.

INSERT INTO azure.chaos.capabilities (
properties,
resource_group_name,
parent_provider_namespace,
parent_resource_type,
parent_resource_name,
target_name,
capability_name,
subscription_id
)
SELECT
'{{ properties }}',
'{{ resource_group_name }}',
'{{ parent_provider_namespace }}',
'{{ parent_resource_type }}',
'{{ parent_resource_name }}',
'{{ target_name }}',
'{{ capability_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
systemData,
type
;

REPLACE examples

Create or update a Capability resource that extends a Target resource.

REPLACE azure.chaos.capabilities
SET
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND parent_provider_namespace = '{{ parent_provider_namespace }}' --required
AND parent_resource_type = '{{ parent_resource_type }}' --required
AND parent_resource_name = '{{ parent_resource_name }}' --required
AND target_name = '{{ target_name }}' --required
AND capability_name = '{{ capability_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
systemData,
type;

DELETE examples

Delete a Capability that extends a Target resource.

DELETE FROM azure.chaos.capabilities
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND parent_provider_namespace = '{{ parent_provider_namespace }}' --required
AND parent_resource_type = '{{ parent_resource_type }}' --required
AND parent_resource_name = '{{ parent_resource_name }}' --required
AND target_name = '{{ target_name }}' --required
AND capability_name = '{{ capability_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;