你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Targets - List
获取扩展跟踪区域资源的目标资源列表。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets?api-version=2024-01-01
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{parentProviderNamespace}/{parentResourceType}/{parentResourceName}/providers/Microsoft.Chaos/targets?api-version=2024-01-01&continuationToken={continuationToken}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
parent
|
path | True |
string |
表示资源提供程序命名空间的字符串。 Regex pattern: |
parent
|
path | True |
string |
表示资源名称的字符串。 Regex pattern: |
parent
|
path | True |
string |
表示资源类型的字符串。 Regex pattern: |
resource
|
path | True |
string |
表示 Azure 资源组的字符串。 Regex pattern: |
subscription
|
path | True |
string |
表示 Azure 订阅 ID 的 GUID。 Regex pattern: |
api-version
|
query | True |
string |
设置 API 版本的字符串。 Regex pattern: |
continuation
|
query |
string |
设置继续标记的字符串。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
如果请求成功,则返回的目标资源列表。 |
|
Other Status Codes |
如果请求失败,则返回错误响应。 |
安全性
azure_auth
Azure Active Directory OAuth2 流
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
List all Targets that extend a virtual machine 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?api-version=2024-01-01&continuationToken=
Sample Response
{
"value": [
{
"id": "/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets/Microsoft-Agent",
"type": "Microsoft.Chaos/targets",
"name": "Microsoft-Agent",
"location": "centraluseuap",
"properties": {
"identities": [
{
"type": "CertificateSubjectIssuer",
"subject": "CN=example.subject"
}
],
"agentProfileId": "ac4e8251-fdc9-4277-8e87-dc57fe5794cf"
},
"systemData": {
"createdAt": "2021-07-01T00:00:00.0Z",
"lastModifiedAt": "2021-07-01T00:00:00.0Z"
}
}
],
"nextLink": "https://management.azure.com/subscriptions/6b052e15-03d3-4f17-b2e1-be7f07588291/resourceGroups/exampleRG/providers/Microsoft.Compute/virtualMachines/exampleVM/providers/Microsoft.Chaos/targets?continuationToken=&api-version=2024-01-01"
}
定义
名称 | 说明 |
---|---|
created |
创建资源的标识类型。 |
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
system |
与资源的创建和上次修改相关的元数据。 |
target |
表示目标资源的模型。 |
target |
表示目标资源列表和分页链接的模型。 |
createdByType
创建资源的标识类型。
名称 | 类型 | 说明 |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
systemData
与资源的创建和上次修改相关的元数据。
名称 | 类型 | 说明 |
---|---|---|
createdAt |
string |
资源创建时间戳 (UTC) 。 |
createdBy |
string |
创建资源的标识。 |
createdByType |
创建资源的标识类型。 |
|
lastModifiedAt |
string |
资源上次修改的时间戳 (UTC) |
lastModifiedBy |
string |
上次修改资源的标识。 |
lastModifiedByType |
上次修改资源的标识类型。 |
target
表示目标资源的模型。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
目标资源的位置。 |
name |
string |
资源的名称 |
systemData |
目标资源的系统元数据。 |
|
type |
string |
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts” |
targetListResult
表示目标资源列表和分页链接的模型。
名称 | 类型 | 说明 |
---|---|---|
nextLink |
string |
用于检索目标资源的下一页的 URL。 |
value |
target[] |
目标资源的列表。 |