Capabilities - Delete

Delete a Capability that extends a Target resource.

DELETE 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 resource deletion was successful.

204 No Content

Capability resource deletion 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

Delete a Capability that extends a virtual machine Target resource.

Sample Request

DELETE 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

Definitions

Name Description
ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

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.