-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
61 additions
and
0 deletions.
There are no files selected for viewing
61 changes: 61 additions & 0 deletions
61
docs/api-docs/web-server/docs/biz/security-group/clone_security_group.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
### 描述 | ||
|
||
- 该接口提供版本:v9.9.9+。 | ||
- 该接口所需权限:业务-IaaS资源创建。 | ||
- 该接口功能描述:克隆安全组(仅支持腾讯云)。 | ||
|
||
### URL | ||
|
||
POST /api/v1/cloud/bizs/{bk_biz_id}/security_groups/{id}/clone | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-------------|--------|----|----------| | ||
| bk_biz_id | int64 | 是 | 业务ID | | ||
| id | string | 是 | 被克隆安全组ID | | ||
| manager | string | 是 | 主负责人 | | ||
| bak_manager | string | 是 | 备份负责人 | | ||
|
||
### 业务逻辑说明 | ||
|
||
- 被克隆安全组必须为当前业务下可见的安全组 | ||
- 新创建的安全组的tags 使用业务和管理业务 都为当前业务 | ||
- 新创建的安全组的管理类型为业务管理 | ||
|
||
### 调用示例 | ||
|
||
#### 克隆安全组 | ||
|
||
```json | ||
{ | ||
"manager": "jim", | ||
"bak_manager": "tom" | ||
} | ||
``` | ||
|
||
### 响应示例 | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"message": "ok", | ||
"data": { | ||
"id": "00000001" | ||
} | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|---------|--------|------| | ||
| code | int32 | 状态码 | | ||
| message | string | 请求信息 | | ||
| data | object | 响应数据 | | ||
|
||
#### data | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|------|--------|------------| | ||
| id | string | 创建出的新安全组ID | |