更新时间:2025-10-24 GMT+08:00

创建 Baseline 接口

功能介绍

Baseline 数据预置接口

URI

POST /v1/internal/rgc/baseline

请求参数

表1 请求Body参数

参数

是否必选

参数类型

描述

version

String

baseline 版本

agencies

Array of agency objects

identity

identity object

manage_special

manage_special object

organizations

Array of organization objects

表2 identity

参数

是否必选

参数类型

描述

permission_sets

Array of permissionSet objects

groups

Array of group objects

表3 permissionSet

参数

是否必选

参数类型

描述

permission_set_name

String

description_zh

String

description_en

String

policies_name

Array of strings

表4 group

参数

是否必选

参数类型

描述

group_name

String

description_zh

String

description_en

String

表5 manage_special

参数

是否必选

参数类型

描述

agencies

Array of agency objects

表6 agency

参数

是否必选

参数类型

描述

agency_type

String

agency_name

String

principal_type

String

principal

String

agency_policy

Array of strings

表7 organization

参数

是否必选

参数类型

描述

organization_name

String

organization_type

String

controls

Array of strings

resources

Array of strings

accounts

Array of account objects

表8 account

参数

是否必选

参数类型

描述

account_name

String

account_type

String

controls

Array of strings

resources

Array of strings

identity_infos

identity_infos object

表9 identity_infos

参数

是否必选

参数类型

描述

allocated_users

Array of strings

attach_groups

Array of strings

allocated_groups

Array of allocatedGroups objects

表10 allocatedGroups

参数

是否必选

参数类型

描述

group_name

String

permission_set_name

String

响应参数

状态码:200

表11 响应Body参数

参数

参数类型

描述

baseline

BaselineBody object

baseline 预置模板参数

create_time

String

表12 BaselineBody

参数

参数类型

描述

version

String

baseline 版本

agencies

Array of agency objects

identity

identity object

manage_special

manage_special object

organizations

Array of organization objects

表13 identity

参数

参数类型

描述

permission_sets

Array of permissionSet objects

groups

Array of group objects

表14 permissionSet

参数

参数类型

描述

permission_set_name

String

description_zh

String

description_en

String

policies_name

Array of strings

表15 group

参数

参数类型

描述

group_name

String

description_zh

String

description_en

String

表16 manage_special

参数

参数类型

描述

agencies

Array of agency objects

表17 agency

参数

参数类型

描述

agency_type

String

agency_name

String

principal_type

String

principal

String

agency_policy

Array of strings

表18 organization

参数

参数类型

描述

organization_name

String

organization_type

String

controls

Array of strings

resources

Array of strings

accounts

Array of account objects

表19 account

参数

参数类型

描述

account_name

String

account_type

String

controls

Array of strings

resources

Array of strings

identity_infos

identity_infos object

表20 identity_infos

参数

参数类型

描述

allocated_users

Array of strings

attach_groups

Array of strings

allocated_groups

Array of allocatedGroups objects

表21 allocatedGroups

参数

参数类型

描述

group_name

String

permission_set_name

String

请求示例

响应示例

状态码:200

请求成功。

{
  "update_time" : "string"
}

状态码

状态码

描述

200

请求成功。

错误码

请参见错误码