Subscriptions - Put Target Directory
启动订阅更改请求的操作
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Subscription/changeTenantRequest/default?api-version=2024-08-01-preview
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
subscription
|
path | True |
string |
订阅 ID。 |
api-version
|
query | True |
string |
要用于客户端请求的 API 的版本。 当前版本为 2024-08-01-preview |
请求正文
名称 | 类型 | 说明 |
---|---|---|
properties |
目标目录请求属性。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
还行。 请求已成功。 |
|
Other Status Codes |
描述操作未成功时的错误。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
putTargetDirectory
示例请求
PUT https://management.azure.com/subscriptions/ecce7b25-862b-44a2-9e21-a1baa50618eb/providers/Microsoft.Subscription/changeTenantRequest/default?api-version=2024-08-01-preview
{
"properties": {
"destinationOwnerId": "abhaypratap@live.com",
"destinationTenantId": "111a82eb-4c7b-48bb-962b-49363c510130"
}
}
示例响应
{
"id": "subscriptions/ecce7b25-862b-44a2-9e21-a1baa50618eb/providers/Microsoft.Subscription/changeTenantRequest/default",
"name": "default",
"type": "Microsoft.Subscription/changeTenantRequest",
"properties": {
"destinationTenantId": "111a82eb-4c7b-48bb-962b-49363c510130",
"destinationOwnerId": "abhaypratap@live.com",
"status": "Initiated",
"expiresOn": "2024-07-19T17:57:40.0278346Z"
}
}
定义
名称 | 说明 |
---|---|
Error |
资源管理错误附加信息。 |
Error |
错误详细信息。 |
Error |
错误响应 |
Target |
已更改目标目录的订阅请求。 |
Target |
已更改目标目录的订阅请求的属性。 |
Target |
已更改目标目录的订阅响应。 |
Target |
已更改目标目录的订阅响应的属性。 |
ErrorAdditionalInfo
资源管理错误附加信息。
名称 | 类型 | 说明 |
---|---|---|
info |
object |
其他信息。 |
type |
string |
其他信息类型。 |
ErrorDetail
错误详细信息。
名称 | 类型 | 说明 |
---|---|---|
additionalInfo |
错误附加信息。 |
|
code |
string |
错误代码。 |
details |
错误详细信息。 |
|
message |
string |
错误消息。 |
target |
string |
错误目标。 |
ErrorResponse
错误响应
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
TargetDirectoryRequest
已更改目标目录的订阅请求。
名称 | 类型 | 说明 |
---|---|---|
properties |
目标目录请求属性。 |
TargetDirectoryRequestProperties
已更改目标目录的订阅请求的属性。
名称 | 类型 | 说明 |
---|---|---|
destinationOwnerId |
string |
目标 OwnerId 可以是对象 ID 或电子邮件地址 |
destinationTenantId |
string |
需要接受订阅的目标租户 ID |
TargetDirectoryResult
已更改目标目录的订阅响应。
名称 | 类型 | 说明 |
---|---|---|
id |
string |
订阅更改目录资源的完全限定 ID。 |
name |
string |
订阅名称。 |
properties |
订阅已更改目标目录响应属性。 |
|
type |
string |
资源类型,Microsoft.Subscription/changeTenantRequest。 |
TargetDirectoryResultProperties
已更改目标目录的订阅响应的属性。
名称 | 类型 | 说明 |
---|---|---|
destinationOwnerId |
string |
将接受订阅的目标所有者 ID。 |
destinationTenantId |
string |
将接受订阅的目标租户 ID。 |
expiresOn |
string (date-time) |
订阅启动请求到期时间 |
status |
string |
订阅状态。 |