Capabilities - Get

Get a Capability resource that extends a Target resource.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets/{targetName}/capabilities/{capabilityName}?api-version=2024-01-01

URI Parameters

Name In Required Type Description
capabilityName
path True

string

String that represents a Capability resource name.

Regex pattern: ^[a-zA-Z0-9\-\.]+-\d\.\d$

parentProviderNamespace
path True

string

String that represents a resource provider namespace.

Regex pattern: ^[a-zA-Z0-9]+\.[a-zA-Z0-9]+$

parentResourceName
path True

string

String that represents a resource name.

Regex pattern: ^[a-zA-Z0-9_\-\.]+$

parentResourceType
path True

string

String that represents a resource type.

Regex pattern: ^[a-zA-Z0-9_\-\.]+$

resourceGroupName
path True

string

String that represents an Azure resource group.

Regex pattern: ^[a-zA-Z0-9_\-\.\(\)]*[a-zA-Z0-9_\-\(\)]$

subscriptionId
path True

string

GUID that represents an Azure subscription ID.

Regex pattern: ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$

targetName
path True

string

String that represents a Target resource name.

Regex pattern: ^[a-zA-Z0-9_\-\.]+$

api-version
query True

string

String that sets the API version.

Regex pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}(|-preview)$

Responses

Name Type Description
200 OK

capability

Capability resource returned if request was successful.

Other Status Codes

ErrorResponse

Error response returned if request was unsuccessful.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation Impersonate your user account

Examples

Get a Capability that extends a virtual machine Target resource.

Sample Request

GET https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0?api-version=2024-01-01

Sample Response

{
  "id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0",
  "type": "Microsoft.Chaos/targets/capabilities",
  "name": "Shutdown-1.0",
  "properties": {
    "publisher": "Microsoft",
    "targetType": "VirtualMachine",
    "description": "Shutdown an Azure Virtual Machine for a defined period of time.",
    "parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json",
    "urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0"
  },
  "systemData": {
    "createdAt": "2020-05-14T05:08:38.4662189Z",
    "lastModifiedAt": "2020-05-14T05:08:38.4662189Z"
  }
}

Definitions

Name Description
capability

Model that represents a Capability resource.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

systemData

Metadata pertaining to creation and last modification of the resource.

capability

Model that represents a Capability resource.

Name Type 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

properties.description

string

Localized string of the description.

properties.parametersSchema

string

URL to retrieve JSON schema of the Capability parameters.

properties.publisher

string

String of the Publisher that this Capability extends.

properties.targetType

string

String of the Target Type that this Capability extends.

properties.urn

string

String of the URN for this Capability Type.

systemData

systemData

The standard system metadata of a resource type.

type

string

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

createdByType

The type of identity that created the resource.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

The resource management error additional info.

Name Type Description
info

object

The additional info.

type

string

The additional info type.

ErrorDetail

The error detail.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

The error object.

systemData

Metadata pertaining to creation and last modification of the resource.

Name Type Description
createdAt

string

The timestamp of resource creation (UTC).

createdBy

string

The identity that created the resource.

createdByType

createdByType

The type of identity that created the resource.

lastModifiedAt

string

The timestamp of resource last modification (UTC)

lastModifiedBy

string

The identity that last modified the resource.

lastModifiedByType

createdByType

The type of identity that last modified the resource.