接受共享连接创建AcceptAttachment
接口说明
接受共享连接创建
URL
POST https://er.cn-north-4.myhuaweicloud.com/v3/{project_id}/ent erp rise-router/{er_id}/attachments/{attachment_id}/accept
请求参数
名称 | 类型 | IN | 必选 | 描述 |
---|---|---|---|---|
project_id
|
string | path | 是 |
项目ID |
er_id
|
string | path | 是 |
企业路由器 实例ID |
attachment_id
|
string | path | 是 |
连接ID |
返回参数
返回码: 202
OK
名称 | 类型 | 必选 | 描述 |
---|---|---|---|
attachment
|
AttachmentResponse object | 是 |
连接基本信息详情 |
request_id
|
string | 是 |
请求id |
202 attachment
名称 | 类型 | 必选 |
---|---|---|
name
|
string | 是 |
id
|
string | 是 |
description
|
string | 是 |
state
|
string | 是 |
created_at
|
string | 是 |
updated_at
|
string | 否 |
tags
|
Array of Tag objects | 否 |
project_id
|
string | 是 |
resource_id
|
string | 是 |
resource_type
|
string | 是 |
resource_project_id
|
string | 否 |
请求示例
示例 1
接受创建连接
"POST https://{erouter_endpoint}/v3/08d5a9564a704afda6039ae2babbef3c/enterprise-router/6f83b848-8331-4271-ac0c-ef94b7686402/attachments/6f83b848-8331-4271-ac0c-ef94b7686401/accept"
返回示例
返回码:202
OK
示例 1
{
"attachment": {
"id": "6f83b848-8331-4271-ac0c-ef94b7686402,",
"name": "vpc attachment,",
"description": "VPC连接,",
"state": "avaliable",
"created_at": "2020-03-11T15:13:31Z",
"updated_at": "2020-03-11T15:13:31Z",
"tags": null,
"project_id": "0605767a9980d5762fbcc00b3537e757",
"enterprise_project_id": "string",
"resource_id": "b715e131-3371-4e17-a2de-4f669e24439a",
"resource_type": "VPC",
"resource_project_id": null,
"request_id": "915a14a6-867b-4af7-83d1-70efceb146f9"
}
}
"attachment": {
"id": "6f83b848-8331-4271-ac0c-ef94b7686402,",
"name": "vpc attachment,",
"description": "VPC连接,",
"state": "avaliable",
"created_at": "2020-03-11T15:13:31Z",
"updated_at": "2020-03-11T15:13:31Z",
"tags": null,
"project_id": "0605767a9980d5762fbcc00b3537e757",
"enterprise_project_id": "string",
"resource_id": "b715e131-3371-4e17-a2de-4f669e24439a",
"resource_type": "VPC",
"resource_project_id": null,
"request_id": "915a14a6-867b-4af7-83d1-70efceb146f9"
}
}
SDK
点击 企业路由器 (ER) SDK, 下载SDK或查看SDK文档。SDK的安装、认证方式等在SDK文档中对应语言类型的【使用】目录下。
错误码
请参考 错误码说明。