-
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.
docs: 安全组管理相关接口文档-资源下 --story=121690059
- Loading branch information
1 parent
4875605
commit 610b578
Showing
9 changed files
with
436 additions
and
155 deletions.
There are no files selected for viewing
45 changes: 0 additions & 45 deletions
45
...pi-docs/web-server/docs/resource/security_group/assign_security_group_to_biz.md
This file was deleted.
Oops, something went wrong.
51 changes: 51 additions & 0 deletions
51
...s/web-server/docs/resource/security_group/batch_assign_security_group_to_biz.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,51 @@ | ||
### 描述 | ||
|
||
- 该接口提供版本:v9.9.9+。 | ||
- 该接口所需权限:资源-资源分配。 | ||
- 该接口功能描述:批量分配安全组到业务。 | ||
|
||
### URL | ||
|
||
POST /api/v1/cloud/security_groups/assign/bizs/batch | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-----------------|--------------|----|----------| | ||
| security_groups | object array | 是 | 分配的安全组列表 | | ||
|
||
#### security_groups[n] | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-------------------|--------|----|-------| | ||
| security_group_id | string | 是 | 安全组ID | | ||
| bk_biz_id | int64 | 是 | 业务ID | | ||
|
||
### 调用示例 | ||
|
||
```json | ||
{ | ||
"security_groups": [ | ||
{ | ||
"security_group_ids": "00000001", | ||
"bk_biz_id": 100 | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### 响应示例 | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"message": "ok" | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|---------|--------|------| | ||
| code | int32 | 状态码 | | ||
| message | string | 请求信息 | |
55 changes: 55 additions & 0 deletions
55
...ver/docs/resource/security_group/batch_update_security_group_management_attr.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,55 @@ | ||
### 描述 | ||
|
||
- 该接口提供版本:v9.9.9+。 | ||
- 该接口所需权限:资源-IaaS资源操作。 | ||
- 该接口功能描述:批量更新安全组管理属性,仅当所有管理属性均不存在时才允许编辑,所有管理属性都要提供。 | ||
|
||
### URL | ||
|
||
PATCH /api/v1/cloud/security_groups/management_attrs/batch | ||
|
||
### 输入参数 | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-----------------|--------------|----|----------| | ||
| security_groups | object array | 是 | 更新的安全组列表 | | ||
|
||
#### security_groups[n] | ||
|
||
| 参数名称 | 参数类型 | 必选 | 描述 | | ||
|-------------|--------|----|-------| | ||
| id | string | 是 | 安全组ID | | ||
| manager | string | 是 | 负责人 | | ||
| bak_manager | string | 是 | 备份负责人 | | ||
| mgmt_biz_id | int | 是 | 管理业务 | | ||
|
||
### 调用示例 | ||
|
||
```json | ||
{ | ||
"security_groups": [ | ||
{ | ||
"id": "00000001", | ||
"manager": "lihua", | ||
"bak_manager": "hanmeimei", | ||
"mgmt_biz_id": 123 | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### 响应示例 | ||
|
||
```json | ||
{ | ||
"code": 0, | ||
"message": "ok" | ||
} | ||
``` | ||
|
||
### 响应参数说明 | ||
|
||
| 参数名称 | 参数类型 | 描述 | | ||
|---------|--------|------| | ||
| code | int32 | 状态码 | | ||
| message | string | 请求信息 | |
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
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
Oops, something went wrong.