Capability Types - Get
Verilen Hedef Türü ve konumu için bir Yetenek Türü kaynağı alın.
GET https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Chaos/locations/{location}/targetTypes/{targetTypeName}/capabilityTypes/{capabilityTypeName}?api-version=2025-01-01
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
capability
|
path | True |
string pattern: ^[a-zA-Z0-9\-\.]+-\d\.\d$ |
Yetenek Türü kaynak adını temsil eden dize. |
|
location
|
path | True |
string minLength: 1 |
Azure bölgesinin adı. |
|
subscription
|
path | True |
string (uuid) |
Hedef aboneliğin kimliği. Değer bir UUID olmalıdır. |
|
target
|
path | True |
string pattern: ^[a-zA-Z0-9_\-\.]+$ |
Hedef Türü kaynak adını temsil eden dize. |
|
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
Azure işlemi başarıyla tamamlandı. |
|
| Other Status Codes |
Beklenmeyen bir hata yanıtı. |
Güvenlik
azure_auth
Azure Active Directory OAuth2 Akışı.
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Get a Capability Type for a virtual machine Target resource on westus2 location.
Örnek isteği
GET https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0?api-version=2025-01-01
Örnek yanıt
{
"name": "Shutdown-1.0",
"type": "Microsoft.Chaos/locations/targetTypes/capabilityTypes",
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/providers/Microsoft.Chaos/locations/westus2/targetTypes/Microsoft-VirtualMachine/capabilityTypes/Shutdown-1.0",
"properties": {
"description": "Shutdown an Azure Virtual Machine for a defined period of time.",
"displayName": "Shutdown VM",
"kind": "fault",
"parametersSchema": "https://schema.centralus.chaos-prod.azure.com/targets/Microsoft-VirtualMachine/capabilities/Shutdown-1.0.json",
"publisher": "Microsoft",
"runtimeProperties": {
"kind": "continuous"
},
"targetType": "VirtualMachine",
"urn": "urn:csci:microsoft:virtualMachine:shutdown/1.0",
"azureRbacActions": [
"Microsoft.Compute/virtualMachines/poweroff/action",
"Microsoft.Compute/virtualMachines/start/action",
"Microsoft.Compute/virtualMachines/instanceView/read",
"Microsoft.Compute/virtualMachines/read",
"Microsoft.Compute/locations/operations/read"
],
"requiredAzureRoleDefinitionIds": [
"acdd72a7-3385-48ef-bd42-f606fba81ae0"
]
}
}
Tanımlar
| Name | Description |
|---|---|
|
Capability |
Yetenek Türü kaynağını temsil eden model. |
|
Capability |
Bu Yetenek Türünün çalışma zamanı özellikleri. |
|
created |
Kaynağı oluşturan kimliğin türü. |
|
Error |
Kaynak yönetimi hatası ek bilgileri. |
|
Error |
Hata ayrıntısı. |
|
Error |
Hata yanıtı |
|
system |
Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler. |
CapabilityType
Yetenek Türü kaynağını temsil eden model.
| Name | Tür | Description |
|---|---|---|
| id |
string (arm-id) |
Kaynağın tam kaynak kimliği. Örneğin, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
| name |
string |
Kaynağın adı |
| properties.azureRbacActions |
string[] |
Yetenek türünü yürütmek için gereken kontrol düzlemi eylemleri. |
| properties.azureRbacDataActions |
string[] |
Yetenek türünü yürütmek için gereken veri düzlemi eylemleri. |
| properties.description |
string |
Açıklamanın yerelleştirilmiş dizesi. |
| properties.displayName |
string |
Görünen adın yerelleştirilmiş dizesi. |
| properties.kind |
string |
Bu Yetenek Türü türünün dizesi. |
| properties.parametersSchema |
string maxLength: 2048 |
Yetenek Türü parametrelerinin JSON şemasını almak için URL. |
| properties.publisher |
string |
Bu Yetenek Türü'nü genişleten Publisher dizesi. |
| properties.requiredAzureRoleDefinitionIds |
string[] |
Yetenek türünü yürütmek için gerekli Azure Rol Tanımı Kimlikleri. |
| properties.runtimeProperties |
Bu Yetenek Türünün çalışma zamanı özellikleri. |
|
| properties.targetType |
string |
Bu Yetenek Türü'nü genişleten Hedef Türü dizesi. |
| properties.urn |
string maxLength: 2048 |
Bu Yetenek Türü için URN dizesi. |
| systemData |
createdBy ve modifiedBy bilgilerini içeren Azure Resource Manager meta verileri. |
|
| type |
string |
Kaynağın türü. Örneğin, "Microsoft.Compute/virtualMachines" veya "Microsoft.Storage/storageAccounts" |
CapabilityTypePropertiesRuntimeProperties
Bu Yetenek Türünün çalışma zamanı özellikleri.
| Name | Tür | Description |
|---|---|---|
| kind |
string |
Kaynağın eylem türünün türü dizesi (sürekli veya ayrık). |
createdByType
Kaynağı oluşturan kimliğin türü.
| Değer | Description |
|---|---|
| User | |
| Application | |
| ManagedIdentity | |
| Key |
ErrorAdditionalInfo
Kaynak yönetimi hatası ek bilgileri.
| Name | Tür | Description |
|---|---|---|
| info |
object |
Ek bilgiler. |
| type |
string |
Ek bilgi türü. |
ErrorDetail
Hata ayrıntısı.
| Name | Tür | Description |
|---|---|---|
| additionalInfo |
Hata ek bilgileri. |
|
| code |
string |
Hata kodu. |
| details |
Hata ayrıntıları. |
|
| message |
string |
Hata iletisi. |
| target |
string |
Hata hedefi. |
ErrorResponse
Hata yanıtı
| Name | Tür | Description |
|---|---|---|
| error |
Hata nesnesi. |
systemData
Kaynağın oluşturulması ve son değiştirilmesiyle ilgili meta veriler.
| Name | Tür | Description |
|---|---|---|
| createdAt |
string (date-time) |
Kaynak oluşturma (UTC) zaman damgası. |
| createdBy |
string |
Kaynağı oluşturan kimlik. |
| createdByType |
Kaynağı oluşturan kimliğin türü. |
|
| lastModifiedAt |
string (date-time) |
Kaynağın son değişikliğinin zaman damgası (UTC) |
| lastModifiedBy |
string |
Kaynağı en son değiştiren kimlik. |
| lastModifiedByType |
Kaynağı en son değiştiren kimlik türü. |