diff --git a/CHANGELOG.md b/CHANGELOG.md index a97436a13b..0567b8feee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,278 @@ +# Release 3.0.1172.1 + +## 费用中心(billing) 版本:2018-07-09 + +### 第 61 次发布 + +发布时间:2024-08-14 01:07:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [UsageDetails](https://cloud.tencent.com/document/api/555/19183#UsageDetails) + + * 新增成员:ProductCode, SubProductCode, BillingItemCode, SubBillingItemCode, ProductEnName, SubProductEnName, CalcUnit, Action + +* [UsageRecords](https://cloud.tencent.com/document/api/555/19183#UsageRecords) + + * 新增成员:PayMode, VoucherId, PayScene, SeqId + + + + +## Elasticsearch Service(es) 版本:2018-04-16 + +### 第 65 次发布 + +发布时间:2024-08-14 01:44:38 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [CreateServerlessSpaceV2](https://cloud.tencent.com/document/api/845/104317) + + * 新增入参:TagList + +* [DescribeServerlessMetrics](https://cloud.tencent.com/document/api/845/108288) + + * 新增入参:DurationType + + * 新增出参:IndexTraffic, ReadReqTimes, WriteReqTimes, DocCount + +* [DescribeServerlessSpaces](https://cloud.tencent.com/document/api/845/104313) + + * 新增入参:TagList + + +修改数据结构: + +* [ServerlessIndexMetaField](https://cloud.tencent.com/document/api/845/30634#ServerlessIndexMetaField) + + * 新增成员:IndexTraffic + +* [ServerlessSpace](https://cloud.tencent.com/document/api/845/30634#ServerlessSpace) + + * 新增成员:TagList + + + + +## 腾讯电子签企业版(ess) 版本:2020-11-11 + +### 第 182 次发布 + +发布时间:2024-08-14 01:45:25 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1323/109910) + + + +## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 + +### 第 178 次发布 + +发布时间:2024-08-14 01:46:41 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1420/109911) + + + +## 腾讯电子签(基础版)(essbasic) 版本:2020-12-22 + + + +## 移动应用安全(ms) 版本:2018-04-08 + +### 第 21 次发布 + +发布时间:2024-08-14 02:10:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +**预下线接口**: + +* CancelEncryptTask +* CreateBindInstance +* CreateCosSecKeyInstance +* CreateEncryptInstance +* CreateOrderInstance +* CreateResourceInstances +* CreateShieldInstance +* CreateShieldPlanInstance +* DeleteShieldInstances +* DescribeApkDetectionResult +* DescribeEncryptInstances +* DescribeEncryptPlan +* DescribeOrderInstances +* DescribeResourceInstances +* DescribeShieldInstances +* DescribeShieldPlanInstance +* DescribeShieldResult +* DescribeUrlDetectionResult +* DescribeUserBaseInfoInstance +* DestroyResourceInstances +* RequestLocalTask +* UpdateClientState +* UpdateLocalTaskResult + + + +## 集团账号管理(organization) 版本:2021-03-31 + +### 第 36 次发布 + +发布时间:2024-08-14 02:13:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [AddExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109966) +* [AddPermissionPolicyToRoleConfiguration](https://cloud.tencent.com/document/api/850/109938) +* [AddUserToGroup](https://cloud.tencent.com/document/api/850/109921) +* [ClearExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109965) +* [CreateGroup](https://cloud.tencent.com/document/api/850/109920) +* [CreateRoleAssignment](https://cloud.tencent.com/document/api/850/109958) +* [CreateRoleConfiguration](https://cloud.tencent.com/document/api/850/109937) +* [CreateUser](https://cloud.tencent.com/document/api/850/109928) +* [CreateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109950) +* [DeleteGroup](https://cloud.tencent.com/document/api/850/109919) +* [DeleteRoleAssignment](https://cloud.tencent.com/document/api/850/109957) +* [DeleteRoleConfiguration](https://cloud.tencent.com/document/api/850/109936) +* [DeleteUser](https://cloud.tencent.com/document/api/850/109927) +* [DeleteUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109949) +* [DescribeIdentityCenter](https://cloud.tencent.com/document/api/850/109943) +* [DismantleRoleConfiguration](https://cloud.tencent.com/document/api/850/109956) +* [GetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109964) +* [GetGroup](https://cloud.tencent.com/document/api/850/109918) +* [GetProvisioningTaskStatus](https://cloud.tencent.com/document/api/850/109948) +* [GetRoleConfiguration](https://cloud.tencent.com/document/api/850/109935) +* [GetTaskStatus](https://cloud.tencent.com/document/api/850/109955) +* [GetUser](https://cloud.tencent.com/document/api/850/109926) +* [GetUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109947) +* [GetZoneSAMLServiceProviderInfo](https://cloud.tencent.com/document/api/850/109963) +* [GetZoneStatistics](https://cloud.tencent.com/document/api/850/109942) +* [ListExternalSAMLIdPCertificates](https://cloud.tencent.com/document/api/850/109962) +* [ListGroupMembers](https://cloud.tencent.com/document/api/850/109917) +* [ListGroups](https://cloud.tencent.com/document/api/850/109916) +* [ListJoinedGroupsForUser](https://cloud.tencent.com/document/api/850/109915) +* [ListPermissionPoliciesInRoleConfiguration](https://cloud.tencent.com/document/api/850/109934) +* [ListRoleAssignments](https://cloud.tencent.com/document/api/850/109954) +* [ListRoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/109933) +* [ListRoleConfigurations](https://cloud.tencent.com/document/api/850/109932) +* [ListTasks](https://cloud.tencent.com/document/api/850/109953) +* [ListUserSyncProvisionings](https://cloud.tencent.com/document/api/850/109946) +* [ListUsers](https://cloud.tencent.com/document/api/850/109925) +* [OpenIdentityCenter](https://cloud.tencent.com/document/api/850/109941) +* [ProvisionRoleConfiguration](https://cloud.tencent.com/document/api/850/109952) +* [RemoveExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109961) +* [RemovePermissionPolicyFromRoleConfiguration](https://cloud.tencent.com/document/api/850/109931) +* [RemoveUserFromGroup](https://cloud.tencent.com/document/api/850/109914) +* [SetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109960) +* [UpdateGroup](https://cloud.tencent.com/document/api/850/109913) +* [UpdateRoleConfiguration](https://cloud.tencent.com/document/api/850/109930) +* [UpdateUser](https://cloud.tencent.com/document/api/850/109924) +* [UpdateUserStatus](https://cloud.tencent.com/document/api/850/109923) +* [UpdateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109945) +* [UpdateZone](https://cloud.tencent.com/document/api/850/109940) + +新增数据结构: + +* [GroupInfo](https://cloud.tencent.com/document/api/850/67060#GroupInfo) +* [GroupMembers](https://cloud.tencent.com/document/api/850/67060#GroupMembers) +* [JoinedGroups](https://cloud.tencent.com/document/api/850/67060#JoinedGroups) +* [PolicyDetail](https://cloud.tencent.com/document/api/850/67060#PolicyDetail) +* [RoleAssignmentInfo](https://cloud.tencent.com/document/api/850/67060#RoleAssignmentInfo) +* [RoleAssignments](https://cloud.tencent.com/document/api/850/67060#RoleAssignments) +* [RoleConfiguration](https://cloud.tencent.com/document/api/850/67060#RoleConfiguration) +* [RoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/67060#RoleConfigurationProvisionings) +* [RolePolicie](https://cloud.tencent.com/document/api/850/67060#RolePolicie) +* [RoleProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#RoleProvisioningsTask) +* [SAMLIdPCertificate](https://cloud.tencent.com/document/api/850/67060#SAMLIdPCertificate) +* [SAMLIdentityProviderConfiguration](https://cloud.tencent.com/document/api/850/67060#SAMLIdentityProviderConfiguration) +* [SAMLServiceProvider](https://cloud.tencent.com/document/api/850/67060#SAMLServiceProvider) +* [TaskInfo](https://cloud.tencent.com/document/api/850/67060#TaskInfo) +* [TaskStatus](https://cloud.tencent.com/document/api/850/67060#TaskStatus) +* [UserInfo](https://cloud.tencent.com/document/api/850/67060#UserInfo) +* [UserProvisioning](https://cloud.tencent.com/document/api/850/67060#UserProvisioning) +* [UserProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#UserProvisioningsTask) +* [UserSyncProvisioning](https://cloud.tencent.com/document/api/850/67060#UserSyncProvisioning) +* [ZoneStatistics](https://cloud.tencent.com/document/api/850/67060#ZoneStatistics) + + + +## 集团账号管理(organization) 版本:2018-12-25 + + + +## 自动化助手(tat) 版本:2020-10-28 + +### 第 23 次发布 + +发布时间:2024-08-14 02:23:52 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [DescribeScenes](https://cloud.tencent.com/document/api/1340/109968) + +新增数据结构: + +* [Scene](https://cloud.tencent.com/document/api/1340/52687#Scene) + + + +## 消息队列 RocketMQ 版(trocket) 版本:2023-03-08 + +### 第 19 次发布 + +发布时间:2024-08-14 02:39:09 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [CreateInstance](https://cloud.tencent.com/document/api/1493/97868) + + * 新增入参:BillingFlow + + +修改数据结构: + +* [SourceClusterGroupConfig](https://cloud.tencent.com/document/api/1493/96031#SourceClusterGroupConfig) + + * 新增成员:NamespaceV4, GroupNameV4, FullNamespaceV4, ConsumeMessageOrderly + + + + # Release 3.0.1171.1 ## 主机安全(cwp) 版本:2018-02-28 diff --git a/SERVICE_CHANGELOG.md b/SERVICE_CHANGELOG.md index 078d466344..673995278c 100644 --- a/SERVICE_CHANGELOG.md +++ b/SERVICE_CHANGELOG.md @@ -1,42 +1,274 @@ # 本版本更新包含以下内容: -## 主机安全(cwp) 版本:2018-02-28 +## 费用中心(billing) 版本:2018-07-09 -### 第 120 次发布 +### 第 61 次发布 -发布时间:2024-08-13 01:26:39 +发布时间:2024-08-14 01:07:50 本次发布包含了以下内容: 改善已有的文档。 -**预下线接口**: +修改数据结构: -* DescribeCloudProtectServiceOrderList +* [UsageDetails](https://cloud.tencent.com/document/api/555/19183#UsageDetails) + * 新增成员:ProductCode, SubProductCode, BillingItemCode, SubBillingItemCode, ProductEnName, SubProductEnName, CalcUnit, Action +* [UsageRecords](https://cloud.tencent.com/document/api/555/19183#UsageRecords) -## 私有网络(vpc) 版本:2017-03-12 + * 新增成员:PayMode, VoucherId, PayScene, SeqId -### 第 200 次发布 -发布时间:2024-08-13 02:46:47 + + +## Elasticsearch Service(es) 版本:2018-04-16 + +### 第 65 次发布 + +发布时间:2024-08-14 01:44:38 本次发布包含了以下内容: 改善已有的文档。 +修改接口: + +* [CreateServerlessSpaceV2](https://cloud.tencent.com/document/api/845/104317) + + * 新增入参:TagList + +* [DescribeServerlessMetrics](https://cloud.tencent.com/document/api/845/108288) + + * 新增入参:DurationType + + * 新增出参:IndexTraffic, ReadReqTimes, WriteReqTimes, DocCount + +* [DescribeServerlessSpaces](https://cloud.tencent.com/document/api/845/104313) + + * 新增入参:TagList + + 修改数据结构: -* [CCN](https://cloud.tencent.com/document/api/215/15824#CCN) +* [ServerlessIndexMetaField](https://cloud.tencent.com/document/api/845/30634#ServerlessIndexMetaField) - * 新增成员:Ipv6Flag + * 新增成员:IndexTraffic -* [CcnRoute](https://cloud.tencent.com/document/api/215/15824#CcnRoute) +* [ServerlessSpace](https://cloud.tencent.com/document/api/845/30634#ServerlessSpace) - * 新增成员:AliasType, AliasInstanceId + * 新增成员:TagList - * **修改成员**:RouteId + + + +## 腾讯电子签企业版(ess) 版本:2020-11-11 + +### 第 182 次发布 + +发布时间:2024-08-14 01:45:25 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1323/109910) + + + +## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 + +### 第 178 次发布 + +发布时间:2024-08-14 01:46:41 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1420/109911) + + + +## 腾讯电子签(基础版)(essbasic) 版本:2020-12-22 + + + +## 移动应用安全(ms) 版本:2018-04-08 + +### 第 21 次发布 + +发布时间:2024-08-14 02:10:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +**预下线接口**: + +* CancelEncryptTask +* CreateBindInstance +* CreateCosSecKeyInstance +* CreateEncryptInstance +* CreateOrderInstance +* CreateResourceInstances +* CreateShieldInstance +* CreateShieldPlanInstance +* DeleteShieldInstances +* DescribeApkDetectionResult +* DescribeEncryptInstances +* DescribeEncryptPlan +* DescribeOrderInstances +* DescribeResourceInstances +* DescribeShieldInstances +* DescribeShieldPlanInstance +* DescribeShieldResult +* DescribeUrlDetectionResult +* DescribeUserBaseInfoInstance +* DestroyResourceInstances +* RequestLocalTask +* UpdateClientState +* UpdateLocalTaskResult + + + +## 集团账号管理(organization) 版本:2021-03-31 + +### 第 36 次发布 + +发布时间:2024-08-14 02:13:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [AddExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109966) +* [AddPermissionPolicyToRoleConfiguration](https://cloud.tencent.com/document/api/850/109938) +* [AddUserToGroup](https://cloud.tencent.com/document/api/850/109921) +* [ClearExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109965) +* [CreateGroup](https://cloud.tencent.com/document/api/850/109920) +* [CreateRoleAssignment](https://cloud.tencent.com/document/api/850/109958) +* [CreateRoleConfiguration](https://cloud.tencent.com/document/api/850/109937) +* [CreateUser](https://cloud.tencent.com/document/api/850/109928) +* [CreateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109950) +* [DeleteGroup](https://cloud.tencent.com/document/api/850/109919) +* [DeleteRoleAssignment](https://cloud.tencent.com/document/api/850/109957) +* [DeleteRoleConfiguration](https://cloud.tencent.com/document/api/850/109936) +* [DeleteUser](https://cloud.tencent.com/document/api/850/109927) +* [DeleteUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109949) +* [DescribeIdentityCenter](https://cloud.tencent.com/document/api/850/109943) +* [DismantleRoleConfiguration](https://cloud.tencent.com/document/api/850/109956) +* [GetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109964) +* [GetGroup](https://cloud.tencent.com/document/api/850/109918) +* [GetProvisioningTaskStatus](https://cloud.tencent.com/document/api/850/109948) +* [GetRoleConfiguration](https://cloud.tencent.com/document/api/850/109935) +* [GetTaskStatus](https://cloud.tencent.com/document/api/850/109955) +* [GetUser](https://cloud.tencent.com/document/api/850/109926) +* [GetUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109947) +* [GetZoneSAMLServiceProviderInfo](https://cloud.tencent.com/document/api/850/109963) +* [GetZoneStatistics](https://cloud.tencent.com/document/api/850/109942) +* [ListExternalSAMLIdPCertificates](https://cloud.tencent.com/document/api/850/109962) +* [ListGroupMembers](https://cloud.tencent.com/document/api/850/109917) +* [ListGroups](https://cloud.tencent.com/document/api/850/109916) +* [ListJoinedGroupsForUser](https://cloud.tencent.com/document/api/850/109915) +* [ListPermissionPoliciesInRoleConfiguration](https://cloud.tencent.com/document/api/850/109934) +* [ListRoleAssignments](https://cloud.tencent.com/document/api/850/109954) +* [ListRoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/109933) +* [ListRoleConfigurations](https://cloud.tencent.com/document/api/850/109932) +* [ListTasks](https://cloud.tencent.com/document/api/850/109953) +* [ListUserSyncProvisionings](https://cloud.tencent.com/document/api/850/109946) +* [ListUsers](https://cloud.tencent.com/document/api/850/109925) +* [OpenIdentityCenter](https://cloud.tencent.com/document/api/850/109941) +* [ProvisionRoleConfiguration](https://cloud.tencent.com/document/api/850/109952) +* [RemoveExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109961) +* [RemovePermissionPolicyFromRoleConfiguration](https://cloud.tencent.com/document/api/850/109931) +* [RemoveUserFromGroup](https://cloud.tencent.com/document/api/850/109914) +* [SetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109960) +* [UpdateGroup](https://cloud.tencent.com/document/api/850/109913) +* [UpdateRoleConfiguration](https://cloud.tencent.com/document/api/850/109930) +* [UpdateUser](https://cloud.tencent.com/document/api/850/109924) +* [UpdateUserStatus](https://cloud.tencent.com/document/api/850/109923) +* [UpdateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109945) +* [UpdateZone](https://cloud.tencent.com/document/api/850/109940) + +新增数据结构: + +* [GroupInfo](https://cloud.tencent.com/document/api/850/67060#GroupInfo) +* [GroupMembers](https://cloud.tencent.com/document/api/850/67060#GroupMembers) +* [JoinedGroups](https://cloud.tencent.com/document/api/850/67060#JoinedGroups) +* [PolicyDetail](https://cloud.tencent.com/document/api/850/67060#PolicyDetail) +* [RoleAssignmentInfo](https://cloud.tencent.com/document/api/850/67060#RoleAssignmentInfo) +* [RoleAssignments](https://cloud.tencent.com/document/api/850/67060#RoleAssignments) +* [RoleConfiguration](https://cloud.tencent.com/document/api/850/67060#RoleConfiguration) +* [RoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/67060#RoleConfigurationProvisionings) +* [RolePolicie](https://cloud.tencent.com/document/api/850/67060#RolePolicie) +* [RoleProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#RoleProvisioningsTask) +* [SAMLIdPCertificate](https://cloud.tencent.com/document/api/850/67060#SAMLIdPCertificate) +* [SAMLIdentityProviderConfiguration](https://cloud.tencent.com/document/api/850/67060#SAMLIdentityProviderConfiguration) +* [SAMLServiceProvider](https://cloud.tencent.com/document/api/850/67060#SAMLServiceProvider) +* [TaskInfo](https://cloud.tencent.com/document/api/850/67060#TaskInfo) +* [TaskStatus](https://cloud.tencent.com/document/api/850/67060#TaskStatus) +* [UserInfo](https://cloud.tencent.com/document/api/850/67060#UserInfo) +* [UserProvisioning](https://cloud.tencent.com/document/api/850/67060#UserProvisioning) +* [UserProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#UserProvisioningsTask) +* [UserSyncProvisioning](https://cloud.tencent.com/document/api/850/67060#UserSyncProvisioning) +* [ZoneStatistics](https://cloud.tencent.com/document/api/850/67060#ZoneStatistics) + + + +## 集团账号管理(organization) 版本:2018-12-25 + + + +## 自动化助手(tat) 版本:2020-10-28 + +### 第 23 次发布 + +发布时间:2024-08-14 02:23:52 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [DescribeScenes](https://cloud.tencent.com/document/api/1340/109968) + +新增数据结构: + +* [Scene](https://cloud.tencent.com/document/api/1340/52687#Scene) + + + +## 消息队列 RocketMQ 版(trocket) 版本:2023-03-08 + +### 第 19 次发布 + +发布时间:2024-08-14 02:39:09 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [CreateInstance](https://cloud.tencent.com/document/api/1493/97868) + + * 新增入参:BillingFlow + + +修改数据结构: + +* [SourceClusterGroupConfig](https://cloud.tencent.com/document/api/1493/96031#SourceClusterGroupConfig) + + * 新增成员:NamespaceV4, GroupNameV4, FullNamespaceV4, ConsumeMessageOrderly @@ -9215,6 +9447,25 @@ ## 费用中心(billing) 版本:2018-07-09 +### 第 61 次发布 + +发布时间:2024-08-14 01:07:50 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改数据结构: + +* [UsageDetails](https://cloud.tencent.com/document/api/555/19183#UsageDetails) + + * 新增成员:ProductCode, SubProductCode, BillingItemCode, SubBillingItemCode, ProductEnName, SubProductEnName, CalcUnit, Action + +* [UsageRecords](https://cloud.tencent.com/document/api/555/19183#UsageRecords) + + * 新增成员:PayMode, VoucherId, PayScene, SeqId + + ### 第 60 次发布 发布时间:2024-06-21 01:11:19 @@ -62298,6 +62549,42 @@ ## Elasticsearch Service(es) 版本:2018-04-16 +### 第 65 次发布 + +发布时间:2024-08-14 01:44:38 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [CreateServerlessSpaceV2](https://cloud.tencent.com/document/api/845/104317) + + * 新增入参:TagList + +* [DescribeServerlessMetrics](https://cloud.tencent.com/document/api/845/108288) + + * 新增入参:DurationType + + * 新增出参:IndexTraffic, ReadReqTimes, WriteReqTimes, DocCount + +* [DescribeServerlessSpaces](https://cloud.tencent.com/document/api/845/104313) + + * 新增入参:TagList + + +修改数据结构: + +* [ServerlessIndexMetaField](https://cloud.tencent.com/document/api/845/30634#ServerlessIndexMetaField) + + * 新增成员:IndexTraffic + +* [ServerlessSpace](https://cloud.tencent.com/document/api/845/30634#ServerlessSpace) + + * 新增成员:TagList + + ### 第 64 次发布 发布时间:2024-08-08 01:41:08 @@ -63709,6 +63996,18 @@ ## 腾讯电子签企业版(ess) 版本:2020-11-11 +### 第 182 次发布 + +发布时间:2024-08-14 01:45:25 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1323/109910)](https://cloud.tencent.com/document/api/#/#) + ### 第 181 次发布 发布时间:2024-07-25 01:39:56 @@ -67160,6 +67459,18 @@ ## 腾讯电子签(基础版)(essbasic) 版本:2021-05-26 +### 第 178 次发布 + +发布时间:2024-08-14 01:46:41 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[CreateBatchInitOrganizationUrl](https://cloud.tencent.com/document/api/1420/109911)](https://cloud.tencent.com/document/api/#/#) + ### 第 177 次发布 发布时间:2024-07-31 01:36:50 @@ -99280,6 +99591,40 @@ ## 移动应用安全(ms) 版本:2018-04-08 +### 第 21 次发布 + +发布时间:2024-08-14 02:10:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +**预下线接口**: + +* CancelEncryptTask +* CreateBindInstance +* CreateCosSecKeyInstance +* CreateEncryptInstance +* CreateOrderInstance +* CreateResourceInstances +* CreateShieldInstance +* CreateShieldPlanInstance +* DeleteShieldInstances +* DescribeApkDetectionResult +* DescribeEncryptInstances +* DescribeEncryptPlan +* DescribeOrderInstances +* DescribeResourceInstances +* DescribeShieldInstances +* DescribeShieldPlanInstance +* DescribeShieldResult +* DescribeUrlDetectionResult +* DescribeUserBaseInfoInstance +* DestroyResourceInstances +* RequestLocalTask +* UpdateClientState +* UpdateLocalTaskResult + ### 第 20 次发布 发布时间:2023-12-05 02:07:42 @@ -104689,6 +105034,88 @@ ## 集团账号管理(organization) 版本:2021-03-31 +### 第 36 次发布 + +发布时间:2024-08-14 02:13:26 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[AddExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109966)](https://cloud.tencent.com/document/api/#/#) +* [[AddPermissionPolicyToRoleConfiguration](https://cloud.tencent.com/document/api/850/109938)](https://cloud.tencent.com/document/api/#/#) +* [[AddUserToGroup](https://cloud.tencent.com/document/api/850/109921)](https://cloud.tencent.com/document/api/#/#) +* [[ClearExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109965)](https://cloud.tencent.com/document/api/#/#) +* [[CreateGroup](https://cloud.tencent.com/document/api/850/109920)](https://cloud.tencent.com/document/api/#/#) +* [[CreateRoleAssignment](https://cloud.tencent.com/document/api/850/109958)](https://cloud.tencent.com/document/api/#/#) +* [[CreateRoleConfiguration](https://cloud.tencent.com/document/api/850/109937)](https://cloud.tencent.com/document/api/#/#) +* [[CreateUser](https://cloud.tencent.com/document/api/850/109928)](https://cloud.tencent.com/document/api/#/#) +* [[CreateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109950)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteGroup](https://cloud.tencent.com/document/api/850/109919)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteRoleAssignment](https://cloud.tencent.com/document/api/850/109957)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteRoleConfiguration](https://cloud.tencent.com/document/api/850/109936)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteUser](https://cloud.tencent.com/document/api/850/109927)](https://cloud.tencent.com/document/api/#/#) +* [[DeleteUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109949)](https://cloud.tencent.com/document/api/#/#) +* [[DescribeIdentityCenter](https://cloud.tencent.com/document/api/850/109943)](https://cloud.tencent.com/document/api/#/#) +* [[DismantleRoleConfiguration](https://cloud.tencent.com/document/api/850/109956)](https://cloud.tencent.com/document/api/#/#) +* [[GetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109964)](https://cloud.tencent.com/document/api/#/#) +* [[GetGroup](https://cloud.tencent.com/document/api/850/109918)](https://cloud.tencent.com/document/api/#/#) +* [[GetProvisioningTaskStatus](https://cloud.tencent.com/document/api/850/109948)](https://cloud.tencent.com/document/api/#/#) +* [[GetRoleConfiguration](https://cloud.tencent.com/document/api/850/109935)](https://cloud.tencent.com/document/api/#/#) +* [[GetTaskStatus](https://cloud.tencent.com/document/api/850/109955)](https://cloud.tencent.com/document/api/#/#) +* [[GetUser](https://cloud.tencent.com/document/api/850/109926)](https://cloud.tencent.com/document/api/#/#) +* [[GetUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109947)](https://cloud.tencent.com/document/api/#/#) +* [[GetZoneSAMLServiceProviderInfo](https://cloud.tencent.com/document/api/850/109963)](https://cloud.tencent.com/document/api/#/#) +* [[GetZoneStatistics](https://cloud.tencent.com/document/api/850/109942)](https://cloud.tencent.com/document/api/#/#) +* [[ListExternalSAMLIdPCertificates](https://cloud.tencent.com/document/api/850/109962)](https://cloud.tencent.com/document/api/#/#) +* [[ListGroupMembers](https://cloud.tencent.com/document/api/850/109917)](https://cloud.tencent.com/document/api/#/#) +* [[ListGroups](https://cloud.tencent.com/document/api/850/109916)](https://cloud.tencent.com/document/api/#/#) +* [[ListJoinedGroupsForUser](https://cloud.tencent.com/document/api/850/109915)](https://cloud.tencent.com/document/api/#/#) +* [[ListPermissionPoliciesInRoleConfiguration](https://cloud.tencent.com/document/api/850/109934)](https://cloud.tencent.com/document/api/#/#) +* [[ListRoleAssignments](https://cloud.tencent.com/document/api/850/109954)](https://cloud.tencent.com/document/api/#/#) +* [[ListRoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/109933)](https://cloud.tencent.com/document/api/#/#) +* [[ListRoleConfigurations](https://cloud.tencent.com/document/api/850/109932)](https://cloud.tencent.com/document/api/#/#) +* [[ListTasks](https://cloud.tencent.com/document/api/850/109953)](https://cloud.tencent.com/document/api/#/#) +* [[ListUserSyncProvisionings](https://cloud.tencent.com/document/api/850/109946)](https://cloud.tencent.com/document/api/#/#) +* [[ListUsers](https://cloud.tencent.com/document/api/850/109925)](https://cloud.tencent.com/document/api/#/#) +* [[OpenIdentityCenter](https://cloud.tencent.com/document/api/850/109941)](https://cloud.tencent.com/document/api/#/#) +* [[ProvisionRoleConfiguration](https://cloud.tencent.com/document/api/850/109952)](https://cloud.tencent.com/document/api/#/#) +* [[RemoveExternalSAMLIdPCertificate](https://cloud.tencent.com/document/api/850/109961)](https://cloud.tencent.com/document/api/#/#) +* [[RemovePermissionPolicyFromRoleConfiguration](https://cloud.tencent.com/document/api/850/109931)](https://cloud.tencent.com/document/api/#/#) +* [[RemoveUserFromGroup](https://cloud.tencent.com/document/api/850/109914)](https://cloud.tencent.com/document/api/#/#) +* [[SetExternalSAMLIdentityProvider](https://cloud.tencent.com/document/api/850/109960)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateGroup](https://cloud.tencent.com/document/api/850/109913)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateRoleConfiguration](https://cloud.tencent.com/document/api/850/109930)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateUser](https://cloud.tencent.com/document/api/850/109924)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateUserStatus](https://cloud.tencent.com/document/api/850/109923)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateUserSyncProvisioning](https://cloud.tencent.com/document/api/850/109945)](https://cloud.tencent.com/document/api/#/#) +* [[UpdateZone](https://cloud.tencent.com/document/api/850/109940)](https://cloud.tencent.com/document/api/#/#) + +新增数据结构: + +* [[GroupInfo](https://cloud.tencent.com/document/api/850/67060#GroupInfo)](https://cloud.tencent.com/document/api/850/67060#[GroupInfo](https://cloud.tencent.com/document/api/850/67060#GroupInfo)) +* [[GroupMembers](https://cloud.tencent.com/document/api/850/67060#GroupMembers)](https://cloud.tencent.com/document/api/850/67060#[GroupMembers](https://cloud.tencent.com/document/api/850/67060#GroupMembers)) +* [[JoinedGroups](https://cloud.tencent.com/document/api/850/67060#JoinedGroups)](https://cloud.tencent.com/document/api/850/67060#[JoinedGroups](https://cloud.tencent.com/document/api/850/67060#JoinedGroups)) +* [[PolicyDetail](https://cloud.tencent.com/document/api/850/67060#PolicyDetail)](https://cloud.tencent.com/document/api/850/67060#[PolicyDetail](https://cloud.tencent.com/document/api/850/67060#PolicyDetail)) +* [[RoleAssignmentInfo](https://cloud.tencent.com/document/api/850/67060#RoleAssignmentInfo)](https://cloud.tencent.com/document/api/850/67060#[RoleAssignmentInfo](https://cloud.tencent.com/document/api/850/67060#RoleAssignmentInfo)) +* [[RoleAssignments](https://cloud.tencent.com/document/api/850/67060#RoleAssignments)](https://cloud.tencent.com/document/api/850/67060#[RoleAssignments](https://cloud.tencent.com/document/api/850/67060#RoleAssignments)) +* [[RoleConfiguration](https://cloud.tencent.com/document/api/850/67060#RoleConfiguration)](https://cloud.tencent.com/document/api/850/67060#[RoleConfiguration](https://cloud.tencent.com/document/api/850/67060#RoleConfiguration)) +* [[RoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/67060#RoleConfigurationProvisionings)](https://cloud.tencent.com/document/api/850/67060#[RoleConfigurationProvisionings](https://cloud.tencent.com/document/api/850/67060#RoleConfigurationProvisionings)) +* [[RolePolicie](https://cloud.tencent.com/document/api/850/67060#RolePolicie)](https://cloud.tencent.com/document/api/850/67060#[RolePolicie](https://cloud.tencent.com/document/api/850/67060#RolePolicie)) +* [[RoleProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#RoleProvisioningsTask)](https://cloud.tencent.com/document/api/850/67060#[RoleProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#RoleProvisioningsTask)) +* [[SAMLIdPCertificate](https://cloud.tencent.com/document/api/850/67060#SAMLIdPCertificate)](https://cloud.tencent.com/document/api/850/67060#[SAMLIdPCertificate](https://cloud.tencent.com/document/api/850/67060#SAMLIdPCertificate)) +* [[SAMLIdentityProviderConfiguration](https://cloud.tencent.com/document/api/850/67060#SAMLIdentityProviderConfiguration)](https://cloud.tencent.com/document/api/850/67060#[SAMLIdentityProviderConfiguration](https://cloud.tencent.com/document/api/850/67060#SAMLIdentityProviderConfiguration)) +* [[SAMLServiceProvider](https://cloud.tencent.com/document/api/850/67060#SAMLServiceProvider)](https://cloud.tencent.com/document/api/850/67060#[SAMLServiceProvider](https://cloud.tencent.com/document/api/850/67060#SAMLServiceProvider)) +* [[TaskInfo](https://cloud.tencent.com/document/api/850/67060#TaskInfo)](https://cloud.tencent.com/document/api/850/67060#[TaskInfo](https://cloud.tencent.com/document/api/850/67060#TaskInfo)) +* [[TaskStatus](https://cloud.tencent.com/document/api/850/67060#TaskStatus)](https://cloud.tencent.com/document/api/850/67060#[TaskStatus](https://cloud.tencent.com/document/api/850/67060#TaskStatus)) +* [[UserInfo](https://cloud.tencent.com/document/api/850/67060#UserInfo)](https://cloud.tencent.com/document/api/850/67060#[UserInfo](https://cloud.tencent.com/document/api/850/67060#UserInfo)) +* [[UserProvisioning](https://cloud.tencent.com/document/api/850/67060#UserProvisioning)](https://cloud.tencent.com/document/api/850/67060#[UserProvisioning](https://cloud.tencent.com/document/api/850/67060#UserProvisioning)) +* [[UserProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#UserProvisioningsTask)](https://cloud.tencent.com/document/api/850/67060#[UserProvisioningsTask](https://cloud.tencent.com/document/api/850/67060#UserProvisioningsTask)) +* [[UserSyncProvisioning](https://cloud.tencent.com/document/api/850/67060#UserSyncProvisioning)](https://cloud.tencent.com/document/api/850/67060#[UserSyncProvisioning](https://cloud.tencent.com/document/api/850/67060#UserSyncProvisioning)) +* [[ZoneStatistics](https://cloud.tencent.com/document/api/850/67060#ZoneStatistics)](https://cloud.tencent.com/document/api/850/67060#[ZoneStatistics](https://cloud.tencent.com/document/api/850/67060#ZoneStatistics)) + ### 第 35 次发布 发布时间:2024-08-09 02:00:03 @@ -117106,6 +117533,22 @@ ## 自动化助手(tat) 版本:2020-10-28 +### 第 23 次发布 + +发布时间:2024-08-14 02:23:52 + +本次发布包含了以下内容: + +改善已有的文档。 + +新增接口: + +* [[DescribeScenes](https://cloud.tencent.com/document/api/1340/109968)](https://cloud.tencent.com/document/api/#/#) + +新增数据结构: + +* [[Scene](https://cloud.tencent.com/document/api/1340/52687#Scene)](https://cloud.tencent.com/document/api/1340/52687#[Scene](https://cloud.tencent.com/document/api/1340/52687#Scene)) + ### 第 22 次发布 发布时间:2023-12-15 20:16:37 @@ -141542,6 +141985,28 @@ ## 消息队列 RocketMQ 版(trocket) 版本:2023-03-08 +### 第 19 次发布 + +发布时间:2024-08-14 02:39:09 + +本次发布包含了以下内容: + +改善已有的文档。 + +修改接口: + +* [CreateInstance](https://cloud.tencent.com/document/api/1493/97868) + + * 新增入参:BillingFlow + + +修改数据结构: + +* [SourceClusterGroupConfig](https://cloud.tencent.com/document/api/1493/96031#SourceClusterGroupConfig) + + * 新增成员:NamespaceV4, GroupNameV4, FullNamespaceV4, ConsumeMessageOrderly + + ### 第 18 次发布 发布时间:2024-08-08 17:17:39 diff --git a/products.md b/products.md index c0b760c5ff..0523ad599b 100644 --- a/products.md +++ b/products.md @@ -23,7 +23,7 @@ | batch | [批量计算](https://cloud.tencent.com/document/product/599) | 2024-06-25 01:07:59 | | bda | [人体分析](https://cloud.tencent.com/document/product/1208) | 2024-03-20 01:08:23 | | bi | [商业智能分析 BI](https://cloud.tencent.com/document/product/590) | 2024-07-26 01:11:20 | -| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2024-07-19 01:11:48 | +| billing | [费用中心](https://cloud.tencent.com/document/product/555) | 2024-08-14 01:07:50 | | bizlive | [商业直播](https://cloud.tencent.com/document/product) | 2020-03-10 01:08:07 | | bm | [黑石物理服务器CPM](https://cloud.tencent.com/document/product/386) | 2024-03-20 01:08:40 | | bma | [品牌经营管家](https://cloud.tencent.com/document/product/1296) | 2024-04-24 01:05:22 | @@ -97,11 +97,11 @@ | eiam | [数字身份管控平台(员工版)](https://cloud.tencent.com/document/product/1442) | 2024-06-25 01:14:34 | | eis | [数据连接器](https://cloud.tencent.com/document/product/1270) | 2023-08-10 01:17:44 | | emr | [弹性 MapReduce](https://cloud.tencent.com/document/product/589) | 2024-08-12 01:41:17 | -| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-08-08 01:41:08 | -| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-08-07 01:41:05 | -| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-08-09 01:38:33 | +| es | [Elasticsearch Service](https://cloud.tencent.com/document/product/845) | 2024-08-14 01:44:38 | +| ess | [腾讯电子签企业版](https://cloud.tencent.com/document/product/1323) | 2024-08-14 01:45:25 | +| essbasic | [腾讯电子签(基础版)](https://cloud.tencent.com/document/product/1420) | 2024-08-14 01:46:41 | | facefusion | [人脸融合](https://cloud.tencent.com/document/product/670) | 2024-07-16 01:16:45 | -| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-07-31 01:37:45 | +| faceid | [人脸核身](https://cloud.tencent.com/document/product/1007) | 2024-08-14 01:47:53 | | fmu | [人脸试妆](https://cloud.tencent.com/document/product/1172) | 2024-07-05 01:10:44 | | ft | [人像变换](https://cloud.tencent.com/document/product/1202) | 2024-03-20 01:17:13 | | gaap | [全球应用加速](https://cloud.tencent.com/document/product/608) | 2024-07-23 01:36:12 | @@ -136,7 +136,7 @@ | kms | [密钥管理系统](https://cloud.tencent.com/document/product/573) | 2024-04-17 01:17:16 | | lcic | [实时互动-教育版](https://cloud.tencent.com/document/product/1639) | 2024-08-01 01:53:15 | | lighthouse | [轻量应用服务器](https://cloud.tencent.com/document/product/1207) | 2024-07-26 01:52:51 | -| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-08-13 02:01:31 | +| live | [云直播CSS](https://cloud.tencent.com/document/product/267) | 2024-08-14 02:01:47 | | lke | [大模型知识引擎](https://cloud.tencent.com/document/product/1759) | 2024-08-09 01:52:09 | | lowcode | [云开发低码](https://cloud.tencent.com/document/product/1301) | 2022-04-04 06:56:51 | | lp | [登录保护](https://cloud.tencent.com/document/product/1190) | 2022-04-04 06:56:52 | @@ -147,19 +147,19 @@ | mgobe | [游戏联机对战引擎](https://cloud.tencent.com/document/product/1038) | 2022-07-08 06:11:32 | | mmps | [小程序安全](https://cloud.tencent.com/document/product/1223) | 2024-07-02 01:19:41 | | mna | [多网聚合加速](https://cloud.tencent.com/document/product/1385) | 2024-07-22 01:55:24 | -| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-07-25 01:56:02 | +| mongodb | [云数据库 MongoDB](https://cloud.tencent.com/document/product/240) | 2024-08-14 02:06:02 | | monitor | [腾讯云可观测平台](https://cloud.tencent.com/document/product/248) | 2024-08-05 01:52:14 | | mps | [媒体处理](https://cloud.tencent.com/document/product/862) | 2024-08-02 01:54:19 | | mrs | [医疗报告结构化](https://cloud.tencent.com/document/product/1314) | 2024-06-14 02:16:42 | -| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-06-05 02:02:03 | +| ms | [移动应用安全](https://cloud.tencent.com/document/product/283) | 2024-08-14 02:10:26 | | msp | [迁移服务平台](https://cloud.tencent.com/document/product/659) | 2024-04-17 14:48:31 | | mvj | [营销价值判断](https://cloud.tencent.com/document/product) | 2020-03-19 08:11:44 | | nlp | [NLP 服务](https://cloud.tencent.com/document/product/271) | 2024-05-07 01:22:11 | | npp | [号码保护](https://cloud.tencent.com/document/product) | 2020-04-22 08:00:22 | | oceanus | [流计算 Oceanus](https://cloud.tencent.com/document/product/849) | 2024-07-23 01:53:12 | -| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-08-13 02:11:08 | +| ocr | [文字识别](https://cloud.tencent.com/document/product/866) | 2024-08-14 02:11:42 | | omics | [腾讯健康组学平台](https://cloud.tencent.com/document/product/1643) | 2024-06-13 02:11:33 | -| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-08-13 02:12:50 | +| organization | [集团账号管理](https://cloud.tencent.com/document/product/850) | 2024-08-14 02:13:26 | | partners | [渠道合作伙伴](https://cloud.tencent.com/document/product/563) | 2024-06-26 01:21:35 | | pds | [私域安全](https://cloud.tencent.com/document/product/1473) | 2023-05-18 01:44:14 | | postgres | [云数据库 PostgreSQL](https://cloud.tencent.com/document/product/409) | 2024-07-23 01:55:36 | @@ -189,7 +189,7 @@ | taf | [流量反欺诈](https://cloud.tencent.com/document/product/1031) | 2024-06-12 02:24:32 | | tag | [标签](https://cloud.tencent.com/document/product/651) | 2024-03-22 01:21:43 | | tan | [碳引擎](https://cloud.tencent.com/document/product/1498) | 2024-03-20 01:24:15 | -| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2024-06-05 02:12:06 | +| tat | [自动化助手](https://cloud.tencent.com/document/product/1340) | 2024-08-14 02:23:52 | | tav | [文件检测](https://cloud.tencent.com/document/product) | 2019-11-28 22:10:04 | | tbaas | [腾讯云区块链服务平台 TBaaS](https://cloud.tencent.com/document/product/663) | 2024-05-14 02:28:40 | | tbm | [](https://cloud.tencent.com/document/product) | 2019-03-29 14:49:11 | @@ -224,7 +224,7 @@ | tmt | [机器翻译](https://cloud.tencent.com/document/product/551) | 2024-08-02 02:17:43 | | tourism | [文旅客情大数据](https://cloud.tencent.com/document/product/1684) | 2024-03-20 01:28:59 | | trdp | [流量风险决策平台](https://cloud.tencent.com/document/product/1604) | 2023-05-18 02:01:19 | -| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-08-08 17:17:39 | +| trocket | [消息队列 RocketMQ 版](https://cloud.tencent.com/document/product/1493) | 2024-08-14 02:39:09 | | trp | [T-Sec-安心平台(RP)](https://cloud.tencent.com/document/product/1458) | 2024-06-06 02:42:14 | | trro | [远程实时操控](https://cloud.tencent.com/document/product/1584) | 2024-07-31 02:17:29 | | trtc | [实时音视频](https://cloud.tencent.com/document/product/647) | 2024-08-12 02:26:47 | diff --git a/pyproject.toml b/pyproject.toml index 20a62d6cb7..639dc4db77 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -7,7 +7,7 @@ exclude = ["tccli/examples"] [project] name = "tccli" -version = "3.0.1171.1" +version = "3.0.1172.1" authors = [ { name="tencentcloudapi", email="tencentcloudapi@tencent.com" }, ] @@ -24,7 +24,7 @@ classifiers = [ dependencies = [ "jmespath==0.10.0", "six==1.16.0", - "tencentcloud-sdk-python>=3.0.1171", + "tencentcloud-sdk-python>=3.0.1172", ] [project.urls] diff --git a/tccli/__init__.py b/tccli/__init__.py index d2f91360cf..700970eefd 100644 --- a/tccli/__init__.py +++ b/tccli/__init__.py @@ -1 +1 @@ -__version__ = '3.0.1171.1' +__version__ = '3.0.1172.1' diff --git a/tccli/examples/ess/v20201111/CreateBatchInitOrganizationUrl.md b/tccli/examples/ess/v20201111/CreateBatchInitOrganizationUrl.md new file mode 100644 index 0000000000..cd70c3671a --- /dev/null +++ b/tccli/examples/ess/v20201111/CreateBatchInitOrganizationUrl.md @@ -0,0 +1,26 @@ +**Example 1: 创建批量操作企业初始化链接** + + + +Input: + +``` +tccli ess CreateBatchInitOrganizationUrl --cli-unfold-argument \ + --Operator.UserId yDxjOXXgydjfxgnzUuO4zjEWA07rD2xl \ + --OperateTypes OPEN_AUTO_SIGN AUTH_JOIN_ORGANIZATION_GROUP CREATE_SEAL \ + --OrganizationIds yDCpSUUckpao78exUIqrf58JQDTLbbTr yDCpSUUckpao696tUIqrf5x1nPoxNy7C +``` + +Output: +``` +{ + "Response": { + "MiniAppPath": "pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6", + "OperateLongUrl": "https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6", + "OperateShortUrl": "https://essurl.cn/zahbUBHxW3", + "QRCodeUrl": "https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png", + "RequestId": "s1723520103899037060" + } +} +``` + diff --git a/tccli/examples/essbasic/v20210526/CreateBatchInitOrganizationUrl.md b/tccli/examples/essbasic/v20210526/CreateBatchInitOrganizationUrl.md new file mode 100644 index 0000000000..855f597548 --- /dev/null +++ b/tccli/examples/essbasic/v20210526/CreateBatchInitOrganizationUrl.md @@ -0,0 +1,27 @@ +**Example 1: 创建批量操作企业初始化链接** + + + +Input: + +``` +tccli essbasic CreateBatchInitOrganizationUrl --cli-unfold-argument \ + --Agent.ProxyOrganizationOpenId \ + --Agent.AppId yDKHHUUckpacc9ijUuXGmVcuzACNH5pF \ + --ProxyOrganizationOpenIds tencent-testorg-cd tencent-testorg-ca tencent-testorg-zhangy tencent-testorg-tianjing tencent-testorg-hongkong \ + --OperateTypes OPEN_AUTO_SIGN CREATE_SEAL +``` + +Output: +``` +{ + "Response": { + "MiniAppPath": "pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6", + "OperateLongUrl": "https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6", + "OperateShortUrl": "https://essurl.cn/zahbUBHxW3", + "QRCodeUrl": "https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png", + "RequestId": "s1723520103899037060" + } +} +``` + diff --git a/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md b/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md index 381212a11c..65dec1cc6c 100644 --- a/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md +++ b/tccli/examples/mongodb/v20190725/DescribeSpecInfo.md @@ -6,7 +6,7 @@ Input: ``` tccli mongodb DescribeSpecInfo --cli-unfold-argument \ - --Zone xx + --Zone ap-guangzhou ``` Output: @@ -88,6 +88,7 @@ Output: "Version": "3.6" } ], + "SupportMultiAZ": 1, "Zone": "ap-guangzhou-3" } ] diff --git a/tccli/examples/organization/v20210331/AddExternalSAMLIdPCertificate.md b/tccli/examples/organization/v20210331/AddExternalSAMLIdPCertificate.md new file mode 100644 index 0000000000..a286a0c310 --- /dev/null +++ b/tccli/examples/organization/v20210331/AddExternalSAMLIdPCertificate.md @@ -0,0 +1,22 @@ +**Example 1: 添加SAML签名证书** + +添加SAML签名证书 + +Input: + +``` +tccli organization AddExternalSAMLIdPCertificate --cli-unfold-argument \ + --ZoneId z-dsj3ieme \ + --X509Certificate nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY***** +``` + +Output: +``` +{ + "Response": { + "CertificateId": "idp-c-2jd8923je29****", + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/AddPermissionPolicyToRoleConfiguration.md b/tccli/examples/organization/v20210331/AddPermissionPolicyToRoleConfiguration.md new file mode 100644 index 0000000000..1d9118decc --- /dev/null +++ b/tccli/examples/organization/v20210331/AddPermissionPolicyToRoleConfiguration.md @@ -0,0 +1,24 @@ +**Example 1: 为权限配置添加策略** + +为权限配置添加策略 + +Input: + +``` +tccli organization AddPermissionPolicyToRoleConfiguration --cli-unfold-argument \ + --ZoneId z-29wm2iwn \ + --RoleConfigurationId rc-aiwmsiw \ + --RolePolicyType System \ + --RolePolicyNames TestPolicy \ + --CustomPolicyDocument +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/AddUserToGroup.md b/tccli/examples/organization/v20210331/AddUserToGroup.md new file mode 100644 index 0000000000..5243da0a28 --- /dev/null +++ b/tccli/examples/organization/v20210331/AddUserToGroup.md @@ -0,0 +1,22 @@ +**Example 1: 为用户组添加用户** + +为用户组添加用户 + +Input: + +``` +tccli organization AddUserToGroup --cli-unfold-argument \ + --ZoneId z-d8dh38bd \ + --GroupId g-dsuen8n \ + --UserId u-s3ndin23 +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ClearExternalSAMLIdentityProvider.md b/tccli/examples/organization/v20210331/ClearExternalSAMLIdentityProvider.md new file mode 100644 index 0000000000..10afcad03c --- /dev/null +++ b/tccli/examples/organization/v20210331/ClearExternalSAMLIdentityProvider.md @@ -0,0 +1,20 @@ +**Example 1: 清空SAML身份提供商配置信息** + +清空SAML身份提供商配置信息 + +Input: + +``` +tccli organization ClearExternalSAMLIdentityProvider --cli-unfold-argument \ + --ZoneId z-du3jd83*** +``` + +Output: +``` +{ + "Response": { + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/CreateGroup.md b/tccli/examples/organization/v20210331/CreateGroup.md new file mode 100644 index 0000000000..b45e7f8527 --- /dev/null +++ b/tccli/examples/organization/v20210331/CreateGroup.md @@ -0,0 +1,31 @@ +**Example 1: 创建用户组** + +创建用户组 + +Input: + +``` +tccli organization CreateGroup --cli-unfold-argument \ + --ZoneId z-7cbs6s6gs*** \ + --GroupName testGroup \ + --Description this is group +``` + +Output: +``` +{ + "Response": { + "GroupInfo": { + "GroupName": "testGroup", + "Description": "this is group", + "CreateTime": "2024-01-01 12:12:12", + "GroupType": "Manual", + "UpdateTime": "2024-01-01 12:12:12", + "GroupId": "g-8sh7baix****", + "MemberCount": 0 + }, + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/CreateRoleAssignment.md b/tccli/examples/organization/v20210331/CreateRoleAssignment.md new file mode 100644 index 0000000000..b7669e76aa --- /dev/null +++ b/tccli/examples/organization/v20210331/CreateRoleAssignment.md @@ -0,0 +1,38 @@ +**Example 1: 在成员账号上授权** + + 在成员账号上授权 + +Input: + +``` +tccli organization CreateRoleAssignment --cli-unfold-argument \ + --ZoneId z-djw83n*** \ + --RoleAssignmentInfo.0.RoleConfigurationId rc-sjsiw2*** \ + --RoleAssignmentInfo.0.TargetType MemberUin \ + --RoleAssignmentInfo.0.TargetUin 1000023222 \ + --RoleAssignmentInfo.0.PrincipalType User \ + --RoleAssignmentInfo.0.PrincipalId u-0829jd8d*** +``` + +Output: +``` +{ + "Response": { + "Tasks": [ + { + "TaskId": "t-sowmiwm", + "RoleConfigurationId": "r-sjsosmsss", + "RoleConfigurationName": "test", + "TargetUin": 10000323432, + "TargetType": "MemberUin", + "PrincipalId": "u-djiem3o***", + "PrincipalType": "User", + "TaskType": "CreateRoleAssignment", + "Status": "InProgress" + } + ], + "RequestId": "10accfa5-15ed-41fa-9e09-7efffd8e9345" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/CreateRoleConfiguration.md b/tccli/examples/organization/v20210331/CreateRoleConfiguration.md new file mode 100644 index 0000000000..33aa6b9cb3 --- /dev/null +++ b/tccli/examples/organization/v20210331/CreateRoleConfiguration.md @@ -0,0 +1,33 @@ +**Example 1: 创建权限配置** + +创建权限配置 + +Input: + +``` +tccli organization CreateRoleConfiguration --cli-unfold-argument \ + --ZoneId z-33923n \ + --RoleConfigurationName test \ + --Description this is role configuration \ + --SessionDuration 900 \ + --RelayState https://console.cloud.tencent.com +``` + +Output: +``` +{ + "Response": { + "RoleConfigurationInfo": { + "RoleConfigurationId": "rc-s2ns92ns***", + "RoleConfigurationName": "test", + "Description": "this is role configuration", + "SessionDuration": 900, + "RelayState": "https://console.cloud.tencent.com", + "CreateTime": "2019-01-01 12:12:12", + "UpdateTime": "2019-01-01 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/CreateUser.md b/tccli/examples/organization/v20210331/CreateUser.md new file mode 100644 index 0000000000..1f439e7e42 --- /dev/null +++ b/tccli/examples/organization/v20210331/CreateUser.md @@ -0,0 +1,40 @@ +**Example 1: 创建用户** + +创建用户 + +Input: + +``` +tccli organization CreateUser --cli-unfold-argument \ + --ZoneId z-33w3je**** \ + --UserName Alice \ + --FirstName Alice \ + --LastName Alice \ + --DisplayName Alice \ + --Description this is user \ + --Email Alice@example.com \ + --UserStatus Enabled +``` + +Output: +``` +{ + "Response": { + "UserInfo": { + "UserName": "Alice", + "FirstName": "Alice", + "LastName": "Alice", + "DisplayName": "Alice", + "Description": "this is user", + "Email": "Alice@example.com", + "UserStatus": "Enabled", + "UserType": "Manual", + "UserId": "u-2342ds2s", + "CreateTime": "2024-02-02 12:12:12", + "UpdateTime": "2024-02-02 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/CreateUserSyncProvisioning.md b/tccli/examples/organization/v20210331/CreateUserSyncProvisioning.md new file mode 100644 index 0000000000..c415f4ac78 --- /dev/null +++ b/tccli/examples/organization/v20210331/CreateUserSyncProvisioning.md @@ -0,0 +1,42 @@ +**Example 1: 创建子用户同步任务** + +创建子用户同步任务 + +Input: + +``` +tccli organization CreateUserSyncProvisioning --cli-unfold-argument \ + --ZoneId z-di3nd8e*** \ + --UserSyncProvisionings.0.DuplicationStrategy KeepBoth \ + --UserSyncProvisionings.0.DeletionStrategy Delete \ + --UserSyncProvisionings.0.Description this is cam user sync provisioning \ + --UserSyncProvisionings.0.PrincipalId u-sienmcien \ + --UserSyncProvisionings.0.PrincipalType User \ + --UserSyncProvisionings.0.TargetType MemberUin \ + --UserSyncProvisionings.0.TargetUin 1000234382342 +``` + +Output: +``` +{ + "Response": { + "Tasks": [ + { + "TaskId": "t-duedin****", + "TargetUin": 1000289211, + "TargetType": "MemberUin", + "TaskType": "StartProvisioning", + "TaskStatus": "InProgress", + "UserProvisioningId": "upe-d8n3d9***", + "PrincipalId": "u-dend83***", + "PrincipalType": "User", + "PrincipalName": "test", + "DuplicationStrategy": "KeepBoth", + "DeletionStrategy": "Delete" + } + ], + "RequestId": "e297543a-80de-4039-83c8-34545s45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DeleteGroup.md b/tccli/examples/organization/v20210331/DeleteGroup.md new file mode 100644 index 0000000000..b19df39218 --- /dev/null +++ b/tccli/examples/organization/v20210331/DeleteGroup.md @@ -0,0 +1,21 @@ +**Example 1: 删除用户组** + +删除用户组 + +Input: + +``` +tccli organization DeleteGroup --cli-unfold-argument \ + --ZoneId z-d8d7djd*** \ + --GroupId g-sudnd7d88 +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DeleteRoleAssignment.md b/tccli/examples/organization/v20210331/DeleteRoleAssignment.md new file mode 100644 index 0000000000..de65fa2d1f --- /dev/null +++ b/tccli/examples/organization/v20210331/DeleteRoleAssignment.md @@ -0,0 +1,37 @@ +**Example 1: 移除成员账号上的授权** + +移除成员账号上的授权 + +Input: + +``` +tccli organization DeleteRoleAssignment --cli-unfold-argument \ + --ZoneId z-2ms923mw \ + --RoleConfigurationId rc-smw9em32 \ + --TargetType MemberUin \ + --TargetUin 10000332 \ + --PrincipalType User \ + --PrincipalId u-siwnwiene \ + --DeprovisionStrategy DeprovisionForLastRoleAssignmentOnAccount +``` + +Output: +``` +{ + "Response": { + "Task": { + "TaskId": "t-0md93jfd3", + "RoleConfigurationId": "rc-dsk3323", + "RoleConfigurationName": "test", + "TargetUin": 100032333, + "TargetType": "MemberUin", + "PrincipalId": "u-siwnwiene", + "PrincipalType": "User", + "TaskType": "DeleteRolesAssignment", + "Status": "InProgress" + }, + "RequestId": "abc" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DeleteRoleConfiguration.md b/tccli/examples/organization/v20210331/DeleteRoleConfiguration.md new file mode 100644 index 0000000000..9ef85d15e8 --- /dev/null +++ b/tccli/examples/organization/v20210331/DeleteRoleConfiguration.md @@ -0,0 +1,21 @@ +**Example 1: 删除权限配置信息** + +删除权限配置信息 + +Input: + +``` +tccli organization DeleteRoleConfiguration --cli-unfold-argument \ + --ZoneId z-2jsoi3ms \ + --RoleConfigurationId rc-ais2ismwo2 +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DeleteUser.md b/tccli/examples/organization/v20210331/DeleteUser.md new file mode 100644 index 0000000000..57c27d4a9b --- /dev/null +++ b/tccli/examples/organization/v20210331/DeleteUser.md @@ -0,0 +1,21 @@ +**Example 1: 删除用户** + +删除用户 + +Input: + +``` +tccli organization DeleteUser --cli-unfold-argument \ + --ZoneId z-33mdo34md \ + --UserId u-2sks3m2 +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-34545s45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DeleteUserSyncProvisioning.md b/tccli/examples/organization/v20210331/DeleteUserSyncProvisioning.md new file mode 100644 index 0000000000..5ab161311e --- /dev/null +++ b/tccli/examples/organization/v20210331/DeleteUserSyncProvisioning.md @@ -0,0 +1,34 @@ +**Example 1: 删除子用户同步任务** + +删除子用户同步任务 + +Input: + +``` +tccli organization DeleteUserSyncProvisioning --cli-unfold-argument \ + --ZoneId z-dssmowmsd \ + --UserProvisioningId up-sxins8snds +``` + +Output: +``` +{ + "Response": { + "Tasks": { + "TaskId": "t-duedin****", + "TargetUin": 1000289211, + "TargetType": "MemberUin", + "TaskType": "DeleteProvisioning", + "TaskStatus": "InProgress", + "UserProvisioningId": "upe-d8n3d9***", + "PrincipalId": "u-dend83***", + "PrincipalType": "User", + "PrincipalName": "test", + "DuplicationStrategy": "KeepBoth", + "DeletionStrategy": "Delete" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DescribeIdentityCenter.md b/tccli/examples/organization/v20210331/DescribeIdentityCenter.md new file mode 100644 index 0000000000..2db759a98e --- /dev/null +++ b/tccli/examples/organization/v20210331/DescribeIdentityCenter.md @@ -0,0 +1,24 @@ +**Example 1: 获取用户cam身份中心服务信息** + +获取用户cam身份中心服务信息 + +Input: + +``` +tccli organization DescribeIdentityCenter --cli-unfold-argument ``` + +Output: +``` +{ + "Response": { + "CreateTime": "2024-05-30 10:50:11", + "RequestId": "da9a32a5-f6d5-4ef5-be20-0ee16b63bb6d", + "ScimSyncStatus": "Disabled", + "ServiceStatus": "Enabled", + "UpdateTime": "2024-06-25 10:08:21", + "ZoneId": "z-vft38p2hq8tq", + "ZoneName": "testwu" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/DismantleRoleConfiguration.md b/tccli/examples/organization/v20210331/DismantleRoleConfiguration.md new file mode 100644 index 0000000000..f2f4c41635 --- /dev/null +++ b/tccli/examples/organization/v20210331/DismantleRoleConfiguration.md @@ -0,0 +1,32 @@ +**Example 1: 解除权限配置在成员账号上的部署** + +解除权限配置在成员账号上的部署 + +Input: + +``` +tccli organization DismantleRoleConfiguration --cli-unfold-argument \ + --ZoneId z-disanisa \ + --RoleConfigurationId rc-daosmqa \ + --TargetType Member \ + --TargetUin 1000023292 +``` + +Output: +``` +{ + "Response": { + "RequestId": "d95c7cc0-195d-4818-aa3a-e7dc73eafe37", + "Task": { + "RoleConfigurationId": "rc-4plmus8fdfsb", + "RoleConfigurationName": "testConfiguration1", + "TargetType": "MemberUin", + "TargetUin": 700000145543, + "TaskId": "t-2xdmzwphpsbd", + "TaskStatus": "InProgress", + "TaskType": "CreateRoleAssignment" + } + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetExternalSAMLIdentityProvider.md b/tccli/examples/organization/v20210331/GetExternalSAMLIdentityProvider.md new file mode 100644 index 0000000000..6c810895b9 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetExternalSAMLIdentityProvider.md @@ -0,0 +1,31 @@ +**Example 1: 查询SAML身份提供商配置信息** + +查询SAML身份提供商配置信息 + +Input: + +``` +tccli organization GetExternalSAMLIdentityProvider --cli-unfold-argument \ + --ZoneId z-dm239d**** +``` + +Output: +``` +{ + "Response": { + "SAMLIdentityProviderConfiguration": { + "EntityId": "http://www.okta.com/2jd83ne9m*****", + "SSOStatus": "Enabled", + "EncodedMetadataDocument": "PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxFbnRpdHlEZXNjcmlwdG9yIHhtbG5zPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoydpbi5jb20vc2FtbC9tZXRhZGF0YS8xN2NkYjEyOC03N**********", + "CertificateIds": [ + "idp-c-2jd8923je29****" + ], + "LoginUrl": "https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/2jd83ne9m****/sso/saml", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12" + }, + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetGroup.md b/tccli/examples/organization/v20210331/GetGroup.md new file mode 100644 index 0000000000..2849c37080 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetGroup.md @@ -0,0 +1,30 @@ +**Example 1: 查询用户组信息** + +查询用户组信息 + +Input: + +``` +tccli organization GetGroup --cli-unfold-argument \ + --ZoneId z-ws9sdj8**** \ + --GroupId g-sushsia7s8 +``` + +Output: +``` +{ + "Response": { + "GroupInfo": { + "GroupName": "testGroup", + "Description": "this is group", + "CreateTime": "2024-01-01 12:12:12", + "GroupType": "Manual", + "UpdateTime": "2024-01-01 12:12:12", + "GroupId": "g-sushsia7s8", + "MemberCount": 20 + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetProvisioningTaskStatus.md b/tccli/examples/organization/v20210331/GetProvisioningTaskStatus.md new file mode 100644 index 0000000000..bd1798d5a9 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetProvisioningTaskStatus.md @@ -0,0 +1,27 @@ +**Example 1: 查询用户同步异步任务的状态** + +查询用户同步异步任务的状态 + +Input: + +``` +tccli organization GetProvisioningTaskStatus --cli-unfold-argument \ + --ZoneId z-djw98wnd*** \ + --TaskId t-d8wjd8j3**** +``` + +Output: +``` +{ + "Response": { + "TaskStatus": { + "Status": "Success", + "TaskId": "z-dnsudniw****", + "TaskType": "StartProvisioning", + "FailureReason": "" + }, + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetRoleConfiguration.md b/tccli/examples/organization/v20210331/GetRoleConfiguration.md new file mode 100644 index 0000000000..7340c33949 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetRoleConfiguration.md @@ -0,0 +1,30 @@ +**Example 1: 查询权限配置信息** + +查询权限配置信息 + +Input: + +``` +tccli organization GetRoleConfiguration --cli-unfold-argument \ + --ZoneId z-2s2osm2*** \ + --RoleConfigurationId rc-odmo23w +``` + +Output: +``` +{ + "Response": { + "RoleConfigurationInfo": { + "RoleConfigurationId": "rc-s2ns92ns***", + "RoleConfigurationName": "test", + "Description": "this is role configuration", + "SessionDuration": 900, + "RelayState": "https://console.cloud.tencent.com", + "CreateTime": "2019-01-01 12:12:12", + "UpdateTime": "2019-01-01 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetTaskStatus.md b/tccli/examples/organization/v20210331/GetTaskStatus.md new file mode 100644 index 0000000000..ba1e7be2bf --- /dev/null +++ b/tccli/examples/organization/v20210331/GetTaskStatus.md @@ -0,0 +1,27 @@ +**Example 1: 查询异步任务的状态** + +查询异步任务的状态 + +Input: + +``` +tccli organization GetTaskStatus --cli-unfold-argument \ + --ZoneId z-dsiwnw*** \ + --TaskId t-duxj*** +``` + +Output: +``` +{ + "Response": { + "TaskStatus": { + "Status": "Success", + "TaskId": "z-dksodm***", + "TaskType": "ProvisionRoleConfiguration", + "FailureReason": "fielded" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetUser.md b/tccli/examples/organization/v20210331/GetUser.md new file mode 100644 index 0000000000..c1eff89b89 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetUser.md @@ -0,0 +1,34 @@ +**Example 1: 查询用户信息** + +查询用户信息 + +Input: + +``` +tccli organization GetUser --cli-unfold-argument \ + --UserId u-4i293bf3indh \ + --ZoneId z-hfp2qqncf343 +``` + +Output: +``` +{ + "Response": { + "UserInfo": { + "UserName": "test", + "FirstName": "test", + "LastName": "test", + "DisplayName": "test", + "Description": "this is user", + "Email": "test@example.com", + "UserStatus": "Enabled", + "UserType": "Manual", + "UserId": "u-2jsal3jdxk", + "CreateTime": "2024-03-12 12:12:12", + "UpdateTime": "2024-03-12 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-34545s45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetUserSyncProvisioning.md b/tccli/examples/organization/v20210331/GetUserSyncProvisioning.md new file mode 100644 index 0000000000..8f7c8bb9c7 --- /dev/null +++ b/tccli/examples/organization/v20210331/GetUserSyncProvisioning.md @@ -0,0 +1,36 @@ +**Example 1: 查询CAM用户同步** + +查询CAM用户同步 + +Input: + +``` +tccli organization GetUserSyncProvisioning --cli-unfold-argument \ + --ZoneId z-dimd3d*** \ + --UserProvisioningId up-imei3rdiem +``` + +Output: +``` +{ + "Response": { + "UserProvisioning": { + "UserProvisioningId": "up-siwnei3nso", + "Description": "this is cam user sync", + "Status": "Enabled", + "PrincipalId": "u-swnd8wn3", + "PrincipalName": "test", + "PrincipalType": "User", + "TargetUin": "10000338332", + "TargetName": "test", + "TargetType": "MemberUin", + "DuplicationStrategy": "KeepBoth", + "DeletionStrategy": "Delete", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetZoneSAMLServiceProviderInfo.md b/tccli/examples/organization/v20210331/GetZoneSAMLServiceProviderInfo.md new file mode 100644 index 0000000000..aab65e5c7c --- /dev/null +++ b/tccli/examples/organization/v20210331/GetZoneSAMLServiceProviderInfo.md @@ -0,0 +1,26 @@ +**Example 1: 查询SAML服务提供商配置信息** + +查询SAML服务提供商配置信息 + +Input: + +``` +tccli organization GetZoneSAMLServiceProviderInfo --cli-unfold-argument \ + --ZoneId z-di3d9em*** +``` + +Output: +``` +{ + "Response": { + "SAMLServiceProvider": { + "EntityId": "https://tencentcloudsso.com/saml/sp/z-doekeie****", + "ZoneId": "z-doekeie****", + "EncodedMetadataDocument": "JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5nJTNEJTIy***", + "AcsUrl": "https://tencentcloudsso.com/saml/acs/d9wjd-d93je9-2me****" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/GetZoneStatistics.md b/tccli/examples/organization/v20210331/GetZoneStatistics.md new file mode 100644 index 0000000000..77faee1e5e --- /dev/null +++ b/tccli/examples/organization/v20210331/GetZoneStatistics.md @@ -0,0 +1,31 @@ +**Example 1: 查询空间的统计信息** + +查询空间的统计信息 + +Input: + +``` +tccli organization GetZoneStatistics --cli-unfold-argument \ + --ZoneId z-siwns82n**** +``` + +Output: +``` +{ + "Response": { + "ZoneStatistics": { + "UserQuota": 1000, + "GroupQuota": 500, + "RoleConfigurationQuota": 1000, + "SystemPolicyPerRoleConfigurationQuota": 20, + "UserCount": 10, + "GroupCount": 2, + "RoleConfigurationCount": 3, + "UserProvisioningCount": 0, + "RoleConfigurationSyncCount": 0 + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListExternalSAMLIdPCertificates.md b/tccli/examples/organization/v20210331/ListExternalSAMLIdPCertificates.md new file mode 100644 index 0000000000..d78ad4e035 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListExternalSAMLIdPCertificates.md @@ -0,0 +1,35 @@ +**Example 1: 查询SAML签名证书列表** + +查询SAML签名证书列表 + +Input: + +``` +tccli organization ListExternalSAMLIdPCertificates --cli-unfold-argument \ + --ZoneId z-xj239dj23*** +``` + +Output: +``` +{ + "Response": { + "TotalCounts": 20, + "SAMLIdPCertificates": [ + { + "SerialNumber": "1347934239****", + "Issuer": "5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta", + "Version": "1", + "CertificateId": "idp-c-2jd8923je29****", + "PublicKey": "nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****", + "SignatureAlgorithm": "SHA256withRSA", + "NotAfter": "2030-06-23 07:04:37", + "NotBefore": "2010-06-23 07:04:37", + "Subject": "5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta", + "X509Certificate": "nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****" + } + ], + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListGroupMembers.md b/tccli/examples/organization/v20210331/ListGroupMembers.md new file mode 100644 index 0000000000..5e067d8d6d --- /dev/null +++ b/tccli/examples/organization/v20210331/ListGroupMembers.md @@ -0,0 +1,39 @@ +**Example 1: 查询用户组中的用户列表** + +查询用户组中的用户列表 + +Input: + +``` +tccli organization ListGroupMembers --cli-unfold-argument \ + --ZoneId z-ds932j9m3 \ + --GroupId g29sn2389e \ + --NextToken \ + --MaxResults 10 +``` + +Output: +``` +{ + "Response": { + "NextToken": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "TotalCounts": 20, + "MaxResults": 10, + "IsTruncated": true, + "GroupMembers": [ + { + "UserName": "test", + "DisplayName": "test", + "Description": "this is test user", + "Email": "123456@qq.com", + "UserStatus": "Enabled", + "UserType": "Manual", + "UserId": "u-d032med3", + "JoinTime": "2024-01-01 12:12:12" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListGroups.md b/tccli/examples/organization/v20210331/ListGroups.md new file mode 100644 index 0000000000..2bf10524b6 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListGroups.md @@ -0,0 +1,37 @@ +**Example 1: 查询用户组列表** + +查询用户组列表 + +Input: + +``` +tccli organization ListGroups --cli-unfold-argument \ + --ZoneId z-32s7dhd8s*** \ + --MaxResults 20 \ + --GroupType Manual +``` + +Output: +``` +{ + "Response": { + "NextToken": "OTM0YzE4MzY2ZjdhMWM0MYZD******", + "Groups": [ + { + "GroupName": "testGroup", + "Description": "thsi is group", + "CreateTime": "2024-01-01 12:12:12", + "GroupType": "Manual", + "UpdateTime": "2024-01-01 12:12:12", + "GroupId": "g-q8shs8h****", + "MemberCount": 20 + } + ], + "MaxResults": 10, + "TotalCounts": 30, + "IsTruncated": true, + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListJoinedGroupsForUser.md b/tccli/examples/organization/v20210331/ListJoinedGroupsForUser.md new file mode 100644 index 0000000000..c48451198e --- /dev/null +++ b/tccli/examples/organization/v20210331/ListJoinedGroupsForUser.md @@ -0,0 +1,36 @@ +**Example 1: 查询用户加入的用户组** + +查询用户加入的用户组 + +Input: + +``` +tccli organization ListJoinedGroupsForUser --cli-unfold-argument \ + --ZoneId z-2o3meo3 \ + --UserId u-3od3e3d \ + --NextToken \ + --MaxResults 10 +``` + +Output: +``` +{ + "Response": { + "NextToken": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "TotalCounts": 20, + "MaxResults": 10, + "IsTruncated": true, + "JoinedGroups": [ + { + "GroupName": "testGroup", + "Description": "this is testGroup", + "GroupId": "g-s23nw3e", + "GroupType": "Manual", + "JoinTime": "2021-01-01 12:12:12" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListPermissionPoliciesInRoleConfiguration.md b/tccli/examples/organization/v20210331/ListPermissionPoliciesInRoleConfiguration.md new file mode 100644 index 0000000000..6a73317e6c --- /dev/null +++ b/tccli/examples/organization/v20210331/ListPermissionPoliciesInRoleConfiguration.md @@ -0,0 +1,31 @@ +**Example 1: 获取权限配置中的策略列表** + +获取权限配置中的策略列表 + +Input: + +``` +tccli organization ListPermissionPoliciesInRoleConfiguration --cli-unfold-argument \ + --ZoneId z-d83js823n \ + --RoleConfigurationId rc-s93jw3ns \ + --RolePolicyType System +``` + +Output: +``` +{ + "Response": { + "TotalCounts": 20, + "RolePolicies": [ + { + "RolePolicyName": "adminPolciy", + "RolePolicyType": "System", + "RolePolicyDocument": "", + "AddTime": "2020-01-01 12:12:12" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListRoleAssignments.md b/tccli/examples/organization/v20210331/ListRoleAssignments.md new file mode 100644 index 0000000000..68d427f137 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListRoleAssignments.md @@ -0,0 +1,45 @@ +**Example 1: 查询授权列表** + +查询授权列表 + +Input: + +``` +tccli organization ListRoleAssignments --cli-unfold-argument \ + --ZoneId z-ssmdsowm** \ + --RoleConfigurationId rc2-as245usjsm \ + --MaxResults 30 \ + --NextToken \ + --TargetType MemeberUin \ + --TargetUin 10000238922 \ + --PrincipalType User \ + --PrincipalId u-ss342md** +``` + +Output: +``` +{ + "Response": { + "NextToken": "abc", + "TotalCounts": 30, + "MaxResults": 10, + "IsTruncated": true, + "RoleAssignments": [ + { + "RoleConfigurationId": "ec-swidn****", + "RoleConfigurationName": "test", + "TargetUin": 100000322, + "TargetType": "MemberUin", + "TargetName": "test", + "PrincipalId": "u-ssiisn***", + "PrincipalType": "User", + "PrincipalName": "testConfig", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListRoleConfigurationProvisionings.md b/tccli/examples/organization/v20210331/ListRoleConfigurationProvisionings.md new file mode 100644 index 0000000000..927e675bf4 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListRoleConfigurationProvisionings.md @@ -0,0 +1,43 @@ +**Example 1: 查询权限配置部署列表** + + 查询权限配置部署列表 + +Input: + +``` +tccli organization ListRoleConfigurationProvisionings --cli-unfold-argument \ + --ZoneId z-d8wj \ + --RoleConfigurationId up-dnsisns*** \ + --MaxResults 20 \ + --NextToken abc \ + --TargetType MemberUin \ + --TargetUin 1000329122 \ + --DeploymentStatus DeployedRequired \ + --Filter test +``` + +Output: +``` +{ + "Response": { + "NextToken": "", + "TotalCounts": 30, + "MaxResults": 10, + "IsTruncated": true, + "RoleConfigurationProvisionings": [ + { + "DeploymentStatus": "DeployedRequired", + "RoleConfigurationId": "rc-sjwiwm2ww**", + "RoleConfigurationName": "testConfiguration", + "TargetUin": 10003292021, + "TargetName": "test", + "TargetType": "MemberUin", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12" + } + ], + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListRoleConfigurations.md b/tccli/examples/organization/v20210331/ListRoleConfigurations.md new file mode 100644 index 0000000000..3761c949ff --- /dev/null +++ b/tccli/examples/organization/v20210331/ListRoleConfigurations.md @@ -0,0 +1,38 @@ +**Example 1: 查询权限配置列表** + +查询权限配置列表 + +Input: + +``` +tccli organization ListRoleConfigurations --cli-unfold-argument \ + --ZoneId z-s9h39sdn2 \ + --NextToken sisndpmfisdnlk \ + --MaxResults 10 \ + --Filter RoleConfigurationName eqTestRoleConfiguration +``` + +Output: +``` +{ + "Response": { + "TotalCounts": 20, + "MaxResults": 10, + "IsTruncated": true, + "NextToken": "3si2ns92ns82bos", + "RoleConfigurations": [ + { + "RoleConfigurationId": "rc-s2ns92ns***", + "RoleConfigurationName": "test", + "Description": "this is role configuration", + "SessionDuration": 900, + "RelayState": "https://console.cloud.tencent.com", + "CreateTime": "2019-01-01 12:12:12", + "UpdateTime": "2019-01-01 12:12:12" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListTasks.md b/tccli/examples/organization/v20210331/ListTasks.md new file mode 100644 index 0000000000..c7234b7b24 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListTasks.md @@ -0,0 +1,47 @@ +**Example 1: 查询异步任务列表** + +查询异步任务列表 + +Input: + +``` +tccli organization ListTasks --cli-unfold-argument \ + --ZoneId z-djwidnwidj \ + --PrincipalId u-xj8sncidnc \ + --NextToken xownw8db38dbe8fne==- \ + --MaxResults 1 \ + --PrincipalType User \ + --TargetUin 1000023423 \ + --TargetType Member \ + --RoleConfigurationId rc-xjw9dsmw \ + --Status InProgress \ + --TaskType CreateRoleAssignment +``` + +Output: +``` +{ + "Response": { + "NextToken": "abc", + "TotalCounts": 0, + "MaxResults": 0, + "IsTruncated": true, + "Tasks": [ + { + "TaskId": "t-xsinsxinsdk", + "RoleConfigurationId": "rc-xmw9xjdsd", + "RoleConfigurationName": "配置", + "TargetUin": 1000232234, + "TargetType": "User", + "PrincipalId": "u-xm89dnsujs", + "PrincipalType": "Member", + "TaskType": "CreateRoleAssignment", + "Status": "InProgress", + "FailureReason": "test" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListUserSyncProvisionings.md b/tccli/examples/organization/v20210331/ListUserSyncProvisionings.md new file mode 100644 index 0000000000..f7f27ca66d --- /dev/null +++ b/tccli/examples/organization/v20210331/ListUserSyncProvisionings.md @@ -0,0 +1,48 @@ +**Example 1: 查询CAM用户同步列表** + +查询CAM用户同步列表 + +Input: + +``` +tccli organization ListUserSyncProvisionings --cli-unfold-argument \ + --ZoneId z-dsjsisnus \ + --PrincipalId u-sjs9smss \ + --NextToken \ + --MaxResults 10 \ + --PrincipalType User \ + --TargetUin 100003324902 \ + --TargetType MemberUin \ + --Filter test +``` + +Output: +``` +{ + "Response": { + "NextToken": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "TotalCounts": 30, + "MaxResults": 10, + "IsTruncated": true, + "UserProvisionings": [ + { + "UserProvisioningId": "up-siwnei3nso", + "Description": "this is cam user sync", + "Status": "Enabled", + "PrincipalId": "u-swnd8wn3", + "PrincipalName": "test", + "PrincipalType": "User", + "TargetUin": "10000338332", + "TargetName": "test", + "DuplicationStrategy": "KeepBoth", + "DeletionStrategy": "Delete", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12", + "TargetType": "MemberUin" + } + ], + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ListUsers.md b/tccli/examples/organization/v20210331/ListUsers.md new file mode 100644 index 0000000000..b33b29c923 --- /dev/null +++ b/tccli/examples/organization/v20210331/ListUsers.md @@ -0,0 +1,39 @@ +**Example 1: 查询用户列表** + +查询用户列表 + +Input: + +``` +tccli organization ListUsers --cli-unfold-argument \ + --ZoneId z-2sw22w3 +``` + +Output: +``` +{ + "Response": { + "TotalCounts": 50, + "MaxResults": 20, + "Users": [ + { + "UserName": "test", + "FirstName": "test", + "LastName": "test", + "DisplayName": "test", + "Description": "this is user", + "Email": "test@example", + "UserStatus": "Enabled", + "UserType": "Manual", + "UserId": "u-2s334e3***", + "CreateTime": "2024-03-12 12:12:12", + "UpdateTime": "2024-03-12 12:12:12" + } + ], + "NextToken": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "IsTruncated": true, + "RequestId": "e297543a-80de-4039-83c8-9d35d4545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/OpenIdentityCenter.md b/tccli/examples/organization/v20210331/OpenIdentityCenter.md new file mode 100644 index 0000000000..2331aef258 --- /dev/null +++ b/tccli/examples/organization/v20210331/OpenIdentityCenter.md @@ -0,0 +1,21 @@ +**Example 1: 开通CIC服务** + +开通CIC服务 + +Input: + +``` +tccli organization OpenIdentityCenter --cli-unfold-argument \ + --ZoneName testName +``` + +Output: +``` +{ + "Response": { + "ZoneId": "z-dj3jk*****", + "RequestId": "e297543a-80de-4039-83c8-9d324f45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/ProvisionRoleConfiguration.md b/tccli/examples/organization/v20210331/ProvisionRoleConfiguration.md new file mode 100644 index 0000000000..9464c7179e --- /dev/null +++ b/tccli/examples/organization/v20210331/ProvisionRoleConfiguration.md @@ -0,0 +1,32 @@ +**Example 1: 将权限配置部署到成员账号上** + +将权限配置部署到成员账号上 + +Input: + +``` +tccli organization ProvisionRoleConfiguration --cli-unfold-argument \ + --ZoneId z-disndw**** \ + --RoleConfigurationId rc-sians9wn**** \ + --TargetType MemberUin \ + --TargetUin 10000293120 +``` + +Output: +``` +{ + "Response": { + "RequestId": "d95c7cc0-195d-4818-aa3a-e7dc73eafe37", + "Task": { + "RoleConfigurationId": "rc-4plmus8fdfsb", + "RoleConfigurationName": "testConfiguration1", + "TargetType": "MemberUin", + "TargetUin": 700000145543, + "TaskId": "t-2xdmzwphpsbd", + "TaskStatus": "InProgress", + "TaskType": "CreateRoleAssignment" + } + } +} +``` + diff --git a/tccli/examples/organization/v20210331/RemoveExternalSAMLIdPCertificate.md b/tccli/examples/organization/v20210331/RemoveExternalSAMLIdPCertificate.md new file mode 100644 index 0000000000..a0c8af7719 --- /dev/null +++ b/tccli/examples/organization/v20210331/RemoveExternalSAMLIdPCertificate.md @@ -0,0 +1,21 @@ +**Example 1: 移除SAML签名证书** + +移除SAML签名证书 + +Input: + +``` +tccli organization RemoveExternalSAMLIdPCertificate --cli-unfold-argument \ + --ZoneId z-2js923necd*** \ + --CertificateId idp-c-2jd8923je29**** +``` + +Output: +``` +{ + "Response": { + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/RemovePermissionPolicyFromRoleConfiguration.md b/tccli/examples/organization/v20210331/RemovePermissionPolicyFromRoleConfiguration.md new file mode 100644 index 0000000000..fa9caa71c4 --- /dev/null +++ b/tccli/examples/organization/v20210331/RemovePermissionPolicyFromRoleConfiguration.md @@ -0,0 +1,23 @@ +**Example 1: 为权限配置移除策略** + +为权限配置移除策略 + +Input: + +``` +tccli organization RemovePermissionPolicyFromRoleConfiguration --cli-unfold-argument \ + --ZoneId z-djw9dn3i**** \ + --RoleConfigurationId rc-swidddws*** \ + --RolePolicyType System \ + --RolePolicyName test +``` + +Output: +``` +{ + "Response": { + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/RemoveUserFromGroup.md b/tccli/examples/organization/v20210331/RemoveUserFromGroup.md new file mode 100644 index 0000000000..27d4e56bc2 --- /dev/null +++ b/tccli/examples/organization/v20210331/RemoveUserFromGroup.md @@ -0,0 +1,22 @@ +**Example 1: 从用户组中移除用户** + +从用户组中移除用户 + +Input: + +``` +tccli organization RemoveUserFromGroup --cli-unfold-argument \ + --ZoneId z-d83n8sn3 \ + --GroupId g-du3n83nd \ + --UserId u-sd823ns82n +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/SetExternalSAMLIdentityProvider.md b/tccli/examples/organization/v20210331/SetExternalSAMLIdentityProvider.md new file mode 100644 index 0000000000..ee1d53f022 --- /dev/null +++ b/tccli/examples/organization/v20210331/SetExternalSAMLIdentityProvider.md @@ -0,0 +1,25 @@ +**Example 1: 配置SAML身份提供商信息** + +配置SAML身份提供商信息 + +Input: + +``` +tccli organization SetExternalSAMLIdentityProvider --cli-unfold-argument \ + --ZoneId z-d3ideodm*** \ + --EncodedMetadataDocument JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5****** \ + --SSOStatus Enabled \ + --EntityId http://www.okta.com/xd83nd83nd**** \ + --LoginUrl https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/xd83nd83nd****/sso/saml \ + --X509Certificate MIIC8DCCAdigAwIBAgIQP9eomUYGeoND**** +``` + +Output: +``` +{ + "Response": { + "RequestId": "2ccd7ed1-24b4-4882-8f4a-5580b430bce7" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateGroup.md b/tccli/examples/organization/v20210331/UpdateGroup.md new file mode 100644 index 0000000000..7230c29d37 --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateGroup.md @@ -0,0 +1,32 @@ +**Example 1: 修改用户组信息** + +修改用户组信息 + +Input: + +``` +tccli organization UpdateGroup --cli-unfold-argument \ + --ZoneId z-s8shs8bd*** \ + --GroupId g-s8dhdn3 \ + --NewGroupName testGroup \ + --NewDescription this is group. +``` + +Output: +``` +{ + "Response": { + "GroupInfo": { + "GroupName": "testGroup", + "Description": "this is group", + "CreateTime": "2024-01-01 12:12:12", + "GroupType": "Manual", + "UpdateTime": "2024-01-01 12:12:12", + "GroupId": "g-w8hd8n***", + "MemberCount": 20 + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateRoleConfiguration.md b/tccli/examples/organization/v20210331/UpdateRoleConfiguration.md new file mode 100644 index 0000000000..0b67c61d3a --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateRoleConfiguration.md @@ -0,0 +1,33 @@ +**Example 1: 修改权限配置信息** + +修改权限配置信息 + +Input: + +``` +tccli organization UpdateRoleConfiguration --cli-unfold-argument \ + --ZoneId z-22m23mo2 \ + --RoleConfigurationId rc-ai3n9si2m \ + --NewDescription this is role configuration \ + --NewSessionDuration 900 \ + --NewRelayState https://console.cloud.tencent.com +``` + +Output: +``` +{ + "Response": { + "RoleConfigurationInfo": { + "RoleConfigurationId": "rc-s2ns92ns***", + "RoleConfigurationName": "test", + "Description": "this is role configuration", + "SessionDuration": 900, + "RelayState": "https://console.cloud.tencent.com", + "CreateTime": "2019-01-01 12:12:12", + "UpdateTime": "2019-01-01 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateUser.md b/tccli/examples/organization/v20210331/UpdateUser.md new file mode 100644 index 0000000000..cd5f4c59e8 --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateUser.md @@ -0,0 +1,39 @@ +**Example 1: 修改用户信息** + +修改用户信息 + +Input: + +``` +tccli organization UpdateUser --cli-unfold-argument \ + --ZoneId z-343nh23kn \ + --UserId u-3324sfdds \ + --NewFirstName test \ + --NewLastName test \ + --NewDisplayName test \ + --NewDescription this is user. \ + --NewEmail test@example.com +``` + +Output: +``` +{ + "Response": { + "UserInfo": { + "UserName": "test", + "FirstName": "test", + "LastName": "test", + "DisplayName": "test", + "Description": "this is user", + "Email": "test@example.com", + "UserStatus": "test", + "UserType": "Manual", + "UserId": "u-33sjadjsk", + "CreateTime": "2024-01-01 12:12:12", + "UpdateTime": "2024-01-01 12:12:12" + }, + "RequestId": "e297543a-80de-4039-83c8-34545s45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateUserStatus.md b/tccli/examples/organization/v20210331/UpdateUserStatus.md new file mode 100644 index 0000000000..babbfa9d62 --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateUserStatus.md @@ -0,0 +1,22 @@ +**Example 1: 修改用户状态** + +修改用户状态 + +Input: + +``` +tccli organization UpdateUserStatus --cli-unfold-argument \ + --ZoneId z-dwesfeas2 \ + --UserId u-d3eedws \ + --NewUserStatus Disabled +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-34545s45" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateUserSyncProvisioning.md b/tccli/examples/organization/v20210331/UpdateUserSyncProvisioning.md new file mode 100644 index 0000000000..baafe15dbb --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateUserSyncProvisioning.md @@ -0,0 +1,24 @@ +**Example 1: 修改CAM用户同步** + + 修改CAM用户同步 + +Input: + +``` +tccli organization UpdateUserSyncProvisioning --cli-unfold-argument \ + --ZoneId z-susn8xnsis \ + --UserProvisioningId up-xusjdjsss \ + --NewDescription this is cam user sync \ + --NewDuplicationStateful KeepBoth \ + --NewDeletionStrategy Delete +``` + +Output: +``` +{ + "Response": { + "RequestId": "e297543a-80de-4039-83c8-9d324545" + } +} +``` + diff --git a/tccli/examples/organization/v20210331/UpdateZone.md b/tccli/examples/organization/v20210331/UpdateZone.md new file mode 100644 index 0000000000..2160f0780d --- /dev/null +++ b/tccli/examples/organization/v20210331/UpdateZone.md @@ -0,0 +1,21 @@ +**Example 1: 修改空间名** + +修改空间名 + +Input: + +``` +tccli organization UpdateZone --cli-unfold-argument \ + --ZoneId z-vft38p2hq8tq \ + --NewZoneName testzone +``` + +Output: +``` +{ + "Response": { + "RequestId": "14effcdf-fbae-44fb-ab21-e2e0cc6edde6" + } +} +``` + diff --git a/tccli/examples/tat/v20201028/DescribeScenes.md b/tccli/examples/tat/v20201028/DescribeScenes.md new file mode 100644 index 0000000000..503bfc7a11 --- /dev/null +++ b/tccli/examples/tat/v20201028/DescribeScenes.md @@ -0,0 +1,32 @@ +**Example 1: 查询场景** + + + +Input: + +``` +tccli tat DescribeScenes --cli-unfold-argument \ + --SceneIds sc-12345678 \ + --Offset 0 \ + --Limit 20 +``` + +Output: +``` +{ + "Response": { + "RequestId": "eb973a12-71e3-4c0c-b1d8-4b863e5f5daf", + "TotalCount": 1, + "SceneSet": [ + { + "SceneId": "sc-12345678", + "SceneName": "运维场景", + "CreatedBy": "USER", + "CreatedTime": "2020-11-02T02:48:11+00:00", + "UpdatedTime": "2020-11-02T02:48:11+00:00" + } + ] + } +} +``` + diff --git a/tccli/services/billing/v20180709/api.json b/tccli/services/billing/v20180709/api.json index dd174c7ab0..2c49ad5372 100644 --- a/tccli/services/billing/v20180709/api.json +++ b/tccli/services/billing/v20180709/api.json @@ -15021,7 +15021,7 @@ "example": "某产品", "member": "string", "name": "ProductName", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": true }, @@ -15031,7 +15031,87 @@ "example": "某子产品", "member": "string", "name": "SubProductName", - "required": true, + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "产品码\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "ProductCode", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "子产品码\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "SubProductCode", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "计费项码\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "BillingItemCode", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "计费细项码\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "SubBillingItemCode", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "产品英文名\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "ProductEnName", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "子产品英文名\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "SubProductEnName", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "结算周期\t\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "CalcUnit", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "payMode为prepay 且 payScene为common的情况下存在\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "Action", + "output_required": false, "type": "string", "value_allowed_null": true } @@ -15047,7 +15127,7 @@ "example": "123", "member": "int64", "name": "UsedAmount", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, @@ -15057,7 +15137,7 @@ "example": "2020-01-01", "member": "string", "name": "UsedTime", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, @@ -15067,9 +15147,49 @@ "example": "无", "member": "UsageDetails", "name": "UsageDetails", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": true + }, + { + "disabled": false, + "document": "付费模式", + "example": "prePay", + "member": "string", + "name": "PayMode", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "查询的券id\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "VoucherId", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "交易场景:(adjust:调账、common:正常交易场景)\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "PayScene", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "唯一id,对应交易:预付费的dealName,调账/后付费的outTradeNo\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "SeqId", + "output_required": true, + "type": "string", + "value_allowed_null": true } ], "usage": "out" diff --git a/tccli/services/es/v20180416/api.json b/tccli/services/es/v20180416/api.json index ff8c5d5a5a..8c3a8316ff 100644 --- a/tccli/services/es/v20180416/api.json +++ b/tccli/services/es/v20180416/api.json @@ -176,7 +176,7 @@ "status": "online" }, "DescribeServerlessMetrics": { - "document": "获取serverless实例对应指标,获取space维度时不需要传入indexid,获取index时不需要传入spaceid", + "document": "获取serverless实例对应指标,获取space维度时不需要传入indexid,获取index时不需要传入spaceid\n获取一段时间时间范围内的指标数据", "input": "DescribeServerlessMetricsRequest", "name": "获取实例对应的监控指标", "output": "DescribeServerlessMetricsResponse", @@ -1833,6 +1833,15 @@ "name": "ZoneId", "required": false, "type": "int" + }, + { + "disabled": false, + "document": "标签信息", + "example": "无", + "member": "TagInfo", + "name": "TagList", + "required": false, + "type": "list" } ], "type": "object" @@ -3404,12 +3413,21 @@ }, { "disabled": false, - "document": "指标类型,暂时只支持Storage", + "document": "指标类型,暂时只支持Storage(存储大小),AllMetric(所有存储指标:索引流量、存储大小、文档数量、读请求和写请求)", "example": "[\"Storage\"]", "member": "string", "name": "MetricType", "required": false, "type": "list" + }, + { + "disabled": false, + "document": "时间长度类型DurationType(1: 3小时, 2: 昨天1天,3: 今日0点到现在)", + "example": "1", + "member": "int64", + "name": "DurationType", + "required": false, + "type": "int" } ], "type": "object" @@ -3427,6 +3445,46 @@ "type": "float", "value_allowed_null": false }, + { + "disabled": false, + "document": "IndexTraffic指标值,单位byte", + "example": "2262158.88", + "member": "float", + "name": "IndexTraffic", + "output_required": false, + "type": "float", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "读请求数,单位次数", + "example": "100", + "member": "int64", + "name": "ReadReqTimes", + "output_required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "写请求数,单位次数", + "example": "100", + "member": "int64", + "name": "WriteReqTimes", + "output_required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "文档数量,单位个数", + "example": "100", + "member": "int64", + "name": "DocCount", + "output_required": false, + "type": "int", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -3593,6 +3651,15 @@ "name": "Limit", "required": false, "type": "int" + }, + { + "disabled": false, + "document": "标签信息", + "example": "无", + "member": "TagInfo", + "name": "TagList", + "required": false, + "type": "list" } ], "type": "object" @@ -8403,6 +8470,16 @@ "output_required": true, "type": "list", "value_allowed_null": false + }, + { + "disabled": false, + "document": "3782478.47\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "索引流量,单位byte", + "member": "float", + "name": "IndexTraffic", + "output_required": false, + "type": "float", + "value_allowed_null": true } ], "usage": "out" @@ -8730,6 +8807,16 @@ "output_required": false, "type": "int", "value_allowed_null": true + }, + { + "disabled": false, + "document": "key:value\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "空间标签信息", + "member": "TagInfo", + "name": "TagList", + "output_required": false, + "type": "list", + "value_allowed_null": true } ], "usage": "out" diff --git a/tccli/services/ess/ess_client.py b/tccli/services/ess/ess_client.py index e048af7ae3..055f6a986c 100644 --- a/tccli/services/ess/ess_client.py +++ b/tccli/services/ess/ess_client.py @@ -2201,6 +2201,58 @@ def doCreateFlowSignUrl(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) +def doCreateBatchInitOrganizationUrl(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.EssClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateBatchInitOrganizationUrlRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateBatchInitOrganizationUrl(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doCancelUserAutoSignEnableUrl(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -4646,6 +4698,7 @@ def doDeleteExtendedServiceAuthInfos(args, parsed_globals): "DescribeFlowBriefs": doDescribeFlowBriefs, "DescribeSignFaceVideo": doDescribeSignFaceVideo, "CreateFlowSignUrl": doCreateFlowSignUrl, + "CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl, "CancelUserAutoSignEnableUrl": doCancelUserAutoSignEnableUrl, "DescribeBillUsageDetail": doDescribeBillUsageDetail, "DescribeIntegrationDepartments": doDescribeIntegrationDepartments, diff --git a/tccli/services/ess/v20201111/api.json b/tccli/services/ess/v20201111/api.json index 5091092267..f8b6ef92dc 100644 --- a/tccli/services/ess/v20201111/api.json +++ b/tccli/services/ess/v20201111/api.json @@ -35,6 +35,13 @@ "output": "CreateBatchCancelFlowUrlResponse", "status": "online" }, + "CreateBatchInitOrganizationUrl": { + "document": "支持企业进行批量初始化操作:\n\n此接口存在以下限制:\n1. 若批量操作中包含加入集团企业操作,则调用此接口的员工须有集团企业管理权限。\n2. 批量操作的企业需要已经完成电子签的认证流程。\n3. 通过此接口生成的链接在小程序端进行操作时,操作人需要是所有企业的超管或法人。\n4. 批量操作的企业,需要是通过平台方引导认证的企业。\n5. 操作链接过期时间默认为生成链接后7天。", + "input": "CreateBatchInitOrganizationUrlRequest", + "name": "批量操作企业初始化", + "output": "CreateBatchInitOrganizationUrlResponse", + "status": "online" + }, "CreateBatchOrganizationRegistrationTasks": { "document": "本接口(CreateBatchOrganizationRegistrationTasks)用于批量创建企业认证链接\n该接口为异步提交任务接口,需要跟查询企业批量认证链接(DescribeBatchOrganizationRegistrationUrls) 配合使用.\n\n批量创建链接有以下限制:\n\n1. 单次最多创建10个企业。\n2. 一天同一家企业最多创建8000家企业。\n3. 同一批创建的企业不能重复 其中包括 企业名称,企业统一信用代码\n4. 跳转到小程序的实现,参考微信官方文档(分为全屏、半屏两种方式),如何配置也可以请参考: 跳转电子签小程序配置\n\n注:\n\n1. **此接口需要购买单独的实名套餐包方可调用,如有需求请联系对接人员评估**\n \n2. 如果生成的链接是APP链接,跳转到小程序的实现,参考微信官方文档(分为全屏半屏两种方式),如何配置也可以请参考: 跳转电子签小程序配置\n \n\n**腾讯电子签小程序的AppID 和 原始Id如下:**\n\n| 小程序 | AppID | 原始ID |\n| --- | --- | --- |\n| 腾讯电子签(正式版) | wxa023b292fd19d41d | gh_da88f6188665 |\n| 腾讯电子签Demo | wx371151823f6f3edf | gh_39a5d3de69fa |", "input": "CreateBatchOrganizationRegistrationTasksRequest", @@ -2129,6 +2136,100 @@ ], "type": "object" }, + "CreateBatchInitOrganizationUrlRequest": { + "document": "CreateBatchInitOrganizationUrl请求参数结构体", + "members": [ + { + "disabled": false, + "document": "执行本接口操作的员工信息。\n注: `在调用此接口时,请确保指定的员工已获得所需的接口调用权限,并具备接口传入的相应资源的数据权限。`", + "example": "无", + "member": "UserInfo", + "name": "Operator", + "required": true, + "type": "object" + }, + { + "disabled": false, + "document": "初始化操作类型\n", + "example": "无", + "member": "string", + "name": "OperateTypes", + "required": true, + "type": "list" + }, + { + "disabled": false, + "document": "批量操作的企业Id列表,最大支持50个", + "example": "无", + "member": "string", + "name": "OrganizationIds", + "required": true, + "type": "list" + }, + { + "disabled": false, + "document": "代理相关应用信息,如集团主企业代子企业操作的场景中ProxyOrganizationId必填", + "example": "无", + "member": "Agent", + "name": "Agent", + "required": false, + "type": "object" + } + ], + "type": "object" + }, + "CreateBatchInitOrganizationUrlResponse": { + "document": "CreateBatchInitOrganizationUrl返回参数结构体", + "members": [ + { + "disabled": false, + "document": "小程序路径", + "example": "无", + "member": "string", + "name": "MiniAppPath", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作长链", + "example": "无", + "member": "string", + "name": "OperateLongUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作短链", + "example": "无", + "member": "string", + "name": "OperateShortUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作二维码", + "example": "无", + "member": "string", + "name": "QRCodeUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "CreateBatchOrganizationRegistrationTasksRequest": { "document": "CreateBatchOrganizationRegistrationTasks请求参数结构体", "members": [ diff --git a/tccli/services/ess/v20201111/examples.json b/tccli/services/ess/v20201111/examples.json index e715ea879a..90bca8e363 100644 --- a/tccli/services/ess/v20201111/examples.json +++ b/tccli/services/ess/v20201111/examples.json @@ -88,6 +88,14 @@ "title": "获取批量撤销签署流程链接部分成功" } ], + "CreateBatchInitOrganizationUrl": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: ess.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchInitOrganizationUrl\n<公共请求参数>\n\n{\n \"Operator\": {\n \"UserId\": \"yDxjOXXgydjfxgnzUuO4zjEWA07rD2xl\"\n },\n \"OperateTypes\": [\n \"OPEN_AUTO_SIGN\",\n \"AUTH_JOIN_ORGANIZATION_GROUP\",\n \"CREATE_SEAL\"\n ],\n \"OrganizationIds\": [\n \"yDCpSUUckpao78exUIqrf58JQDTLbbTr\",\n \"yDCpSUUckpao696tUIqrf5x1nPoxNy7C\"\n ]\n}", + "output": "{\n \"Response\": {\n \"MiniAppPath\": \"pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6\",\n \"OperateLongUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6\",\n \"OperateShortUrl\": \"https://essurl.cn/zahbUBHxW3\",\n \"QRCodeUrl\": \"https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png\",\n \"RequestId\": \"s1723520103899037060\"\n }\n}", + "title": "创建批量操作企业初始化链接" + } + ], "CreateBatchOrganizationRegistrationTasks": [ { "document": "", diff --git a/tccli/services/essbasic/essbasic_client.py b/tccli/services/essbasic/essbasic_client.py index ffd3f7acb9..bf5971adbe 100644 --- a/tccli/services/essbasic/essbasic_client.py +++ b/tccli/services/essbasic/essbasic_client.py @@ -2723,6 +2723,58 @@ def doDescribeChannelOrganizations(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) +def doCreateBatchInitOrganizationUrl(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateBatchInitOrganizationUrlRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateBatchInitOrganizationUrl(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doSendFlow(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -4231,7 +4283,7 @@ def doDescribeCustomFlowIdsByFlowId(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateH5FaceIdUrl(args, parsed_globals): +def doDescribeFaceIdResults(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4260,11 +4312,11 @@ def doCreateH5FaceIdUrl(args, parsed_globals): client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateH5FaceIdUrlRequest() + model = models.DescribeFaceIdResultsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateH5FaceIdUrl(model) + rsp = client.DescribeFaceIdResults(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4283,7 +4335,7 @@ def doCreateH5FaceIdUrl(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeFaceIdResults(args, parsed_globals): +def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4312,11 +4364,11 @@ def doDescribeFaceIdResults(args, parsed_globals): client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeFaceIdResultsRequest() + model = models.CreateChannelOrganizationInfoChangeUrlRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeFaceIdResults(model) + rsp = client.CreateChannelOrganizationInfoChangeUrl(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4335,7 +4387,7 @@ def doDescribeFaceIdResults(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals): +def doDescribeUsers(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4364,11 +4416,11 @@ def doCreateChannelOrganizationInfoChangeUrl(args, parsed_globals): client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateChannelOrganizationInfoChangeUrlRequest() + model = models.DescribeUsersRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateChannelOrganizationInfoChangeUrl(model) + rsp = client.DescribeUsers(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4751,7 +4803,7 @@ def doCancelFlow(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeUsers(args, parsed_globals): +def doCreateH5FaceIdUrl(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4780,11 +4832,11 @@ def doDescribeUsers(args, parsed_globals): client = mod.EssbasicClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeUsersRequest() + model = models.CreateH5FaceIdUrlRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeUsers(model) + rsp = client.CreateH5FaceIdUrl(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -6740,6 +6792,7 @@ def doCreateServerFlowSign(args, parsed_globals): "ChannelDescribeRoles": doChannelDescribeRoles, "DescribeResourceUrlsByFlows": doDescribeResourceUrlsByFlows, "DescribeChannelOrganizations": doDescribeChannelOrganizations, + "CreateBatchInitOrganizationUrl": doCreateBatchInitOrganizationUrl, "SendFlow": doSendFlow, "DescribeFaceIdPhotos": doDescribeFaceIdPhotos, "ChannelDescribeFlowComponents": doChannelDescribeFlowComponents, @@ -6769,9 +6822,9 @@ def doCreateServerFlowSign(args, parsed_globals): "VerifySubOrganization": doVerifySubOrganization, "ArchiveFlow": doArchiveFlow, "DescribeCustomFlowIdsByFlowId": doDescribeCustomFlowIdsByFlowId, - "CreateH5FaceIdUrl": doCreateH5FaceIdUrl, "DescribeFaceIdResults": doDescribeFaceIdResults, "CreateChannelOrganizationInfoChangeUrl": doCreateChannelOrganizationInfoChangeUrl, + "DescribeUsers": doDescribeUsers, "CreateFaceIdSign": doCreateFaceIdSign, "CheckVerifyCodeMatchFlowId": doCheckVerifyCodeMatchFlowId, "ChannelCreateFlowGroupByFiles": doChannelCreateFlowGroupByFiles, @@ -6779,7 +6832,7 @@ def doCreateServerFlowSign(args, parsed_globals): "DescribeFlowDetailInfo": doDescribeFlowDetailInfo, "ChannelDescribeBillUsageDetail": doChannelDescribeBillUsageDetail, "CancelFlow": doCancelFlow, - "DescribeUsers": doDescribeUsers, + "CreateH5FaceIdUrl": doCreateH5FaceIdUrl, "DescribeFlowApprovers": doDescribeFlowApprovers, "DeleteSeal": doDeleteSeal, "ModifyFlowDeadline": doModifyFlowDeadline, diff --git a/tccli/services/essbasic/v20210526/api.json b/tccli/services/essbasic/v20210526/api.json index 9c56f58fc5..badcfcb71a 100644 --- a/tccli/services/essbasic/v20210526/api.json +++ b/tccli/services/essbasic/v20210526/api.json @@ -315,6 +315,13 @@ "output": "ChannelVerifyPdfResponse", "status": "online" }, + "CreateBatchInitOrganizationUrl": { + "document": "支持企业进行批量初始化操作:\n\n此接口存在以下限制:\n1. 批量操作的企业需要已经完成电子签的认证流程。\n2. 通过此接口生成的链接在小程序端进行操作时,操作人需要是所有企业的超管或法人。\n3. 批量操作的企业,需要是本方第三方应用下的企业。\n4. 操作链接过期时间默认为生成链接后7天。", + "input": "CreateBatchInitOrganizationUrlRequest", + "name": "批量操作企业初始化", + "output": "CreateBatchInitOrganizationUrlResponse", + "status": "online" + }, "CreateBatchOrganizationRegistrationTasks": { "document": "该接口用于批量创建企业认证链接, 可以支持PC浏览器,H5和小程序三种途径。\n此接口为异步提交任务接口,需要与[查询子企业批量认证链接](https://qcloudimg.tencent-cloud.cn/raw/1d3737991b2a3be78002bd78a47d6917.png)配合使用,整体流程如下图。\n![image](https://qcloudimg.tencent-cloud.cn/raw/654aa2a72ab7d42f06464ea33c50c3bb.png)\n\n\n\n**注意**\n\n1. 单次最多创建10个子企业。\n2. 一天内,同一家企业最多创建8000个子企业。\n3. 同一批创建的子客户不能重复,包括企业名称、企业统一信用代码和子客户经办人openId。\n4. 跳转到小程序的实现,请参考微信官方文档(分为全屏半屏两种方式)。如何配置跳转电子签小程序,可参考:跳转电子签小程序配置。\n\n\n\n**腾讯电子签小程序的AppID 和 原始Id如下:**\n\n| 小程序 | AppID | 原始ID |\n| ------------ | ------------ | ------------ |\n| 腾讯电子签(正式版) | wxa023b292fd19d41d | gh_da88f6188665 |\n| 腾讯电子签Demo | wx371151823f6f3edf | gh_39a5d3de69fa |", "input": "CreateBatchOrganizationRegistrationTasksRequest", @@ -5841,6 +5848,91 @@ ], "usage": "in" }, + "CreateBatchInitOrganizationUrlRequest": { + "document": "CreateBatchInitOrganizationUrl请求参数结构体", + "members": [ + { + "disabled": false, + "document": "应用相关信息。 此接口Agent.AppId 必填。", + "example": "无", + "member": "Agent", + "name": "Agent", + "required": true, + "type": "object" + }, + { + "disabled": false, + "document": "初始化操作类型\n", + "example": "无", + "member": "string", + "name": "OperateTypes", + "required": true, + "type": "list" + }, + { + "disabled": false, + "document": "批量操作的企业列表在第三方平台的企业Id列表,即ProxyOrganizationOpenId列表,最大支持50个", + "example": "无", + "member": "string", + "name": "ProxyOrganizationOpenIds", + "required": true, + "type": "list" + } + ], + "type": "object" + }, + "CreateBatchInitOrganizationUrlResponse": { + "document": "CreateBatchInitOrganizationUrl返回参数结构体", + "members": [ + { + "disabled": false, + "document": "小程序路径", + "example": "无", + "member": "string", + "name": "MiniAppPath", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作长链", + "example": "无", + "member": "string", + "name": "OperateLongUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作短链", + "example": "无", + "member": "string", + "name": "OperateShortUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "操作二维码", + "example": "无", + "member": "string", + "name": "QRCodeUrl", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "CreateBatchOrganizationRegistrationTasksRequest": { "document": "CreateBatchOrganizationRegistrationTasks请求参数结构体", "members": [ diff --git a/tccli/services/essbasic/v20210526/examples.json b/tccli/services/essbasic/v20210526/examples.json index 79fdc7a664..5d05fc676c 100644 --- a/tccli/services/essbasic/v20210526/examples.json +++ b/tccli/services/essbasic/v20210526/examples.json @@ -672,6 +672,14 @@ "title": "验证不通过" } ], + "CreateBatchInitOrganizationUrl": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: essbasic.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateBatchInitOrganizationUrl\n<公共请求参数>\n\n{\n \"Agent\": {\n \"ProxyOrganizationOpenId\": \"\",\n \"AppId\": \"yDKHHUUckpacc9ijUuXGmVcuzACNH5pF\"\n },\n \"ProxyOrganizationOpenIds\": [\n \"tencent-testorg-cd\",\n \"tencent-testorg-ca\",\n \"tencent-testorg-zhangy\",\n \"tencent-testorg-tianjing\",\n \"tencent-testorg-hongkong\"\n ],\n \"OperateTypes\": [\n \"OPEN_AUTO_SIGN\",\n \"CREATE_SEAL\"\n ]\n}", + "output": "{\n \"Response\": {\n \"MiniAppPath\": \"pages/guide/index?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDAHpURDfyLc5LgBhXb6\",\n \"OperateLongUrl\": \"https://res.ess.tencent.cn/cdn/h5-activity-dev/jump-mp.html?to=BATCH_INITIALIZATION_ORGANIZATIONS&shortKey=yDCHpURDfyLc5LgBhXb6\",\n \"OperateShortUrl\": \"https://essurl.cn/zahbUBHxW3\",\n \"QRCodeUrl\": \"https://dyn.ess.tencent.cn/imgs/qrcode_urls/batch_initialization_organizations/yDCHHUUckpacc9ijUuXGmVcuzZCNH5pF.png\",\n \"RequestId\": \"s1723520103899037060\"\n }\n}", + "title": "创建批量操作企业初始化链接" + } + ], "CreateBatchOrganizationRegistrationTasks": [ { "document": "用户同时创建3个企业, 创建链接成功", diff --git a/tccli/services/faceid/v20180301/api.json b/tccli/services/faceid/v20180301/api.json index 3ff2eab3a5..ca1a3db9c4 100644 --- a/tccli/services/faceid/v20180301/api.json +++ b/tccli/services/faceid/v20180301/api.json @@ -413,7 +413,7 @@ "members": [ { "disabled": false, - "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-6': '持卡人信息有误'\n'-7': '未开通无卡支付'\n'-8': '此卡被没收'\n'-9': '无效卡号'\n'-10': '此卡无对应发卡行'\n'-11': '该卡未初始化或睡眠卡'\n'-12': '作弊卡、吞卡'\n'-13': '此卡已挂失'\n'-14': '该卡已过期'\n'-15': '受限制的卡'\n'-16': '密码错误次数超限'\n'-17': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-5': '手机号码不合法'\n'-18': '验证中心服务繁忙'\n'-19': '验证次数超限,请次日重试'", + "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-6': '持卡人信息有误'\n'-7': '未开通无卡支付'\n'-8': '此卡被没收'\n'-9': '无效卡号'\n'-10': '此卡无对应发卡行'\n'-11': '该卡未初始化或睡眠卡'\n'-12': '作弊卡、吞卡'\n'-13': '此卡已挂失'\n'-14': '该卡已过期'\n'-15': '受限制的卡'\n'-16': '密码错误次数超限'\n'-17': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-5': '手机号码不合法'\n'-18': '验证中心服务繁忙'\n'-19': '验证次数超限,请次日重试'\n'-20': '该证件号暂不支持核验,当前仅支持二代身份证'", "example": "0", "member": "string", "name": "Result", @@ -496,7 +496,7 @@ "members": [ { "disabled": false, - "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-5': '持卡人信息有误'\n'-6': '未开通无卡支付'\n'-7': '此卡被没收'\n'-8': '无效卡号'\n'-9': '此卡无对应发卡行'\n'-10': '该卡未初始化或睡眠卡'\n'-11': '作弊卡、吞卡'\n'-12': '此卡已挂失'\n'-13': '该卡已过期'\n'-14': '受限制的卡'\n'-15': '密码错误次数超限'\n'-16': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-17': '验证中心服务繁忙'\n'-18': '验证次数超限,请次日重试'", + "document": "认证结果码\n收费结果码:\n'0': '认证通过'\n'-1': '认证未通过'\n'-5': '持卡人信息有误'\n'-6': '未开通无卡支付'\n'-7': '此卡被没收'\n'-8': '无效卡号'\n'-9': '此卡无对应发卡行'\n'-10': '该卡未初始化或睡眠卡'\n'-11': '作弊卡、吞卡'\n'-12': '此卡已挂失'\n'-13': '该卡已过期'\n'-14': '受限制的卡'\n'-15': '密码错误次数超限'\n'-16': '发卡行不支持此交易'\n不收费结果码:\n'-2': '姓名校验不通过'\n'-3': '身份证号码有误'\n'-4': '银行卡号码有误'\n'-17': '验证中心服务繁忙'\n'-18': '验证次数超限,请次日重试'\n'-19': '该证件号暂不支持核验,当前仅支持二代身份证'\t", "example": "0", "member": "string", "name": "Result", diff --git a/tccli/services/mongodb/v20190725/api.json b/tccli/services/mongodb/v20190725/api.json index 8167f0a5bf..abb0e204a1 100644 --- a/tccli/services/mongodb/v20190725/api.json +++ b/tccli/services/mongodb/v20190725/api.json @@ -3200,7 +3200,7 @@ "example": "无", "member": "SpecificationInfo", "name": "SpecInfoList", - "required": true, + "output_required": true, "type": "list", "value_allowed_null": false }, @@ -3537,7 +3537,7 @@ }, { "disabled": false, - "document": "每个分片的主从节点数量。\n取值范围:请通过接口[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询,其返回的数据结构SpecItems中的参数MinNodeNum与MaxNodeNum分别对应其最小值与最大值。", + "document": "- 创建副本集实例,指每个副本集内主从节点数量。每个副本集所支持的的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。\n- 创建分片集群实例,指每个分片的主从节点数量。每个分片所支持的最大节点数与最小节点数,请通过接口 [DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567) 获取。", "example": "3", "member": "int64", "name": "NodeNum", @@ -3564,7 +3564,7 @@ }, { "disabled": false, - "document": "实例版本信息。具体支持的版本,请通过接口[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询,其返回的数据结构SpecItems中的参数MongoVersionCode为实例所支持的版本信息。版本信息与版本号对应关系如下:\n- MONGO_3_WT:MongoDB 3.2 WiredTiger存储引擎版本。\n- MONGO_3_ROCKS:MongoDB 3.2 RocksDB存储引擎版本。\n- MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。\n- MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。\n- MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。\n- MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。\n- MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。", + "document": "实例版本信息。具体支持的版本,请通过接口[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询,其返回的数据结构SpecItems中的参数MongoVersionCode为实例所支持的版本信息。版本信息与版本号对应关系如下:\n- MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。\n- MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。\n- MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。\n- MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。\n- MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。\n- MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。", "example": "MONGO_36_WT", "member": "string", "name": "MongoVersion", @@ -3573,7 +3573,7 @@ }, { "disabled": false, - "document": "机器类型。\n- HIO:高IO型。\n- HIO10G:高IO万兆型。", + "document": "产品规格类型。\n- HIO10G:通用高HIO万兆型。\n- HCD:云盘版。", "example": "HIO10G", "member": "string", "name": "MachineCode", @@ -3591,7 +3591,7 @@ }, { "disabled": false, - "document": "实例类型。\n- REPLSET:副本集。\n- SHARD:分片集群。\n- STANDALONE:单节点。", + "document": "实例类型。\n- REPLSET:副本集。\n- SHARD:分片集群。", "example": "REPLSET", "member": "string", "name": "ClusterType", @@ -3600,7 +3600,7 @@ }, { "disabled": false, - "document": "副本集个数。\n- 创建副本集实例时,该参数固定设置为1。\n- 创建分片集群时,指分片数量,请通过接口[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询,其返回的数据结构SpecItems中的参数MinReplicateSetNum与MaxReplicateSetNum分别对应其最小值与最大值。\n- 若为单节点实例,该参数固定设置为0。", + "document": "- 创建副本集实例,指副本集数量,该参数只能为1。\n- 创建分片集群实例,指分片的数量。请通过接口[DescribeSpecInfo](https://cloud.tencent.com/document/product/240/38567)查询分片数量的取值范围,其返回的数据结构SpecItems中的参数MinReplicateSetNum与MaxReplicateSetNum分别对应其最小值与最大值。", "example": "1", "member": "int64", "name": "ReplicateSetNum", @@ -3609,7 +3609,7 @@ }, { "disabled": false, - "document": "- 选择包年包月计费模式,即 InstanceChargeType 设定为PREPAID时,需设定购买实例的时长。该参数取值可选:[1,2,3,4,5,6,7,8,9,10,11,12,24,36];单位:月。\n-选择按量计费,即 InstanceChargeType 设定为 **POSTPAID_BY_HOUR** 时,该参数仅可配置为 1。", + "document": "- 选择包年包月计费模式,即 InstanceChargeType 设定为PREPAID时,必须设置该参数,指定购买实例的购买时长。取值可选:[1,2,3,4,5,6,7,8,9,10,11,12,24,36];单位:月。\n-选择按量计费,即 InstanceChargeType 设定为 **POSTPAID_BY_HOUR** 时,该参数仅可配置为 1。", "example": "1", "member": "int64", "name": "Period", @@ -3627,7 +3627,7 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 Mongos CPU核数,取值范围为[1,16]。", + "document": "Mongos CPU 核数,支持1、2、4、8、16。购买分片集群时,必须填写。注意为空时取默认取值为2C。", "example": "2", "member": "uint64", "name": "MongosCpu", @@ -3636,7 +3636,7 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 Mongos 内存,取值范围为[2,32],单位:GB。", + "document": "Mongos 内存大小。- 购买分片集群时,必须填写。- 单位:GB,支持1核2GB、2核4GB、4核8GB、8核16GB、16核32GB。注意为空时取默认取值为4G。", "example": "4", "member": "uint64", "name": "MongosMemory", @@ -3645,7 +3645,7 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 Mongos 个数,取值范围为[3,32]。", + "document": "指 Mongos 个数,取值范围为[3,32]。若为分片集群实例询价,则该参数必须设置。注意为空时取默认取值为3个节点。", "example": "3", "member": "uint64", "name": "MongosNum", @@ -3654,7 +3654,7 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 ConfigServer CPU核数,取值为1,单位:GB。", + "document": "指 ConfigServer CPU核数,取值为1,单位:GB。若为分片集群实例询价,该参数必须设置。", "example": "1", "member": "uint64", "name": "ConfigServerCpu", @@ -3663,7 +3663,7 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 ConfigServer 内存大小,取值为2,单位:GB。", + "document": "指 ConfigServer 内存大小,取值为2,单位:GB。若为分片集群实例询价,则该参数必须设置。", "example": "2", "member": "uint64", "name": "ConfigServerMemory", @@ -3672,8 +3672,8 @@ }, { "disabled": false, - "document": "分片实例询价必填参数,指 ConfigServer 磁盘大小,取值为 20,单位:GB。", - "example": "50", + "document": "指 ConfigServer 磁盘大小,取值为 20,单位:GB。若为分片集群实例询价,则该参数必须设置。", + "example": "20", "member": "uint64", "name": "ConfigServerVolume", "required": false, @@ -6235,211 +6235,211 @@ "members": [ { "disabled": false, - "document": "规格信息标识", + "document": "规格信息标识。格式如:mongo.HIO10G.128g。由节点类型、规格类型、内存规格三部分组成。\n- 节点类型,如下所示。\n - mongo:Mongod 节点。\n - mongos:Mongos 节点。\n - cfgstr:Configserver 节点。\n- 规格类型,如下所示。\n - HIO10G:通用高HIO万兆型。\n - HCD:云盘版类型。\n- 内存规格,如下所示:\n - 支持4、8、16、32、64、128、240、512。\n - 单位g:表示GB。128g则表示128GB。", "example": "mongo.HIO10G.128g", "member": "string", "name": "SpecCode", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "规格有效标志,取值:0-停止售卖,1-开放售卖", + "document": "售卖规格有效标志,取值范围如下:\n- 0:停止售卖,\n- 1:开放售卖。", "example": "1", "member": "uint64", "name": "Status", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "计算资源规格,单位为CPU核心数", + "document": "计算资源规格,CPU核数。", "example": "2", "member": "uint64", "name": "Cpu", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "内存规格,单位为MB", + "document": "内存规格,单位为:MB。", "example": "4096", "member": "uint64", "name": "Memory", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "默认磁盘规格,单位MB", + "document": "默认磁盘规格,单位为:MB。", "example": "3072000", "member": "uint64", "name": "DefaultStorage", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最大磁盘规格,单位MB", + "document": "最大磁盘规格,单位为:MB。", "example": "5120000", "member": "uint64", "name": "MaxStorage", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最小磁盘规格,单位MB", + "document": "最小磁盘规格,单位为:MB。", "example": "1536000", "member": "uint64", "name": "MinStorage", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "可承载qps信息", + "document": "指每秒最大请求次数,单位为:次/秒。", "example": "36000", "member": "uint64", "name": "Qps", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "连接数限制", + "document": "规格所支持的最大连接数限制。", "example": "20000", "member": "uint64", "name": "Conns", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "实例mongodb版本信息", + "document": "实例存储引擎版本信息。\n- MONGO_36_WT:MongoDB 3.6 WiredTiger存储引擎版本。\n- MONGO_40_WT:MongoDB 4.0 WiredTiger存储引擎版本。\n- MONGO_42_WT:MongoDB 4.2 WiredTiger存储引擎版本。\n- MONGO_44_WT:MongoDB 4.4 WiredTiger存储引擎版本。\n- MONGO_50_WT:MongoDB 5.0 WiredTiger存储引擎版本。\n- MONGO_60_WT:MongoDB 6.0 WiredTiger存储引擎版本。", "example": "MONGO_36_WT", "member": "string", "name": "MongoVersionCode", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "实例mongodb版本号", + "document": "实例版本对应的数字版本。", "example": "4", "member": "uint64", "name": "MongoVersionValue", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "实例mongodb版本号(短)", + "document": "实例版本信息。支持:3.6、4.2、4.4、5.0、6.0。\n", "example": "3.6", "member": "string", "name": "Version", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "存储引擎", + "document": "存储引擎。", "example": "WiredTiger", "member": "string", "name": "EngineName", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "集群类型,取值:1-分片集群,0-副本集集群", + "document": "集群类型,取值如下:\n- 1:分片集群。\n- 0:副本集集群。", "example": "1", "member": "uint64", "name": "ClusterType", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最小副本集从节点数", + "document": "每个副本集最小节点数。", "example": "3", "member": "uint64", "name": "MinNodeNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最大副本集从节点数", + "document": "每个副本集最大节点数。", "example": "7", "member": "uint64", "name": "MaxNodeNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最小分片数", + "document": "最小分片数。", "example": "2", "member": "uint64", "name": "MinReplicateSetNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最大分片数", + "document": "最大分片数。", "example": "20", "member": "uint64", "name": "MaxReplicateSetNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最小分片从节点数", + "document": "每个分片最小节点数。", "example": "3", "member": "uint64", "name": "MinReplicateSetNodeNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "最大分片从节点数", + "document": "每个分片最大节点数。", "example": "7", "member": "uint64", "name": "MaxReplicateSetNodeNum", - "required": true, + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "机器类型,取值:0-HIO,4-HIO10G", - "example": "4-HIO10G", + "document": "集群的规格类型,取值范围如下:\n- HIO10G:通用高HIO万兆型。\n- HCD:云盘版类型。", + "example": "HIO10G", "member": "string", "name": "MachineType", - "required": true, + "output_required": true, "type": "string", "value_allowed_null": false } diff --git a/tccli/services/mongodb/v20190725/examples.json b/tccli/services/mongodb/v20190725/examples.json index 0be74ef2f4..e35d19d4a3 100644 --- a/tccli/services/mongodb/v20190725/examples.json +++ b/tccli/services/mongodb/v20190725/examples.json @@ -195,8 +195,8 @@ "DescribeSpecInfo": [ { "document": "", - "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSpecInfo\n<公共请求参数>\n\n{\n \"Zone\": \"xx\"\n}", - "output": "{\n \"Response\": {\n \"RequestId\": \"a8c7ade4-2d22-4f5e-9e71-f546f15e6d67\",\n \"SpecInfoList\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"SpecItems\": [\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n },\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_3_WT\",\n \"MongoVersionValue\": 2,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.2\"\n },\n {\n \"ClusterType\": 1,\n \"Conns\": 15000,\n \"Cpu\": 48,\n \"DefaultStorage\": 4096000,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 6144000,\n \"Memory\": 524288,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 1536000,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 42000,\n \"SpecCode\": \"mongo.HIO10G.512g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n }\n ],\n \"Zone\": \"ap-guangzhou-3\"\n }\n ]\n }\n}", + "input": "POST / HTTP/1.1\nHost: mongodb.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeSpecInfo\n<公共请求参数>\n\n{\n \"Zone\": \"ap-guangzhou\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"a8c7ade4-2d22-4f5e-9e71-f546f15e6d67\",\n \"SpecInfoList\": [\n {\n \"Region\": \"ap-guangzhou\",\n \"SpecItems\": [\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n },\n {\n \"ClusterType\": 0,\n \"Conns\": 1500,\n \"Cpu\": 2,\n \"DefaultStorage\": 25600,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 512000,\n \"Memory\": 4096,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 102400,\n \"MongoVersionCode\": \"MONGO_3_WT\",\n \"MongoVersionValue\": 2,\n \"Qps\": 5000,\n \"SpecCode\": \"mongo.HIO10G.4g\",\n \"Status\": 1,\n \"Version\": \"3.2\"\n },\n {\n \"ClusterType\": 1,\n \"Conns\": 15000,\n \"Cpu\": 48,\n \"DefaultStorage\": 4096000,\n \"EngineName\": \"WiredTiger\",\n \"MachineType\": \"HIO10G\",\n \"MaxNodeNum\": 3,\n \"MaxReplicateSetNodeNum\": 5,\n \"MaxReplicateSetNum\": 20,\n \"MaxStorage\": 6144000,\n \"Memory\": 524288,\n \"MinNodeNum\": 3,\n \"MinReplicateSetNodeNum\": 3,\n \"MinReplicateSetNum\": 2,\n \"MinStorage\": 1536000,\n \"MongoVersionCode\": \"MONGO_36_WT\",\n \"MongoVersionValue\": 4,\n \"Qps\": 42000,\n \"SpecCode\": \"mongo.HIO10G.512g\",\n \"Status\": 1,\n \"Version\": \"3.6\"\n }\n ],\n \"SupportMultiAZ\": 1,\n \"Zone\": \"ap-guangzhou-3\"\n }\n ]\n }\n}", "title": "查询云数据库售卖" } ], diff --git a/tccli/services/ms/v20180408/api.json b/tccli/services/ms/v20180408/api.json index 1f2ea531f9..e77a419e42 100644 --- a/tccli/services/ms/v20180408/api.json +++ b/tccli/services/ms/v20180408/api.json @@ -1,165 +1,165 @@ { "actions": { "CancelEncryptTask": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制,取消渠道合作加固中的任务", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制,取消渠道合作加固中的任务", "input": "CancelEncryptTaskRequest", "name": "取消渠道合作加固任务", "output": "CancelEncryptTaskResponse", - "status": "online" + "status": "deprecated" }, "CreateBindInstance": { - "document": "将应用和资源进行绑定。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n将应用和资源进行绑定。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "CreateBindInstanceRequest", "name": "将应用绑定到资源", "output": "CreateBindInstanceResponse", - "status": "online" + "status": "deprecated" }, "CreateCosSecKeyInstance": { - "document": "获取云COS文件存储临时密钥,密钥仅限于临时上传文件,有访问限制和时效性,请保管好临时密钥。", + "document": "产品已经停止售卖\n\n获取云COS文件存储临时密钥,密钥仅限于临时上传文件,有访问限制和时效性,请保管好临时密钥。", "input": "CreateCosSecKeyInstanceRequest", "name": "获取云COS临时密钥", "output": "CreateCosSecKeyInstanceResponse", - "status": "online" + "status": "deprecated" }, "CreateEncryptInstance": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制,用于创建加固任务。", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制,用于创建加固任务。", "input": "CreateEncryptInstanceRequest", "name": "创建渠道合作应用加固任务", "output": "CreateEncryptInstanceResponse", - "status": "online" + "status": "deprecated" }, "CreateOrderInstance": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制。\n订单类型有:免费试用、按年收费、按次收费。\n应用加固支持的平台类型有:android加固 、ios源码混淆 、sdk加固、applet小程序加固", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制。\n订单类型有:免费试用、按年收费、按次收费。\n应用加固支持的平台类型有:android加固 、ios源码混淆 、sdk加固、applet小程序加固", "input": "CreateOrderInstanceRequest", "name": "创建渠道合作应用加固订单", "output": "CreateOrderInstanceResponse", - "status": "online" + "status": "deprecated" }, "CreateResourceInstances": { - "document": "用户可以使用该接口自建资源,只支持白名单用户", + "document": "产品已经停止售卖\n\n用户可以使用该接口自建资源,只支持白名单用户", "input": "CreateResourceInstancesRequest", "name": "创建资源", "output": "CreateResourceInstancesResponse", - "status": "online" + "status": "deprecated" }, "CreateShieldInstance": { - "document": "用户通过该接口提交应用进行应用加固,加固后需通过DescribeShieldResult接口查询加固结果。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n用户通过该接口提交应用进行应用加固,加固后需通过DescribeShieldResult接口查询加固结果。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "CreateShieldInstanceRequest", "name": "提交加固基础数据", "output": "CreateShieldInstanceResponse", - "status": "online" + "status": "deprecated" }, "CreateShieldPlanInstance": { - "document": "对资源进行策略新增。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n对资源进行策略新增。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "CreateShieldPlanInstanceRequest", "name": "新增加固策略", "output": "CreateShieldPlanInstanceResponse", - "status": "online" + "status": "deprecated" }, "DeleteShieldInstances": { - "document": "删除一个或者多个app加固信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n删除一个或者多个app加固信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "DeleteShieldInstancesRequest", "name": "批量删除提交过的app信息", "output": "DeleteShieldInstancesResponse", - "status": "online" + "status": "deprecated" }, "DescribeApkDetectionResult": { - "document": "该接口采用同步模式请求腾讯APK云检测服务,即时返回检测数据,需要用户用轮询的方式调用本接口来进行样本送检并获取检测结果(每隔60s发送一次请求,传相同的参数,重试30次),一般情况下0.5h内会出检测结果,最长时间是3h。当Result为ok并且ResultList数组非空有值时,代表检测完毕,若长时间获取不到检测结果,请联系客服。", + "document": "产品已经停止售卖\n\n该接口采用同步模式请求腾讯APK云检测服务,即时返回检测数据,需要用户用轮询的方式调用本接口来进行样本送检并获取检测结果(每隔60s发送一次请求,传相同的参数,重试30次),一般情况下0.5h内会出检测结果,最长时间是3h。当Result为ok并且ResultList数组非空有值时,代表检测完毕,若长时间获取不到检测结果,请联系客服。", "input": "DescribeApkDetectionResultRequest", "name": "环境安全检测-apk检测", "output": "DescribeApkDetectionResultResponse", - "status": "online" + "status": "deprecated" }, "DescribeEncryptInstances": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制,用于查询加固任务,入参中的条件过滤字段均为精准匹配。支持功能点: 1. 多任务分页查询 2.根据任务Id唯一值查询单记录", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制,用于查询加固任务,入参中的条件过滤字段均为精准匹配。支持功能点: 1. 多任务分页查询 2.根据任务Id唯一值查询单记录", "input": "DescribeEncryptInstancesRequest", "name": "查询渠道合作加固任务", "output": "DescribeEncryptInstancesResponse", - "status": "online" + "status": "deprecated" }, "DescribeEncryptPlan": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制。入参中的条件过滤字段均为精准匹配。", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制。入参中的条件过滤字段均为精准匹配。", "input": "DescribeEncryptPlanRequest", "name": "载入渠道合作加固上次使用的加固配置", "output": "DescribeEncryptPlanResponse", - "status": "online" + "status": "deprecated" }, "DescribeOrderInstances": { - "document": "该接口供渠道合作应用加固使用,接口调用有白名单用户限制。 接口返回的结果为:创建订单后,订单审批状态信息,以及与订单关联的资源状态等信息,入参中的条件过滤字段均为精准匹配.\n接口功能点:\n1.支持多订单分页查询;\n2.支持唯一订单号精准匹配查询;\n3.支持唯一资源号精准匹配查询;", + "document": "产品已经停止售卖\n\n该接口供渠道合作应用加固使用,接口调用有白名单用户限制。 接口返回的结果为:创建订单后,订单审批状态信息,以及与订单关联的资源状态等信息,入参中的条件过滤字段均为精准匹配.\n接口功能点:\n1.支持多订单分页查询;\n2.支持唯一订单号精准匹配查询;\n3.支持唯一资源号精准匹配查询;", "input": "DescribeOrderInstancesRequest", "name": "查询渠道合作应用加固订单信息", "output": "DescribeOrderInstancesResponse", - "status": "online" + "status": "deprecated" }, "DescribeResourceInstances": { - "document": "获取某个用户的所有资源信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n获取某个用户的所有资源信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "DescribeResourceInstancesRequest", "name": "获取用户的所有资源信息", "output": "DescribeResourceInstancesResponse", - "status": "online" + "status": "deprecated" }, "DescribeShieldInstances": { - "document": "本接口用于查看app列表。\n可以通过指定任务唯一标识ItemId来查询指定app的详细信息,或通过设定过滤器来查询满足过滤条件的app的详细信息。 指定偏移(Offset)和限制(Limit)来选择结果中的一部分,默认返回满足条件的前20个app信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)\n", + "document": "产品已经停止售卖\n\n本接口用于查看app列表。\n可以通过指定任务唯一标识ItemId来查询指定app的详细信息,或通过设定过滤器来查询满足过滤条件的app的详细信息。 指定偏移(Offset)和限制(Limit)来选择结果中的一部分,默认返回满足条件的前20个app信息。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)\n", "input": "DescribeShieldInstancesRequest", "name": "用户查询提交过的app列表", "output": "DescribeShieldInstancesResponse", - "status": "online" + "status": "deprecated" }, "DescribeShieldPlanInstance": { - "document": "查询加固策略。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n查询加固策略。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "DescribeShieldPlanInstanceRequest", "name": "查询加固策略", "output": "DescribeShieldPlanInstanceResponse", - "status": "online" + "status": "deprecated" }, "DescribeShieldResult": { - "document": "通过唯一标识获取加固的结果。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", + "document": "产品已经停止售卖\n\n通过唯一标识获取加固的结果。(注意:根据国家互联网用户实名制相关要求,使用该产品前,需先完成实名认证。)", "input": "DescribeShieldResultRequest", "name": "查询加固结果", "output": "DescribeShieldResultResponse", - "status": "online" + "status": "deprecated" }, "DescribeUrlDetectionResult": { - "document": "移动安全-网址检测服务", + "document": "产品已经停止售卖\n\n移动安全-网址检测服务", "input": "DescribeUrlDetectionResultRequest", "name": "移动安全-查询网址检测结果服务", "output": "DescribeUrlDetectionResultResponse", - "status": "online" + "status": "deprecated" }, "DescribeUserBaseInfoInstance": { - "document": "获取用户基础信息", + "document": "产品已经停止售卖\n\n获取用户基础信息", "input": "DescribeUserBaseInfoInstanceRequest", "name": "获取用户基础信息", "output": "DescribeUserBaseInfoInstanceResponse", - "status": "online" + "status": "deprecated" }, "DestroyResourceInstances": { - "document": "渠道合作资源销毁\n安卓应用加固-按年收费资源销毁,其他类型暂不支持", + "document": "产品已经停止售卖\n\n渠道合作资源销毁\n安卓应用加固-按年收费资源销毁,其他类型暂不支持", "input": "DestroyResourceInstancesRequest", "name": "渠道订单:资源销毁", "output": "DestroyResourceInstancesResponse", - "status": "online" + "status": "deprecated" }, "RequestLocalTask": { - "document": "client任务请求", + "document": "产品已经停止售卖\n\nclient任务请求", "input": "RequestLocalTaskRequest", "name": "client任务请求地址", "output": "RequestLocalTaskResponse", - "status": "online" + "status": "deprecated" }, "UpdateClientState": { - "document": "更新client状态,需要白名单", + "document": "产品已经停止售卖\n\n更新client状态,需要白名单", "input": "UpdateClientStateRequest", "name": "更新client状态", "output": "UpdateClientStateResponse", - "status": "online" + "status": "deprecated" }, "UpdateLocalTaskResult": { - "document": "更新本地任务执行结果", + "document": "产品已经停止售卖\n\n更新本地任务执行结果", "input": "UpdateLocalTaskResultRequest", "name": "更新本地任务结果", "output": "UpdateLocalTaskResultResponse", - "status": "online" + "status": "deprecated" } }, "metadata": { diff --git a/tccli/services/ocr/v20181119/api.json b/tccli/services/ocr/v20181119/api.json index a82f8ef84c..88743a3e85 100644 --- a/tccli/services/ocr/v20181119/api.json +++ b/tccli/services/ocr/v20181119/api.json @@ -5750,7 +5750,7 @@ }, { "disabled": false, - "document": "识别语言类型。\n支持自动识别语言类型,同时支持自选语言种类,默认中英文混合(zh),各种语言均支持与英文混合的文字识别。\n可选值:\nzh:中英混合\nzh_rare:支持英文、数字、中文生僻字、繁体字,特殊符号等\nauto:自动\nmix:混合语种\njap:日语\nkor:韩语\nspa:西班牙语\nfre:法语\nger:德语\npor:葡萄牙语\nvie:越语\nmay:马来语\nrus:俄语\nita:意大利语\nhol:荷兰语\nswe:瑞典语\nfin:芬兰语\ndan:丹麦语\nnor:挪威语\nhun:匈牙利语\ntha:泰语\nhi:印地语\nara:阿拉伯语", + "document": "识别语言类型。\n支持自动识别语言类型,同时支持自选语言种类,默认中英文混合(zh),各种语言均支持与英文混合的文字识别。\n可选值:\nzh:中英混合\nzh_rare:支持英文、数字、中文生僻字、繁体字,特殊符号等\nauto:自动\nmix:多语言混排场景中,自动识别混合语言的文本\njap:日语\nkor:韩语\nspa:西班牙语\nfre:法语\nger:德语\npor:葡萄牙语\nvie:越语\nmay:马来语\nrus:俄语\nita:意大利语\nhol:荷兰语\nswe:瑞典语\nfin:芬兰语\ndan:丹麦语\nnor:挪威语\nhun:匈牙利语\ntha:泰语\nhi:印地语\nara:阿拉伯语", "example": "无", "member": "string", "name": "LanguageType", diff --git a/tccli/services/organization/organization_client.py b/tccli/services/organization/organization_client.py index cd842a88b0..9e984d640b 100644 --- a/tccli/services/organization/organization_client.py +++ b/tccli/services/organization/organization_client.py @@ -19,7 +19,7 @@ from jmespath import search import time -def doDescribeOrganizationMembers(args, parsed_globals): +def doQuitOrganization(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -48,11 +48,11 @@ def doDescribeOrganizationMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationMembersRequest() + model = models.QuitOrganizationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationMembers(model) + rsp = client.QuitOrganization(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -71,7 +71,7 @@ def doDescribeOrganizationMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doQuitOrganization(args, parsed_globals): +def doListOrganizationNodes(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -100,11 +100,11 @@ def doQuitOrganization(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.QuitOrganizationRequest() + model = models.ListOrganizationNodesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.QuitOrganization(model) + rsp = client.ListOrganizationNodes(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -123,7 +123,7 @@ def doQuitOrganization(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDisablePolicyType(args, parsed_globals): +def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -152,11 +152,11 @@ def doDisablePolicyType(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DisablePolicyTypeRequest() + model = models.DescribeOrganizationMemberAuthAccountsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DisablePolicyType(model) + rsp = client.DescribeOrganizationMemberAuthAccounts(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -175,7 +175,7 @@ def doDisablePolicyType(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals): +def doListGroupMembers(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -204,11 +204,11 @@ def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationMemberAuthAccountsRequest() + model = models.ListGroupMembersRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationMemberAuthAccounts(model) + rsp = client.ListGroupMembers(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -227,7 +227,7 @@ def doDescribeOrganizationMemberAuthAccounts(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doGetOrganization(args, parsed_globals): +def doListOrganizationIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -256,11 +256,11 @@ def doGetOrganization(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.GetOrganizationRequest() + model = models.ListOrganizationIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.GetOrganization(model) + rsp = client.ListOrganizationIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -279,7 +279,7 @@ def doGetOrganization(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdateShareUnit(args, parsed_globals): +def doAddOrganizationNode(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -308,11 +308,11 @@ def doUpdateShareUnit(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdateShareUnitRequest() + model = models.AddOrganizationNodeRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdateShareUnit(model) + rsp = client.AddOrganizationNode(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -331,7 +331,7 @@ def doUpdateShareUnit(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdateOrganizationMember(args, parsed_globals): +def doUpdateOrganizationMemberEmailBind(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -360,11 +360,11 @@ def doUpdateOrganizationMember(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdateOrganizationMemberRequest() + model = models.UpdateOrganizationMemberEmailBindRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdateOrganizationMember(model) + rsp = client.UpdateOrganizationMemberEmailBind(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -383,7 +383,7 @@ def doUpdateOrganizationMember(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListPoliciesForTarget(args, parsed_globals): +def doRemovePermissionPolicyFromRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -412,11 +412,11 @@ def doListPoliciesForTarget(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListPoliciesForTargetRequest() + model = models.RemovePermissionPolicyFromRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListPoliciesForTarget(model) + rsp = client.RemovePermissionPolicyFromRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -435,7 +435,7 @@ def doListPoliciesForTarget(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAcceptJoinShareUnitInvitation(args, parsed_globals): +def doUpdateUser(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -464,11 +464,11 @@ def doAcceptJoinShareUnitInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AcceptJoinShareUnitInvitationRequest() + model = models.UpdateUserRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AcceptJoinShareUnitInvitation(model) + rsp = client.UpdateUser(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -487,7 +487,7 @@ def doAcceptJoinShareUnitInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationMembersPolicy(args, parsed_globals): +def doCreateOrgServiceAssign(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -516,11 +516,11 @@ def doDeleteOrganizationMembersPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationMembersPolicyRequest() + model = models.CreateOrgServiceAssignRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationMembersPolicy(model) + rsp = client.CreateOrgServiceAssign(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -539,7 +539,7 @@ def doDeleteOrganizationMembersPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationIdentity(args, parsed_globals): +def doDescribeEffectivePolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -568,11 +568,11 @@ def doListOrganizationIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationIdentityRequest() + model = models.DescribeEffectivePolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationIdentity(model) + rsp = client.DescribeEffectivePolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -591,7 +591,7 @@ def doListOrganizationIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddOrganizationNode(args, parsed_globals): +def doGetUser(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -620,11 +620,11 @@ def doAddOrganizationNode(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddOrganizationNodeRequest() + model = models.GetUserRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AddOrganizationNode(model) + rsp = client.GetUser(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -643,7 +643,7 @@ def doAddOrganizationNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdateOrganizationMemberEmailBind(args, parsed_globals): +def doSendOrganizationInvitation(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -672,11 +672,11 @@ def doUpdateOrganizationMemberEmailBind(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdateOrganizationMemberEmailBindRequest() + model = models.SendOrganizationInvitationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdateOrganizationMemberEmailBind(model) + rsp = client.SendOrganizationInvitation(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -695,7 +695,7 @@ def doUpdateOrganizationMemberEmailBind(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeShareUnitMembers(args, parsed_globals): +def doCreateOrganizationMemberAuthIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -724,11 +724,11 @@ def doDescribeShareUnitMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeShareUnitMembersRequest() + model = models.CreateOrganizationMemberAuthIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeShareUnitMembers(model) + rsp = client.CreateOrganizationMemberAuthIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -747,7 +747,7 @@ def doDescribeShareUnitMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals): +def doOpenIdentityCenter(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -776,11 +776,11 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationMemberAuthIdentitiesRequest() + model = models.OpenIdentityCenterRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationMemberAuthIdentities(model) + rsp = client.OpenIdentityCenter(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -799,7 +799,7 @@ def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribePolicy(args, parsed_globals): +def doDeleteUser(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -828,11 +828,11 @@ def doDescribePolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribePolicyRequest() + model = models.DeleteUserRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribePolicy(model) + rsp = client.DeleteUser(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -851,7 +851,7 @@ def doDescribePolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdateOrganizationNode(args, parsed_globals): +def doGetRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -880,11 +880,11 @@ def doUpdateOrganizationNode(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdateOrganizationNodeRequest() + model = models.GetRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdateOrganizationNode(model) + rsp = client.GetRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -903,7 +903,7 @@ def doUpdateOrganizationNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganizationMemberAuthIdentity(args, parsed_globals): +def doDescribeShareUnitResources(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -932,11 +932,11 @@ def doCreateOrganizationMemberAuthIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationMemberAuthIdentityRequest() + model = models.DescribeShareUnitResourcesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganizationMemberAuthIdentity(model) + rsp = client.DescribeShareUnitResources(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -955,7 +955,7 @@ def doCreateOrganizationMemberAuthIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationMembers(args, parsed_globals): +def doDenyOrganizationInvitation(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -984,11 +984,11 @@ def doDeleteOrganizationMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationMembersRequest() + model = models.DenyOrganizationInvitationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationMembers(model) + rsp = client.DenyOrganizationInvitation(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1007,7 +1007,7 @@ def doDeleteOrganizationMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdateOrganizationIdentity(args, parsed_globals): +def doDescribeOrganizationMemberEmailBind(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1036,11 +1036,11 @@ def doUpdateOrganizationIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdateOrganizationIdentityRequest() + model = models.DescribeOrganizationMemberEmailBindRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdateOrganizationIdentity(model) + rsp = client.DescribeOrganizationMemberEmailBind(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1059,7 +1059,7 @@ def doUpdateOrganizationIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationFinancialByMonth(args, parsed_globals): +def doDeleteShareUnitResources(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1088,11 +1088,11 @@ def doDescribeOrganizationFinancialByMonth(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationFinancialByMonthRequest() + model = models.DeleteShareUnitResourcesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationFinancialByMonth(model) + rsp = client.DeleteShareUnitResources(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1111,7 +1111,7 @@ def doDescribeOrganizationFinancialByMonth(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteAccount(args, parsed_globals): +def doAcceptOrganizationInvitation(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1140,11 +1140,11 @@ def doDeleteAccount(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteAccountRequest() + model = models.AcceptOrganizationInvitationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteAccount(model) + rsp = client.AcceptOrganizationInvitation(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1163,7 +1163,7 @@ def doDeleteAccount(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrgServiceAssignMember(args, parsed_globals): +def doListTasks(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1192,11 +1192,11 @@ def doListOrgServiceAssignMember(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrgServiceAssignMemberRequest() + model = models.ListTasksRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrgServiceAssignMember(model) + rsp = client.ListTasks(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1215,7 +1215,7 @@ def doListOrgServiceAssignMember(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doRejectJoinShareUnitInvitation(args, parsed_globals): +def doRemoveUserFromGroup(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1244,11 +1244,11 @@ def doRejectJoinShareUnitInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.RejectJoinShareUnitInvitationRequest() + model = models.RemoveUserFromGroupRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.RejectJoinShareUnitInvitation(model) + rsp = client.RemoveUserFromGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1267,7 +1267,7 @@ def doRejectJoinShareUnitInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationNodes(args, parsed_globals): +def doDescribeOrganizationFinancialByProduct(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1296,11 +1296,11 @@ def doDeleteOrganizationNodes(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationNodesRequest() + model = models.DescribeOrganizationFinancialByProductRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationNodes(model) + rsp = client.DescribeOrganizationFinancialByProduct(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1319,7 +1319,7 @@ def doDeleteOrganizationNodes(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrgServiceAssign(args, parsed_globals): +def doDescribeOrganizationNodes(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1348,11 +1348,11 @@ def doCreateOrgServiceAssign(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrgServiceAssignRequest() + model = models.DescribeOrganizationNodesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrgServiceAssign(model) + rsp = client.DescribeOrganizationNodes(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1371,7 +1371,7 @@ def doCreateOrgServiceAssign(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeEffectivePolicy(args, parsed_globals): +def doCreateUser(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1400,11 +1400,11 @@ def doDescribeEffectivePolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeEffectivePolicyRequest() + model = models.CreateUserRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeEffectivePolicy(model) + rsp = client.CreateUser(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1423,7 +1423,7 @@ def doDescribeEffectivePolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteShareUnitResources(args, parsed_globals): +def doListExternalSAMLIdPCertificates(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1452,11 +1452,11 @@ def doDeleteShareUnitResources(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteShareUnitResourcesRequest() + model = models.ListExternalSAMLIdPCertificatesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteShareUnitResources(model) + rsp = client.ListExternalSAMLIdPCertificates(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1475,7 +1475,7 @@ def doDeleteShareUnitResources(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeShareUnits(args, parsed_globals): +def doRemoveExternalSAMLIdPCertificate(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1504,11 +1504,11 @@ def doDescribeShareUnits(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeShareUnitsRequest() + model = models.RemoveExternalSAMLIdPCertificateRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeShareUnits(model) + rsp = client.RemoveExternalSAMLIdPCertificate(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1527,7 +1527,7 @@ def doDescribeShareUnits(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationMemberPolicies(args, parsed_globals): +def doCheckAccountDelete(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1556,11 +1556,11 @@ def doDescribeOrganizationMemberPolicies(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationMemberPoliciesRequest() + model = models.CheckAccountDeleteRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationMemberPolicies(model) + rsp = client.CheckAccountDelete(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1579,7 +1579,7 @@ def doDescribeOrganizationMemberPolicies(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCancelOrganizationInvitation(args, parsed_globals): +def doDescribeOrganizationMembers(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1608,11 +1608,11 @@ def doCancelOrganizationInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CancelOrganizationInvitationRequest() + model = models.DescribeOrganizationMembersRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CancelOrganizationInvitation(model) + rsp = client.DescribeOrganizationMembers(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1631,7 +1631,7 @@ def doCancelOrganizationInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganization(args, parsed_globals): +def doCreateRoleAssignment(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1660,11 +1660,11 @@ def doDeleteOrganization(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationRequest() + model = models.CreateRoleAssignmentRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganization(model) + rsp = client.CreateRoleAssignment(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1683,7 +1683,7 @@ def doDeleteOrganization(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCancelOrganizationMemberAuthAccount(args, parsed_globals): +def doCreateRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1712,11 +1712,11 @@ def doCancelOrganizationMemberAuthAccount(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CancelOrganizationMemberAuthAccountRequest() + model = models.CreateRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CancelOrganizationMemberAuthAccount(model) + rsp = client.CreateRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1735,7 +1735,7 @@ def doCancelOrganizationMemberAuthAccount(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doSendOrganizationInvitation(args, parsed_globals): +def doGetOrganization(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1764,11 +1764,11 @@ def doSendOrganizationInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.SendOrganizationInvitationRequest() + model = models.GetOrganizationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.SendOrganizationInvitation(model) + rsp = client.GetOrganization(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1787,7 +1787,7 @@ def doSendOrganizationInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationFinancialByMember(args, parsed_globals): +def doAcceptJoinShareUnitInvitation(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1816,11 +1816,11 @@ def doDescribeOrganizationFinancialByMember(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationFinancialByMemberRequest() + model = models.AcceptJoinShareUnitInvitationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationFinancialByMember(model) + rsp = client.AcceptJoinShareUnitInvitation(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1839,7 +1839,7 @@ def doDescribeOrganizationFinancialByMember(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doGetOrganizationMember(args, parsed_globals): +def doListUsers(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1868,11 +1868,11 @@ def doGetOrganizationMember(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.GetOrganizationMemberRequest() + model = models.ListUsersRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.GetOrganizationMember(model) + rsp = client.ListUsers(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1891,7 +1891,7 @@ def doGetOrganizationMember(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddShareUnitResources(args, parsed_globals): +def doDescribePolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1920,11 +1920,11 @@ def doAddShareUnitResources(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddShareUnitResourcesRequest() + model = models.DescribePolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AddShareUnitResources(model) + rsp = client.DescribePolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1943,7 +1943,7 @@ def doAddShareUnitResources(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListNonCompliantResource(args, parsed_globals): +def doGetExternalSAMLIdentityProvider(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -1972,11 +1972,11 @@ def doListNonCompliantResource(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListNonCompliantResourceRequest() + model = models.GetExternalSAMLIdentityProviderRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListNonCompliantResource(model) + rsp = client.GetExternalSAMLIdentityProvider(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -1995,7 +1995,7 @@ def doListNonCompliantResource(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAttachPolicy(args, parsed_globals): +def doClearExternalSAMLIdentityProvider(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2024,11 +2024,11 @@ def doAttachPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AttachPolicyRequest() + model = models.ClearExternalSAMLIdentityProviderRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AttachPolicy(model) + rsp = client.ClearExternalSAMLIdentityProvider(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2047,7 +2047,7 @@ def doAttachPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganizationMembersPolicy(args, parsed_globals): +def doUpdateOrganizationIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2076,11 +2076,11 @@ def doCreateOrganizationMembersPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationMembersPolicyRequest() + model = models.UpdateOrganizationIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganizationMembersPolicy(model) + rsp = client.UpdateOrganizationIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2099,7 +2099,7 @@ def doCreateOrganizationMembersPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeShareAreas(args, parsed_globals): +def doProvisionRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2128,11 +2128,11 @@ def doDescribeShareAreas(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeShareAreasRequest() + model = models.ProvisionRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeShareAreas(model) + rsp = client.ProvisionRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2151,7 +2151,7 @@ def doDescribeShareAreas(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganization(args, parsed_globals): +def doCancelOrganizationMemberAuthAccount(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2180,11 +2180,11 @@ def doDescribeOrganization(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationRequest() + model = models.CancelOrganizationMemberAuthAccountRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganization(model) + rsp = client.CancelOrganizationMemberAuthAccount(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2203,7 +2203,7 @@ def doDescribeOrganization(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doMoveOrganizationNodeMembers(args, parsed_globals): +def doDescribeOrganizationFinancialByMember(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2232,11 +2232,11 @@ def doMoveOrganizationNodeMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.MoveOrganizationNodeMembersRequest() + model = models.DescribeOrganizationFinancialByMemberRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.MoveOrganizationNodeMembers(model) + rsp = client.DescribeOrganizationFinancialByMember(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2255,7 +2255,7 @@ def doMoveOrganizationNodeMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationMembers(args, parsed_globals): +def doGetGroup(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2284,11 +2284,11 @@ def doListOrganizationMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationMembersRequest() + model = models.GetGroupRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationMembers(model) + rsp = client.GetGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2307,7 +2307,7 @@ def doListOrganizationMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationMemberFromNode(args, parsed_globals): +def doDeleteRoleAssignment(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2336,11 +2336,11 @@ def doDeleteOrganizationMemberFromNode(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationMemberFromNodeRequest() + model = models.DeleteRoleAssignmentRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationMemberFromNode(model) + rsp = client.DeleteRoleAssignment(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2359,7 +2359,7 @@ def doDeleteOrganizationMemberFromNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeShareUnitResources(args, parsed_globals): +def doCreateOrganizationMembersPolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2388,11 +2388,11 @@ def doDescribeShareUnitResources(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeShareUnitResourcesRequest() + model = models.CreateOrganizationMembersPolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeShareUnitResources(model) + rsp = client.CreateOrganizationMembersPolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2411,7 +2411,7 @@ def doDescribeShareUnitResources(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDetachPolicy(args, parsed_globals): +def doMoveOrganizationNodeMembers(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2440,11 +2440,11 @@ def doDetachPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DetachPolicyRequest() + model = models.MoveOrganizationNodeMembersRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DetachPolicy(model) + rsp = client.MoveOrganizationNodeMembers(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2463,7 +2463,7 @@ def doDetachPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganizationIdentity(args, parsed_globals): +def doDeleteOrganizationMemberFromNode(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2492,11 +2492,11 @@ def doCreateOrganizationIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationIdentityRequest() + model = models.DeleteOrganizationMemberFromNodeRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganizationIdentity(model) + rsp = client.DeleteOrganizationMemberFromNode(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2515,7 +2515,7 @@ def doCreateOrganizationIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrgServiceAssign(args, parsed_globals): +def doUpdateZone(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2544,11 +2544,11 @@ def doDeleteOrgServiceAssign(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrgServiceAssignRequest() + model = models.UpdateZoneRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrgServiceAssign(model) + rsp = client.UpdateZone(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2567,7 +2567,7 @@ def doDeleteOrgServiceAssign(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationIdentity(args, parsed_globals): +def doCreateOrganizationIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2596,11 +2596,11 @@ def doDeleteOrganizationIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationIdentityRequest() + model = models.CreateOrganizationIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationIdentity(model) + rsp = client.CreateOrganizationIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2619,7 +2619,7 @@ def doDeleteOrganizationIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAcceptOrganizationInvitation(args, parsed_globals): +def doAddOrganizationMemberEmail(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2648,11 +2648,11 @@ def doAcceptOrganizationInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AcceptOrganizationInvitationRequest() + model = models.AddOrganizationMemberEmailRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AcceptOrganizationInvitation(model) + rsp = client.AddOrganizationMemberEmail(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2671,7 +2671,7 @@ def doAcceptOrganizationInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDenyOrganizationInvitation(args, parsed_globals): +def doListOrganizationInvitations(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2700,11 +2700,11 @@ def doDenyOrganizationInvitation(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DenyOrganizationInvitationRequest() + model = models.ListOrganizationInvitationsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DenyOrganizationInvitation(model) + rsp = client.ListOrganizationInvitations(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2723,7 +2723,7 @@ def doDenyOrganizationInvitation(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddOrganizationMemberEmail(args, parsed_globals): +def doListJoinedGroupsForUser(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2752,11 +2752,11 @@ def doAddOrganizationMemberEmail(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddOrganizationMemberEmailRequest() + model = models.ListJoinedGroupsForUserRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AddOrganizationMemberEmail(model) + rsp = client.ListJoinedGroupsForUser(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2775,7 +2775,7 @@ def doAddOrganizationMemberEmail(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteShareUnitMembers(args, parsed_globals): +def doListPermissionPoliciesInRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2804,11 +2804,11 @@ def doDeleteShareUnitMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteShareUnitMembersRequest() + model = models.ListPermissionPoliciesInRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteShareUnitMembers(model) + rsp = client.ListPermissionPoliciesInRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2827,7 +2827,2503 @@ def doDeleteShareUnitMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationMemberEmailBind(args, parsed_globals): +def doAddShareUnit(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.AddShareUnitRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.AddShareUnit(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeOrganizationAuthNode(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeOrganizationAuthNodeRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeOrganizationAuthNode(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListRoleConfigurationProvisionings(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListRoleConfigurationProvisioningsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListRoleConfigurationProvisionings(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doAddShareUnitMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.AddShareUnitMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.AddShareUnitMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribePolicyConfig(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribePolicyConfigRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribePolicyConfig(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdatePolicy(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdatePolicyRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdatePolicy(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeShareUnits(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeShareUnitsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeShareUnits(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListOrganizationNodeMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListOrganizationNodeMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListOrganizationNodeMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListUserSyncProvisionings(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListUserSyncProvisioningsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListUserSyncProvisionings(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateOrganizationNode(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateOrganizationNodeRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateOrganizationNode(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDisablePolicyType(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DisablePolicyTypeRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DisablePolicyType(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doCreateUserSyncProvisioning(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateUserSyncProvisioningRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateUserSyncProvisioning(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doAddPermissionPolicyToRoleConfiguration(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.AddPermissionPolicyToRoleConfigurationRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.AddPermissionPolicyToRoleConfiguration(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteOrganizationMembersPolicy(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteOrganizationMembersPolicyRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteOrganizationMembersPolicy(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeletePolicy(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeletePolicyRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeletePolicy(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doCreateGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeShareUnitMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeShareUnitMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeShareUnitMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDismantleRoleConfiguration(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DismantleRoleConfigurationRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DismantleRoleConfiguration(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteShareUnit(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteShareUnitRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteShareUnit(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteOrganizationMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteOrganizationMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteOrganizationMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListOrgServiceAssignMember(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListOrgServiceAssignMemberRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListOrgServiceAssignMember(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doRejectJoinShareUnitInvitation(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.RejectJoinShareUnitInvitationRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.RejectJoinShareUnitInvitation(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListNonCompliantResource(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListNonCompliantResourceRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListNonCompliantResource(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doSetExternalSAMLIdentityProvider(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.SetExternalSAMLIdentityProviderRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.SetExternalSAMLIdentityProvider(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteOrganization(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteOrganizationRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteOrganization(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doGetOrganizationMember(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.GetOrganizationMemberRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.GetOrganizationMember(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateUserSyncProvisioning(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateUserSyncProvisioningRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateUserSyncProvisioning(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doGetUserSyncProvisioning(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.GetUserSyncProvisioningRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.GetUserSyncProvisioning(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeOrganization(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeOrganizationRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeOrganization(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListOrganizationMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListOrganizationMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListOrganizationMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListGroups(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListGroupsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListGroups(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doCreateOrganizationMember(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreateOrganizationMemberRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreateOrganizationMember(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doBindOrganizationMemberAuthAccount(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.BindOrganizationMemberAuthAccountRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.BindOrganizationMemberAuthAccount(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateGroup(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateGroupRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateGroup(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doCreatePolicy(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.CreatePolicyRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.CreatePolicy(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doGetProvisioningTaskStatus(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.GetProvisioningTaskStatusRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.GetProvisioningTaskStatus(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateUserStatus(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateUserStatusRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateUserStatus(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateShareUnit(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateShareUnitRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateShareUnit(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doUpdateOrganizationMember(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.UpdateOrganizationMemberRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.UpdateOrganizationMember(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doListPoliciesForTarget(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.ListPoliciesForTargetRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.ListPoliciesForTarget(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeOrganizationMemberAuthIdentities(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeOrganizationMemberAuthIdentitiesRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeOrganizationMemberAuthIdentities(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeIdentityCenter(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeIdentityCenterRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeIdentityCenter(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doGetZoneStatistics(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.GetZoneStatisticsRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.GetZoneStatistics(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDetachPolicy(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DetachPolicyRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DetachPolicy(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteShareUnitMembers(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteShareUnitMembersRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteShareUnitMembers(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDescribeOrganizationFinancialByMonth(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeOrganizationFinancialByMonthRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeOrganizationFinancialByMonth(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteAccount(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DeleteAccountRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DeleteAccount(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + +def doDeleteOrganizationNodes(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2856,11 +5352,11 @@ def doDescribeOrganizationMemberEmailBind(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationMemberEmailBindRequest() + model = models.DeleteOrganizationNodesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationMemberEmailBind(model) + rsp = client.DeleteOrganizationNodes(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2879,7 +5375,7 @@ def doDescribeOrganizationMemberEmailBind(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doEnablePolicyType(args, parsed_globals): +def doListRoleAssignments(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2908,11 +5404,11 @@ def doEnablePolicyType(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.EnablePolicyTypeRequest() + model = models.ListRoleAssignmentsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.EnablePolicyType(model) + rsp = client.ListRoleAssignments(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2931,7 +5427,7 @@ def doEnablePolicyType(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationInvitations(args, parsed_globals): +def doDescribeOrganizationMemberPolicies(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -2960,11 +5456,11 @@ def doListOrganizationInvitations(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationInvitationsRequest() + model = models.DescribeOrganizationMemberPoliciesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationInvitations(model) + rsp = client.DescribeOrganizationMemberPolicies(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -2983,7 +5479,7 @@ def doListOrganizationInvitations(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganizationMember(args, parsed_globals): +def doDeleteUserSyncProvisioning(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3012,11 +5508,11 @@ def doCreateOrganizationMember(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationMemberRequest() + model = models.DeleteUserSyncProvisioningRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganizationMember(model) + rsp = client.DeleteUserSyncProvisioning(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3035,7 +5531,7 @@ def doCreateOrganizationMember(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doBindOrganizationMemberAuthAccount(args, parsed_globals): +def doListRoleConfigurations(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3064,11 +5560,11 @@ def doBindOrganizationMemberAuthAccount(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.BindOrganizationMemberAuthAccountRequest() + model = models.ListRoleConfigurationsRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.BindOrganizationMemberAuthAccount(model) + rsp = client.ListRoleConfigurations(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3087,7 +5583,7 @@ def doBindOrganizationMemberAuthAccount(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doMoveOrganizationMembersToNode(args, parsed_globals): +def doAddShareUnitResources(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3116,11 +5612,11 @@ def doMoveOrganizationMembersToNode(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.MoveOrganizationMembersToNodeRequest() + model = models.AddShareUnitResourcesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.MoveOrganizationMembersToNode(model) + rsp = client.AddShareUnitResources(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3139,7 +5635,7 @@ def doMoveOrganizationMembersToNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddShareUnit(args, parsed_globals): +def doAttachPolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3168,11 +5664,11 @@ def doAddShareUnit(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddShareUnitRequest() + model = models.AttachPolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AddShareUnit(model) + rsp = client.AttachPolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3191,7 +5687,7 @@ def doAddShareUnit(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteShareUnit(args, parsed_globals): +def doDescribeShareAreas(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3220,11 +5716,11 @@ def doDeleteShareUnit(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteShareUnitRequest() + model = models.DescribeShareAreasRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteShareUnit(model) + rsp = client.DescribeShareAreas(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3243,7 +5739,7 @@ def doDeleteShareUnit(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListPolicies(args, parsed_globals): +def doAddUserToGroup(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3272,11 +5768,11 @@ def doListPolicies(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListPoliciesRequest() + model = models.AddUserToGroupRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListPolicies(model) + rsp = client.AddUserToGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3295,7 +5791,7 @@ def doListPolicies(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationFinancialByProduct(args, parsed_globals): +def doDeleteRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3324,11 +5820,11 @@ def doDescribeOrganizationFinancialByProduct(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationFinancialByProductRequest() + model = models.DeleteRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationFinancialByProduct(model) + rsp = client.DeleteRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3347,7 +5843,7 @@ def doDescribeOrganizationFinancialByProduct(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationAuthNode(args, parsed_globals): +def doCreateOrganization(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3376,11 +5872,11 @@ def doDescribeOrganizationAuthNode(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationAuthNodeRequest() + model = models.CreateOrganizationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationAuthNode(model) + rsp = client.CreateOrganization(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3399,7 +5895,7 @@ def doDescribeOrganizationAuthNode(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doAddShareUnitMembers(args, parsed_globals): +def doAddExternalSAMLIdPCertificate(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3428,11 +5924,11 @@ def doAddShareUnitMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.AddShareUnitMembersRequest() + model = models.AddExternalSAMLIdPCertificateRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.AddShareUnitMembers(model) + rsp = client.AddExternalSAMLIdPCertificate(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3451,7 +5947,7 @@ def doAddShareUnitMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribePolicyConfig(args, parsed_globals): +def doMoveOrganizationMembersToNode(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3480,11 +5976,11 @@ def doDescribePolicyConfig(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribePolicyConfigRequest() + model = models.MoveOrganizationMembersToNodeRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribePolicyConfig(model) + rsp = client.MoveOrganizationMembersToNode(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3503,7 +5999,7 @@ def doDescribePolicyConfig(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDescribeOrganizationNodes(args, parsed_globals): +def doUpdateRoleConfiguration(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3532,11 +6028,11 @@ def doDescribeOrganizationNodes(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DescribeOrganizationNodesRequest() + model = models.UpdateRoleConfigurationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DescribeOrganizationNodes(model) + rsp = client.UpdateRoleConfiguration(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3555,7 +6051,7 @@ def doDescribeOrganizationNodes(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganization(args, parsed_globals): +def doDeleteOrganizationIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3584,11 +6080,11 @@ def doCreateOrganization(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationRequest() + model = models.DeleteOrganizationIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganization(model) + rsp = client.DeleteOrganizationIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3607,7 +6103,7 @@ def doCreateOrganization(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationNodes(args, parsed_globals): +def doCancelOrganizationInvitation(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3636,11 +6132,11 @@ def doListOrganizationNodes(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationNodesRequest() + model = models.CancelOrganizationInvitationRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationNodes(model) + rsp = client.CancelOrganizationInvitation(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3659,7 +6155,7 @@ def doListOrganizationNodes(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeleteOrganizationMemberAuthIdentity(args, parsed_globals): +def doEnablePolicyType(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3688,11 +6184,11 @@ def doDeleteOrganizationMemberAuthIdentity(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeleteOrganizationMemberAuthIdentityRequest() + model = models.EnablePolicyTypeRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeleteOrganizationMemberAuthIdentity(model) + rsp = client.EnablePolicyType(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3711,7 +6207,7 @@ def doDeleteOrganizationMemberAuthIdentity(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreatePolicy(args, parsed_globals): +def doDeleteOrgServiceAssign(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3740,11 +6236,11 @@ def doCreatePolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreatePolicyRequest() + model = models.DeleteOrgServiceAssignRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreatePolicy(model) + rsp = client.DeleteOrgServiceAssign(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3763,7 +6259,7 @@ def doCreatePolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCreateOrganizationMemberPolicy(args, parsed_globals): +def doGetZoneSAMLServiceProviderInfo(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3792,11 +6288,11 @@ def doCreateOrganizationMemberPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CreateOrganizationMemberPolicyRequest() + model = models.GetZoneSAMLServiceProviderInfoRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CreateOrganizationMemberPolicy(model) + rsp = client.GetZoneSAMLServiceProviderInfo(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3815,7 +6311,7 @@ def doCreateOrganizationMemberPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationService(args, parsed_globals): +def doListTargetsForPolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3844,11 +6340,11 @@ def doListOrganizationService(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationServiceRequest() + model = models.ListTargetsForPolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationService(model) + rsp = client.ListTargetsForPolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3867,7 +6363,7 @@ def doListOrganizationService(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doDeletePolicy(args, parsed_globals): +def doListPolicies(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3896,11 +6392,11 @@ def doDeletePolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.DeletePolicyRequest() + model = models.ListPoliciesRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.DeletePolicy(model) + rsp = client.ListPolicies(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3919,7 +6415,7 @@ def doDeletePolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListTargetsForPolicy(args, parsed_globals): +def doGetTaskStatus(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -3948,11 +6444,11 @@ def doListTargetsForPolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListTargetsForPolicyRequest() + model = models.GetTaskStatusRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListTargetsForPolicy(model) + rsp = client.GetTaskStatus(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -3971,7 +6467,7 @@ def doListTargetsForPolicy(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doListOrganizationNodeMembers(args, parsed_globals): +def doCreateOrganizationMemberPolicy(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4000,11 +6496,11 @@ def doListOrganizationNodeMembers(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.ListOrganizationNodeMembersRequest() + model = models.CreateOrganizationMemberPolicyRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.ListOrganizationNodeMembers(model) + rsp = client.CreateOrganizationMemberPolicy(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4023,7 +6519,7 @@ def doListOrganizationNodeMembers(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doCheckAccountDelete(args, parsed_globals): +def doListOrganizationService(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4052,11 +6548,11 @@ def doCheckAccountDelete(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.CheckAccountDeleteRequest() + model = models.ListOrganizationServiceRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.CheckAccountDelete(model) + rsp = client.ListOrganizationService(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4075,7 +6571,7 @@ def doCheckAccountDelete(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) -def doUpdatePolicy(args, parsed_globals): +def doDeleteOrganizationMemberAuthIdentity(args, parsed_globals): g_param = parse_global_arg(parsed_globals) if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: @@ -4104,11 +6600,11 @@ def doUpdatePolicy(args, parsed_globals): client = mod.OrganizationClient(cred, g_param[OptionsDefine.Region], profile) client._sdkVersion += ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] - model = models.UpdatePolicyRequest() + model = models.DeleteOrganizationMemberAuthIdentityRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: - rsp = client.UpdatePolicy(model) + rsp = client.DeleteOrganizationMemberAuthIdentity(model) result = rsp.to_json_string() try: json_obj = json.loads(result) @@ -4140,85 +6636,133 @@ def doUpdatePolicy(args, parsed_globals): } ACTION_MAP = { - "DescribeOrganizationMembers": doDescribeOrganizationMembers, "QuitOrganization": doQuitOrganization, - "DisablePolicyType": doDisablePolicyType, + "ListOrganizationNodes": doListOrganizationNodes, "DescribeOrganizationMemberAuthAccounts": doDescribeOrganizationMemberAuthAccounts, - "GetOrganization": doGetOrganization, - "UpdateShareUnit": doUpdateShareUnit, - "UpdateOrganizationMember": doUpdateOrganizationMember, - "ListPoliciesForTarget": doListPoliciesForTarget, - "AcceptJoinShareUnitInvitation": doAcceptJoinShareUnitInvitation, - "DeleteOrganizationMembersPolicy": doDeleteOrganizationMembersPolicy, + "ListGroupMembers": doListGroupMembers, "ListOrganizationIdentity": doListOrganizationIdentity, "AddOrganizationNode": doAddOrganizationNode, "UpdateOrganizationMemberEmailBind": doUpdateOrganizationMemberEmailBind, - "DescribeShareUnitMembers": doDescribeShareUnitMembers, - "DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities, - "DescribePolicy": doDescribePolicy, - "UpdateOrganizationNode": doUpdateOrganizationNode, - "CreateOrganizationMemberAuthIdentity": doCreateOrganizationMemberAuthIdentity, - "DeleteOrganizationMembers": doDeleteOrganizationMembers, - "UpdateOrganizationIdentity": doUpdateOrganizationIdentity, - "DescribeOrganizationFinancialByMonth": doDescribeOrganizationFinancialByMonth, - "DeleteAccount": doDeleteAccount, - "ListOrgServiceAssignMember": doListOrgServiceAssignMember, - "RejectJoinShareUnitInvitation": doRejectJoinShareUnitInvitation, - "DeleteOrganizationNodes": doDeleteOrganizationNodes, + "RemovePermissionPolicyFromRoleConfiguration": doRemovePermissionPolicyFromRoleConfiguration, + "UpdateUser": doUpdateUser, "CreateOrgServiceAssign": doCreateOrgServiceAssign, "DescribeEffectivePolicy": doDescribeEffectivePolicy, + "GetUser": doGetUser, + "SendOrganizationInvitation": doSendOrganizationInvitation, + "CreateOrganizationMemberAuthIdentity": doCreateOrganizationMemberAuthIdentity, + "OpenIdentityCenter": doOpenIdentityCenter, + "DeleteUser": doDeleteUser, + "GetRoleConfiguration": doGetRoleConfiguration, + "DescribeShareUnitResources": doDescribeShareUnitResources, + "DenyOrganizationInvitation": doDenyOrganizationInvitation, + "DescribeOrganizationMemberEmailBind": doDescribeOrganizationMemberEmailBind, "DeleteShareUnitResources": doDeleteShareUnitResources, - "DescribeShareUnits": doDescribeShareUnits, - "DescribeOrganizationMemberPolicies": doDescribeOrganizationMemberPolicies, - "CancelOrganizationInvitation": doCancelOrganizationInvitation, - "DeleteOrganization": doDeleteOrganization, + "AcceptOrganizationInvitation": doAcceptOrganizationInvitation, + "ListTasks": doListTasks, + "RemoveUserFromGroup": doRemoveUserFromGroup, + "DescribeOrganizationFinancialByProduct": doDescribeOrganizationFinancialByProduct, + "DescribeOrganizationNodes": doDescribeOrganizationNodes, + "CreateUser": doCreateUser, + "ListExternalSAMLIdPCertificates": doListExternalSAMLIdPCertificates, + "RemoveExternalSAMLIdPCertificate": doRemoveExternalSAMLIdPCertificate, + "CheckAccountDelete": doCheckAccountDelete, + "DescribeOrganizationMembers": doDescribeOrganizationMembers, + "CreateRoleAssignment": doCreateRoleAssignment, + "CreateRoleConfiguration": doCreateRoleConfiguration, + "GetOrganization": doGetOrganization, + "AcceptJoinShareUnitInvitation": doAcceptJoinShareUnitInvitation, + "ListUsers": doListUsers, + "DescribePolicy": doDescribePolicy, + "GetExternalSAMLIdentityProvider": doGetExternalSAMLIdentityProvider, + "ClearExternalSAMLIdentityProvider": doClearExternalSAMLIdentityProvider, + "UpdateOrganizationIdentity": doUpdateOrganizationIdentity, + "ProvisionRoleConfiguration": doProvisionRoleConfiguration, "CancelOrganizationMemberAuthAccount": doCancelOrganizationMemberAuthAccount, - "SendOrganizationInvitation": doSendOrganizationInvitation, "DescribeOrganizationFinancialByMember": doDescribeOrganizationFinancialByMember, - "GetOrganizationMember": doGetOrganizationMember, - "AddShareUnitResources": doAddShareUnitResources, - "ListNonCompliantResource": doListNonCompliantResource, - "AttachPolicy": doAttachPolicy, + "GetGroup": doGetGroup, + "DeleteRoleAssignment": doDeleteRoleAssignment, "CreateOrganizationMembersPolicy": doCreateOrganizationMembersPolicy, - "DescribeShareAreas": doDescribeShareAreas, - "DescribeOrganization": doDescribeOrganization, "MoveOrganizationNodeMembers": doMoveOrganizationNodeMembers, - "ListOrganizationMembers": doListOrganizationMembers, "DeleteOrganizationMemberFromNode": doDeleteOrganizationMemberFromNode, - "DescribeShareUnitResources": doDescribeShareUnitResources, - "DetachPolicy": doDetachPolicy, + "UpdateZone": doUpdateZone, "CreateOrganizationIdentity": doCreateOrganizationIdentity, - "DeleteOrgServiceAssign": doDeleteOrgServiceAssign, - "DeleteOrganizationIdentity": doDeleteOrganizationIdentity, - "AcceptOrganizationInvitation": doAcceptOrganizationInvitation, - "DenyOrganizationInvitation": doDenyOrganizationInvitation, "AddOrganizationMemberEmail": doAddOrganizationMemberEmail, - "DeleteShareUnitMembers": doDeleteShareUnitMembers, - "DescribeOrganizationMemberEmailBind": doDescribeOrganizationMemberEmailBind, - "EnablePolicyType": doEnablePolicyType, "ListOrganizationInvitations": doListOrganizationInvitations, - "CreateOrganizationMember": doCreateOrganizationMember, - "BindOrganizationMemberAuthAccount": doBindOrganizationMemberAuthAccount, - "MoveOrganizationMembersToNode": doMoveOrganizationMembersToNode, + "ListJoinedGroupsForUser": doListJoinedGroupsForUser, + "ListPermissionPoliciesInRoleConfiguration": doListPermissionPoliciesInRoleConfiguration, "AddShareUnit": doAddShareUnit, - "DeleteShareUnit": doDeleteShareUnit, - "ListPolicies": doListPolicies, - "DescribeOrganizationFinancialByProduct": doDescribeOrganizationFinancialByProduct, "DescribeOrganizationAuthNode": doDescribeOrganizationAuthNode, + "ListRoleConfigurationProvisionings": doListRoleConfigurationProvisionings, "AddShareUnitMembers": doAddShareUnitMembers, "DescribePolicyConfig": doDescribePolicyConfig, - "DescribeOrganizationNodes": doDescribeOrganizationNodes, - "CreateOrganization": doCreateOrganization, - "ListOrganizationNodes": doListOrganizationNodes, - "DeleteOrganizationMemberAuthIdentity": doDeleteOrganizationMemberAuthIdentity, + "UpdatePolicy": doUpdatePolicy, + "DescribeShareUnits": doDescribeShareUnits, + "ListOrganizationNodeMembers": doListOrganizationNodeMembers, + "ListUserSyncProvisionings": doListUserSyncProvisionings, + "UpdateOrganizationNode": doUpdateOrganizationNode, + "DisablePolicyType": doDisablePolicyType, + "CreateUserSyncProvisioning": doCreateUserSyncProvisioning, + "AddPermissionPolicyToRoleConfiguration": doAddPermissionPolicyToRoleConfiguration, + "DeleteOrganizationMembersPolicy": doDeleteOrganizationMembersPolicy, + "DeletePolicy": doDeletePolicy, + "CreateGroup": doCreateGroup, + "DescribeShareUnitMembers": doDescribeShareUnitMembers, + "DismantleRoleConfiguration": doDismantleRoleConfiguration, + "DeleteShareUnit": doDeleteShareUnit, + "DeleteOrganizationMembers": doDeleteOrganizationMembers, + "ListOrgServiceAssignMember": doListOrgServiceAssignMember, + "RejectJoinShareUnitInvitation": doRejectJoinShareUnitInvitation, + "ListNonCompliantResource": doListNonCompliantResource, + "DeleteGroup": doDeleteGroup, + "SetExternalSAMLIdentityProvider": doSetExternalSAMLIdentityProvider, + "DeleteOrganization": doDeleteOrganization, + "GetOrganizationMember": doGetOrganizationMember, + "UpdateUserSyncProvisioning": doUpdateUserSyncProvisioning, + "GetUserSyncProvisioning": doGetUserSyncProvisioning, + "DescribeOrganization": doDescribeOrganization, + "ListOrganizationMembers": doListOrganizationMembers, + "ListGroups": doListGroups, + "CreateOrganizationMember": doCreateOrganizationMember, + "BindOrganizationMemberAuthAccount": doBindOrganizationMemberAuthAccount, + "UpdateGroup": doUpdateGroup, "CreatePolicy": doCreatePolicy, + "GetProvisioningTaskStatus": doGetProvisioningTaskStatus, + "UpdateUserStatus": doUpdateUserStatus, + "UpdateShareUnit": doUpdateShareUnit, + "UpdateOrganizationMember": doUpdateOrganizationMember, + "ListPoliciesForTarget": doListPoliciesForTarget, + "DescribeOrganizationMemberAuthIdentities": doDescribeOrganizationMemberAuthIdentities, + "DescribeIdentityCenter": doDescribeIdentityCenter, + "GetZoneStatistics": doGetZoneStatistics, + "DetachPolicy": doDetachPolicy, + "DeleteShareUnitMembers": doDeleteShareUnitMembers, + "DescribeOrganizationFinancialByMonth": doDescribeOrganizationFinancialByMonth, + "DeleteAccount": doDeleteAccount, + "DeleteOrganizationNodes": doDeleteOrganizationNodes, + "ListRoleAssignments": doListRoleAssignments, + "DescribeOrganizationMemberPolicies": doDescribeOrganizationMemberPolicies, + "DeleteUserSyncProvisioning": doDeleteUserSyncProvisioning, + "ListRoleConfigurations": doListRoleConfigurations, + "AddShareUnitResources": doAddShareUnitResources, + "AttachPolicy": doAttachPolicy, + "DescribeShareAreas": doDescribeShareAreas, + "AddUserToGroup": doAddUserToGroup, + "DeleteRoleConfiguration": doDeleteRoleConfiguration, + "CreateOrganization": doCreateOrganization, + "AddExternalSAMLIdPCertificate": doAddExternalSAMLIdPCertificate, + "MoveOrganizationMembersToNode": doMoveOrganizationMembersToNode, + "UpdateRoleConfiguration": doUpdateRoleConfiguration, + "DeleteOrganizationIdentity": doDeleteOrganizationIdentity, + "CancelOrganizationInvitation": doCancelOrganizationInvitation, + "EnablePolicyType": doEnablePolicyType, + "DeleteOrgServiceAssign": doDeleteOrgServiceAssign, + "GetZoneSAMLServiceProviderInfo": doGetZoneSAMLServiceProviderInfo, + "ListTargetsForPolicy": doListTargetsForPolicy, + "ListPolicies": doListPolicies, + "GetTaskStatus": doGetTaskStatus, "CreateOrganizationMemberPolicy": doCreateOrganizationMemberPolicy, "ListOrganizationService": doListOrganizationService, - "DeletePolicy": doDeletePolicy, - "ListTargetsForPolicy": doListTargetsForPolicy, - "ListOrganizationNodeMembers": doListOrganizationNodeMembers, - "CheckAccountDelete": doCheckAccountDelete, - "UpdatePolicy": doUpdatePolicy, + "DeleteOrganizationMemberAuthIdentity": doDeleteOrganizationMemberAuthIdentity, } diff --git a/tccli/services/organization/v20210331/api.json b/tccli/services/organization/v20210331/api.json index 9f801ae060..7bead01be7 100644 --- a/tccli/services/organization/v20210331/api.json +++ b/tccli/services/organization/v20210331/api.json @@ -7,6 +7,13 @@ "output": "AcceptJoinShareUnitInvitationResponse", "status": "online" }, + "AddExternalSAMLIdPCertificate": { + "document": "添加SAML签名证书", + "input": "AddExternalSAMLIdPCertificateRequest", + "name": "添加SAML签名证书", + "output": "AddExternalSAMLIdPCertificateResponse", + "status": "online" + }, "AddOrganizationMemberEmail": { "document": "添加组织成员邮箱", "input": "AddOrganizationMemberEmailRequest", @@ -21,6 +28,13 @@ "output": "AddOrganizationNodeResponse", "status": "online" }, + "AddPermissionPolicyToRoleConfiguration": { + "document": "为权限配置添加策略", + "input": "AddPermissionPolicyToRoleConfigurationRequest", + "name": "为权限配置添加策略", + "output": "AddPermissionPolicyToRoleConfigurationResponse", + "status": "online" + }, "AddShareUnit": { "document": "创建共享单元。", "input": "AddShareUnitRequest", @@ -42,6 +56,13 @@ "output": "AddShareUnitResourcesResponse", "status": "online" }, + "AddUserToGroup": { + "document": "为用户组添加用户", + "input": "AddUserToGroupRequest", + "name": "为用户组添加用户", + "output": "AddUserToGroupResponse", + "status": "online" + }, "AttachPolicy": { "document": "绑定策略", "input": "AttachPolicyRequest", @@ -70,6 +91,20 @@ "output": "CheckAccountDeleteResponse", "status": "online" }, + "ClearExternalSAMLIdentityProvider": { + "document": "清空SAML身份提供商配置信息", + "input": "ClearExternalSAMLIdentityProviderRequest", + "name": "清空SAML身份提供商配置信息", + "output": "ClearExternalSAMLIdentityProviderResponse", + "status": "online" + }, + "CreateGroup": { + "document": "创建用户组", + "input": "CreateGroupRequest", + "name": "创建用户组", + "output": "CreateGroupResponse", + "status": "online" + }, "CreateOrgServiceAssign": { "document": "添加集团服务委派管理员", "input": "CreateOrgServiceAssignRequest", @@ -126,6 +161,34 @@ "output": "CreatePolicyResponse", "status": "online" }, + "CreateRoleAssignment": { + "document": "在成员账号上授权", + "input": "CreateRoleAssignmentRequest", + "name": "在成员账号上授权", + "output": "CreateRoleAssignmentResponse", + "status": "online" + }, + "CreateRoleConfiguration": { + "document": "创建权限配置", + "input": "CreateRoleConfigurationRequest", + "name": "创建权限配置", + "output": "CreateRoleConfigurationResponse", + "status": "online" + }, + "CreateUser": { + "document": "创建用户", + "input": "CreateUserRequest", + "name": "创建用户", + "output": "CreateUserResponse", + "status": "online" + }, + "CreateUserSyncProvisioning": { + "document": "创建子用户同步任务", + "input": "CreateUserSyncProvisioningRequest", + "name": "创建CAM用户同步", + "output": "CreateUserSyncProvisioningResponse", + "status": "online" + }, "DeleteAccount": { "document": "删除成员账号", "input": "DeleteAccountRequest", @@ -133,6 +196,13 @@ "output": "DeleteAccountResponse", "status": "online" }, + "DeleteGroup": { + "document": "删除用户组", + "input": "DeleteGroupRequest", + "name": "删除用户组", + "output": "DeleteGroupResponse", + "status": "online" + }, "DeleteOrgServiceAssign": { "document": "删除集团服务委派管理员", "input": "DeleteOrgServiceAssignRequest", @@ -189,6 +259,20 @@ "output": "DeletePolicyResponse", "status": "online" }, + "DeleteRoleAssignment": { + "document": "移除成员账号上的授权", + "input": "DeleteRoleAssignmentRequest", + "name": "移除成员账号上的授权", + "output": "DeleteRoleAssignmentResponse", + "status": "online" + }, + "DeleteRoleConfiguration": { + "document": "删除权限配置信息", + "input": "DeleteRoleConfigurationRequest", + "name": "删除权限配置信息", + "output": "DeleteRoleConfigurationResponse", + "status": "online" + }, "DeleteShareUnit": { "document": "删除共享单元。", "input": "DeleteShareUnitRequest", @@ -210,6 +294,20 @@ "output": "DeleteShareUnitResourcesResponse", "status": "online" }, + "DeleteUser": { + "document": "删除用户", + "input": "DeleteUserRequest", + "name": "删除用户", + "output": "DeleteUserResponse", + "status": "online" + }, + "DeleteUserSyncProvisioning": { + "document": "删除子用户同步任务", + "input": "DeleteUserSyncProvisioningRequest", + "name": "删除CAM用户同步", + "output": "DeleteUserSyncProvisioningResponse", + "status": "online" + }, "DescribeEffectivePolicy": { "document": "查询目标关联的有效策略", "input": "DescribeEffectivePolicyRequest", @@ -217,6 +315,13 @@ "output": "DescribeEffectivePolicyResponse", "status": "online" }, + "DescribeIdentityCenter": { + "document": "获取cam身份中心服务信息", + "input": "DescribeIdentityCenterRequest", + "name": "获取用户cam身份中心服务信息", + "output": "DescribeIdentityCenterResponse", + "status": "online" + }, "DescribeOrganization": { "document": "获取企业组织信息", "input": "DescribeOrganizationRequest", @@ -350,6 +455,13 @@ "output": "DisablePolicyTypeResponse", "status": "online" }, + "DismantleRoleConfiguration": { + "document": "解除权限配置在成员账号上的部署", + "input": "DismantleRoleConfigurationRequest", + "name": "解除访问配置部署到成员账号上的部署", + "output": "DismantleRoleConfigurationResponse", + "status": "online" + }, "EnablePolicyType": { "document": "启用策略类型", "input": "EnablePolicyTypeRequest", @@ -357,6 +469,97 @@ "output": "EnablePolicyTypeResponse", "status": "online" }, + "GetExternalSAMLIdentityProvider": { + "document": "查询SAML身份提供商配置信息", + "input": "GetExternalSAMLIdentityProviderRequest", + "name": "查询SAML身份提供商配置信息", + "output": "GetExternalSAMLIdentityProviderResponse", + "status": "online" + }, + "GetGroup": { + "document": "查询用户组信息", + "input": "GetGroupRequest", + "name": "查询用户组信息", + "output": "GetGroupResponse", + "status": "online" + }, + "GetProvisioningTaskStatus": { + "document": "查询用户同步异步任务的状态", + "input": "GetProvisioningTaskStatusRequest", + "name": "查询用户同步异步任务的状态", + "output": "GetProvisioningTaskStatusResponse", + "status": "online" + }, + "GetRoleConfiguration": { + "document": "查询权限配置信息", + "input": "GetRoleConfigurationRequest", + "name": "查询权限配置信息", + "output": "GetRoleConfigurationResponse", + "status": "online" + }, + "GetTaskStatus": { + "document": "查询异步任务的状态", + "input": "GetTaskStatusRequest", + "name": "查询异步任务的状态", + "output": "GetTaskStatusResponse", + "status": "online" + }, + "GetUser": { + "document": "查询用户信息", + "input": "GetUserRequest", + "name": "查询用户信息", + "output": "GetUserResponse", + "status": "online" + }, + "GetUserSyncProvisioning": { + "document": "查询CAM用户同步", + "input": "GetUserSyncProvisioningRequest", + "name": "查询CAM用户同步", + "output": "GetUserSyncProvisioningResponse", + "status": "online" + }, + "GetZoneSAMLServiceProviderInfo": { + "document": "查询SAML服务提供商配置信息", + "input": "GetZoneSAMLServiceProviderInfoRequest", + "name": "查询SAML服务提供商信息", + "output": "GetZoneSAMLServiceProviderInfoResponse", + "status": "online" + }, + "GetZoneStatistics": { + "document": "查询空间的统计信息", + "input": "GetZoneStatisticsRequest", + "name": "查询空间的统计信息", + "output": "GetZoneStatisticsResponse", + "status": "online" + }, + "ListExternalSAMLIdPCertificates": { + "document": "查询SAML签名证书列表", + "input": "ListExternalSAMLIdPCertificatesRequest", + "name": "查询SAML签名证书列表", + "output": "ListExternalSAMLIdPCertificatesResponse", + "status": "online" + }, + "ListGroupMembers": { + "document": "查询用户组中的用户列表", + "input": "ListGroupMembersRequest", + "name": "查询用户组中的用户列表", + "output": "ListGroupMembersResponse", + "status": "online" + }, + "ListGroups": { + "document": "查询用户组列表", + "input": "ListGroupsRequest", + "name": "查询用户组列表", + "output": "ListGroupsResponse", + "status": "online" + }, + "ListJoinedGroupsForUser": { + "document": "查询用户加入的用户组", + "input": "ListJoinedGroupsForUserRequest", + "name": "查询用户加入的用户组", + "output": "ListJoinedGroupsForUserResponse", + "status": "online" + }, "ListNonCompliantResource": { "document": "获取成员标签检测不合规资源列表", "input": "ListNonCompliantResourceRequest", @@ -385,6 +588,13 @@ "output": "ListOrganizationServiceResponse", "status": "online" }, + "ListPermissionPoliciesInRoleConfiguration": { + "document": "获取权限配置中的策略列表", + "input": "ListPermissionPoliciesInRoleConfigurationRequest", + "name": "获取权限配置中的策略列表", + "output": "ListPermissionPoliciesInRoleConfigurationResponse", + "status": "online" + }, "ListPolicies": { "document": "本接口(ListPolicies)可用于查询查看策略列表数据", "input": "ListPoliciesRequest", @@ -399,6 +609,27 @@ "output": "ListPoliciesForTargetResponse", "status": "online" }, + "ListRoleAssignments": { + "document": "查询授权列表", + "input": "ListRoleAssignmentsRequest", + "name": "查询授权列表", + "output": "ListRoleAssignmentsResponse", + "status": "online" + }, + "ListRoleConfigurationProvisionings": { + "document": "查询权限配置部署列表", + "input": "ListRoleConfigurationProvisioningsRequest", + "name": "查询权限配置部署列表", + "output": "ListRoleConfigurationProvisioningsResponse", + "status": "online" + }, + "ListRoleConfigurations": { + "document": "查询权限配置列表", + "input": "ListRoleConfigurationsRequest", + "name": "查询权限配置列表", + "output": "ListRoleConfigurationsResponse", + "status": "online" + }, "ListTargetsForPolicy": { "document": "本接口(ListTargetsForPolicy)查询某个指定策略关联的目标列表", "input": "ListTargetsForPolicyRequest", @@ -406,6 +637,27 @@ "output": "ListTargetsForPolicyResponse", "status": "online" }, + "ListTasks": { + "document": "查询异步任务列表", + "input": "ListTasksRequest", + "name": "查询异步任务列表", + "output": "ListTasksResponse", + "status": "online" + }, + "ListUserSyncProvisionings": { + "document": "查询CAM用户同步列表", + "input": "ListUserSyncProvisioningsRequest", + "name": "查询CAM用户同步列表", + "output": "ListUserSyncProvisioningsResponse", + "status": "online" + }, + "ListUsers": { + "document": "查询用户列表", + "input": "ListUsersRequest", + "name": "查询用户列表", + "output": "ListUsersResponse", + "status": "online" + }, "MoveOrganizationNodeMembers": { "document": "移动成员到指定企业组织节点", "input": "MoveOrganizationNodeMembersRequest", @@ -413,6 +665,20 @@ "output": "MoveOrganizationNodeMembersResponse", "status": "online" }, + "OpenIdentityCenter": { + "document": "开通CIC服务", + "input": "OpenIdentityCenterRequest", + "name": "开通cam身份中心服务", + "output": "OpenIdentityCenterResponse", + "status": "online" + }, + "ProvisionRoleConfiguration": { + "document": "将权限配置部署到成员账号上", + "input": "ProvisionRoleConfigurationRequest", + "name": "将访问配置部署到成员账号上", + "output": "ProvisionRoleConfigurationResponse", + "status": "online" + }, "QuitOrganization": { "document": "退出企业组织", "input": "QuitOrganizationRequest", @@ -427,6 +693,41 @@ "output": "RejectJoinShareUnitInvitationResponse", "status": "online" }, + "RemoveExternalSAMLIdPCertificate": { + "document": "移除SAML签名证书", + "input": "RemoveExternalSAMLIdPCertificateRequest", + "name": "移除SAML签名证书", + "output": "RemoveExternalSAMLIdPCertificateResponse", + "status": "online" + }, + "RemovePermissionPolicyFromRoleConfiguration": { + "document": "为权限配置移除策略", + "input": "RemovePermissionPolicyFromRoleConfigurationRequest", + "name": "为权限配置移除策略", + "output": "RemovePermissionPolicyFromRoleConfigurationResponse", + "status": "online" + }, + "RemoveUserFromGroup": { + "document": "从用户组中移除用户", + "input": "RemoveUserFromGroupRequest", + "name": "从用户组中移除用户", + "output": "RemoveUserFromGroupResponse", + "status": "online" + }, + "SetExternalSAMLIdentityProvider": { + "document": "配置SAML身份提供商信息", + "input": "SetExternalSAMLIdentityProviderRequest", + "name": "配置SAML身份提供商信息", + "output": "SetExternalSAMLIdentityProviderResponse", + "status": "online" + }, + "UpdateGroup": { + "document": "修改用户组信息", + "input": "UpdateGroupRequest", + "name": "修改用户组信息", + "output": "UpdateGroupResponse", + "status": "online" + }, "UpdateOrganizationIdentity": { "document": "更新组织身份", "input": "UpdateOrganizationIdentityRequest", @@ -462,12 +763,47 @@ "output": "UpdatePolicyResponse", "status": "online" }, + "UpdateRoleConfiguration": { + "document": "修改权限配置信息", + "input": "UpdateRoleConfigurationRequest", + "name": "修改权限配置信息", + "output": "UpdateRoleConfigurationResponse", + "status": "online" + }, "UpdateShareUnit": { "document": "更新共享单元。", "input": "UpdateShareUnitRequest", "name": "更新共享单元", "output": "UpdateShareUnitResponse", "status": "online" + }, + "UpdateUser": { + "document": "修改用户信息", + "input": "UpdateUserRequest", + "name": "修改用户信息", + "output": "UpdateUserResponse", + "status": "online" + }, + "UpdateUserStatus": { + "document": "修改用户状态", + "input": "UpdateUserStatusRequest", + "name": "修改用户状态", + "output": "UpdateUserStatusResponse", + "status": "online" + }, + "UpdateUserSyncProvisioning": { + "document": "创建子用户同步任务", + "input": "UpdateUserSyncProvisioningRequest", + "name": "更新CAM用户同步", + "output": "UpdateUserSyncProvisioningResponse", + "status": "online" + }, + "UpdateZone": { + "document": "更新用户空间名", + "input": "UpdateZoneRequest", + "name": "修改空间名", + "output": "UpdateZoneResponse", + "status": "online" } }, "metadata": { @@ -504,6 +840,52 @@ ], "type": "object" }, + "AddExternalSAMLIdPCertificateRequest": { + "document": "AddExternalSAMLIdPCertificate请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "PEM 格式的 X509 证书。 由 SAML 身份提供商提供。", + "example": "MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5******", + "member": "string", + "name": "X509Certificate", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "AddExternalSAMLIdPCertificateResponse": { + "document": "AddExternalSAMLIdPCertificate返回参数结构体", + "members": [ + { + "disabled": false, + "document": "SAML 签名证书 ID。", + "example": "idp-c-2jd8923je29****", + "member": "string", + "name": "CertificateId", + "output_required": false, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "AddOrganizationMemberEmailRequest": { "document": "AddOrganizationMemberEmail请求参数结构体", "members": [ @@ -623,6 +1005,78 @@ ], "type": "object" }, + "AddPermissionPolicyToRoleConfigurationRequest": { + "document": "AddPermissionPolicyToRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID", + "example": "z-29n23ien", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置 ID", + "example": "rc-so2msow", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限策略类型。取值: System:系统策略。复用 CAM 的系统策略。 Custom: 自定义策略。按照 CAM 权限策略语法和结构编写的自定义策略。 前期只支持系统策略,自定义策略后期在支持", + "example": "System", + "member": "string", + "name": "RolePolicyType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限策略名称,长度最大为 20策略,每个策略长度最大32个字符。", + "example": "[\"TestPolicy\",\"Admin\"]", + "member": "string", + "name": "RolePolicyNames", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "策略详情。", + "example": "[{'PolicyId':426322, 'PolicyName':'QcloudAccessForOceanusRole'}]", + "member": "PolicyDetail", + "name": "RolePolicies", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "自定义策略内容。长度:最大 4096 个字符。当RolePolicyType为Inline时,该参数必须配置。关于权限策略的语法和结构,请参见权限策略语法和结构。", + "example": "{ \"Version\": \"1\", \"Statement\": [ { \"Effect\": \"Allow\", \"Action\": \"*\", \"Resource\": \"*\" } ] }", + "member": "string", + "name": "CustomPolicyDocument", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "AddPermissionPolicyToRoleConfigurationResponse": { + "document": "AddPermissionPolicyToRoleConfiguration返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "AddShareUnitMembersRequest": { "document": "AddShareUnitMembers请求参数结构体", "members": [ @@ -786,6 +1240,51 @@ ], "type": "object" }, + "AddUserToGroupRequest": { + "document": "AddUserToGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-2d8shd8***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户组 ID。", + "example": "g-2xdb82n8***", + "member": "string", + "name": "GroupId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户 ID。", + "example": "u-28sh72be", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "AddUserToGroupResponse": { + "document": "AddUserToGroup返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "AttachPolicyRequest": { "document": "AttachPolicy请求参数结构体", "members": [ @@ -1013,43 +1512,125 @@ ], "type": "object" }, - "CreateOrgServiceAssignRequest": { - "document": "CreateOrgServiceAssign请求参数结构体", + "ClearExternalSAMLIdentityProviderRequest": { + "document": "ClearExternalSAMLIdentityProvider请求参数结构体", "members": [ { "disabled": false, - "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", - "example": "1", - "member": "uint64", - "name": "ServiceId", + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" - }, + "type": "string" + } + ], + "type": "object" + }, + "ClearExternalSAMLIdentityProviderResponse": { + "document": "ClearExternalSAMLIdentityProvider返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "CreateGroupRequest": { + "document": "CreateGroup请求参数结构体", + "members": [ { "disabled": false, - "document": "委派管理员Uin列表。 最大长度20个", - "example": "[111111111111]", - "member": "int64", - "name": "MemberUins", + "document": "空间 ID。", + "example": "z-23c3ad2wa", + "member": "string", + "name": "ZoneId", "required": true, - "type": "list" + "type": "string" }, { "disabled": false, - "document": "委派管理员管理范围。 取值:1-全部成员 2-部分成员,默认值1", - "example": "1", - "member": "uint64", - "name": "ManagementScope", - "required": false, - "type": "int" + "document": "用户组的名称。 格式:允许英文字母、数字和特殊字符-。 长度:最大 128 个字符。", + "example": "TestGroup", + "member": "string", + "name": "GroupName", + "required": true, + "type": "string" }, { "disabled": false, - "document": "管理的成员Uin列表。ManagementScope为2时该参数有效", - "example": "[]", - "member": "int64", - "name": "ManagementScopeUins", - "required": false, + "document": "用户组的描述。 长度:最大 1024 个字符。", + "example": "This is a group.", + "member": "string", + "name": "Description", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "CreateGroupResponse": { + "document": "CreateGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "用户组信息。", + "example": "{\"GroupName\":\"testGroup\",\"Description\":\"this is group\",\"CreateTime\":\"2024-01-01 12:12:12\",\"GroupType\":\"Manual\",\"UpdateTime\":\"2024-01-01 12:12:12\",\"GroupId\":\"g-8sh7baix****\",\"MemberCount\":0}", + "member": "GroupInfo", + "name": "GroupInfo", + "output_required": false, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "CreateOrgServiceAssignRequest": { + "document": "CreateOrgServiceAssign请求参数结构体", + "members": [ + { + "disabled": false, + "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", + "example": "1", + "member": "uint64", + "name": "ServiceId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "委派管理员Uin列表。 最大长度20个", + "example": "[111111111111]", + "member": "int64", + "name": "MemberUins", + "required": true, + "type": "list" + }, + { + "disabled": false, + "document": "委派管理员管理范围。 取值:1-全部成员 2-部分成员,默认值1", + "example": "1", + "member": "uint64", + "name": "ManagementScope", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "管理的成员Uin列表。ManagementScope为2时该参数有效", + "example": "[]", + "member": "int64", + "name": "ManagementScopeUins", + "required": false, "type": "list" }, { @@ -1514,24 +2095,43 @@ ], "type": "object" }, - "DeleteAccountRequest": { - "document": "DeleteAccount请求参数结构体", + "CreateRoleAssignmentRequest": { + "document": "CreateRoleAssignment请求参数结构体", "members": [ { "disabled": false, - "document": "成员Uin。", - "example": "111111111111", - "member": "int64", - "name": "MemberUin", + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" + }, + { + "disabled": false, + "document": "授权成员账号信息,最多授权50条。", + "example": "无", + "member": "RoleAssignmentInfo", + "name": "RoleAssignmentInfo", + "required": false, + "type": "list" } ], "type": "object" }, - "DeleteAccountResponse": { - "document": "DeleteAccount返回参数结构体", + "CreateRoleAssignmentResponse": { + "document": "CreateRoleAssignment返回参数结构体", "members": [ + { + "disabled": false, + "document": "任务详情。", + "example": "[{\"TaskId\":\"t-sowmiwm\",\"RoleConfigurationId\":\"r-sjsosmsss\",\"RoleConfigurationName\":\"test\",\"TargetUin\":10000323432,\"TargetType\":\"MemberUin\",\"PrincipalId\":\"u-djiem3o***\",\"PrincipalType\":\"User\",\"TaskType\":\"CreateRoleAssignment\",\"Status\":\"InProgress\"}]", + "member": "TaskInfo", + "name": "Tasks", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -1541,33 +2141,70 @@ ], "type": "object" }, - "DeleteOrgServiceAssignRequest": { - "document": "DeleteOrgServiceAssign请求参数结构体", + "CreateRoleConfigurationRequest": { + "document": "CreateRoleConfiguration请求参数结构体", "members": [ { "disabled": false, - "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", - "example": "1", - "member": "uint64", - "name": "ServiceId", + "document": "空间 ID。", + "example": "z-232ns223s", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "委派管理员Uin。", - "example": "111111111111", - "member": "int64", - "name": "MemberUin", + "document": "访问配置名称。格式:包含英文字母、数字或短划线(-)。 长度:最大 128 个字符。", + "example": "test", + "member": "string", + "name": "RoleConfigurationName", "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "访问配置的描述。 长度:最大 1024 个字符。", + "example": "this is role configuration", + "member": "string", + "name": "Description", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "会话持续时间。 CIC用户使用访问配置访问集团账号目标账号时,会话最多保持的时间。 单位:秒。 取值范围:900~43200(15 分钟~12 小时)。 默认值:3600(1 小时)。", + "example": "900", + "member": "int64", + "name": "SessionDuration", + "required": false, "type": "int" + }, + { + "disabled": false, + "document": "初始访问页面。 CIC用户使用访问配置访问集团账号目标账号时,初始访问的页面地址。 该页面必须是腾讯云控制台页面。默认为空,表示跳转到腾讯云控制台首页。", + "example": "https://console.cloud.tencent.com", + "member": "string", + "name": "RelayState", + "required": false, + "type": "string" } ], "type": "object" }, - "DeleteOrgServiceAssignResponse": { - "document": "DeleteOrgServiceAssign返回参数结构体", + "CreateRoleConfigurationResponse": { + "document": "CreateRoleConfiguration返回参数结构体", "members": [ + { + "disabled": false, + "document": "配置访问详情", + "example": "{\"RoleConfigurationId\":\"rc-s2ns92ns***\",\"RoleConfigurationName\":\"test\",\"Description\":\"this is role configuration\",\"SessionDuration\":900,\"RelayState\":\"https://console.cloud.tencent.com\",\"CreateTime\":\"2019-01-01 12:12:12\",\"UpdateTime\":\"2019-01-01 12:12:12\"}", + "member": "RoleConfiguration", + "name": "RoleConfigurationInfo", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -1577,24 +2214,97 @@ ], "type": "object" }, - "DeleteOrganizationIdentityRequest": { - "document": "DeleteOrganizationIdentity请求参数结构体", + "CreateUserRequest": { + "document": "CreateUser请求参数结构体", "members": [ { "disabled": false, - "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", - "example": "1", - "member": "uint64", - "name": "IdentityId", + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" + }, + { + "disabled": false, + "document": "用户名称。空间内必须唯一。不支持修改。 格式:包含数字、英文字母和特殊符号+ = , . @ - _ 。 长度:最大 64 个字符", + "example": "Alice", + "member": "string", + "name": "UserName", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户的姓。 长度:最大 64 个字符。", + "example": "Alice", + "member": "string", + "name": "FirstName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户的名。 长度:最大 64 个字符。", + "example": "Alice", + "member": "string", + "name": "LastName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户的显示名称。 长度:最大 256 个字符。", + "example": "Alice", + "member": "string", + "name": "DisplayName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户的描述。 长度:最大 1024 个字符。", + "example": "This is a user.", + "member": "string", + "name": "Description", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户的电子邮箱。目录内必须唯一。 长度:最大 128 个字符。", + "example": "Alice@example.com", + "member": "string", + "name": "Email", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户的状态。取值: Enabled(默认值):启用。 Disabled:禁用。", + "example": "Enabled", + "member": "string", + "name": "UserStatus", + "required": false, + "type": "string" } ], "type": "object" }, - "DeleteOrganizationIdentityResponse": { - "document": "DeleteOrganizationIdentity返回参数结构体", + "CreateUserResponse": { + "document": "CreateUser返回参数结构体", "members": [ + { + "disabled": false, + "document": "用户详情", + "example": "{\"ZoneId\": \"z-3fee3r3r3\"}", + "member": "UserInfo", + "name": "UserInfo", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -1604,33 +2314,43 @@ ], "type": "object" }, - "DeleteOrganizationMemberAuthIdentityRequest": { - "document": "DeleteOrganizationMemberAuthIdentity请求参数结构体", + "CreateUserSyncProvisioningRequest": { + "document": "CreateUserSyncProvisioning请求参数结构体", "members": [ { "disabled": false, - "document": "成员Uin。", - "example": "111111111111", - "member": "uint64", - "name": "MemberUin", + "document": "空间ID。", + "example": "z-d8wj832n***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", - "example": "11", - "member": "uint64", - "name": "IdentityId", + "document": "CAM用户同步信息。", + "example": "无", + "member": "UserSyncProvisioning", + "name": "UserSyncProvisionings", "required": true, - "type": "int" + "type": "list" } ], "type": "object" }, - "DeleteOrganizationMemberAuthIdentityResponse": { - "document": "DeleteOrganizationMemberAuthIdentity返回参数结构体", + "CreateUserSyncProvisioningResponse": { + "document": "CreateUserSyncProvisioning返回参数结构体", "members": [ + { + "disabled": false, + "document": "任务详细。", + "example": "[{\"TaskId\":\"t-duedin****\",\"TargetUin\":1000289211,\"TargetType\":\"MemberUin\",\"TaskType\":\"StartProvisioning\",\"TaskStatus\":\"InProgress\",\"UserProvisioningId\":\"upe-d8n3d9***\",\"PrincipalId\":\"u-dend83***\",\"PrincipalType\":\"User\",\"PrincipalName\":\"test\",\"DuplicationStrategy\":\"KeepBoth\",\"DeletionStrategy\":\"Delete\"}]", + "member": "UserProvisioningsTask", + "name": "Tasks", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -1640,23 +2360,23 @@ ], "type": "object" }, - "DeleteOrganizationMembersPolicyRequest": { - "document": "DeleteOrganizationMembersPolicy请求参数结构体", + "DeleteAccountRequest": { + "document": "DeleteAccount请求参数结构体", "members": [ { "disabled": false, - "document": "访问策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)获取", - "example": "123", - "member": "uint64", - "name": "PolicyId", + "document": "成员Uin。", + "example": "111111111111", + "member": "int64", + "name": "MemberUin", "required": true, "type": "int" } ], "type": "object" }, - "DeleteOrganizationMembersPolicyResponse": { - "document": "DeleteOrganizationMembersPolicy返回参数结构体", + "DeleteAccountResponse": { + "document": "DeleteAccount返回参数结构体", "members": [ { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -1667,23 +2387,32 @@ ], "type": "object" }, - "DeleteOrganizationMembersRequest": { - "document": "DeleteOrganizationMembers请求参数结构体", + "DeleteGroupRequest": { + "document": "DeleteGroup请求参数结构体", "members": [ { "disabled": false, - "document": "被删除成员的Uin列表。", - "example": "[111111111111]", - "member": "int64", - "name": "MemberUin", + "document": "空间 ID。", + "example": "z-3ds8dgs8***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "list" + "type": "string" + }, + { + "disabled": false, + "document": "用户组的 ID。", + "example": "g-2e92j39n", + "member": "string", + "name": "GroupId", + "required": true, + "type": "string" } ], "type": "object" }, - "DeleteOrganizationMembersResponse": { - "document": "DeleteOrganizationMembers返回参数结构体", + "DeleteGroupResponse": { + "document": "DeleteGroup返回参数结构体", "members": [ { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -1694,15 +2423,168 @@ ], "type": "object" }, - "DeleteOrganizationNodesRequest": { - "document": "DeleteOrganizationNodes请求参数结构体", + "DeleteOrgServiceAssignRequest": { + "document": "DeleteOrgServiceAssign请求参数结构体", "members": [ { "disabled": false, - "document": "节点ID列表。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", - "example": "[1001]", - "member": "int64", - "name": "NodeId", + "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", + "example": "1", + "member": "uint64", + "name": "ServiceId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "委派管理员Uin。", + "example": "111111111111", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DeleteOrgServiceAssignResponse": { + "document": "DeleteOrgServiceAssign返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteOrganizationIdentityRequest": { + "document": "DeleteOrganizationIdentity请求参数结构体", + "members": [ + { + "disabled": false, + "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", + "example": "1", + "member": "uint64", + "name": "IdentityId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DeleteOrganizationIdentityResponse": { + "document": "DeleteOrganizationIdentity返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteOrganizationMemberAuthIdentityRequest": { + "document": "DeleteOrganizationMemberAuthIdentity请求参数结构体", + "members": [ + { + "disabled": false, + "document": "成员Uin。", + "example": "111111111111", + "member": "uint64", + "name": "MemberUin", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", + "example": "11", + "member": "uint64", + "name": "IdentityId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DeleteOrganizationMemberAuthIdentityResponse": { + "document": "DeleteOrganizationMemberAuthIdentity返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteOrganizationMembersPolicyRequest": { + "document": "DeleteOrganizationMembersPolicy请求参数结构体", + "members": [ + { + "disabled": false, + "document": "访问策略ID。可以通过[DescribeOrganizationMemberPolicies](https://cloud.tencent.com/document/product/850/82935)获取", + "example": "123", + "member": "uint64", + "name": "PolicyId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DeleteOrganizationMembersPolicyResponse": { + "document": "DeleteOrganizationMembersPolicy返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteOrganizationMembersRequest": { + "document": "DeleteOrganizationMembers请求参数结构体", + "members": [ + { + "disabled": false, + "document": "被删除成员的Uin列表。", + "example": "[111111111111]", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "list" + } + ], + "type": "object" + }, + "DeleteOrganizationMembersResponse": { + "document": "DeleteOrganizationMembers返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteOrganizationNodesRequest": { + "document": "DeleteOrganizationNodes请求参数结构体", + "members": [ + { + "disabled": false, + "document": "节点ID列表。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", + "example": "[1001]", + "member": "int64", + "name": "NodeId", "required": true, "type": "list" } @@ -1774,6 +2656,133 @@ ], "type": "object" }, + "DeleteRoleAssignmentRequest": { + "document": "DeleteRoleAssignment请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-sisjdia", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "集团账号目标账号的UIN", + "example": "10003i32i2", + "member": "int64", + "name": "TargetUin", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "CAM用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC用户。 Group:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "CAM用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC 用户组 ID(g-********), 当PrincipalType取值为User时,该值为CIC 用户 ID(u-********)。 \t", + "example": "u-sniassda****", + "member": "string", + "name": "PrincipalId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "当您移除一个集团账号目标账号上使用某访问配置的最后一个授权时,是否同时解除访问配置部署。取值: DeprovisionForLastRoleAssignmentOnAccount:解除访问配置部署。 None(默认值):不解除访问配置部署。", + "example": "无", + "member": "string", + "name": "DeprovisionStrategy", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "DeleteRoleAssignmentResponse": { + "document": "DeleteRoleAssignment返回参数结构体", + "members": [ + { + "disabled": false, + "document": "任务详情", + "example": "{\"TaskId\":\"t-0md93jfd3\",\"RoleConfigurationId\":\"rc-dsk3323\",\"RoleConfigurationName\":\"test\",\"TargetUin\":100032333,\"TargetType\":\"MemberUin\",\"PrincipalId\":\"u-siwnwiene\",\"PrincipalType\":\"User\",\"TaskType\":\"DeleteRolesAssignment\",\"Status\":\"InProgress\"}", + "member": "TaskInfo", + "name": "Task", + "output_required": false, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteRoleConfigurationRequest": { + "document": "DeleteRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID", + "example": "z-29n23ien", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置 ID", + "example": "rc-so2msow", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DeleteRoleConfigurationResponse": { + "document": "DeleteRoleConfiguration返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DeleteShareUnitMembersRequest": { "document": "DeleteShareUnitMembers请求参数结构体", "members": [ @@ -1900,22 +2909,104 @@ ], "type": "object" }, - "DescribeEffectivePolicyRequest": { - "document": "DescribeEffectivePolicy请求参数结构体", + "DeleteUserRequest": { + "document": "DeleteUser请求参数结构体", "members": [ { "disabled": false, - "document": "账号uin或者节点id。", - "example": "10083", - "member": "uint64", - "name": "TargetId", + "document": "空间 ID。", + "example": "z-33isn3ie**", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" - } - ], - "type": "object" - }, - "DescribeEffectivePolicyResponse": { + "type": "string" + }, + { + "disabled": false, + "document": "用户 ID。", + "example": "u-34nesn3u", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DeleteUserResponse": { + "document": "DeleteUser返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DeleteUserSyncProvisioningRequest": { + "document": "DeleteUserSyncProvisioning请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-d8wj832n***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户同步的ID。", + "example": "up-sjisnw8ois", + "member": "string", + "name": "UserProvisioningId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "DeleteUserSyncProvisioningResponse": { + "document": "DeleteUserSyncProvisioning返回参数结构体", + "members": [ + { + "disabled": false, + "document": "任务详情。", + "example": "{\"TaskId\":\"t-duedin****\",\"TargetUin\":1000289211,\"TargetType\":\"MemberUin\",\"TaskType\":\"DeleteProvisioning\",\"TaskStatus\":\"InProgress\",\"UserProvisioningId\":\"upe-d8n3d9***\",\"PrincipalId\":\"u-dend83***\",\"PrincipalType\":\"User\",\"PrincipalName\":\"test\",\"DuplicationStrategy\":\"KeepBoth\",\"DeletionStrategy\":\"Delete\"}", + "member": "UserProvisioningsTask", + "name": "Tasks", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "DescribeEffectivePolicyRequest": { + "document": "DescribeEffectivePolicy请求参数结构体", + "members": [ + { + "disabled": false, + "document": "账号uin或者节点id。", + "example": "10083", + "member": "uint64", + "name": "TargetId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DescribeEffectivePolicyResponse": { "document": "DescribeEffectivePolicy返回参数结构体", "members": [ { @@ -1936,6 +3027,83 @@ ], "type": "object" }, + "DescribeIdentityCenterRequest": { + "document": "DescribeIdentityCenter请求参数结构体", + "members": [], + "type": "object" + }, + "DescribeIdentityCenterResponse": { + "document": "DescribeIdentityCenter返回参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。z-前缀开头,后面是12位随机数字/小写字母", + "example": "z-00fdsg****", + "member": "string", + "name": "ZoneId", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "空间名,必须全局唯一。包含小写字母、数字和短划线(-)。不能以短划线(-)开头或结尾,且不能有两个连续的短划线(-)。长度:2~64 个字符。", + "example": "testName", + "member": "string", + "name": "ZoneName", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "服务开启状态,Disabled代表未开通,Enabled代表已开通", + "example": "Enabled", + "member": "string", + "name": "ServiceStatus", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "SCIM 同步状态。Enabled:启用。 Disabled:禁用。", + "example": "Enabled", + "member": "string", + "name": "ScimSyncStatus", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间", + "example": "2024-04-29 15:04:05", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "更新时间", + "example": "2024-04-29 15:04:05", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DescribeOrganizationAuthNodeRequest": { "document": "DescribeOrganizationAuthNode请求参数结构体", "members": [ @@ -3476,6 +4644,70 @@ ], "type": "object" }, + "DismantleRoleConfigurationRequest": { + "document": "DismantleRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-sisjdia", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号。", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的UIN。", + "example": "10003i32i2", + "member": "int64", + "name": "TargetUin", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "DismantleRoleConfigurationResponse": { + "document": "DismantleRoleConfiguration返回参数结构体", + "members": [ + { + "disabled": false, + "document": "任务详情。", + "example": "{\"RoleConfigurationId\":\"rc-4plmus8fdfsb\",\"RoleConfigurationName\":\"testConfiguration1\",\"TargetType\":\"MemberUin\",\"TargetUin\":700000145543,\"TaskId\":\"t-2xdmzwphpsbd\",\"TaskStatus\":\"InProgress\",\"TaskType\":\"CreateRoleAssignment\"}", + "member": "RoleProvisioningsTask", + "name": "Task", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "EffectivePolicy": { "document": "有效策略。", "members": [ @@ -3548,120 +4780,79 @@ ], "type": "object" }, - "IdentityPolicy": { - "document": "组织身份策略", + "GetExternalSAMLIdentityProviderRequest": { + "document": "GetExternalSAMLIdentityProvider请求参数结构体", "members": [ { "disabled": false, - "document": "CAM预设策略ID。PolicyType 为预设策略时有效且必选", - "example": "1", - "member": "uint64", - "name": "PolicyId", - "output_required": true, - "required": false, - "type": "int", - "value_allowed_null": false - }, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "GetExternalSAMLIdentityProviderResponse": { + "document": "GetExternalSAMLIdentityProvider返回参数结构体", + "members": [ { "disabled": false, - "document": "CAM预设策略名称。PolicyType 为预设策略时有效且必选", - "example": "AdministratorAccess", - "member": "string", - "name": "PolicyName", + "document": "saml 身份提供商配置信息。", + "example": "{\"EntityId\":\"http://www.okta.com/2jd83ne9m*****\",\"SSOStatus\":\"Enabled\",\"EncodedMetadataDocument\":\"PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxFbnRpdHlEZXNjcmlwdG9yIHhtbG5zPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoydpbi5jb20vc2FtbC9tZXRhZGF0YS8xN2NkYjEyOC03N**********\",\"CertificateIds\":[\"idp-c-2jd8923je29****\"],\"LoginUrl\":\"https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/2jd83ne9m****/sso/saml\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\"}", + "member": "SAMLIdentityProviderConfiguration", + "name": "SAMLIdentityProviderConfiguration", "output_required": true, - "required": false, - "type": "string", + "type": "object", "value_allowed_null": false }, { - "disabled": false, - "document": "策略类型。取值 1-自定义策略 2-预设策略;默认值2\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2", - "member": "uint64", - "name": "PolicyType", - "output_required": false, - "required": false, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "自定义策略内容,遵循CAM策略语法。PolicyType 为自定义策略时有效且必选\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "{ \"version\": \"2.0\", \"statement\": [ { \"effect\": \"allow\", \"action\": [ \"vpc:*\" ], \"resource\": [ \"*\" ] } ] }", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "PolicyDocument", - "output_required": false, - "required": false, - "type": "string", - "value_allowed_null": true + "name": "RequestId", + "type": "string" } ], - "usage": "both" + "type": "object" }, - "ListNonCompliantResourceRequest": { - "document": "ListNonCompliantResource请求参数结构体", + "GetGroupRequest": { + "document": "GetGroup请求参数结构体", "members": [ { "disabled": false, - "document": "限制数目。取值范围:1~50。", - "example": "10", - "member": "uint64", - "name": "MaxResults", - "required": true, - "type": "int" - }, - { - "disabled": false, - "document": "成员Uin。", - "example": "111111111111", - "member": "uint64", - "name": "MemberUin", - "required": true, - "type": "int" - }, - { - "disabled": false, - "document": "从上一页的响应中获取的下一页的Token值。\n如果是第一次请求,设置为空。", - "example": "\"\"", + "document": "空间 ID。", + "example": "z-23s8xh7sd***", "member": "string", - "name": "PaginationToken", - "required": false, + "name": "ZoneId", + "required": true, "type": "string" }, { "disabled": false, - "document": "标签键。", - "example": "\"\"", + "document": "用户组的 ID。", + "example": "g-sd8sh8sdno***", "member": "string", - "name": "TagKey", - "required": false, + "name": "GroupId", + "required": true, "type": "string" } ], "type": "object" }, - "ListNonCompliantResourceResponse": { - "document": "ListNonCompliantResource返回参数结构体", + "GetGroupResponse": { + "document": "GetGroup返回参数结构体", "members": [ { "disabled": false, - "document": "资源及标签合规信息。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "ResourceTagMapping", - "name": "Items", - "output_required": true, - "type": "list", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "获取的下一页的Token值。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", - "member": "string", - "name": "PaginationToken", - "output_required": true, - "type": "string", - "value_allowed_null": true + "document": "用户组信息", + "example": "{\"GroupName\": \"testGroup\", \"Description\": \"this is group\", \"CreateTime\": \"2024-01-01 12:12:12\", \"GroupType\": \"Manual\", \"UpdateTime\": \"2024-01-01 12:12:12\", \"GroupId\": \"g-sushsia7s8\", \"MemberCount\": 20}", + "member": "GroupInfo", + "name": "GroupInfo", + "output_required": false, + "type": "object", + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -3672,61 +4863,88 @@ ], "type": "object" }, - "ListOrgServiceAssignMemberRequest": { - "document": "ListOrgServiceAssignMember请求参数结构体", + "GetProvisioningTaskStatusRequest": { + "document": "GetProvisioningTaskStatus请求参数结构体", "members": [ { "disabled": false, - "document": "偏移量。取值是limit的整数倍,默认值 : 0", - "example": "1", - "member": "uint64", - "name": "Offset", + "document": "空间ID。", + "example": "z-2s9j28****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "限制数目。取值范围:1~50,默认值:10", - "example": "10", - "member": "uint64", - "name": "Limit", + "document": "任务ID。", + "example": "t-x8jd983n****", + "member": "string", + "name": "TaskId", "required": true, - "type": "int" - }, + "type": "string" + } + ], + "type": "object" + }, + "GetProvisioningTaskStatusResponse": { + "document": "GetProvisioningTaskStatus返回参数结构体", + "members": [ { "disabled": false, - "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", - "example": "1", - "member": "uint64", - "name": "ServiceId", - "required": true, - "type": "int" + "document": "任务状态信息。", + "example": "{\"Status\":\"Success\",\"TaskId\":\"z-dnsudniw****\",\"TaskType\":\"StartProvisioning\",\"FailureReason\":\"\"}", + "member": "TaskStatus", + "name": "TaskStatus", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" } ], "type": "object" }, - "ListOrgServiceAssignMemberResponse": { - "document": "ListOrgServiceAssignMember返回参数结构体", + "GetRoleConfigurationRequest": { + "document": "GetRoleConfiguration请求参数结构体", "members": [ { "disabled": false, - "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "Total", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "空间 ID", + "example": "z-28sn28s***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "委派管理员列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "OrganizationServiceAssignMember", - "name": "Items", + "document": "权限配置ID", + "example": "rc-2e29scc***", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "GetRoleConfigurationResponse": { + "document": "GetRoleConfiguration返回参数结构体", + "members": [ + { + "disabled": false, + "document": "权限配置详情", + "example": "{\"RoleConfigurationId\":\"rc-s2ns92ns***\",\"RoleConfigurationName\":\"test\",\"Description\":\"this is role configuration\",\"SessionDuration\":900,\"RelayState\":\"https://console.cloud.tencent.com\",\"CreateTime\":\"2019-01-01 12:12:12\",\"UpdateTime\":\"2019-01-01 12:12:12\"}", + "member": "RoleConfiguration", + "name": "RoleConfigurationInfo", "output_required": true, - "type": "list", - "value_allowed_null": true + "type": "object", + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -3737,79 +4955,88 @@ ], "type": "object" }, - "ListOrganizationIdentityRequest": { - "document": "ListOrganizationIdentity请求参数结构体", + "GetTaskStatusRequest": { + "document": "GetTaskStatus请求参数结构体", "members": [ { "disabled": false, - "document": "偏移量。取值是limit的整数倍。默认值 : 0。", - "example": "1", - "member": "uint64", - "name": "Offset", + "document": "空间ID。", + "example": "z-2s9j28****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "限制数目。取值范围:1~50。默认值:10。", - "example": "10", - "member": "uint64", - "name": "Limit", + "document": "任务ID。", + "example": "t-x8jd983n****", + "member": "string", + "name": "TaskId", "required": true, - "type": "int" - }, + "type": "string" + } + ], + "type": "object" + }, + "GetTaskStatusResponse": { + "document": "GetTaskStatus返回参数结构体", + "members": [ { "disabled": false, - "document": "名称搜索关键字。", - "example": "test", + "document": "任务状态信息。", + "example": "{\"Status\":\"Success\",\"TaskId\":\"z-dksodm***\",\"TaskType\":\"ProvisionRoleConfiguration\",\"FailureReason\":\"fielded\"}", + "member": "TaskStatus", + "name": "TaskStatus", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "SearchKey", - "required": false, + "name": "RequestId", "type": "string" - }, + } + ], + "type": "object" + }, + "GetUserRequest": { + "document": "GetUser请求参数结构体", + "members": [ { "disabled": false, - "document": "身份ID。可以通过身份ID搜索", - "example": "1", - "member": "uint64", - "name": "IdentityId", - "required": false, - "type": "int" + "document": "用户 ID。", + "example": "u-23w3nwlsa", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "身份类型。取值范围 1-预设, 2-自定义", - "example": "1", - "member": "uint64", - "name": "IdentityType", - "required": false, - "type": "int" + "document": "空间 ID。", + "example": "z-hfp2qqncfthb", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" } ], "type": "object" }, - "ListOrganizationIdentityResponse": { - "document": "ListOrganizationIdentity返回参数结构体", + "GetUserResponse": { + "document": "GetUser返回参数结构体", "members": [ { "disabled": false, - "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "Total", - "output_required": true, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "条目详情。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "OrgIdentity", - "name": "Items", + "document": "用户信息。", + "example": "{\"UserName\":\"test\",\"FirstName\":\"test\",\"LastName\":\"test\",\"DisplayName\":\"test\",\"Description\":\"this is user\",\"Email\":\"test@example.com\",\"UserStatus\":\"Enabled\",\"UserType\":\"Manual\",\"UserId\":\"u-2jsal3jdxk\",\"CreateTime\":\"2024-03-12 12:12:12\",\"UpdateTime\":\"2024-03-12 12:12:12\"}", + "member": "UserInfo", + "name": "UserInfo", "output_required": true, - "type": "list", - "value_allowed_null": true + "type": "object", + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -3820,61 +5047,79 @@ ], "type": "object" }, - "ListOrganizationServiceRequest": { - "document": "ListOrganizationService请求参数结构体", + "GetUserSyncProvisioningRequest": { + "document": "GetUserSyncProvisioning请求参数结构体", "members": [ { "disabled": false, - "document": "偏移量。取值是limit的整数倍,默认值 : 0", - "example": "1", - "member": "uint64", - "name": "Offset", + "document": "空间ID。", + "example": "z-d8wj832n***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "限制数目。取值范围:1~50,默认值:10", - "example": "10", - "member": "uint64", - "name": "Limit", + "document": "CAM 用户同步的 ID。", + "example": "up-xe93jd93je", + "member": "string", + "name": "UserProvisioningId", "required": true, - "type": "int" - }, + "type": "string" + } + ], + "type": "object" + }, + "GetUserSyncProvisioningResponse": { + "document": "GetUserSyncProvisioning返回参数结构体", + "members": [ { "disabled": false, - "document": "名称搜索关键字。", - "example": "\"\"", + "document": "CAM 用户同步信息。", + "example": "{\"UserProvisioningId\":\"up-siwnei3nso\",\"Description\":\"this is cam user sync\",\"Status\":\"Enabled\",\"PrincipalId\":\"u-swnd8wn3\",\"PrincipalName\":\"test\",\"PrincipalType\":\"User\",\"TargetUin\":\"10000338332\",\"TargetName\":\"test\",\"TargetType\":\"MemberUin\",\"DuplicationStrategy\":\"KeepBoth\",\"DeletionStrategy\":\"Delete\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\"}", + "member": "UserProvisioning", + "name": "UserProvisioning", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "SearchKey", - "required": false, + "name": "RequestId", "type": "string" } ], "type": "object" }, - "ListOrganizationServiceResponse": { - "document": "ListOrganizationService返回参数结构体", + "GetZoneSAMLServiceProviderInfoRequest": { + "document": "GetZoneSAMLServiceProviderInfo请求参数结构体", "members": [ { "disabled": false, - "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "Total", - "output_required": true, - "type": "int", - "value_allowed_null": true - }, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "GetZoneSAMLServiceProviderInfoResponse": { + "document": "GetZoneSAMLServiceProviderInfo返回参数结构体", + "members": [ { "disabled": false, - "document": "集团服务列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "OrganizationServiceAssign", - "name": "Items", + "document": "saml服务提供商配置信息", + "example": "{\"EntityId\":\"https://tencentcloudsso.com/saml/sp/z-doekeie****\",\"ZoneId\":\"z-doekeie****\",\"EncodedMetadataDocument\":\"JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5nJTNEJTIy***\",\"AcsUrl\":\"https://tencentcloudsso.com/saml/acs/d9wjd-d93je9-2me****\"}", + "member": "SAMLServiceProvider", + "name": "SAMLServiceProvider", "output_required": true, - "type": "list", - "value_allowed_null": true + "type": "object", + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -3885,254 +5130,379 @@ ], "type": "object" }, - "ListPoliciesForTarget": { - "document": "查询目标关联的SCP策略列表", + "GetZoneStatisticsRequest": { + "document": "GetZoneStatistics请求参数结构体", "members": [ { "disabled": false, - "document": "策略Id", - "example": "1000", - "member": "uint64", - "name": "StrategyId", + "document": "空间ID", + "example": "z-2d2nq982n***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int", + "type": "string" + } + ], + "type": "object" + }, + "GetZoneStatisticsResponse": { + "document": "GetZoneStatistics返回参数结构体", + "members": [ + { + "disabled": false, + "document": "空间的统计信息。", + "example": "{\"UserQuota\":1000,\"GroupQuota\":500,\"RoleConfigurationQuota\":1000,\"SystemPolicyPerRoleConfigurationQuota\":20,\"UserCount\":10,\"GroupCount\":2,\"RoleConfigurationCount\":3,\"UserProvisioningCount\":0,\"RoleConfigurationSyncCount\":0}", + "member": "ZoneStatistics", + "name": "ZoneStatistics", + "output_required": false, + "type": "object", "value_allowed_null": false }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "GroupInfo": { + "document": "用户组信息。", + "members": [ { "disabled": false, - "document": "策略名称", - "example": "FullQcloudAccess", + "document": "用户组的名称。", + "example": "TestGroup", "member": "string", - "name": "StrategyName", - "required": true, + "name": "GroupName", + "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "备注信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "自测专用", + "document": "用户组的描述。", + "example": "This is a group.", "member": "string", - "name": "Remark", - "required": true, + "name": "Description", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "关联的账号或节点", - "example": "15440611", - "member": "uint64", - "name": "Uin", - "required": true, - "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "关联类型 1-节点 2-用户", - "example": "1", - "member": "uint64", - "name": "Type", - "required": true, - "type": "int", + "document": "用户组的创建时间。", + "example": "2024-01-01 12:12:12", + "member": "string", + "name": "CreateTime", + "output_required": true, + "required": false, + "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "策略创建时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-08-08 14:49:59", + "document": "用户组的类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", "member": "string", - "name": "AddTime", - "required": true, + "name": "GroupType", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "策略更新时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-08-08 14:49:59", + "document": "用户组的修改时间。", + "example": "2024-01-01 12:12:12", "member": "string", "name": "UpdateTime", - "required": true, + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "部门名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "二级部门", + "document": "用户组的 ID。", + "example": "g-3x3s34fr2***", "member": "string", - "name": "Name", - "required": true, + "name": "GroupId", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "策略绑定时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-08-08 14:49:59", - "member": "string", - "name": "AttachTime", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "组员数量。", + "example": "10", + "member": "int64", + "name": "MemberCount", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "如果有入参FilterUsers,用户在用户组返回true,否则返回false", + "example": "true", + "member": "bool", + "name": "IsSelected", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": false } ], - "usage": "out" + "usage": "both" }, - "ListPoliciesForTargetRequest": { - "document": "ListPoliciesForTarget请求参数结构体", + "GroupMembers": { + "document": "用户信息", "members": [ { "disabled": false, - "document": "账号uin或者节点id。", - "example": "10083", - "member": "uint64", - "name": "TargetId", - "required": true, - "type": "int" + "document": "查询username。", + "example": "Alice", + "member": "string", + "name": "UserName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", - "example": "1", - "member": "uint64", - "name": "Rp", + "document": "用户的显示名称。", + "example": "Alice", + "member": "string", + "name": "DisplayName", + "output_required": true, "required": false, - "type": "int" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "页码。默认值是 1,从 1开始,不能大于 200", - "example": "10", - "member": "uint64", - "name": "Page", + "document": "用户的描述。", + "example": "this is user.", + "member": "string", + "name": "Description", + "output_required": true, "required": false, - "type": "int" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", - "example": "SERVICE_CONTROL_POLICY", + "document": "用户的电子邮箱。目录内必须唯一。", + "example": "Alice@example.com", "member": "string", - "name": "PolicyType", + "name": "Email", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "搜索关键字。按照策略名称搜索", - "example": "testName", + "document": "用户状态 Enabled:启用, Disabled:禁用。", + "example": "Enabled", "member": "string", - "name": "Keyword", + "name": "UserStatus", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", + "member": "string", + "name": "UserType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户 ID", + "example": "u-a34wsd32", + "member": "string", + "name": "UserId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户加入用户组的时间", + "example": "2021-12-12 12:12:12", + "member": "string", + "name": "JoinTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false } ], - "type": "object" + "usage": "both" }, - "ListPoliciesForTargetResponse": { - "document": "ListPoliciesForTarget返回参数结构体", + "IdentityPolicy": { + "document": "组织身份策略", "members": [ { "disabled": false, - "document": "总数。", - "example": "12", + "document": "CAM预设策略ID。PolicyType 为预设策略时有效且必选", + "example": "1", "member": "uint64", - "name": "TotalNum", + "name": "PolicyId", + "output_required": true, + "required": false, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "目标关联的策略列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "ListPoliciesForTarget", - "name": "List", - "type": "list", + "document": "CAM预设策略名称。PolicyType 为预设策略时有效且必选", + "example": "AdministratorAccess", + "member": "string", + "name": "PolicyName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "策略类型。取值 1-自定义策略 2-预设策略;默认值2\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2", + "member": "uint64", + "name": "PolicyType", + "output_required": false, + "required": false, + "type": "int", "value_allowed_null": true }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "自定义策略内容,遵循CAM策略语法。PolicyType 为自定义策略时有效且必选\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "{ \"version\": \"2.0\", \"statement\": [ { \"effect\": \"allow\", \"action\": [ \"vpc:*\" ], \"resource\": [ \"*\" ] } ] }", "member": "string", - "name": "RequestId", - "type": "string" + "name": "PolicyDocument", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true } ], - "type": "object" + "usage": "both" }, - "ListPoliciesRequest": { - "document": "ListPolicies请求参数结构体", + "JoinedGroups": { + "document": "用户加入的用户组", "members": [ { "disabled": false, - "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", - "example": "1", - "member": "uint64", - "name": "Rp", + "document": "用户组的名称。", + "example": "测试组", + "member": "string", + "name": "GroupName", + "output_required": true, "required": false, - "type": "int" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "页码。默认值是 1,从 1开始,不能大于 200", - "example": "10", - "member": "uint64", - "name": "Page", + "document": "用户组的描述。", + "example": "这个是测试组", + "member": "string", + "name": "Description", + "output_required": true, "required": false, - "type": "int" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "查询范围。取值范围: All-获取所有策略、QCS-只获取预设策略、Local-只获取自定义策略,默认值:All", - "example": "All", + "document": "用户组 ID。", + "example": "g-asnwuwi**", "member": "string", - "name": "Scope", + "name": "GroupId", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "搜索关键字。按照策略名搜索", - "example": "test_name", + "document": "用户组的类型。取值:\n\nManual:手动创建。\nSynchronized:外部同步。", + "example": "Manual", "member": "string", - "name": "Keyword", + "name": "GroupType", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", - "example": "SERVICE_CONTROL_POLICY", + "document": "加入用户组的时间", + "example": "2021-01-01 12:12:12", "member": "string", - "name": "PolicyType", + "name": "JoinTime", + "output_required": true, "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "ListExternalSAMLIdPCertificatesRequest": { + "document": "ListExternalSAMLIdPCertificates请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, "type": "string" } ], "type": "object" }, - "ListPoliciesResponse": { - "document": "ListPolicies返回参数结构体", + "ListExternalSAMLIdPCertificatesResponse": { + "document": "ListExternalSAMLIdPCertificates返回参数结构体", "members": [ { "disabled": false, - "document": "策略总数", - "example": "12", - "member": "uint64", - "name": "TotalNum", + "document": "符合请求参数条件的数据总条数。", + "example": "5", + "member": "int64", + "name": "TotalCounts", + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "策略列表数据\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "ListPolicyNode", - "name": "List", + "document": "SAML 签名证书列表", + "example": "[{\"SerialNumber\":\"1347934239****\",\"Issuer\":\"5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta\",\"Version\":\"1\",\"CertificateId\":\"idp-c-2jd8923je29****\",\"PublicKey\":\"nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****\",\"SignatureAlgorithm\":\"SHA256withRSA\",\"NotAfter\":\"2030-06-23 07:04:37\",\"NotBefore\":\"2010-06-23 07:04:37\",\"Subject\":\"5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta\",\"X509Certificate\":\"nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****\"}]", + "member": "SAMLIdPCertificate", + "name": "SAMLIdPCertificates", + "output_required": true, "type": "list", - "value_allowed_null": true + "value_allowed_null": false }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -4143,403 +5513,428 @@ ], "type": "object" }, - "ListPolicyNode": { - "document": "企业组织策略列表", + "ListGroupMembersRequest": { + "document": "ListGroupMembers请求参数结构体", "members": [ { "disabled": false, - "document": "策略创建时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-08-02 19:40:09", + "document": "空间 ID。", + "example": "z-2d8shd8***", "member": "string", - "name": "AddTime", + "name": "ZoneId", "required": true, - "type": "string", - "value_allowed_null": true + "type": "string" }, { "disabled": false, - "document": "策略绑定次数\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "3", - "member": "uint64", - "name": "AttachedTimes", + "document": "用户组ID。", + "example": "g-28sn23n***", + "member": "string", + "name": "GroupId", "required": true, - "type": "int", - "value_allowed_null": true + "type": "string" }, { "disabled": false, - "document": "策略描述信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "测试策略1", + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "Description", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "NextToken", + "required": false, + "type": "string" }, { "disabled": false, - "document": "策略名称", - "example": "test_bind", - "member": "string", - "name": "PolicyName", - "required": true, - "type": "string", - "value_allowed_null": false + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" }, { "disabled": false, - "document": "策略Id", - "example": "12307", - "member": "uint64", - "name": "PolicyId", - "required": true, - "type": "int", - "value_allowed_null": false - }, + "document": "用户类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", + "member": "string", + "name": "UserType", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListGroupMembersResponse": { + "document": "ListGroupMembers返回参数结构体", + "members": [ { "disabled": false, - "document": "策略更新时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-08-02 19:40:09", + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "UpdateTime", - "required": true, + "name": "NextToken", + "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "策略类型 1-自定义 2-预设", - "example": "1", - "member": "uint64", - "name": "Type", - "required": true, + "document": "符合请求参数条件的数据总条数。", + "example": "20", + "member": "int64", + "name": "TotalCounts", + "output_required": true, "type": "int", "value_allowed_null": false - } - ], - "usage": "out" - }, - "ListTargetsForPolicyNode": { - "document": "查询某个指定SCP策略关联的目标列表", - "members": [ + }, { "disabled": false, - "document": "scp账号uin或节点Id", - "example": "100022242314", - "member": "uint64", - "name": "Uin", - "required": true, + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "关联类型 1-节点关联 2-用户关联", - "example": "2", - "member": "uint64", - "name": "RelatedType", - "required": true, - "type": "int", + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", "value_allowed_null": false }, { "disabled": false, - "document": "账号或者节点名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "T1-Node", - "member": "string", - "name": "Name", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "用户组的用户列表", + "example": " [{\"UserName\": \"test\",\"DisplayName\": \"test\",\"Description\": \"this is test user\",\"Email\": \"123456@qq.com\",\"UserStatus\": \"Enabled\",\"UserType\": \"Manual\",\"UserId\": \"u-d032med3\", \"JoinTime\": \"2024-01-01 12:12:12\"}]", + "member": "GroupMembers", + "name": "GroupMembers", + "output_required": true, + "type": "list", + "value_allowed_null": false }, { - "disabled": false, - "document": "绑定时间", - "example": "2022-08-09 17:11:54", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "AddTime", - "required": true, - "type": "string", - "value_allowed_null": false + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "ListTargetsForPolicyRequest": { - "document": "ListTargetsForPolicy请求参数结构体", + "ListGroupsRequest": { + "document": "ListGroups请求参数结构体", "members": [ { "disabled": false, - "document": "策略Id。", - "example": "10083", - "member": "uint64", - "name": "PolicyId", + "document": "空间 ID。", + "example": "z-3ds73bs****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", - "example": "1", - "member": "uint64", - "name": "Rp", + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", "required": false, - "type": "int" + "type": "string" }, { "disabled": false, - "document": "页码。默认值是 1,从 1开始,不能大于 200", - "example": "10", - "member": "uint64", - "name": "Page", + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "20", + "member": "int64", + "name": "MaxResults", "required": false, "type": "int" }, { "disabled": false, - "document": "策略类型。取值范围:All-全部、User-用户、Node-节点", - "example": "All", + "document": "过滤条件。 格式: ,不区分大小写。目前,只支持GroupName,只支持eq(Equals)和sw(Start With)。 示例:Filter = \"GroupName sw test\",表示查询名称以 test 开头的全部用户组。Filter = \"GroupName eq testgroup\",表示查询名称为 testgroup 的用户组。", + "example": "GroupName eq testGroup", "member": "string", - "name": "TargetType", + "name": "Filter", "required": false, "type": "string" }, { "disabled": false, - "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", - "example": "SERVICE_CONTROL_POLICY", + "document": "用户组的类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", "member": "string", - "name": "PolicyType", + "name": "GroupType", "required": false, "type": "string" }, { "disabled": false, - "document": "按照多个策略id搜索,空格隔开。", - "example": "831 832", + "document": "筛选的用户,该用户关联的用户组会返回IsSelected=1", + "example": "[\"u-dnjw8dndjde\",\"u-dniwsnsas\"]", "member": "string", - "name": "Keyword", + "name": "FilterUsers", "required": false, - "type": "string" - } - ], - "type": "object" - }, - "ListTargetsForPolicyResponse": { - "document": "ListTargetsForPolicy返回参数结构体", - "members": [ - { - "disabled": false, - "document": "总数。", - "example": "12", - "member": "uint64", - "name": "TotalNum", - "type": "int", - "value_allowed_null": false + "type": "list" }, { "disabled": false, - "document": "指定SCP策略关联目标列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "ListTargetsForPolicyNode", - "name": "List", - "type": "list", - "value_allowed_null": true + "document": "排序的字段,目前只支持CreateTime,默认是CreateTime字段", + "example": "CreateTime", + "member": "string", + "name": "SortField", + "required": false, + "type": "string" }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "排序类型:Desc 倒序 Asc 正序,需要你和SortField一起设置", + "example": "Desc", "member": "string", - "name": "RequestId", + "name": "SortType", + "required": false, "type": "string" } ], "type": "object" }, - "ManagerShareUnit": { - "document": "我的共享单元列表详情", + "ListGroupsResponse": { + "document": "ListGroups返回参数结构体", "members": [ { "disabled": false, - "document": "共享单元ID。", - "example": "shareUnit-xhre**ra2p", + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "UnitId", + "name": "NextToken", "output_required": true, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "共享单元名称。", - "example": "myShareUnit", - "member": "string", - "name": "Name", + "document": "用户组列表。", + "example": "[{\"GroupName\":\"testGroup\",\"Description\":\"thsi is group\",\"CreateTime\":\"2024-01-01 12:12:12\",\"GroupType\":\"Manual\",\"UpdateTime\":\"2024-01-01 12:12:12\",\"GroupId\":\"g-q8shs8h****\",\"MemberCount\":20}]", + "member": "GroupInfo", + "name": "Groups", "output_required": true, - "type": "string", + "type": "list", "value_allowed_null": false }, { "disabled": false, - "document": "共享单元管理员Uin。", - "example": "222222222222", + "document": "每页的最大数据条数。", + "example": "10", "member": "int64", - "name": "Uin", + "name": "MaxResults", "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "共享单元管理员OwnerUin。", - "example": "111111111111", + "document": "符合请求参数条件的数据总条数。", + "example": "20", "member": "int64", - "name": "OwnerUin", + "name": "TotalCounts", "output_required": true, "type": "int", "value_allowed_null": false }, { "disabled": false, - "document": "共享单元地域。", - "example": "ap-guangzhou", - "member": "string", - "name": "Area", + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", "output_required": true, - "type": "string", + "type": "bool", "value_allowed_null": false }, { - "disabled": false, - "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "share unit", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "Description", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListJoinedGroupsForUserRequest": { + "document": "ListJoinedGroupsForUser请求参数结构体", + "members": [ { "disabled": false, - "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-05 12:21:21", + "document": "空间 ID。", + "example": "z-2d8shd8***", "member": "string", - "name": "CreateTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "ZoneId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "共享单元资源数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "10", - "member": "int64", - "name": "ShareResourceNum", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "用户ID", + "example": "u-28sn23n***", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "int64", - "name": "ShareMemberNum", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "required": false, + "type": "string" }, { "disabled": false, - "document": "共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "ShareScope", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "无", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" } ], - "usage": "out" + "type": "object" }, - "MemberIdentity": { - "document": "成员管理身份", + "ListJoinedGroupsForUserResponse": { + "document": "ListJoinedGroupsForUser返回参数结构体", "members": [ { "disabled": false, - "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "10", - "member": "int64", - "name": "IdentityId", - "required": true, - "type": "int", - "value_allowed_null": true + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "output_required": true, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "身份名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "IdentityAliasName", - "required": true, - "type": "string", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "MemberMainInfo": { - "document": "成员主要信息", - "members": [ + "document": "符合请求参数条件的数据总条数。", + "example": "20", + "member": "int64", + "name": "TotalCounts", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, { "disabled": false, - "document": "成员uin\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "100000006533", + "document": "每页的最大数据条数。", + "example": "10", "member": "int64", - "name": "MemberUin", - "required": true, + "name": "MaxResults", + "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "成员名称j\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "testa", + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户加入的用户组列表", + "example": " [{\"GroupName\": \"testGroup\", \"Description\": \"this is testGroup\", \"GroupId\": \"g-s23nw3e\", \"GroupType\": \"Manual\", \"JoinTime\": \"2021-01-01 12:12:12\"} ]", + "member": "JoinedGroups", + "name": "JoinedGroups", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "MemberName", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "MoveOrganizationNodeMembersRequest": { - "document": "MoveOrganizationNodeMembers请求参数结构体", + "ListNonCompliantResourceRequest": { + "document": "ListNonCompliantResource请求参数结构体", "members": [ { "disabled": false, - "document": "组织节点ID。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", - "example": "1001", - "member": "int64", - "name": "NodeId", + "document": "限制数目。取值范围:1~50。", + "example": "10", + "member": "uint64", + "name": "MaxResults", "required": true, "type": "int" }, { "disabled": false, - "document": "成员Uin列表。", - "example": "[111111111111]", - "member": "int64", + "document": "成员Uin。", + "example": "111111111111", + "member": "uint64", "name": "MemberUin", "required": true, - "type": "list" + "type": "int" + }, + { + "disabled": false, + "document": "从上一页的响应中获取的下一页的Token值。\n如果是第一次请求,设置为空。", + "example": "\"\"", + "member": "string", + "name": "PaginationToken", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "标签键。", + "example": "\"\"", + "member": "string", + "name": "TagKey", + "required": false, + "type": "string" } ], "type": "object" }, - "MoveOrganizationNodeMembersResponse": { - "document": "MoveOrganizationNodeMembers返回参数结构体", + "ListNonCompliantResourceResponse": { + "document": "ListNonCompliantResource返回参数结构体", "members": [ + { + "disabled": false, + "document": "资源及标签合规信息。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "ResourceTagMapping", + "name": "Items", + "output_required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "获取的下一页的Token值。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "PaginationToken", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", @@ -4549,493 +5944,608 @@ ], "type": "object" }, - "NodeMainInfo": { - "document": "部门主要信息", + "ListOrgServiceAssignMemberRequest": { + "document": "ListOrgServiceAssignMember请求参数结构体", "members": [ { "disabled": false, - "document": "部门ID\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "偏移量。取值是limit的整数倍,默认值 : 0", "example": "1", - "member": "int64", - "name": "NodeId", + "member": "uint64", + "name": "Offset", "required": true, - "type": "int", - "value_allowed_null": true + "type": "int" }, { "disabled": false, - "document": "部门名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "运营部", - "member": "string", - "name": "NodeName", + "document": "限制数目。取值范围:1~50,默认值:10", + "example": "10", + "member": "uint64", + "name": "Limit", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int" + }, + { + "disabled": false, + "document": "集团服务ID。可以通过[ListOrganizationService](https://cloud.tencent.com/document/product/850/109561)获取", + "example": "1", + "member": "uint64", + "name": "ServiceId", + "required": true, + "type": "int" } ], - "usage": "out" + "type": "object" }, - "NotAllowReason": { - "document": "不允许删除的原因。", + "ListOrgServiceAssignMemberResponse": { + "document": "ListOrgServiceAssignMember返回参数结构体", "members": [ { "disabled": false, - "document": "是否创建的成员。true-是、false-否;成员不是创建的成员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "IsCreateMember", - "required": false, - "type": "bool", + "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "Total", + "output_required": true, + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "成员删除许可。true-开启、false-关闭;成员删除许可关闭时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "DeletionPermission", - "required": false, - "type": "bool", + "document": "委派管理员列表。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "OrganizationServiceAssignMember", + "name": "Items", + "output_required": true, + "type": "list", "value_allowed_null": true }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListOrganizationIdentityRequest": { + "document": "ListOrganizationIdentity请求参数结构体", + "members": [ { "disabled": false, - "document": "是否可信服务委派管理员。true-是、false-否;成员是可信服务委派管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "IsAssignManager", - "required": false, - "type": "bool", - "value_allowed_null": true + "document": "偏移量。取值是limit的整数倍。默认值 : 0。", + "example": "1", + "member": "uint64", + "name": "Offset", + "required": true, + "type": "int" }, { "disabled": false, - "document": "是否主体管理员。true-是、false-否;成员是主体管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "IsAuthManager", - "required": false, - "type": "bool", - "value_allowed_null": true + "document": "限制数目。取值范围:1~50。默认值:10。", + "example": "10", + "member": "uint64", + "name": "Limit", + "required": true, + "type": "int" }, { "disabled": false, - "document": "是否共享资源管理员。true-是、false-否;成员是共享资源管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "IsShareManager", + "document": "名称搜索关键字。", + "example": "test", + "member": "string", + "name": "SearchKey", "required": false, - "type": "bool", - "value_allowed_null": true + "type": "string" }, { "disabled": false, - "document": "成员是否设置了操作审批。true-是、false-否;成员设置了操作审批时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "false", - "member": "bool", - "name": "OperateProcess", - "required": false, - "type": "bool", - "value_allowed_null": true + "document": "身份ID。可以通过身份ID搜索", + "example": "1", + "member": "uint64", + "name": "IdentityId", + "required": false, + "type": "int" }, { "disabled": false, - "document": "是否允许解除成员财务权限。true-是、false-否;成员不能解除财务权限时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "BillingPermission", + "document": "身份类型。取值范围 1-预设, 2-自定义", + "example": "1", + "member": "uint64", + "name": "IdentityType", "required": false, - "type": "bool", + "type": "int" + } + ], + "type": "object" + }, + "ListOrganizationIdentityResponse": { + "document": "ListOrganizationIdentity返回参数结构体", + "members": [ + { + "disabled": false, + "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "Total", + "output_required": true, + "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "存在的资源列表。账号存在资源时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", - "member": "string", - "name": "ExistResources", - "required": false, + "document": "条目详情。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "OrgIdentity", + "name": "Items", + "output_required": true, "type": "list", "value_allowed_null": true }, { - "disabled": false, - "document": "检测失败的资源列表。账号有资源检测失败时不允许删除。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "DetectFailedResources", - "required": false, - "type": "list", - "value_allowed_null": true + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgFinancialByMonth": { - "document": "按月获取组织财务信息", + "ListOrganizationServiceRequest": { + "document": "ListOrganizationService请求参数结构体", "members": [ { "disabled": false, - "document": "记录ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "偏移量。取值是limit的整数倍,默认值 : 0", "example": "1", - "member": "int64", - "name": "Id", - "required": true, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "月份,格式:yyyy-mm,示例:2021-01。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-01", - "member": "string", - "name": "Month", + "member": "uint64", + "name": "Offset", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int" }, { "disabled": false, - "document": "消耗金额,单元:元。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "12.23", - "member": "float", - "name": "TotalCost", + "document": "限制数目。取值范围:1~50,默认值:10", + "example": "10", + "member": "uint64", + "name": "Limit", "required": true, - "type": "float", - "value_allowed_null": true + "type": "int" }, { "disabled": false, - "document": "比上月增长率%。正数增长,负数下降,空值无法统计。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "24", + "document": "名称搜索关键字。", + "example": "\"\"", "member": "string", - "name": "GrowthRate", + "name": "SearchKey", "required": false, - "type": "string", - "value_allowed_null": true + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgIdentity": { - "document": "组织身份", + "ListOrganizationServiceResponse": { + "document": "ListOrganizationService返回参数结构体", "members": [ { "disabled": false, - "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "10", + "document": "总数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", "member": "int64", - "name": "IdentityId", + "name": "Total", "output_required": true, "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "身份名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "IdentityAliasName", + "document": "集团服务列表。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "OrganizationServiceAssign", + "name": "Items", "output_required": true, - "type": "string", + "type": "list", "value_allowed_null": true }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListPermissionPoliciesInRoleConfigurationRequest": { + "document": "ListPermissionPoliciesInRoleConfiguration请求参数结构体", + "members": [ { "disabled": false, - "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "空间 ID", + "example": "z-289s28wn***", "member": "string", - "name": "Description", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "ZoneId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "身份策略。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "IdentityPolicy", - "name": "IdentityPolicy", - "output_required": true, - "type": "list", - "value_allowed_null": true + "document": "权限配置 ID", + "example": "rc-si2e3i3me", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "身份类型。 1-预设、 2-自定义\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "IdentityType", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "权限策略类型。取值: System:系统策略。复用 CAM 的系统策略。 Custom: 自定义策略。按照 CAM 权限策略语法和结构编写的自定义策略。", + "example": "System", + "member": "string", + "name": "RolePolicyType", + "required": false, + "type": "string" }, { "disabled": false, - "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "按策略名称搜索", + "example": "QcloudPolicyTest", "member": "string", - "name": "UpdateTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "Filter", + "required": false, + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgMember": { - "document": "企业组织成员", + "ListPermissionPoliciesInRoleConfigurationResponse": { + "document": "ListPermissionPoliciesInRoleConfiguration返回参数结构体", "members": [ { "disabled": false, - "document": "成员Uin\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1000001", + "document": "权限策略总个数。", + "example": "20", "member": "int64", - "name": "MemberUin", - "required": true, + "name": "TotalCounts", + "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "成员名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "tt", - "member": "string", - "name": "Name", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "权限策略列表。", + "example": "[{\"RolePolicyName\":\"adminPolciy\",\"RolePolicyType\":\"System\",\"RolePolicyDocument\":\"\",\"AddTime\":\"2020-01-01 12:12:12\"}]", + "member": "RolePolicie", + "name": "RolePolicies", + "output_required": true, + "type": "list", + "value_allowed_null": false }, { - "disabled": false, - "document": "成员类型,邀请:Invite, 创建:Create\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Invite", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "MemberType", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListPoliciesForTarget": { + "document": "查询目标关联的SCP策略列表", + "members": [ + { + "disabled": false, + "document": "策略Id", + "example": "1000", + "member": "uint64", + "name": "StrategyId", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "关系策略类型\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Finical", + "document": "策略名称", + "example": "FullQcloudAccess", "member": "string", - "name": "OrgPolicyType", + "name": "StrategyName", "required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "关系策略名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "财务管理", + "document": "备注信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "自测专用", "member": "string", - "name": "OrgPolicyName", + "name": "Remark", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "关系策略权限\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "OrgPermission", - "name": "OrgPermission", + "document": "关联的账号或节点", + "example": "15440611", + "member": "uint64", + "name": "Uin", "required": true, - "type": "list", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "所属节点ID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1002", - "member": "int64", - "name": "NodeId", + "document": "关联类型 1-节点 2-用户", + "example": "1", + "member": "uint64", + "name": "Type", "required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "所属节点名\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Root", + "document": "策略创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-08-08 14:49:59", "member": "string", - "name": "NodeName", + "name": "AddTime", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "备注\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "tt", - "member": "string", - "name": "Remark", + "document": "策略更新时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-08-08 14:49:59", + "member": "string", + "name": "UpdateTime", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-12 12:12:22", + "document": "部门名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "二级部门", "member": "string", - "name": "CreateTime", + "name": "Name", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-12 12:12:22", + "document": "策略绑定时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-08-08 14:49:59", "member": "string", - "name": "UpdateTime", + "name": "AttachTime", "required": true, "type": "string", "value_allowed_null": true - }, + } + ], + "usage": "out" + }, + "ListPoliciesForTargetRequest": { + "document": "ListPoliciesForTarget请求参数结构体", + "members": [ { "disabled": false, - "document": "是否允许成员退出。允许:Allow,不允许:Denied。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Allow", - "member": "string", - "name": "IsAllowQuit", + "document": "账号uin或者节点id。", + "example": "10083", + "member": "uint64", + "name": "TargetId", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int" }, { "disabled": false, - "document": "代付者Uin\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", + "example": "1", + "member": "uint64", + "name": "Rp", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "页码。默认值是 1,从 1开始,不能大于 200", + "example": "10", + "member": "uint64", + "name": "Page", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", + "example": "SERVICE_CONTROL_POLICY", "member": "string", - "name": "PayUin", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "PolicyType", + "required": false, + "type": "string" }, { "disabled": false, - "document": "代付者名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "搜索关键字。按照策略名称搜索", + "example": "testName", "member": "string", - "name": "PayName", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "Keyword", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListPoliciesForTargetResponse": { + "document": "ListPoliciesForTarget返回参数结构体", + "members": [ + { + "disabled": false, + "document": "总数。", + "example": "12", + "member": "uint64", + "name": "TotalNum", + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "管理身份\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "目标关联的策略列表。\n注意:此字段可能返回 null,表示取不到有效值。", "example": "无", - "member": "MemberIdentity", - "name": "OrgIdentity", - "required": true, + "member": "ListPoliciesForTarget", + "name": "List", "type": "list", "value_allowed_null": true }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListPoliciesRequest": { + "document": "ListPolicies请求参数结构体", + "members": [ { "disabled": false, - "document": "安全信息绑定状态 未绑定:Unbound,待激活:Valid,绑定成功:Success,绑定失败:Failed\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Unbound", + "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", + "example": "1", + "member": "uint64", + "name": "Rp", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "页码。默认值是 1,从 1开始,不能大于 200", + "example": "10", + "member": "uint64", + "name": "Page", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "查询范围。取值范围: All-获取所有策略、QCS-只获取预设策略、Local-只获取自定义策略,默认值:All", + "example": "All", "member": "string", - "name": "BindStatus", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "Scope", + "required": false, + "type": "string" }, { "disabled": false, - "document": "成员权限状态 已确认:Confirmed ,待确认:UnConfirmed\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Confirmed", + "document": "搜索关键字。按照策略名搜索", + "example": "test_name", "member": "string", - "name": "PermissionStatus", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "Keyword", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", + "example": "SERVICE_CONTROL_POLICY", + "member": "string", + "name": "PolicyType", + "required": false, + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgMemberAuthAccount": { - "document": "成员和子账号的授权关系", + "ListPoliciesResponse": { + "document": "ListPolicies返回参数结构体", "members": [ { "disabled": false, - "document": "组织子账号Uin。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1000001", - "member": "int64", - "name": "OrgSubAccountUin", - "required": true, + "document": "策略总数", + "example": "12", + "member": "uint64", + "name": "TotalNum", "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "策略ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "11", - "member": "int64", - "name": "PolicyId", - "required": true, - "type": "int", + "document": "策略列表数据\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "ListPolicyNode", + "name": "List", + "type": "list", "value_allowed_null": true }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListPolicyNode": { + "document": "企业组织策略列表", + "members": [ { "disabled": false, - "document": "策略名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "策略创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-08-02 19:40:09", "member": "string", - "name": "PolicyName", + "name": "AddTime", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "12", - "member": "int64", - "name": "IdentityId", + "document": "策略绑定次数\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "3", + "member": "uint64", + "name": "AttachedTimes", "required": true, "type": "int", "value_allowed_null": true }, { "disabled": false, - "document": "身份角色名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test1", + "document": "策略描述信息\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "测试策略1", "member": "string", - "name": "IdentityRoleName", + "name": "Description", "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "身份角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "策略管理", + "document": "策略名称", + "example": "test_bind", "member": "string", - "name": "IdentityRoleAliasName", + "name": "PolicyName", "required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", - "member": "string", - "name": "CreateTime", + "document": "策略Id", + "example": "12307", + "member": "uint64", + "name": "PolicyId", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "策略更新时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-08-02 19:40:09", "member": "string", "name": "UpdateTime", "required": true, @@ -5044,666 +6554,4622 @@ }, { "disabled": false, - "document": "子账号名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "OrgSubAccountName", + "document": "策略类型 1-自定义 2-预设", + "example": "1", + "member": "uint64", + "name": "Type", "required": true, - "type": "string", - "value_allowed_null": true + "type": "int", + "value_allowed_null": false } ], "usage": "out" }, - "OrgMemberAuthIdentity": { - "document": "组织成员可授权的身份", + "ListRoleAssignmentsRequest": { + "document": "ListRoleAssignments请求参数结构体", "members": [ { "disabled": false, - "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "111", - "member": "int64", - "name": "IdentityId", - "output_required": true, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "身份的角色名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "空间 ID。", + "example": "z-2d8shd8***", "member": "string", - "name": "IdentityRoleName", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "ZoneId", + "required": true, + "type": "string" }, { "disabled": false, - "document": "身份的角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "权限配置ID。", + "example": "rc-sd8sdn8sns", "member": "string", - "name": "IdentityRoleAliasName", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "RoleConfigurationId", + "required": false, + "type": "string" }, { "disabled": false, - "document": "身份描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "Description", - "output_required": true, - "type": "string", - "value_allowed_null": true + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" }, { "disabled": false, - "document": "首次配置成功的时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "CreateTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "NextToken", + "required": false, + "type": "string" }, { "disabled": false, - "document": "最后一次配置成功的时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", "member": "string", - "name": "UpdateTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "TargetType", + "required": false, + "type": "string" }, { "disabled": false, - "document": "身份类型。取值: 1-预设身份 2-自定义身份\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "IdentityType", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "同步的集团账号目标账号的UIN。", + "example": "1000038292", + "member": "int64", + "name": "TargetUin", + "required": false, + "type": "int" }, { "disabled": false, - "document": "配置状态。取值:1-配置完成 2-需重新配置\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "Status", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "CAM 用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC用户。 Group:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", + "required": false, + "type": "string" }, { "disabled": false, - "document": "成员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1111111111111", - "member": "int64", - "name": "MemberUin", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "CAM 用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC 用户组 ID(g-********)。 当PrincipalType取值为User时,该值为CIC 用户 ID(u-********)。", + "example": "u-djwismoa***", + "member": "string", + "name": "PrincipalId", + "required": false, + "type": "string" }, { "disabled": false, - "document": "成员名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "member_test", + "document": "查询条件,目前只支持权限配置名称查询。", + "example": "test", "member": "string", - "name": "MemberName", - "output_required": false, - "type": "string", - "value_allowed_null": true + "name": "Filter", + "required": false, + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgMemberFinancial": { - "document": "组织成员财务信息。", + "ListRoleAssignmentsResponse": { + "document": "ListRoleAssignments返回参数结构体", "members": [ { "disabled": false, - "document": "成员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1000001", + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "符合请求参数条件的数据总条数。", + "example": "20", "member": "int64", - "name": "MemberUin", - "required": true, + "name": "TotalCounts", + "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "成员名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "MemberName", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "消耗金额,单位:元。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "20.23", - "member": "float", - "name": "TotalCost", - "required": true, - "type": "float", - "value_allowed_null": true + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false }, { "disabled": false, - "document": "占比%。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "23", + "document": "集团账号目标账号的授权列表。", + "example": "[{\"RoleConfigurationId\":\"ec-swidn****\",\"RoleConfigurationName\":\"test\",\"TargetUin\":100000322,\"TargetType\":\"MemberUin\",\"TargetName\":\"test\",\"PrincipalId\":\"u-ssiisn***\",\"PrincipalType\":\"User\",\"PrincipalName\":\"testConfig\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\"}]", + "member": "RoleAssignments", + "name": "RoleAssignments", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "Ratio", - "required": false, - "type": "string", - "value_allowed_null": true + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgMemberPolicy": { - "document": "组织成员被授权的策略", + "ListRoleConfigurationProvisioningsRequest": { + "document": "ListRoleConfigurationProvisionings请求参数结构体", "members": [ { "disabled": false, - "document": "策略ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "10", - "member": "int64", - "name": "PolicyId", + "document": "空间 ID。", + "example": "z-2d8shd8***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int", - "value_allowed_null": true + "type": "string" }, { "disabled": false, - "document": "策略名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "权限配置ID。", + "example": "r-sd8sdn8sns", "member": "string", - "name": "PolicyName", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "RoleConfigurationId", + "required": false, + "type": "string" }, { "disabled": false, - "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", "member": "int64", - "name": "IdentityId", - "required": true, - "type": "int", - "value_allowed_null": true + "name": "MaxResults", + "required": false, + "type": "int" }, { "disabled": false, - "document": "身份角色名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "IdentityRoleName", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "NextToken", + "required": false, + "type": "string" }, { "disabled": false, - "document": "身份角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", "member": "string", - "name": "IdentityRoleAliasName", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "TargetType", + "required": false, + "type": "string" }, { "disabled": false, - "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "Description", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "同步的集团账号目标账号的UIN。", + "example": "1000038292", + "member": "int64", + "name": "TargetUin", + "required": false, + "type": "int" }, { "disabled": false, - "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "Deployed: 部署成功 DeployedRequired:需要重新部署 DeployFailed:部署失败", + "example": "Deployed", "member": "string", - "name": "CreateTime", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "DeploymentStatus", + "required": false, + "type": "string" }, { "disabled": false, - "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 12:12:10", + "document": "支持配置名称搜索。", + "example": "test", "member": "string", - "name": "UpdateTime", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "Filter", + "required": false, + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgNode": { - "document": "企业组织单元", + "ListRoleConfigurationProvisioningsResponse": { + "document": "ListRoleConfigurationProvisionings返回参数结构体", "members": [ { "disabled": false, - "document": "组织节点ID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1001", - "member": "int64", - "name": "NodeId", - "required": true, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "Name", - "required": true, + "name": "NextToken", + "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "父节点ID\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1000", + "document": "符合请求参数条件的数据总条数。", + "example": "20", "member": "int64", - "name": "ParentNodeId", - "required": true, + "name": "TotalCounts", + "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "备注\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", - "member": "string", - "name": "Remark", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-12 12:12:11", - "member": "string", - "name": "CreateTime", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false }, { "disabled": false, - "document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-12 12:12:11", + "document": "部成员账号列表。", + "example": "[{\"DeploymentStatus\":\"DeployedRequired\",\"RoleConfigurationId\":\"rc-sjwiwm2ww**\",\"RoleConfigurationName\":\"testConfiguration\",\"TargetUin\":10003292021,\"TargetName\":\"test\",\"TargetType\":\"MemberUin\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\"}]", + "member": "RoleConfigurationProvisionings", + "name": "RoleConfigurationProvisionings", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "UpdateTime", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrgPermission": { - "document": "关系策略权限", + "ListRoleConfigurationsRequest": { + "document": "ListRoleConfigurations请求参数结构体", "members": [ { "disabled": false, - "document": "权限Id", - "example": "1", - "member": "uint64", - "name": "Id", + "document": "空间 ID。", + "example": "z-3ds73bs****", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int", - "value_allowed_null": false + "type": "string" }, { "disabled": false, - "document": "权限名", - "example": "允许主账号对子账号合并出账单", + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "Name", - "required": true, - "type": "string", - "value_allowed_null": false - } - ], - "usage": "out" - }, - "OrgProductFinancial": { - "document": "组织产品财务信息", - "members": [ + "name": "NextToken", + "required": false, + "type": "string" + }, { "disabled": false, - "document": "产品Code。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "p_cos", - "member": "string", - "name": "ProductName", - "required": true, - "type": "string", - "value_allowed_null": true + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "20", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" }, { "disabled": false, - "document": "产品名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "COS对象存储", + "document": "过滤条件。不区分大小写。目前,只支持 RoleConfigurationName,只支持 eq(Equals)和 sw(Start With)。 示例:Filter = \"RoleConfigurationName,只支持 sw test\",表示查询名称以 test 开头的全部访问配置。Filter = \"RoleConfigurationName,只支持 eq TestRoleConfiguration\",表示查询名称为 TestRoleConfiguration 的访问配置。", + "example": "RoleConfigurationName eq TestRoleConfiguration", "member": "string", - "name": "ProductCode", - "required": true, - "type": "string", - "value_allowed_null": true + "name": "Filter", + "required": false, + "type": "string" }, { "disabled": false, - "document": "产品消耗,单位:元。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "23.22", - "member": "float", - "name": "TotalCost", - "required": true, - "type": "float", - "value_allowed_null": true + "document": "检索成员账号是否配置过权限,如果配置过返回IsSelected: true, 否则返回false。", + "example": "[100002322,1000033232]", + "member": "int64", + "name": "FilterTargets", + "required": false, + "type": "list" }, { "disabled": false, - "document": "占比%。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "34", + "document": "授权的用户UserId或者用户组的GroupId,必须和入参数FilterTargets一起设置", + "example": "u-s9wme92ne", "member": "string", - "name": "Ratio", + "name": "PrincipalId", "required": false, - "type": "string", - "value_allowed_null": true + "type": "string" } ], - "usage": "out" + "type": "object" }, - "OrganizationServiceAssign": { - "document": "集团服务设置", + "ListRoleConfigurationsResponse": { + "document": "ListRoleConfigurations返回参数结构体", "members": [ { "disabled": false, - "document": "集团服务ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "ServiceId", + "document": "符合请求参数条件的数据总条数。", + "example": "20", + "member": "int64", + "name": "TotalCounts", "output_required": true, "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "集团服务产品名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "CloudAudit", - "member": "string", - "name": "ProductName", - "output_required": true, - "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "是否支持委派。取值: 1-是 2-否\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "IsAssign", + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "集团服务描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", - "member": "string", - "name": "Description", + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", "output_required": true, - "type": "string", - "value_allowed_null": true + "type": "bool", + "value_allowed_null": false }, { "disabled": false, - "document": "当前委派管理员数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "0", + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", "member": "string", - "name": "MemberNum", + "name": "NextToken", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "帮助文档。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", - "member": "string", - "name": "Document", - "output_required": true, - "type": "string", - "value_allowed_null": true + "document": "权限配置列表。", + "example": "[{\"RoleConfigurationId\":\"rc-s2ns92ns***\",\"RoleConfigurationName\":\"test\",\"Description\":\"this is role configuration\",\"SessionDuration\":900,\"RelayState\":\"https://console.cloud.tencent.com\",\"CreateTime\":\"2019-01-01 12:12:12\",\"UpdateTime\":\"2019-01-01 12:12:12\"}]", + "member": "RoleConfiguration", + "name": "RoleConfigurations", + "output_required": false, + "type": "list", + "value_allowed_null": false }, { - "disabled": false, - "document": "集团服务产品控制台路径。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "ConsoleUrl", - "output_required": true, - "type": "string", - "value_allowed_null": true - }, + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListTargetsForPolicyNode": { + "document": "查询某个指定SCP策略关联的目标列表", + "members": [ { "disabled": false, - "document": "是否接入使用状态。取值: 1-是 \n 2-否\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2", + "document": "scp账号uin或节点Id", + "example": "100022242314", "member": "uint64", - "name": "IsUsageStatus", - "output_required": true, + "name": "Uin", + "required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "委派管理员数量限制。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "5", + "document": "关联类型 1-节点关联 2-用户关联", + "example": "2", "member": "uint64", - "name": "CanAssignCount", - "output_required": true, + "name": "RelatedType", + "required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "集团服务产品标识。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "cloudaudit", + "document": "账号或者节点名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "T1-Node", "member": "string", - "name": "Product", - "output_required": false, + "name": "Name", + "required": true, "type": "string", "value_allowed_null": true }, { "disabled": false, - "document": "是否支持集团服务授权。取值 1-是、2-否\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2", - "member": "uint64", - "name": "ServiceGrant", - "output_required": false, - "type": "int", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "集团服务授权启用状态。ServiceGrant值为1时该字段有效 ,取值:Enabled-开启 Disabled-关闭 \n注意:此字段可能返回 null,表示取不到有效值。", - "example": "Disabled", + "document": "绑定时间", + "example": "2022-08-09 17:11:54", "member": "string", - "name": "GrantStatus", - "output_required": false, + "name": "AddTime", + "required": true, "type": "string", - "value_allowed_null": true - }, - { - "disabled": false, - "document": "是否支持设置委派管理范围。取值: 1-是 2-否\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2", - "member": "uint64", - "name": "IsSetManagementScope", - "output_required": false, - "type": "int", - "value_allowed_null": true + "value_allowed_null": false } ], "usage": "out" }, - "OrganizationServiceAssignMember": { - "document": "集团服务委派成员信息", + "ListTargetsForPolicyRequest": { + "document": "ListTargetsForPolicy请求参数结构体", "members": [ { "disabled": false, - "document": "集团服务ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "document": "策略Id。", + "example": "10083", + "member": "uint64", + "name": "PolicyId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "每页数量。默认值是 20,必须大于 0 且小于或等于 200", "example": "1", "member": "uint64", - "name": "ServiceId", - "output_required": true, - "type": "int", - "value_allowed_null": true + "name": "Rp", + "required": false, + "type": "int" }, { "disabled": false, - "document": "集团服务产品名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "CloudAudit", - "member": "string", - "name": "ProductName", + "document": "页码。默认值是 1,从 1开始,不能大于 200", + "example": "10", + "member": "uint64", + "name": "Page", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "策略类型。取值范围:All-全部、User-用户、Node-节点", + "example": "All", + "member": "string", + "name": "TargetType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", + "example": "SERVICE_CONTROL_POLICY", + "member": "string", + "name": "PolicyType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "按照多个策略id搜索,空格隔开。", + "example": "831 832", + "member": "string", + "name": "Keyword", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListTargetsForPolicyResponse": { + "document": "ListTargetsForPolicy返回参数结构体", + "members": [ + { + "disabled": false, + "document": "总数。", + "example": "12", + "member": "uint64", + "name": "TotalNum", + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "指定SCP策略关联目标列表。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "ListTargetsForPolicyNode", + "name": "List", + "type": "list", + "value_allowed_null": true + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListTasksRequest": { + "document": "ListTasks请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-2d8shd8***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "CAM 用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC用户组 ID(g-********)。 当PrincipalType取值为User时,该值为CIC用户 ID(u-********)。", + "example": "u-siws8sn***", + "member": "string", + "name": "PrincipalId", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "CAM 用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC用户。 Group:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的UIN。", + "example": "10000229322", + "member": "int64", + "name": "TargetUin", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-s92jd93je", + "member": "string", + "name": "RoleConfigurationId", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "InProgress:任务执行中。 Success:任务执行成功。 Failed:任务执行失败。", + "example": "InProgress", + "member": "string", + "name": "Status", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "任务类型。", + "example": "CreateRoleAssignment", + "member": "string", + "name": "TaskType", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListTasksResponse": { + "document": "ListTasks返回参数结构体", + "members": [ + { + "disabled": false, + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "委派管理员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "111111111111", + "document": "符合请求参数条件的数据总条数。", + "example": "20", "member": "int64", - "name": "MemberUin", + "name": "TotalCounts", "output_required": true, "type": "int", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "委派管理员名称。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "mamber_name", + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "任务详情", + "example": "[{\"TaskId\":\"t-xsinsxinsdk\",\"RoleConfigurationId\":\"rc-xmw9xjdsd\",\"RoleConfigurationName\":\"配置\",\"TargetUin\":1000232234,\"TargetType\":\"User\",\"PrincipalId\":\"u-xm89dnsujs\",\"PrincipalType\":\"Member\",\"TaskType\":\"CreateRoleAssignment\",\"Status\":\"InProgress\",\"FailureReason\":\"test\"}]", + "member": "TaskInfo", + "name": "Tasks", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", "member": "string", - "name": "MemberName", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListUserSyncProvisioningsRequest": { + "document": "ListUserSyncProvisionings请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-2d8shd8***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "CAM 用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC用户组 ID(g-********)。 当PrincipalType取值为User时,该值为CIC用户 ID(u-********)。", + "example": "u-siws8sn***", + "member": "string", + "name": "PrincipalId", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法多次查询,直到IsTruncated为false,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "CAM 用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC用户。 Group:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "无", + "member": "string", + "name": "PrincipalType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "集团账号目标账号的UIN。", + "example": "10000229322", + "member": "int64", + "name": "TargetUin", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "检测条件。", + "example": "up-aiwn9inss", + "member": "string", + "name": "Filter", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListUserSyncProvisioningsResponse": { + "document": "ListUserSyncProvisionings返回参数结构体", + "members": [ + { + "disabled": false, + "document": "查询返回结果下一页的令牌。 说明 只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", "output_required": true, "type": "string", - "value_allowed_null": true + "value_allowed_null": false + }, + { + "disabled": false, + "document": "符合请求参数条件的数据总条数。", + "example": "20", + "member": "int64", + "name": "TotalCounts", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "CAM同步的用户列表。", + "example": "[{\"UserProvisioningId\":\"up-siwnei3nso\",\"Description\":\"this is cam user sync\",\"Status\":\"Enabled\",\"PrincipalId\":\"u-swnd8wn3\",\"PrincipalName\":\"test\",\"PrincipalType\":\"User\",\"TargetUin\":\"10000338332\",\"TargetName\":\"test\",\"DuplicationStrategy\":\"KeepBoth\",\"DeletionStrategy\":\"Delete\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\",\"TargetType\":\"MemberUin\"}]", + "member": "UserProvisioning", + "name": "UserProvisionings", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ListUsersRequest": { + "document": "ListUsers请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户状态 Enabled:启用, Disabled:禁用。", + "example": "Enabled", + "member": "string", + "name": "UserStatus", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "用户类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", + "member": "string", + "name": "UserType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "过滤条件。 目前仅支持用户名,邮箱,用户userId,描述", + "example": "test", + "member": "string", + "name": "Filter", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "每页的最大数据条数。 取值范围:1~100。 默认值:10。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "查询返回结果下一页的令牌。首次调用 API 不需要NextToken。 当您首次调用 API 时,如果返回数据总条数超过MaxResults限制,数据会被截断,只返回MaxResults条数据,同时,返回参数IsTruncated为true,返回一个NextToken。您可以使用上一次返回的NextToken继续调用 API,其他请求参数保持不变,查询被截断的数据。您可以按此方法经过多次查询,直到IsTruncated为false时,表示全部数据查询完毕。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=", + "member": "string", + "name": "NextToken", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "筛选的用户组,该用户组关联的子用户会返回IsSelected=1", + "example": "[\"g-sjwidjssd\", \"g-djsiendidmd\"]", + "member": "string", + "name": "FilterGroups", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "排序的字段,目前只支持CreateTime,默认是CreateTime字段", + "example": "CreateTime", + "member": "string", + "name": "SortField", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "排序类型:Desc 倒序 Asc 正序,需要你和SortField一起设置", + "example": "Desc", + "member": "string", + "name": "SortType", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "ListUsersResponse": { + "document": "ListUsers返回参数结构体", + "members": [ + { + "disabled": false, + "document": "符合请求参数条件的数据总条数。", + "example": "20", + "member": "int64", + "name": "TotalCounts", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "每页的最大数据条数。", + "example": "10", + "member": "int64", + "name": "MaxResults", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户列表。", + "example": "[{\"UserName\": \"test\", \"FirstName\": \"test\", \"LastName\": \"test\", \"DisplayName\": \"test\", \"Description\": \"this is user\", \"Email\": \"test@example\", \"UserStatus\": \"Enabled\", \"UserType\": \"Manual\", \"UserId\": \"u-2s334e3***\", \"CreateTime\": \"2024-03-12 12:12:12\", \"UpdateTime\": \"2024-03-12 12:12:12\"}]", + "member": "UserInfo", + "name": "Users", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "查询返回结果下一页的令牌。只有IsTruncated为true时,才显示该参数。", + "example": "OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI", + "member": "string", + "name": "NextToken", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "返回结果是否被截断。取值: true:已截断。 false:未截断。", + "example": "true", + "member": "bool", + "name": "IsTruncated", + "output_required": true, + "type": "bool", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ManagerShareUnit": { + "document": "我的共享单元列表详情", + "members": [ + { + "disabled": false, + "document": "共享单元ID。", + "example": "shareUnit-xhre**ra2p", + "member": "string", + "name": "UnitId", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享单元名称。", + "example": "myShareUnit", + "member": "string", + "name": "Name", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享单元管理员Uin。", + "example": "222222222222", + "member": "int64", + "name": "Uin", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享单元管理员OwnerUin。", + "example": "111111111111", + "member": "int64", + "name": "OwnerUin", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享单元地域。", + "example": "ap-guangzhou", + "member": "string", + "name": "Area", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "share unit", + "member": "string", + "name": "Description", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-05 12:21:21", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "共享单元资源数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "10", + "member": "int64", + "name": "ShareResourceNum", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "ShareMemberNum", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "ShareScope", + "output_required": false, + "type": "int", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "MemberIdentity": { + "document": "成员管理身份", + "members": [ + { + "disabled": false, + "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "10", + "member": "int64", + "name": "IdentityId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityAliasName", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "MemberMainInfo": { + "document": "成员主要信息", + "members": [ + { + "disabled": false, + "document": "成员uin\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "100000006533", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员名称j\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "testa", + "member": "string", + "name": "MemberName", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "MoveOrganizationNodeMembersRequest": { + "document": "MoveOrganizationNodeMembers请求参数结构体", + "members": [ + { + "disabled": false, + "document": "组织节点ID。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", + "example": "1001", + "member": "int64", + "name": "NodeId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "成员Uin列表。", + "example": "[111111111111]", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "list" + } + ], + "type": "object" + }, + "MoveOrganizationNodeMembersResponse": { + "document": "MoveOrganizationNodeMembers返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "NodeMainInfo": { + "document": "部门主要信息", + "members": [ + { + "disabled": false, + "document": "部门ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "NodeId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "部门名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "运营部", + "member": "string", + "name": "NodeName", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "NotAllowReason": { + "document": "不允许删除的原因。", + "members": [ + { + "disabled": false, + "document": "是否创建的成员。true-是、false-否;成员不是创建的成员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "IsCreateMember", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员删除许可。true-开启、false-关闭;成员删除许可关闭时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "DeletionPermission", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否可信服务委派管理员。true-是、false-否;成员是可信服务委派管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "IsAssignManager", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否主体管理员。true-是、false-否;成员是主体管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "IsAuthManager", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否共享资源管理员。true-是、false-否;成员是共享资源管理员不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "IsShareManager", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员是否设置了操作审批。true-是、false-否;成员设置了操作审批时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "OperateProcess", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否允许解除成员财务权限。true-是、false-否;成员不能解除财务权限时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "BillingPermission", + "required": false, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "存在的资源列表。账号存在资源时不允许删除\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "string", + "name": "ExistResources", + "required": false, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "检测失败的资源列表。账号有资源检测失败时不允许删除。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "string", + "name": "DetectFailedResources", + "required": false, + "type": "list", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OpenIdentityCenterRequest": { + "document": "OpenIdentityCenter请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间名,必须全局唯一。包含小写字母、数字和短划线(-)。不能以短划线(-)开头或结尾,且不能有两个连续的短划线(-)。长度:2~64 个字符。", + "example": "testName", + "member": "string", + "name": "ZoneName", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "OpenIdentityCenterResponse": { + "document": "OpenIdentityCenter返回参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。z-前缀开头,后面是12位随机数字/小写字母", + "example": "z-00fdsg****", + "member": "string", + "name": "ZoneId", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "OrgFinancialByMonth": { + "document": "按月获取组织财务信息", + "members": [ + { + "disabled": false, + "document": "记录ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "Id", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "月份,格式:yyyy-mm,示例:2021-01。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-01", + "member": "string", + "name": "Month", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "消耗金额,单元:元。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "12.23", + "member": "float", + "name": "TotalCost", + "required": true, + "type": "float", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "比上月增长率%。正数增长,负数下降,空值无法统计。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "24", + "member": "string", + "name": "GrowthRate", + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgIdentity": { + "document": "组织身份", + "members": [ + { + "disabled": false, + "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "10", + "member": "int64", + "name": "IdentityId", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityAliasName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "Description", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份策略。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "IdentityPolicy", + "name": "IdentityPolicy", + "output_required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份类型。 1-预设、 2-自定义\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "IdentityType", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgMember": { + "document": "企业组织成员", + "members": [ + { + "disabled": false, + "document": "成员Uin\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1000001", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "tt", + "member": "string", + "name": "Name", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员类型,邀请:Invite, 创建:Create\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Invite", + "member": "string", + "name": "MemberType", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "关系策略类型\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Finical", + "member": "string", + "name": "OrgPolicyType", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "关系策略名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "财务管理", + "member": "string", + "name": "OrgPolicyName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "关系策略权限\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "OrgPermission", + "name": "OrgPermission", + "required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "所属节点ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1002", + "member": "int64", + "name": "NodeId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "所属节点名\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Root", + "member": "string", + "name": "NodeName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "备注\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "tt", + "member": "string", + "name": "Remark", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-12 12:12:22", + "member": "string", + "name": "CreateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-12 12:12:22", + "member": "string", + "name": "UpdateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否允许成员退出。允许:Allow,不允许:Denied。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Allow", + "member": "string", + "name": "IsAllowQuit", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "代付者Uin\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "PayUin", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "代付者名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "PayName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "管理身份\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "MemberIdentity", + "name": "OrgIdentity", + "required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "安全信息绑定状态 未绑定:Unbound,待激活:Valid,绑定成功:Success,绑定失败:Failed\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Unbound", + "member": "string", + "name": "BindStatus", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员权限状态 已确认:Confirmed ,待确认:UnConfirmed\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Confirmed", + "member": "string", + "name": "PermissionStatus", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgMemberAuthAccount": { + "document": "成员和子账号的授权关系", + "members": [ + { + "disabled": false, + "document": "组织子账号Uin。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1000001", + "member": "int64", + "name": "OrgSubAccountUin", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "策略ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "11", + "member": "int64", + "name": "PolicyId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "策略名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "PolicyName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "12", + "member": "int64", + "name": "IdentityId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份角色名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test1", + "member": "string", + "name": "IdentityRoleName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "策略管理", + "member": "string", + "name": "IdentityRoleAliasName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "CreateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "UpdateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "子账号名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "OrgSubAccountName", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgMemberAuthIdentity": { + "document": "组织成员可授权的身份", + "members": [ + { + "disabled": false, + "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "111", + "member": "int64", + "name": "IdentityId", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份的角色名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityRoleName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份的角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityRoleAliasName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份描述。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "Description", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "首次配置成功的时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "最后一次配置成功的时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份类型。取值: 1-预设身份 2-自定义身份\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "IdentityType", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "配置状态。取值:1-配置完成 2-需重新配置\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "Status", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1111111111111", + "member": "int64", + "name": "MemberUin", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "member_test", + "member": "string", + "name": "MemberName", + "output_required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgMemberFinancial": { + "document": "组织成员财务信息。", + "members": [ + { + "disabled": false, + "document": "成员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1000001", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "成员名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "MemberName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "消耗金额,单位:元。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "20.23", + "member": "float", + "name": "TotalCost", + "required": true, + "type": "float", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "占比%。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "23", + "member": "string", + "name": "Ratio", + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgMemberPolicy": { + "document": "组织成员被授权的策略", + "members": [ + { + "disabled": false, + "document": "策略ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "10", + "member": "int64", + "name": "PolicyId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "策略名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "PolicyName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "int64", + "name": "IdentityId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份角色名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityRoleName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "身份角色别名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "IdentityRoleAliasName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "描述。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "Description", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "CreateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 12:12:10", + "member": "string", + "name": "UpdateTime", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgNode": { + "document": "企业组织单元", + "members": [ + { + "disabled": false, + "document": "组织节点ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1001", + "member": "int64", + "name": "NodeId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "名称\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "Name", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "父节点ID\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1000", + "member": "int64", + "name": "ParentNodeId", + "required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "备注\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "test", + "member": "string", + "name": "Remark", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-12 12:12:11", + "member": "string", + "name": "CreateTime", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-12 12:12:11", + "member": "string", + "name": "UpdateTime", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrgPermission": { + "document": "关系策略权限", + "members": [ + { + "disabled": false, + "document": "权限Id", + "example": "1", + "member": "uint64", + "name": "Id", + "required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限名", + "example": "允许主账号对子账号合并出账单", + "member": "string", + "name": "Name", + "required": true, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "out" + }, + "OrgProductFinancial": { + "document": "组织产品财务信息", + "members": [ + { + "disabled": false, + "document": "产品Code。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "p_cos", + "member": "string", + "name": "ProductName", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "产品名。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "COS对象存储", + "member": "string", + "name": "ProductCode", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "产品消耗,单位:元。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "23.22", + "member": "float", + "name": "TotalCost", + "required": true, + "type": "float", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "占比%。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "34", + "member": "string", + "name": "Ratio", + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrganizationServiceAssign": { + "document": "集团服务设置", + "members": [ + { + "disabled": false, + "document": "集团服务ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "ServiceId", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务产品名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "CloudAudit", + "member": "string", + "name": "ProductName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否支持委派。取值: 1-是 2-否\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "IsAssign", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务描述。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "Description", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "当前委派管理员数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "string", + "name": "MemberNum", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "帮助文档。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "Document", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务产品控制台路径。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "ConsoleUrl", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否接入使用状态。取值: 1-是 \n 2-否\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2", + "member": "uint64", + "name": "IsUsageStatus", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "委派管理员数量限制。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "5", + "member": "uint64", + "name": "CanAssignCount", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务产品标识。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "cloudaudit", + "member": "string", + "name": "Product", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否支持集团服务授权。取值 1-是、2-否\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2", + "member": "uint64", + "name": "ServiceGrant", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务授权启用状态。ServiceGrant值为1时该字段有效 ,取值:Enabled-开启 Disabled-关闭 \n注意:此字段可能返回 null,表示取不到有效值。", + "example": "Disabled", + "member": "string", + "name": "GrantStatus", + "output_required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否支持设置委派管理范围。取值: 1-是 2-否\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2", + "member": "uint64", + "name": "IsSetManagementScope", + "output_required": false, + "type": "int", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "OrganizationServiceAssignMember": { + "document": "集团服务委派成员信息", + "members": [ + { + "disabled": false, + "document": "集团服务ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "ServiceId", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "集团服务产品名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "CloudAudit", + "member": "string", + "name": "ProductName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "委派管理员Uin。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "111111111111", + "member": "int64", + "name": "MemberUin", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "委派管理员名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "mamber_name", + "member": "string", + "name": "MemberName", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "启用状态 。取值:0-服务无启用状态 1-已启用 2-未启用\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "UsageStatus", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "委派时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2022-03-12 12:19:12", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "委派管理员管理范围。取值: 1-全部成员 2-部分成员\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "1", + "member": "uint64", + "name": "ManagementScope", + "output_required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "管理的成员Uin列表。ManagementScope值为2时该参数有效\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "MemberMainInfo", + "name": "ManagementScopeMembers", + "output_required": false, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "管理的部门ID列表。ManagementScope值为2时该参数有效\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "NodeMainInfo", + "name": "ManagementScopeNodes", + "output_required": false, + "type": "list", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "PolicyDetail": { + "document": "策略详情", + "members": [ + { + "disabled": false, + "document": "策略ID。", + "example": "426322", + "member": "int64", + "name": "PolicyId", + "output_required": false, + "required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "策略名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "QcloudAccessForOceanusRole", + "member": "string", + "name": "PolicyName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "ProductResource": { + "document": "产品资源", + "members": [ + { + "disabled": false, + "document": "产品资源ID。", + "example": "sec***002", + "member": "string", + "name": "ProductResourceId", + "required": true, + "type": "string" + }, + { + "disabled": true, + "document": "资源六段式最后一节", + "example": "secret/creatorUin/1111111111111/sec***002", + "member": "string", + "name": "ResourceGrantLast", + "required": false, + "type": "string" + } + ], + "usage": "in" + }, + "ProvisionRoleConfigurationRequest": { + "document": "ProvisionRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-00fc2p61****", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-sisjdia", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号。", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "集团账号目标账号的UIN。", + "example": "10003i32i2", + "member": "int64", + "name": "TargetUin", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "ProvisionRoleConfigurationResponse": { + "document": "ProvisionRoleConfiguration返回参数结构体", + "members": [ + { + "disabled": false, + "document": "任务详情。", + "example": "{\"RoleConfigurationId\":\"rc-4plmus8fdfsb\",\"RoleConfigurationName\":\"testConfiguration1\",\"TargetType\":\"MemberUin\",\"TargetUin\":700000145543,\"TaskId\":\"t-2xdmzwphpsbd\",\"TaskStatus\":\"InProgress\",\"TaskType\":\"CreateRoleAssignment\"}", + "member": "RoleProvisioningsTask", + "name": "Task", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "QuitOrganizationRequest": { + "document": "QuitOrganization请求参数结构体", + "members": [ + { + "disabled": false, + "document": "企业组织ID", + "example": "1234", + "member": "uint64", + "name": "OrgId", + "required": true, + "type": "int" + } + ], + "type": "object" + }, + "QuitOrganizationResponse": { + "document": "QuitOrganization返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "RejectJoinShareUnitInvitationRequest": { + "document": "RejectJoinShareUnitInvitation请求参数结构体", + "members": [ + { + "disabled": false, + "document": "共享单元ID。", + "example": "shareUnit-xhreo**2p", + "member": "string", + "name": "UnitId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "RejectJoinShareUnitInvitationResponse": { + "document": "RejectJoinShareUnitInvitation返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "RemoveExternalSAMLIdPCertificateRequest": { + "document": "RemoveExternalSAMLIdPCertificate请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "PEM 格式的 X509 证书。 由 SAML 身份提供商提供。", + "example": "dp-c-2jd8923je29****", + "member": "string", + "name": "CertificateId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "RemoveExternalSAMLIdPCertificateResponse": { + "document": "RemoveExternalSAMLIdPCertificate返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "RemovePermissionPolicyFromRoleConfigurationRequest": { + "document": "RemovePermissionPolicyFromRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID", + "example": "z-29n23ien", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置 ID", + "example": "rc-so2msow", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限策略类型。取值: System:系统策略。复用 CAM 的系统策略。 Custom: 自定义策略。按照 CAM 权限策略语法和结构编写的自定义策略。", + "example": "System", + "member": "string", + "name": "RolePolicyType", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限策略名称,长度最大为 32 个字符。", + "example": "TestPolicy", + "member": "string", + "name": "RolePolicyName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略ID。", + "example": "426322", + "member": "int64", + "name": "RolePolicyId", + "required": false, + "type": "int" + } + ], + "type": "object" + }, + "RemovePermissionPolicyFromRoleConfigurationResponse": { + "document": "RemovePermissionPolicyFromRoleConfiguration返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "RemoveUserFromGroupRequest": { + "document": "RemoveUserFromGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-28sjh238n", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户组ID。", + "example": "g-28sh28ne", + "member": "string", + "name": "GroupId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户ID。", + "example": "u-0su23n9nd", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "RemoveUserFromGroupResponse": { + "document": "RemoveUserFromGroup返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ResourceTagMapping": { + "document": "资源及关联的标签", + "members": [ + { + "disabled": false, + "document": "资源六段式。腾讯云使用资源六段式描述一个资源。\n例如:qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "string", + "name": "Resource", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "合规详情。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "TagComplianceDetails", + "name": "ComplianceDetails", + "required": true, + "type": "object", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "资源标签。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "无", + "member": "Tags", + "name": "Tags", + "required": true, + "type": "list", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "RoleAssignmentInfo": { + "document": "授权成员账号信息", + "members": [ + { + "disabled": false, + "document": "CAM 用户同步的身份 ID。取值:\n当PrincipalType取值为Group时,该值为CIC用户组 ID(g-********)。\n当PrincipalType取值为User时,该值为CIC用户 ID(u-********)。", + "example": "u-xuec8dnd", + "member": "string", + "name": "PrincipalId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "CAM 用户同步的身份类型。取值:\n\nUser:表示该 CAM 用户同步的身份是CIC用户。\nGroup:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步集团账号目标账号的UIN。", + "example": "100003829343", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-s82nd93ne***", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "RoleAssignments": { + "document": "成员账号的授权详情", + "members": [ + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-sksom***", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置名称。", + "example": "test", + "member": "string", + "name": "RoleConfigurationName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "集团账号目标账号的UIN。", + "example": "1000029322", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号。", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "CAM 用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC 用户组 ID(g-********)。 当PrincipalType取值为User时,该值为CIC 用户 ID(u-********)。", + "example": "u-dwidn***", + "member": "string", + "name": "PrincipalId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "CAM 用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC用户。 Group:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户名称或者用户组名称", + "example": "test", + "member": "string", + "name": "PrincipalName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间。", + "example": "2024-01-01 12:12:12", + "member": "string", + "name": "CreateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "更新时间。", + "example": "2024-01-01 12:12:12", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "集团账号目标账号的名称。", + "example": "test", + "member": "string", + "name": "TargetName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "RoleConfiguration": { + "document": "CIC权限配置", + "members": [ + { + "disabled": false, + "document": "权限配置配置ID。", + "example": "rc-3334342dws****", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置配名称。", + "example": "test", + "member": "string", + "name": "RoleConfigurationName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置的描述。", + "example": "this is role configuration", + "member": "string", + "name": "Description", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "会话持续时间。CIC 用户使用访问配置访问成员账号时,会话最多保持的时间。\n单位:秒。", + "example": "900", + "member": "int64", + "name": "SessionDuration", + "output_required": false, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "初始访问页面。CIC 用户使用访问配置访问成员账号时,初始访问的页面地址。", + "example": "https://console.cloud.tencent.com/", + "member": "string", + "name": "RelayState", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置的创建时间。", + "example": "2019-01-01 12:12:12", + "member": "string", + "name": "CreateTime", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置的更新时间。", + "example": "2019-01-01 12:12:12", + "member": "string", + "name": "UpdateTime", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "如果有入参FilterTargets查询成员账号是否配置过权限,配置了返回true,否则返回false。", + "example": "false", + "member": "bool", + "name": "IsSelected", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "RoleConfigurationProvisionings": { + "document": "权限配置同步", + "members": [ + { + "disabled": false, + "document": "Deployed: 部署成功 DeployedRequired:需要重新部署 DeployFailed:部署失败", + "example": "DeployedRequired", + "member": "string", + "name": "DeploymentStatus", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "rc-sk9mwq**", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置名称。", + "example": "test", + "member": "string", + "name": "RoleConfigurationName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "集团账号目标账号的UIN", + "example": "100003921", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "集团账号目标账号的名称。", + "example": "test", + "member": "string", + "name": "TargetName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间,", + "example": "2021-01-01 13:12:12", + "member": "string", + "name": "CreateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "修改时间,", + "example": "权限配置ID。", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "ManagerUin", + "member": "string", + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "RolePolicie": { + "document": "CIC的权限策略", + "members": [ + { + "disabled": false, + "document": "策略ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "426322", + "member": "int64", + "name": "RolePolicyId", + "output_required": false, + "required": false, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "权限策略名称", + "example": "AdminPolicy", + "member": "string", + "name": "RolePolicyName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限策略类型", + "example": "Custom", + "member": "string", + "name": "RolePolicyType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "自定义策略内容。仅自定义策略返回该参数。", + "example": "{\\\"Statement\\\": [{\\\"Action\\\": \\\"*\\\",\\\"Effect\\\": \\\"Allow\\\",\\\"Resource\\\": \\\"*\\\"}],\\\"Version\\\": \\\"1\\\"}", + "member": "string", + "name": "RolePolicyDocument", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限策略被添加到权限配置的时间。", + "example": "2019-01-01 12:12:12", + "member": "string", + "name": "AddTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "RoleProvisioningsTask": { + "document": "同步部署角色任务状态信息。", + "members": [ + { + "disabled": false, + "document": "任务ID。", + "example": "InProgress", + "member": "string", + "name": "TaskId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "t-s8n28n2***", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置名称。", + "example": "ProvisionRoleConfiguration", + "member": "string", + "name": "RoleConfigurationName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "授权的集团账号目标账号的UIN", + "example": "100000232323", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "任务类型。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "CreateRoleAssignment", + "member": "string", + "name": "TaskType", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "任务状态:InProgress: 进行中,Failed: 失败 3:Success: 成功\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "InProgress", + "member": "string", + "name": "TaskStatus", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "SAMLIdPCertificate": { + "document": "SAML 签名证书信息", + "members": [ + { + "disabled": false, + "document": "证书序列号。", + "example": "1347934239****", + "member": "string", + "name": "SerialNumber", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书颁发者。", + "example": "5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta", + "member": "string", + "name": "Issuer", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书版本。", + "example": "1", + "member": "int64", + "name": "Version", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书ID。", + "example": "idp-c-2jd8923je29****", + "member": "string", + "name": "CertificateId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "PEM 格式的公钥证书(Base64 编码)。", + "example": "nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****", + "member": "string", + "name": "PublicKey", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书的签名算法。", + "example": "SHA256withRSA", + "member": "string", + "name": "SignatureAlgorithm", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书的过期时间。", + "example": "2030-06-23 07:04:37", + "member": "string", + "name": "NotAfter", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书的创建时间。", + "example": "2013-06-23 07:04:37", + "member": "string", + "name": "NotBefore", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "证书的主体。", + "example": "5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta", + "member": "string", + "name": "Subject", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "PEM 格式的 X509 证书。", + "example": "nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****", + "member": "string", + "name": "X509Certificate", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "SAMLIdentityProviderConfiguration": { + "document": "saml 身份提供商配置信息。", + "members": [ + { + "disabled": false, + "document": "IdP 标识。", + "example": "http://www.okta.com/2jd83ne9m*****", + "member": "string", + "name": "EntityId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "SSO 登录的启用状态。取值: Enabled:启用。 Disabled(默认值):禁用。", + "example": "Enbaled", + "member": "string", + "name": "SSOStatus", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "IdP 元数据文档(Base64 编码)。", + "example": "PD94bWwgdmVyc2lvbj0iMS4****", + "member": "string", + "name": "EncodedMetadataDocument", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "X509证书ID。", + "example": "[\"idp-c-2jd8923je29****\"]", + "member": "string", + "name": "CertificateIds", + "output_required": true, + "required": false, + "type": "list", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "IdP 的登录地址。", + "example": "https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/2jd83ne9m****/sso/saml", + "member": "string", + "name": "LoginUrl", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间。", + "example": "2024-01-01 12:12:12", + "member": "string", + "name": "CreateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "更新时间。", + "example": "2024-01-01 12:12:12", + "member": "string", + "name": "UpdateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "SAMLServiceProvider": { + "document": "SAML服务提供商信息", + "members": [ + { + "disabled": false, + "document": "https://tencentcloudsso.com/saml/sp/z-sjw8ensa**", + "example": "SP 标识。", + "member": "string", + "name": "EntityId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "空间ID。", + "example": "z-sjw8ensa**", + "member": "string", + "name": "ZoneId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "SP 元数据文档(Base64 编码)。", + "example": "JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5nJTNEJTIy*****", + "member": "string", + "name": "EncodedMetadataDocument", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "SP 的 ACS URL。", + "example": "https://tencentcloudsso.com/saml/acs/swedx-22a20du2-x2je9****", + "member": "string", + "name": "AcsUrl", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "SetExternalSAMLIdentityProviderRequest": { + "document": "SetExternalSAMLIdentityProvider请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间ID。", + "example": "z-2js923necd***", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "IdP 元数据文档(Base64 编码)。 由支持 SAML 2.0 协议的 IdP 提供。", + "example": "PD94bWwgdmVyc2lvbj0iMS4****", + "member": "string", + "name": "EncodedMetadataDocument", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "SSO 登录的启用状态。取值: Enabled:启用。 Disabled(默认值):禁用。", + "example": "Enabled", + "member": "string", + "name": "SSOStatus", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "IdP 标识。", + "example": "http://www.okta.com/2jd83ne9m*****", + "member": "string", + "name": "EntityId", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "IdP 的登录地址。", + "example": "https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/2jd83ne9m****/sso/saml", + "member": "string", + "name": "LoginUrl", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "PEM 格式的 X509 证书。指定该参数会替换所有已经存在的证书。", + "example": "MIIBtjCCAVugAwIBAgITBmyf1XSXNmY/Owua2eiedgPySjAKBggqhkjOPQQDAjA5***", + "member": "string", + "name": "X509Certificate", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "SetExternalSAMLIdentityProviderResponse": { + "document": "SetExternalSAMLIdentityProvider返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "ShareArea": { + "document": "共享地域", + "members": [ + { + "disabled": false, + "document": "地域名称。", + "example": "广州", + "member": "string", + "name": "Name", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "地域标识。", + "example": "ap-guangzhou", + "member": "string", + "name": "Area", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "地域ID。", + "example": "1", + "member": "int64", + "name": "AreaId", + "output_required": true, + "type": "int", + "value_allowed_null": false + } + ], + "usage": "out" + }, + "ShareMember": { + "document": "共享成员信息", + "members": [ + { + "disabled": false, + "document": "共享成员Uin。", + "example": "333333333333", + "member": "int64", + "name": "ShareMemberUin", + "required": true, + "type": "int" + } + ], + "usage": "in" + }, + "ShareResource": { + "document": "共享资源", + "members": [ + { + "disabled": true, + "document": "共享资源ID。", + "example": "shareResource-12**erte", + "member": "string", + "name": "ResourceId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "产品资源ID。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "sec***002", + "member": "string", + "name": "ProductResourceId", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "ShareUnitMember": { + "document": "共享单元成员", + "members": [ + { + "disabled": false, + "document": "共享成员Uin。", + "example": "333333333333", + "member": "int64", + "name": "ShareMemberUin", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-03-05 12:12:01", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "ShareUnitResource": { + "document": "共享单元资源", + "members": [ + { + "disabled": false, + "document": "共享资源ID。", + "example": "shareResource-12**erte", + "member": "string", + "name": "ResourceId", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享资源类型。", + "example": "secret", + "member": "string", + "name": "Type", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-02-12 23:32:23", + "member": "string", + "name": "CreateTime", + "output_required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "产品资源ID。", + "example": "sec***002", + "member": "string", + "name": "ProductResourceId", + "output_required": true, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2", + "member": "uint64", + "name": "SharedMemberNum", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "使用中共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "0", + "member": "uint64", + "name": "SharedMemberUseNum", + "output_required": true, + "type": "int", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "共享管理员OwnerUin。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "111111111111", + "member": "int64", + "name": "ShareManagerUin", + "output_required": true, + "type": "int", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "TagComplianceDetails": { + "document": "标签合规信息", + "members": [ + { + "disabled": false, + "document": "合规状态。true-合规,false-不合规\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "true", + "member": "bool", + "name": "ComplianceStatus", + "required": true, + "type": "bool", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "值不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "string", + "name": "KeysWithNonCompliantValues", + "required": true, + "type": "list", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "键不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "[]", + "member": "string", + "name": "NonCompliantKeys", + "required": true, + "type": "list", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "Tags": { + "document": "标签键值对", + "members": [ + { + "disabled": false, + "document": "标签键。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "TagKey", + "required": true, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "标签值。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "\"\"", + "member": "string", + "name": "TagValue", + "required": true, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "out" + }, + "TaskInfo": { + "document": "任务状态信息。", + "members": [ + { + "disabled": false, + "document": "任务ID。", + "example": "InProgress", + "member": "string", + "name": "TaskId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置ID。", + "example": "t-s8n28n2***", + "member": "string", + "name": "RoleConfigurationId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "权限配置名称。", + "example": "ProvisionRoleConfiguration", + "member": "string", + "name": "RoleConfigurationName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "授权的目标成员账号的UIN", + "example": "100000232323", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步的目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户授权的身份ID,如果是身份类型是CIC用户,则为用户ID; 如果是用户组,则为用户组ID;", + "example": "u-dw2isaw***", + "member": "string", + "name": "PrincipalId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "用户授权的身份类型, User代表CIC用户, Group代表CIC用户组", + "example": "User", + "member": "string", + "name": "PrincipalType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "任务类型。", + "example": "CreateRoleAssignment", + "member": "string", + "name": "TaskType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "InProgress:任务执行中。 Success:任务执行成功。 Failed:任务执行失败。", + "example": "InProgress", + "member": "string", + "name": "Status", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "失败原因\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "失败", + "member": "string", + "name": "FailureReason", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, + "TaskStatus": { + "document": "任务状态信息。", + "members": [ + { + "disabled": false, + "document": "任务状态。取值: InProgress:任务执行中。 Success:任务执行成功。 Failed:任务执行失败。", + "example": "InProgress", + "member": "string", + "name": "Status", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "任务 ID。", + "example": "t-s8n28n2***", + "member": "string", + "name": "TaskId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "任务类型。取值:\nProvisionRoleConfiguration:部署权限配置。\nDeprovisionRoleConfiguration:解除权限配置部署。\nCreateRoleAssignment:在成员 账号上授权。\nDeleteRoleAssignment:移除 成员 账号上的授权。", + "example": "ProvisionRoleConfiguration", + "member": "string", + "name": "TaskType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "任务失败原因。\n说明\n只有Status为Failed,才会显示该参数。", + "example": "部署失败", + "member": "string", + "name": "FailureReason", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + } + ], + "usage": "both" + }, + "UpdateGroupRequest": { + "document": "UpdateGroup请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-d8hssis****", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户组ID。", + "example": "g-s8sidnid", + "member": "string", + "name": "GroupId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "新的用户组名称。", + "example": "testGroup", + "member": "string", + "name": "NewGroupName", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "新的用户组描述。", + "example": "this is group", + "member": "string", + "name": "NewDescription", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdateGroupResponse": { + "document": "UpdateGroup返回参数结构体", + "members": [ + { + "disabled": false, + "document": "用户组信息。", + "example": "{\"GroupName\": \"testGroup\", \"Description\": \"this is group\", \"CreateTime\": \"2024-01-01 12:12:12\", \"GroupType\": \"Manual\", \"UpdateTime\": \"2024-01-01 12:12:12\", \"GroupId\": \"g-w8hd8n***\", \"MemberCount\": 20}", + "member": "GroupInfo", + "name": "GroupInfo", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationIdentityRequest": { + "document": "UpdateOrganizationIdentity请求参数结构体", + "members": [ + { + "disabled": false, + "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", + "example": "1", + "member": "uint64", + "name": "IdentityId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "身份描述。", + "example": "\"\"", + "member": "string", + "name": "Description", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "身份策略。", + "example": "无", + "member": "IdentityPolicy", + "name": "IdentityPolicy", + "required": true, + "type": "list" + } + ], + "type": "object" + }, + "UpdateOrganizationIdentityResponse": { + "document": "UpdateOrganizationIdentity返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationMemberEmailBindRequest": { + "document": "UpdateOrganizationMemberEmailBind请求参数结构体", + "members": [ + { + "disabled": false, + "document": "成员Uin。", + "example": "111111111111", + "member": "int64", + "name": "MemberUin", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "绑定ID。可以通过[DescribeOrganizationMemberEmailBind](https://cloud.tencent.com/document/product/850/93332)获取", + "example": "12", + "member": "int64", + "name": "BindId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "邮箱地址。", + "example": "12***@qq.com", + "member": "string", + "name": "Email", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "国际区号。", + "example": "86", + "member": "string", + "name": "CountryCode", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "手机号。", + "example": "18***32", + "member": "string", + "name": "Phone", + "required": true, + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationMemberEmailBindResponse": { + "document": "UpdateOrganizationMemberEmailBind返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationMemberRequest": { + "document": "UpdateOrganizationMember请求参数结构体", + "members": [ + { + "disabled": false, + "document": "成员Uin。", + "example": "111111111111", + "member": "uint64", + "name": "MemberUin", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "成员名称。最大长度为25个字符,支持英文字母、数字、汉字、符号+@、&._[]-:,", + "example": "name", + "member": "string", + "name": "Name", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "备注。最大长度为40个字符", + "example": "remark", + "member": "string", + "name": "Remark", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "关系策略类型。PolicyType不为空,PermissionIds不能为空。取值:Financial", + "example": "\"\"", + "member": "string", + "name": "PolicyType", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "成员财务权限ID列表。PermissionIds不为空,PolicyType不能为空。\n取值:1-查看账单、2-查看余额、3-资金划拨、4-合并出账、5-开票、6-优惠继承、7-代付费、8-成本分析,如果有值,1、2 默认必须", + "example": "无", + "member": "uint64", + "name": "PermissionIds", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "是否允许成员退出组织。取值:Allow-允许、Denied-不允许", + "example": "\"\"", + "member": "string", + "name": "IsAllowQuit", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "代付者Uin。成员财务权限有代付费时需要,取值为成员对应主体的主体管理员Uin", + "example": "\"\"", + "member": "string", + "name": "PayUin", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationMemberResponse": { + "document": "UpdateOrganizationMember返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationNodeRequest": { + "document": "UpdateOrganizationNode请求参数结构体", + "members": [ + { + "disabled": false, + "document": "节点ID。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", + "example": "1001", + "member": "uint64", + "name": "NodeId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "节点名称。最大长度为40个字符,支持英文字母、数字、汉字、符号+@、&._[]-", + "example": "name", + "member": "string", + "name": "Name", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "备注。", + "example": "remark", + "member": "string", + "name": "Remark", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdateOrganizationNodeResponse": { + "document": "UpdateOrganizationNode返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdatePolicyRequest": { + "document": "UpdatePolicy请求参数结构体", + "members": [ + { + "disabled": false, + "document": "需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取", + "example": "100001", + "member": "int64", + "name": "PolicyId", + "required": true, + "type": "int" + }, + { + "disabled": false, + "document": "策略描述。", + "example": "全读写权限", + "member": "string", + "name": "Description", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略内容。参考CAM策略语法", + "example": "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}", + "member": "string", + "name": "Content", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)", + "example": "FullAccessPolicy", + "member": "string", + "name": "Name", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", + "example": "SERVICE_CONTROL_POLICY", + "member": "string", + "name": "Type", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdatePolicyResponse": { + "document": "UpdatePolicy返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateRoleConfigurationRequest": { + "document": "UpdateRoleConfiguration请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID", + "example": "z-29n23ien", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "权限配置 ID", + "example": "rc-so2msow", + "member": "string", + "name": "RoleConfigurationId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "新的访问配置描述。 长度:最大 1024 个字符。", + "example": "this is role configuration", + "member": "string", + "name": "NewDescription", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "新的会话持续时间。 CIC 用户使用访问配置访问集团账号目标账号时,会话最多保持的时间。 单位:秒。 取值范围:900-43200(15 分钟-12 小时)。", + "example": "900", + "member": "int64", + "name": "NewSessionDuration", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "新的初始访问页面。 CIC 用户使用访问配置访问集团账号目标账号时,初始访问的页面地址。 该页面必须是腾讯云控制台页面。", + "example": "https://console.cloud.tencent.com", + "member": "string", + "name": "NewRelayState", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdateRoleConfigurationResponse": { + "document": "UpdateRoleConfiguration返回参数结构体", + "members": [ + { + "disabled": false, + "document": "权限配置详情", + "example": "{\"RoleConfigurationId\":\"rc-s2ns92ns***\",\"RoleConfigurationName\":\"test\",\"Description\":\"this is role configuration\",\"SessionDuration\":900,\"RelayState\":\"https://console.cloud.tencent.com\",\"CreateTime\":\"2019-01-01 12:12:12\",\"UpdateTime\":\"2019-01-01 12:12:12\"}", + "member": "RoleConfiguration", + "name": "RoleConfigurationInfo", + "output_required": true, + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateShareUnitRequest": { + "document": "UpdateShareUnit请求参数结构体", + "members": [ + { + "disabled": false, + "document": "共享单元ID。", + "example": "shareUnit-xhreo**2p", + "member": "string", + "name": "UnitId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "共享单元名称。仅支持大小写字母、数字、-、以及_的组合,3-128个字符。", + "example": "myShareUnit", + "member": "string", + "name": "Name", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "共享单元描述。最大128个字符。", + "example": "share unit", + "member": "string", + "name": "Description", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号,默认值:1", + "example": "1", + "member": "uint64", + "name": "ShareScope", + "required": false, + "type": "int" + } + ], + "type": "object" + }, + "UpdateShareUnitResponse": { + "document": "UpdateShareUnit返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateUserRequest": { + "document": "UpdateUser请求参数结构体", + "members": [ + { + "disabled": false, + "document": "空间 ID。", + "example": "z-22b2usba2", + "member": "string", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户 ID。", + "example": "u-33ks8w9n3", + "member": "string", + "name": "UserId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户的名。", + "example": "test", + "member": "string", + "name": "NewFirstName", + "required": false, + "type": "string" }, { "disabled": false, - "document": "启用状态 。取值:0-服务无启用状态 1-已启用 2-未启用\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "UsageStatus", - "output_required": true, - "type": "int", - "value_allowed_null": true + "document": "用户的姓。", + "example": "test", + "member": "string", + "name": "NewLastName", + "required": false, + "type": "string" }, { "disabled": false, - "document": "委派时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2022-03-12 12:19:12", + "document": "用户的显示名称。", + "example": "test", "member": "string", - "name": "CreateTime", - "output_required": true, - "type": "string", - "value_allowed_null": true + "name": "NewDisplayName", + "required": false, + "type": "string" }, { "disabled": false, - "document": "委派管理员管理范围。取值: 1-全部成员 2-部分成员\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "1", - "member": "uint64", - "name": "ManagementScope", - "output_required": false, - "type": "int", - "value_allowed_null": true + "document": "用户的描述。", + "example": "this is user.", + "member": "string", + "name": "NewDescription", + "required": false, + "type": "string" }, { "disabled": false, - "document": "管理的成员Uin列表。ManagementScope值为2时该参数有效\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", - "member": "MemberMainInfo", - "name": "ManagementScopeMembers", - "output_required": false, - "type": "list", - "value_allowed_null": true - }, + "document": "用户的电子邮箱。", + "example": "test@example.com", + "member": "string", + "name": "NewEmail", + "required": false, + "type": "string" + } + ], + "type": "object" + }, + "UpdateUserResponse": { + "document": "UpdateUser返回参数结构体", + "members": [ { "disabled": false, - "document": "管理的部门ID列表。ManagementScope值为2时该参数有效\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", - "member": "NodeMainInfo", - "name": "ManagementScopeNodes", + "document": "用户信息", + "example": "{\"UserName\":\"test\",\"FirstName\":\"test\",\"LastName\":\"test\",\"DisplayName\":\"test\",\"Description\":\"this is user\",\"Email\":\"test@example.com\",\"UserStatus\":\"test\",\"UserType\":\"Manual\",\"UserId\":\"u-33sjadjsk\",\"CreateTime\":\"2024-01-01 12:12:12\",\"UpdateTime\":\"2024-01-01 12:12:12\"}", + "member": "UserInfo", + "name": "UserInfo", "output_required": false, - "type": "list", - "value_allowed_null": true + "type": "object", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" } ], - "usage": "out" + "type": "object" }, - "ProductResource": { - "document": "产品资源", + "UpdateUserStatusRequest": { + "document": "UpdateUserStatus请求参数结构体", "members": [ { "disabled": false, - "document": "产品资源ID。", - "example": "sec***002", + "document": "空间 ID。", + "example": "z-3ks9b3kdm**", "member": "string", - "name": "ProductResourceId", + "name": "ZoneId", "required": true, "type": "string" }, { - "disabled": true, - "document": "资源六段式最后一节", - "example": "secret/creatorUin/1111111111111/sec***002", + "disabled": false, + "document": "用户 ID。", + "example": "u-ds9sbs823**", "member": "string", - "name": "ResourceGrantLast", - "required": false, + "name": "UserId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户的状态。取值: Enabled:启用。 Disabled:禁用。", + "example": "Enabled", + "member": "string", + "name": "NewUserStatus", + "required": true, "type": "string" } ], - "usage": "in" + "type": "object" }, - "QuitOrganizationRequest": { - "document": "QuitOrganization请求参数结构体", + "UpdateUserStatusResponse": { + "document": "UpdateUserStatus返回参数结构体", + "members": [ + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, + "UpdateUserSyncProvisioningRequest": { + "document": "UpdateUserSyncProvisioning请求参数结构体", "members": [ { "disabled": false, - "document": "企业组织ID", - "example": "1234", - "member": "uint64", - "name": "OrgId", + "document": "空间ID。", + "example": "z-d8wj832n***", + "member": "string", + "name": "ZoneId", "required": true, - "type": "int" + "type": "string" + }, + { + "disabled": false, + "document": "用户同步的iD", + "example": "up-sjisnw8ois", + "member": "string", + "name": "UserProvisioningId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "用户同步描述。", + "example": "this is cam sync provisioning", + "member": "string", + "name": "NewDescription", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "冲突策略。当CIC 用户同步到 CAM 时,如果 CAM 中存在同名用户时的处理策略。取值: KeepBoth:两者都保留。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则对CIC 用户的用户名添加后缀_cic后尝试创建该用户名的 CAM 用户。 TakeOver:替换。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则直接将已经存在的 CAM 用户替换为CIC 同步用户。 ", + "example": "KeepBoth", + "member": "string", + "name": "NewDuplicationStateful", + "required": false, + "type": "string" + }, + { + "disabled": false, + "document": "删除策略。删除 CAM 用户同步时,对已同步的 CAM 用户的处理策略。取值: Delete:删除。删除 CAM 用户同步时,会删除从CIC 已经同步到 CAM 中的 CAM 用户。 Keep:保留。删除 RAM 用户同步时,会保留从CIC 已经同步到 CAM 中的 CAM 用户。 ", + "example": "Delete", + "member": "string", + "name": "NewDeletionStrategy", + "required": false, + "type": "string" } ], "type": "object" }, - "QuitOrganizationResponse": { - "document": "QuitOrganization返回参数结构体", + "UpdateUserSyncProvisioningResponse": { + "document": "UpdateUserSyncProvisioning返回参数结构体", "members": [ { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -5714,23 +11180,32 @@ ], "type": "object" }, - "RejectJoinShareUnitInvitationRequest": { - "document": "RejectJoinShareUnitInvitation请求参数结构体", + "UpdateZoneRequest": { + "document": "UpdateZone请求参数结构体", "members": [ { "disabled": false, - "document": "共享单元ID。", - "example": "shareUnit-xhreo**2p", + "document": "空间ID。z-前缀开头,后面是12位随机数字/小写字母", + "example": "z-00fdsg****", "member": "string", - "name": "UnitId", + "name": "ZoneId", + "required": true, + "type": "string" + }, + { + "disabled": false, + "document": "空间名,必须全局唯一。包含小写字母、数字和短划线(-)。不能以短划线(-)开头或结尾,且不能有两个连续的短划线(-)。长度:2~64 个字符。", + "example": "testName", + "member": "string", + "name": "NewZoneName", "required": true, "type": "string" } ], "type": "object" }, - "RejectJoinShareUnitInvitationResponse": { - "document": "RejectJoinShareUnitInvitation返回参数结构体", + "UpdateZoneResponse": { + "document": "UpdateZone返回参数结构体", "members": [ { "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", @@ -5741,102 +11216,92 @@ ], "type": "object" }, - "ResourceTagMapping": { - "document": "资源及关联的标签", + "UserInfo": { + "document": "用户信息", "members": [ { "disabled": false, - "document": "资源六段式。腾讯云使用资源六段式描述一个资源。\n例如:qcs::${ServiceType}:${Region}:${Account}:${ResourcePreifx}/${ResourceId}。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "document": "查询username。", + "example": "Alice", "member": "string", - "name": "Resource", - "required": true, + "name": "UserName", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "合规详情。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "TagComplianceDetails", - "name": "ComplianceDetails", - "required": true, - "type": "object", - "value_allowed_null": true + "document": "用户的名。", + "example": "Alice", + "member": "string", + "name": "FirstName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "资源标签。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", - "member": "Tags", - "name": "Tags", - "required": true, - "type": "list", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "ShareArea": { - "document": "共享地域", - "members": [ + "document": "用户的姓。", + "example": "Alice", + "member": "string", + "name": "LastName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, { "disabled": false, - "document": "地域名称。", - "example": "广州", + "document": "用户的显示名称。", + "example": "Alice", "member": "string", - "name": "Name", + "name": "DisplayName", "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "地域标识。", - "example": "ap-guangzhou", + "document": "用户的描述。", + "example": "this is user.", "member": "string", - "name": "Area", + "name": "Description", "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "地域ID。", - "example": "1", - "member": "int64", - "name": "AreaId", + "document": "用户的电子邮箱。目录内必须唯一。", + "example": "Alice@example.com", + "member": "string", + "name": "Email", "output_required": true, - "type": "int", + "required": false, + "type": "string", "value_allowed_null": false - } - ], - "usage": "out" - }, - "ShareMember": { - "document": "共享成员信息", - "members": [ + }, { "disabled": false, - "document": "共享成员Uin。", - "example": "333333333333", - "member": "int64", - "name": "ShareMemberUin", - "required": true, - "type": "int" - } - ], - "usage": "in" - }, - "ShareResource": { - "document": "共享资源", - "members": [ + "document": "用户状态 Enabled:启用, Disabled:禁用。", + "example": "Enabled", + "member": "string", + "name": "UserStatus", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, { - "disabled": true, - "document": "共享资源ID。", - "example": "shareResource-12**erte", + "disabled": false, + "document": "用户类型 Manual:手动创建,Synchronized:外部导入。", + "example": "Manual", "member": "string", - "name": "ResourceId", + "name": "UserType", "output_required": true, "required": false, "type": "string", @@ -5844,532 +11309,514 @@ }, { "disabled": false, - "document": "产品资源ID。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "sec***002", + "document": "用户 ID", + "example": "u-a34wsd32", "member": "string", - "name": "ProductResourceId", - "output_required": false, + "name": "UserId", + "output_required": true, "required": false, "type": "string", - "value_allowed_null": true - } - ], - "usage": "both" - }, - "ShareUnitMember": { - "document": "共享单元成员", - "members": [ + "value_allowed_null": false + }, { "disabled": false, - "document": "共享成员Uin。", - "example": "333333333333", - "member": "int64", - "name": "ShareMemberUin", + "document": "用户的创建时间", + "example": "2024-03-26 12:03:42", + "member": "string", + "name": "CreateTime", "output_required": true, - "type": "int", + "required": false, + "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-03-05 12:12:01", + "document": "用户的修改时间", + "example": "2024-03-26 19:12:17", "member": "string", - "name": "CreateTime", + "name": "UpdateTime", "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false + }, + { + "disabled": false, + "document": "是否选中", + "example": "false", + "member": "bool", + "name": "IsSelected", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": false } ], - "usage": "out" + "usage": "both" }, - "ShareUnitResource": { - "document": "共享单元资源", + "UserProvisioning": { + "document": "用户同步信息", "members": [ { "disabled": false, - "document": "共享资源ID。", - "example": "shareResource-12**erte", + "document": "CAM 用户同步的状态。取值:\n\nEnabled:CAM 用户同步已启用。\nDisabled:CAM 用户同步未启用。", + "example": "up-swns92ns", "member": "string", - "name": "ResourceId", + "name": "UserProvisioningId", "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "共享资源类型。", - "example": "secret", + "document": "描述。", + "example": "this is cam user provisioning", "member": "string", - "name": "Type", + "name": "Description", "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2021-02-12 23:32:23", + "document": "CAM 用户同步的状态。取值:\nEnabled:CAM 用户同步已启用。\nDisabled:CAM 用户同步未启用。", + "example": "Enabled", "member": "string", - "name": "CreateTime", + "name": "Status", "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "产品资源ID。", - "example": "sec***002", + "document": "CAM 用户同步的身份 ID。取值:\n当PrincipalType取值为Group时,该值为CIC用户组 ID(g-********)。\n当PrincipalType取值为User时,该值为CIC用户 ID(u-********)。", + "example": "u-xuec8dnd", "member": "string", - "name": "ProductResourceId", + "name": "PrincipalId", "output_required": true, + "required": false, "type": "string", "value_allowed_null": false }, { "disabled": false, - "document": "共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "2", - "member": "uint64", - "name": "SharedMemberNum", + "document": "CAM 用户同步的身份名称。取值:\n当PrincipalType取值为Group时,该值为CIC用户组名称。\n当PrincipalType取值为User时,该值为CIC用户名称。", + "example": "testUser", + "member": "string", + "name": "PrincipalName", "output_required": true, - "type": "int", - "value_allowed_null": true + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "使用中共享单元成员数。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "0", - "member": "uint64", - "name": "SharedMemberUseNum", + "document": "CAM 用户同步的身份类型。取值:\n\nUser:表示该 CAM 用户同步的身份是CIC用户。\nGroup:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", + "member": "string", + "name": "PrincipalType", "output_required": true, - "type": "int", - "value_allowed_null": true + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "共享管理员OwnerUin。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "111111111111", + "document": "集团账号目标账号的UIN。", + "example": "100003829343", "member": "int64", - "name": "ShareManagerUin", + "name": "TargetUin", "output_required": true, + "required": false, "type": "int", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "TagComplianceDetails": { - "document": "标签合规信息", - "members": [ - { - "disabled": false, - "document": "合规状态。true-合规,false-不合规\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "true", - "member": "bool", - "name": "ComplianceStatus", - "required": true, - "type": "bool", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "值不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", + "document": "集团账号目标账号的名称。", + "example": "test", "member": "string", - "name": "KeysWithNonCompliantValues", - "required": true, - "type": "list", - "value_allowed_null": true + "name": "TargetName", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "键不合规的标签键列表。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "[]", + "document": "冲突策略。当CIC 用户同步到 CAM 时,如果 CAM 中存在同名用户时的处理策略。取值: KeepBoth:两者都保留。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则对CIC 用户的用户名添加后缀_cic后尝试创建该用户名的 CAM 用户。 TakeOver:替换。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则直接将已经存在的 CAM 用户替换为CIC 同步用户。", + "example": "KeepBoth", "member": "string", - "name": "NonCompliantKeys", - "required": true, - "type": "list", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "Tags": { - "document": "标签键值对", - "members": [ + "name": "DuplicationStrategy", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, { "disabled": false, - "document": "标签键。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "删除策略。删除 CAM 用户同步时,对已同步的 CAM 用户的处理策略。取值: Delete:删除。删除 CAM 用户同步时,会删除从CIC 已经同步到 CAM 中的 CAM 用户。 Keep:保留。删除 RAM 用户同步时,会保留从CIC 已经同步到 CAM 中的 CAM 用户。", + "example": "Delete", "member": "string", - "name": "TagKey", - "required": true, + "name": "DeletionStrategy", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true + "value_allowed_null": false }, { "disabled": false, - "document": "标签值。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "\"\"", + "document": "创建时间。", + "example": "2024-01-01 12:12:12", "member": "string", - "name": "TagValue", - "required": true, + "name": "CreateTime", + "output_required": true, + "required": false, "type": "string", - "value_allowed_null": true - } - ], - "usage": "out" - }, - "UpdateOrganizationIdentityRequest": { - "document": "UpdateOrganizationIdentity请求参数结构体", - "members": [ - { - "disabled": false, - "document": "身份ID。可以通过[ListOrganizationIdentity](https://cloud.tencent.com/document/product/850/82934)获取", - "example": "1", - "member": "uint64", - "name": "IdentityId", - "required": true, - "type": "int" + "value_allowed_null": false }, { "disabled": false, - "document": "身份描述。", - "example": "\"\"", + "document": "更新时间。", + "example": "2024-01-01 12:12:12", "member": "string", - "name": "Description", - "required": true, - "type": "string" + "name": "UpdateTime", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "身份策略。", - "example": "无", - "member": "IdentityPolicy", - "name": "IdentityPolicy", - "required": true, - "type": "list" - } - ], - "type": "object" - }, - "UpdateOrganizationIdentityResponse": { - "document": "UpdateOrganizationIdentity返回参数结构体", - "members": [ - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", "member": "string", - "name": "RequestId", - "type": "string" + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false } ], - "type": "object" + "usage": "both" }, - "UpdateOrganizationMemberEmailBindRequest": { - "document": "UpdateOrganizationMemberEmailBind请求参数结构体", + "UserProvisioningsTask": { + "document": "用户同步任务状态信息。", "members": [ { "disabled": false, - "document": "成员Uin。", - "example": "111111111111", - "member": "int64", - "name": "MemberUin", - "required": true, - "type": "int" + "document": "任务ID。", + "example": "InProgress", + "member": "string", + "name": "TaskId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "绑定ID。可以通过[DescribeOrganizationMemberEmailBind](https://cloud.tencent.com/document/product/850/93332)获取", - "example": "12", + "document": "授权的集团账号目标账号的UIN", + "example": "100000232323", "member": "int64", - "name": "BindId", - "required": true, - "type": "int" + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "邮箱地址。", - "example": "12***@qq.com", + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", "member": "string", - "name": "Email", - "required": true, - "type": "string" + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "国际区号。", - "example": "86", + "document": "任务类型。StartProvisioning:用户同步,DeleteProvisioning:删除用户同步", + "example": "StartProvisioning", "member": "string", - "name": "CountryCode", - "required": true, - "type": "string" + "name": "TaskType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "手机号。", - "example": "18***32", - "member": "string", - "name": "Phone", - "required": true, - "type": "string" - } - ], - "type": "object" - }, - "UpdateOrganizationMemberEmailBindResponse": { - "document": "UpdateOrganizationMemberEmailBind返回参数结构体", - "members": [ - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "document": "任务状态:InProgress: 进行中,Failed: 失败 3:Success: 成功", + "example": "InProgress", "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, - "UpdateOrganizationMemberRequest": { - "document": "UpdateOrganizationMember请求参数结构体", - "members": [ - { - "disabled": false, - "document": "成员Uin。", - "example": "111111111111", - "member": "uint64", - "name": "MemberUin", - "required": true, - "type": "int" + "name": "TaskStatus", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "成员名称。最大长度为25个字符,支持英文字母、数字、汉字、符号+@、&._[]-:,", - "example": "name", + "document": "用户同步ID。", + "example": "ur-ska9dhw", "member": "string", - "name": "Name", + "name": "UserProvisioningId", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "备注。最大长度为40个字符", - "example": "remark", + "document": " CAM 用户同步的身份 ID。取值: 当PrincipalType取值为Group时,该值为CIC 用户组 ID(g-********)。 当PrincipalType取值为User时,该值为CIC 用户 ID(u-********)。", + "example": "u-cm9xjsw***", "member": "string", - "name": "Remark", + "name": "PrincipalId", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "关系策略类型。PolicyType不为空,PermissionIds不能为空。取值:Financial", - "example": "\"\"", + "document": "CAM 用户同步的身份类型。取值: User:表示该 CAM 用户同步的身份是CIC 用户。 Group:表示该 CAM 用户同步的身份是CIC 用户组。", + "example": "User", "member": "string", - "name": "PolicyType", + "name": "PrincipalType", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "成员财务权限ID列表。PermissionIds不为空,PolicyType不能为空。\n取值:1-查看账单、2-查看余额、3-资金划拨、4-合并出账、5-开票、6-优惠继承、7-代付费、8-成本分析,如果有值,1、2 默认必须", - "example": "无", - "member": "uint64", - "name": "PermissionIds", + "document": "用户或者用户组名称。", + "example": "test", + "member": "string", + "name": "PrincipalName", + "output_required": true, "required": false, - "type": "list" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "是否允许成员退出组织。取值:Allow-允许、Denied-不允许", - "example": "\"\"", + "document": "冲突策略。KeepBoth:两者都保留;TakeOver:替换", + "example": "KeepBoth", "member": "string", - "name": "IsAllowQuit", + "name": "DuplicationStrategy", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "代付者Uin。成员财务权限有代付费时需要,取值为成员对应主体的主体管理员Uin", - "example": "\"\"", + "document": "删除策略。Delete:删除;Keep:保留", + "example": "Delete", "member": "string", - "name": "PayUin", + "name": "DeletionStrategy", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false } ], - "type": "object" + "usage": "both" }, - "UpdateOrganizationMemberResponse": { - "document": "UpdateOrganizationMember返回参数结构体", + "UserSyncProvisioning": { + "document": "CAM用户同步信息", "members": [ { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "描述。", + "example": "this is cam user provisioning", "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, - "UpdateOrganizationNodeRequest": { - "document": "UpdateOrganizationNode请求参数结构体", - "members": [ + "name": "Description", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, { "disabled": false, - "document": "节点ID。可以通过[DescribeOrganizationNodes](https://cloud.tencent.com/document/product/850/82926)获取", - "example": "1001", - "member": "uint64", - "name": "NodeId", - "required": true, - "type": "int" + "document": "CAM 用户同步的身份 ID。取值:\n当PrincipalType取值为Group时,该值为CIC用户组 ID(g-********)。\n当PrincipalType取值为User时,该值为CIC用户 ID(u-********)。", + "example": "u-xuec8dnd", + "member": "string", + "name": "PrincipalId", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "节点名称。最大长度为40个字符,支持英文字母、数字、汉字、符号+@、&._[]-", - "example": "name", + "document": "CAM 用户同步的身份类型。取值:\n\nUser:表示该 CAM 用户同步的身份是CIC用户。\nGroup:表示该 CAM 用户同步的身份是CIC用户组。", + "example": "User", "member": "string", - "name": "Name", + "name": "PrincipalType", + "output_required": true, "required": false, - "type": "string" + "type": "string", + "value_allowed_null": false }, { "disabled": false, - "document": "备注。", - "example": "remark", + "document": "同步的集团账号目标账号的UIN。", + "example": "100003829343", + "member": "int64", + "name": "TargetUin", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "冲突策略。当CIC 用户同步到 CAM 时,如果 CAM 中存在同名用户时的处理策略。取值: KeepBoth:两者都保留。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则对CIC 用户的用户名添加后缀_cic后尝试创建该用户名的 CAM 用户。 TakeOver:替换。当CIC 用户被同步到 CAM 时,如果 CAM 已经存在同名用户,则直接将已经存在的 CAM 用户替换为CIC 同步用户。", + "example": "KeepBoth", "member": "string", - "name": "Remark", + "name": "DuplicationStrategy", + "output_required": true, "required": false, - "type": "string" - } - ], - "type": "object" - }, - "UpdateOrganizationNodeResponse": { - "document": "UpdateOrganizationNode返回参数结构体", - "members": [ + "type": "string", + "value_allowed_null": false + }, { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "disabled": false, + "document": "删除策略。删除 CAM 用户同步时,对已同步的 CAM 用户的处理策略。取值: Delete:删除。删除 CAM 用户同步时,会删除从CIC 已经同步到 CAM 中的 CAM 用户。 Keep:保留。删除 RAM 用户同步时,会保留从CIC 已经同步到 CAM 中的 CAM 用户。", + "example": "Delete", "member": "string", - "name": "RequestId", - "type": "string" + "name": "DeletionStrategy", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "同步的集团账号目标账号的类型,ManagerUin管理账号;MemberUin成员账号", + "example": "MemberUin", + "member": "string", + "name": "TargetType", + "output_required": true, + "required": false, + "type": "string", + "value_allowed_null": false } ], - "type": "object" + "usage": "both" }, - "UpdatePolicyRequest": { - "document": "UpdatePolicy请求参数结构体", + "ZoneStatistics": { + "document": "CIC的空间统计", "members": [ { "disabled": false, - "document": "需要编辑的策略ID。可以调用[ListPolicies](https://cloud.tencent.com/document/product/850/105311)获取", - "example": "100001", + "document": "用户配额。", + "example": "1000", "member": "int64", - "name": "PolicyId", - "required": true, - "type": "int" + "name": "UserQuota", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "策略描述。", - "example": "全读写权限", - "member": "string", - "name": "Description", + "document": "用户组配额。", + "example": "500", + "member": "int64", + "name": "GroupQuota", + "output_required": true, "required": false, - "type": "string" + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "策略内容。参考CAM策略语法", - "example": "{\"version\":\"2.0\",\"statement\":[{\"effect\":\"allow\",\"action\":\"*\",\"resource\":\"*\"}]}", - "member": "string", - "name": "Content", + "document": "权限配置配额。", + "example": "1000", + "member": "int64", + "name": "RoleConfigurationQuota", + "output_required": true, "required": false, - "type": "string" + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "策略名。长度为1~128个字符,可以包含汉字、英文字母、数字和下划线(_)", - "example": "FullAccessPolicy", - "member": "string", - "name": "Name", + "document": "权限配置绑定的系统策略配额。", + "example": "20", + "member": "int64", + "name": "SystemPolicyPerRoleConfigurationQuota", + "output_required": true, "required": false, - "type": "string" + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "策略类型。默认值SERVICE_CONTROL_POLICY,取值范围:SERVICE_CONTROL_POLICY-服务控制策略、TAG_POLICY-标签策略", - "example": "SERVICE_CONTROL_POLICY", - "member": "string", - "name": "Type", + "document": "用户数。", + "example": "12", + "member": "int64", + "name": "UserCount", + "output_required": true, "required": false, - "type": "string" - } - ], - "type": "object" - }, - "UpdatePolicyResponse": { - "document": "UpdatePolicy返回参数结构体", - "members": [ - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" - } - ], - "type": "object" - }, - "UpdateShareUnitRequest": { - "document": "UpdateShareUnit请求参数结构体", - "members": [ + "type": "int", + "value_allowed_null": false + }, { "disabled": false, - "document": "共享单元ID。", - "example": "shareUnit-xhreo**2p", - "member": "string", - "name": "UnitId", - "required": true, - "type": "string" + "document": "用户组数。", + "example": "10", + "member": "int64", + "name": "GroupCount", + "output_required": true, + "required": false, + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "共享单元名称。仅支持大小写字母、数字、-、以及_的组合,3-128个字符。", - "example": "myShareUnit", - "member": "string", - "name": "Name", + "document": "权限配置数", + "example": "3", + "member": "int64", + "name": "RoleConfigurationCount", + "output_required": true, "required": false, - "type": "string" + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "共享单元描述。最大128个字符。", - "example": "share unit", - "member": "string", - "name": "Description", + "document": "同步用户数。", + "example": "12", + "member": "int64", + "name": "UserProvisioningCount", + "output_required": true, "required": false, - "type": "string" + "type": "int", + "value_allowed_null": false }, { "disabled": false, - "document": "共享范围。取值:1-仅允许集团组织内共享 2-允许共享给任意账号,默认值:1", - "example": "1", - "member": "uint64", - "name": "ShareScope", + "document": "同步角色数。", + "example": "10", + "member": "int64", + "name": "RoleConfigurationSyncCount", + "output_required": true, "required": false, - "type": "int" - } - ], - "type": "object" - }, - "UpdateShareUnitResponse": { - "document": "UpdateShareUnit返回参数结构体", - "members": [ - { - "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", - "member": "string", - "name": "RequestId", - "type": "string" + "type": "int", + "value_allowed_null": false } ], - "type": "object" + "usage": "both" } }, "version": "1.0" diff --git a/tccli/services/organization/v20210331/examples.json b/tccli/services/organization/v20210331/examples.json index 420058fab0..4daa689d6d 100644 --- a/tccli/services/organization/v20210331/examples.json +++ b/tccli/services/organization/v20210331/examples.json @@ -8,6 +8,14 @@ "title": "接受加入共享单元邀请" } ], + "AddExternalSAMLIdPCertificate": [ + { + "document": "添加SAML签名证书", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddExternalSAMLIdPCertificate\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dsj3ieme\",\n \"X509Certificate\": \"nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY*****\"\n}", + "output": "{\n \"Response\": {\n \"CertificateId\": \"idp-c-2jd8923je29****\",\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "添加SAML签名证书" + } + ], "AddOrganizationMemberEmail": [ { "document": "", @@ -24,6 +32,14 @@ "title": "添加企业组织节点" } ], + "AddPermissionPolicyToRoleConfiguration": [ + { + "document": "为权限配置添加策略", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddPermissionPolicyToRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-29wm2iwn\",\n \"RoleConfigurationId\": \"rc-aiwmsiw\",\n \"RolePolicyType\": \"System\",\n \"RolePolicyNames\": [\n \"TestPolicy\"\n ],\n \"CustomPolicyDocument\": \"\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "为权限配置添加策略" + } + ], "AddShareUnit": [ { "document": "", @@ -48,6 +64,14 @@ "title": "添加共享单元资源" } ], + "AddUserToGroup": [ + { + "document": "为用户组添加用户", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: AddUserToGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d8dh38bd\",\n \"GroupId\": \"g-dsuen8n\",\n \"UserId\": \"u-s3ndin23\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "为用户组添加用户" + } + ], "AttachPolicy": [ { "document": "绑定策略", @@ -80,6 +104,22 @@ "title": "成员账号删除检查" } ], + "ClearExternalSAMLIdentityProvider": [ + { + "document": "清空SAML身份提供商配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ClearExternalSAMLIdentityProvider\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-du3jd83***\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "清空SAML身份提供商配置信息" + } + ], + "CreateGroup": [ + { + "document": "创建用户组", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-7cbs6s6gs***\",\n \"GroupName\": \"testGroup\",\n \"Description\": \"this is group\"\n}", + "output": "{\n \"Response\": {\n \"GroupInfo\": {\n \"GroupName\": \"testGroup\",\n \"Description\": \"this is group\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"GroupType\": \"Manual\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"GroupId\": \"g-8sh7baix****\",\n \"MemberCount\": 0\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "创建用户组" + } + ], "CreateOrgServiceAssign": [ { "document": "", @@ -144,6 +184,38 @@ "title": "创建策略" } ], + "CreateRoleAssignment": [ + { + "document": " 在成员账号上授权", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoleAssignment\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw83n***\",\n \"RoleAssignmentInfo\": [\n {\n \"RoleConfigurationId\": \"rc-sjsiw2***\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000023222,\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-0829jd8d***\"\n }\n ]\n}", + "output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-sowmiwm\",\n \"RoleConfigurationId\": \"r-sjsosmsss\",\n \"RoleConfigurationName\": \"test\",\n \"TargetUin\": 10000323432,\n \"TargetType\": \"MemberUin\",\n \"PrincipalId\": \"u-djiem3o***\",\n \"PrincipalType\": \"User\",\n \"TaskType\": \"CreateRoleAssignment\",\n \"Status\": \"InProgress\"\n }\n ],\n \"RequestId\": \"10accfa5-15ed-41fa-9e09-7efffd8e9345\"\n }\n}", + "title": " 在成员账号上授权" + } + ], + "CreateRoleConfiguration": [ + { + "document": "创建权限配置", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-33923n\",\n \"RoleConfigurationName\": \"test\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\"\n}", + "output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"test\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "创建权限配置" + } + ], + "CreateUser": [ + { + "document": "创建用户", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-33w3je****\",\n \"UserName\": \"Alice\",\n \"FirstName\": \"Alice\",\n \"LastName\": \"Alice\",\n \"DisplayName\": \"Alice\",\n \"Description\": \"this is user\",\n \"Email\": \"Alice@example.com\",\n \"UserStatus\": \"Enabled\"\n}", + "output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"Alice\",\n \"FirstName\": \"Alice\",\n \"LastName\": \"Alice\",\n \"DisplayName\": \"Alice\",\n \"Description\": \"this is user\",\n \"Email\": \"Alice@example.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-2342ds2s\",\n \"CreateTime\": \"2024-02-02 12:12:12\",\n \"UpdateTime\": \"2024-02-02 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "创建用户" + } + ], + "CreateUserSyncProvisioning": [ + { + "document": "创建子用户同步任务", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-di3nd8e***\",\n \"UserSyncProvisionings\": [\n {\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"Description\": \"this is cam user sync provisioning\",\n \"PrincipalId\": \"u-sienmcien\",\n \"PrincipalType\": \"User\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000234382342\n }\n ]\n}", + "output": "{\n \"Response\": {\n \"Tasks\": [\n {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"StartProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"test\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}", + "title": "创建子用户同步任务" + } + ], "DeleteAccount": [ { "document": "删除成员账号", @@ -152,6 +224,14 @@ "title": "删除成员账号" } ], + "DeleteGroup": [ + { + "document": "删除用户组", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d8d7djd***\",\n \"GroupId\": \"g-sudnd7d88\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "删除用户组" + } + ], "DeleteOrgServiceAssign": [ { "document": "", @@ -216,6 +296,22 @@ "title": "删除策略" } ], + "DeleteRoleAssignment": [ + { + "document": "移除成员账号上的授权", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRoleAssignment\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2ms923mw\",\n \"RoleConfigurationId\": \"rc-smw9em32\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 10000332,\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-siwnwiene\",\n \"DeprovisionStrategy\": \"DeprovisionForLastRoleAssignmentOnAccount\"\n}", + "output": "{\n \"Response\": {\n \"Task\": {\n \"TaskId\": \"t-0md93jfd3\",\n \"RoleConfigurationId\": \"rc-dsk3323\",\n \"RoleConfigurationName\": \"test\",\n \"TargetUin\": 100032333,\n \"TargetType\": \"MemberUin\",\n \"PrincipalId\": \"u-siwnwiene\",\n \"PrincipalType\": \"User\",\n \"TaskType\": \"DeleteRolesAssignment\",\n \"Status\": \"InProgress\"\n },\n \"RequestId\": \"abc\"\n }\n}", + "title": "移除成员账号上的授权" + } + ], + "DeleteRoleConfiguration": [ + { + "document": "删除权限配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2jsoi3ms\",\n \"RoleConfigurationId\": \"rc-ais2ismwo2\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "删除权限配置信息" + } + ], "DeleteShareUnit": [ { "document": "", @@ -240,6 +336,22 @@ "title": "删除共享单元资源" } ], + "DeleteUser": [ + { + "document": "删除用户", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-33mdo34md\",\n \"UserId\": \"u-2sks3m2\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}", + "title": "删除用户" + } + ], + "DeleteUserSyncProvisioning": [ + { + "document": "删除子用户同步任务", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dssmowmsd\",\n \"UserProvisioningId\": \"up-sxins8snds\"\n}", + "output": "{\n \"Response\": {\n \"Tasks\": {\n \"TaskId\": \"t-duedin****\",\n \"TargetUin\": 1000289211,\n \"TargetType\": \"MemberUin\",\n \"TaskType\": \"DeleteProvisioning\",\n \"TaskStatus\": \"InProgress\",\n \"UserProvisioningId\": \"upe-d8n3d9***\",\n \"PrincipalId\": \"u-dend83***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"test\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "删除子用户同步任务" + } + ], "DescribeEffectivePolicy": [ { "document": "查询目标关联的有效策略", @@ -248,6 +360,14 @@ "title": "查询目标关联的有效策略" } ], + "DescribeIdentityCenter": [ + { + "document": "获取用户cam身份中心服务信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeIdentityCenter\n<公共请求参数>\n\n{}", + "output": "{\n \"Response\": {\n \"CreateTime\": \"2024-05-30 10:50:11\",\n \"RequestId\": \"da9a32a5-f6d5-4ef5-be20-0ee16b63bb6d\",\n \"ScimSyncStatus\": \"Disabled\",\n \"ServiceStatus\": \"Enabled\",\n \"UpdateTime\": \"2024-06-25 10:08:21\",\n \"ZoneId\": \"z-vft38p2hq8tq\",\n \"ZoneName\": \"testwu\"\n }\n}", + "title": "获取用户cam身份中心服务信息" + } + ], "DescribeOrganization": [ { "document": "", @@ -400,6 +520,14 @@ "title": "禁用策略类型" } ], + "DismantleRoleConfiguration": [ + { + "document": "解除权限配置在成员账号上的部署", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DismantleRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-disanisa\",\n \"RoleConfigurationId\": \"rc-daosmqa\",\n \"TargetType\": \"Member\",\n \"TargetUin\": 1000023292\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"d95c7cc0-195d-4818-aa3a-e7dc73eafe37\",\n \"Task\": {\n \"RoleConfigurationId\": \"rc-4plmus8fdfsb\",\n \"RoleConfigurationName\": \"testConfiguration1\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 700000145543,\n \"TaskId\": \"t-2xdmzwphpsbd\",\n \"TaskStatus\": \"InProgress\",\n \"TaskType\": \"CreateRoleAssignment\"\n }\n }\n}", + "title": "解除权限配置在成员账号上的部署" + } + ], "EnablePolicyType": [ { "document": "启用策略类型", @@ -408,6 +536,110 @@ "title": "启用策略类型" } ], + "GetExternalSAMLIdentityProvider": [ + { + "document": "查询SAML身份提供商配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetExternalSAMLIdentityProvider\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dm239d****\"\n}", + "output": "{\n \"Response\": {\n \"SAMLIdentityProviderConfiguration\": {\n \"EntityId\": \"http://www.okta.com/2jd83ne9m*****\",\n \"SSOStatus\": \"Enabled\",\n \"EncodedMetadataDocument\": \"PD94bWwgdmVyc2lvbj0iMS4wIj8+CjxFbnRpdHlEZXNjcmlwdG9yIHhtbG5zPSJ1cm46b2FzaXM6bmFtZXM6dGM6U0FNTDoydpbi5jb20vc2FtbC9tZXRhZGF0YS8xN2NkYjEyOC03N**********\",\n \"CertificateIds\": [\n \"idp-c-2jd8923je29****\"\n ],\n \"LoginUrl\": \"https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/2jd83ne9m****/sso/saml\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n },\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "查询SAML身份提供商配置信息" + } + ], + "GetGroup": [ + { + "document": "查询用户组信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-ws9sdj8****\",\n \"GroupId\": \"g-sushsia7s8\"\n}", + "output": "{\n \"Response\": {\n \"GroupInfo\": {\n \"GroupName\": \"testGroup\",\n \"Description\": \"this is group\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"GroupType\": \"Manual\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"GroupId\": \"g-sushsia7s8\",\n \"MemberCount\": 20\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询用户组信息" + } + ], + "GetProvisioningTaskStatus": [ + { + "document": "查询用户同步异步任务的状态", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetProvisioningTaskStatus\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw98wnd***\",\n \"TaskId\": \"t-d8wjd8j3****\"\n}", + "output": "{\n \"Response\": {\n \"TaskStatus\": {\n \"Status\": \"Success\",\n \"TaskId\": \"z-dnsudniw****\",\n \"TaskType\": \"StartProvisioning\",\n \"FailureReason\": \"\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "查询用户同步异步任务的状态" + } + ], + "GetRoleConfiguration": [ + { + "document": "查询权限配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2s2osm2***\",\n \"RoleConfigurationId\": \"rc-odmo23w\"\n}", + "output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"test\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询权限配置信息" + } + ], + "GetTaskStatus": [ + { + "document": "查询异步任务的状态", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetTaskStatus\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dsiwnw***\",\n \"TaskId\": \"t-duxj***\"\n}", + "output": "{\n \"Response\": {\n \"TaskStatus\": {\n \"Status\": \"Success\",\n \"TaskId\": \"z-dksodm***\",\n \"TaskType\": \"ProvisionRoleConfiguration\",\n \"FailureReason\": \"fielded\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询异步任务的状态" + } + ], + "GetUser": [ + { + "document": "查询用户信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetUser\n<公共请求参数>\n\n{\n \"UserId\": \"u-4i293bf3indh\",\n \"ZoneId\": \"z-hfp2qqncf343\"\n}", + "output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"test\",\n \"FirstName\": \"test\",\n \"LastName\": \"test\",\n \"DisplayName\": \"test\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-2jsal3jdxk\",\n \"CreateTime\": \"2024-03-12 12:12:12\",\n \"UpdateTime\": \"2024-03-12 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}", + "title": "查询用户信息" + } + ], + "GetUserSyncProvisioning": [ + { + "document": "查询CAM用户同步", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dimd3d***\",\n \"UserProvisioningId\": \"up-imei3rdiem\"\n}", + "output": "{\n \"Response\": {\n \"UserProvisioning\": {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"test\",\n \"PrincipalType\": \"User\",\n \"TargetUin\": \"10000338332\",\n \"TargetName\": \"test\",\n \"TargetType\": \"MemberUin\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询CAM用户同步" + } + ], + "GetZoneSAMLServiceProviderInfo": [ + { + "document": "查询SAML服务提供商配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetZoneSAMLServiceProviderInfo\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-di3d9em***\"\n}", + "output": "{\n \"Response\": {\n \"SAMLServiceProvider\": {\n \"EntityId\": \"https://tencentcloudsso.com/saml/sp/z-doekeie****\",\n \"ZoneId\": \"z-doekeie****\",\n \"EncodedMetadataDocument\": \"JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5nJTNEJTIy***\",\n \"AcsUrl\": \"https://tencentcloudsso.com/saml/acs/d9wjd-d93je9-2me****\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询SAML服务提供商配置信息" + } + ], + "GetZoneStatistics": [ + { + "document": "查询空间的统计信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: GetZoneStatistics\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-siwns82n****\"\n}", + "output": "{\n \"Response\": {\n \"ZoneStatistics\": {\n \"UserQuota\": 1000,\n \"GroupQuota\": 500,\n \"RoleConfigurationQuota\": 1000,\n \"SystemPolicyPerRoleConfigurationQuota\": 20,\n \"UserCount\": 10,\n \"GroupCount\": 2,\n \"RoleConfigurationCount\": 3,\n \"UserProvisioningCount\": 0,\n \"RoleConfigurationSyncCount\": 0\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询空间的统计信息" + } + ], + "ListExternalSAMLIdPCertificates": [ + { + "document": "查询SAML签名证书列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListExternalSAMLIdPCertificates\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-xj239dj23***\"\n}", + "output": "{\n \"Response\": {\n \"TotalCounts\": 20,\n \"SAMLIdPCertificates\": [\n {\n \"SerialNumber\": \"1347934239****\",\n \"Issuer\": \"5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta\",\n \"Version\": \"1\",\n \"CertificateId\": \"idp-c-2jd8923je29****\",\n \"PublicKey\": \"nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****\",\n \"SignatureAlgorithm\": \"SHA256withRSA\",\n \"NotAfter\": \"2030-06-23 07:04:37\",\n \"NotBefore\": \"2010-06-23 07:04:37\",\n \"Subject\": \"5.6.54.22.1.9.1=#dj39dj39e3w9rm3e2e3****,CN=dev-xxxxxx,OU=SSOProvider,O=Okta\",\n \"X509Certificate\": \"nMIIBtjCCAVugAwIBAgITBmyf1XSXNmY****\"\n }\n ],\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "查询SAML签名证书列表" + } + ], + "ListGroupMembers": [ + { + "document": "查询用户组中的用户列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListGroupMembers\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-ds932j9m3\",\n \"GroupId\": \"g29sn2389e\",\n \"NextToken\": \"\",\n \"MaxResults\": 10\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"GroupMembers\": [\n {\n \"UserName\": \"test\",\n \"DisplayName\": \"test\",\n \"Description\": \"this is test user\",\n \"Email\": \"123456@qq.com\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-d032med3\",\n \"JoinTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询用户组中的用户列表" + } + ], + "ListGroups": [ + { + "document": "查询用户组列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListGroups\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-32s7dhd8s***\",\n \"MaxResults\": \"20\",\n \"GroupType\": \"Manual\"\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZD******\",\n \"Groups\": [\n {\n \"GroupName\": \"testGroup\",\n \"Description\": \"thsi is group\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"GroupType\": \"Manual\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"GroupId\": \"g-q8shs8h****\",\n \"MemberCount\": 20\n }\n ],\n \"MaxResults\": 10,\n \"TotalCounts\": 30,\n \"IsTruncated\": true,\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "查询用户组列表" + } + ], + "ListJoinedGroupsForUser": [ + { + "document": "查询用户加入的用户组", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListJoinedGroupsForUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2o3meo3\",\n \"UserId\": \"u-3od3e3d\",\n \"NextToken\": \"\",\n \"MaxResults\": 10\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"JoinedGroups\": [\n {\n \"GroupName\": \"testGroup\",\n \"Description\": \"this is testGroup\",\n \"GroupId\": \"g-s23nw3e\",\n \"GroupType\": \"Manual\",\n \"JoinTime\": \"2021-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询用户加入的用户组" + } + ], "ListNonCompliantResource": [ { "document": "获取成员标签检测不合规资源列表", @@ -440,6 +672,14 @@ "title": "获取集团服务设置列表" } ], + "ListPermissionPoliciesInRoleConfiguration": [ + { + "document": "获取权限配置中的策略列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListPermissionPoliciesInRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d83js823n\",\n \"RoleConfigurationId\": \"rc-s93jw3ns\",\n \"RolePolicyType\": \"System\"\n}", + "output": "{\n \"Response\": {\n \"TotalCounts\": 20,\n \"RolePolicies\": [\n {\n \"RolePolicyName\": \"adminPolciy\",\n \"RolePolicyType\": \"System\",\n \"RolePolicyDocument\": \"\",\n \"AddTime\": \"2020-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "获取权限配置中的策略列表" + } + ], "ListPolicies": [ { "document": "查看策略列表数据", @@ -456,6 +696,30 @@ "title": "查询目标关联的策略列表" } ], + "ListRoleAssignments": [ + { + "document": "查询授权列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleAssignments\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-ssmdsowm**\",\n \"RoleConfigurationId\": \"rc2-as245usjsm\",\n \"MaxResults\": 30,\n \"NextToken\": \"\",\n \"TargetType\": \"MemeberUin\",\n \"TargetUin\": \"10000238922\",\n \"PrincipalType\": \"User\",\n \"PrincipalId\": \"u-ss342md**\"\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"abc\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"RoleAssignments\": [\n {\n \"RoleConfigurationId\": \"ec-swidn****\",\n \"RoleConfigurationName\": \"test\",\n \"TargetUin\": 100000322,\n \"TargetType\": \"MemberUin\",\n \"TargetName\": \"test\",\n \"PrincipalId\": \"u-ssiisn***\",\n \"PrincipalType\": \"User\",\n \"PrincipalName\": \"testConfig\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询授权列表" + } + ], + "ListRoleConfigurationProvisionings": [ + { + "document": " 查询权限配置部署列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfigurationProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d8wj\",\n \"RoleConfigurationId\": \"up-dnsisns***\",\n \"MaxResults\": 20,\n \"NextToken\": \"abc\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 1000329122,\n \"DeploymentStatus\": \"DeployedRequired\",\n \"Filter\": \"test\"\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"RoleConfigurationProvisionings\": [\n {\n \"DeploymentStatus\": \"DeployedRequired\",\n \"RoleConfigurationId\": \"rc-sjwiwm2ww**\",\n \"RoleConfigurationName\": \"testConfiguration\",\n \"TargetUin\": 10003292021,\n \"TargetName\": \"test\",\n \"TargetType\": \"MemberUin\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": " 查询权限配置部署列表" + } + ], + "ListRoleConfigurations": [ + { + "document": "查询权限配置列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-s9h39sdn2\",\n \"NextToken\": \"sisndpmfisdnlk\",\n \"MaxResults\": 10,\n \"Filter\": \"RoleConfigurationName eqTestRoleConfiguration\"\n}", + "output": "{\n \"Response\": {\n \"TotalCounts\": 20,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"NextToken\": \"3si2ns92ns82bos\",\n \"RoleConfigurations\": [\n {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"test\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "查询权限配置列表" + } + ], "ListTargetsForPolicy": [ { "document": "查询某个指定策略关联的目标列表", @@ -464,6 +728,30 @@ "title": "查询某个指定策略关联的目标列表" } ], + "ListTasks": [ + { + "document": "查询异步任务列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListTasks\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djwidnwidj\",\n \"PrincipalId\": \"u-xj8sncidnc\",\n \"NextToken\": \"xownw8db38dbe8fne==-\",\n \"MaxResults\": 1,\n \"PrincipalType\": \"User\",\n \"TargetUin\": 1000023423,\n \"TargetType\": \"Member\",\n \"RoleConfigurationId\": \"rc-xjw9dsmw\",\n \"Status\": \"InProgress\",\n \"TaskType\": \"CreateRoleAssignment\"\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"abc\",\n \"TotalCounts\": 0,\n \"MaxResults\": 0,\n \"IsTruncated\": true,\n \"Tasks\": [\n {\n \"TaskId\": \"t-xsinsxinsdk\",\n \"RoleConfigurationId\": \"rc-xmw9xjdsd\",\n \"RoleConfigurationName\": \"配置\",\n \"TargetUin\": 1000232234,\n \"TargetType\": \"User\",\n \"PrincipalId\": \"u-xm89dnsujs\",\n \"PrincipalType\": \"Member\",\n \"TaskType\": \"CreateRoleAssignment\",\n \"Status\": \"InProgress\",\n \"FailureReason\": \"test\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "查询异步任务列表" + } + ], + "ListUserSyncProvisionings": [ + { + "document": "查询CAM用户同步列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListUserSyncProvisionings\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dsjsisnus\",\n \"PrincipalId\": \"u-sjs9smss\",\n \"NextToken\": \"\",\n \"MaxResults\": 10,\n \"PrincipalType\": \"User\",\n \"TargetUin\": 100003324902,\n \"TargetType\": \"MemberUin\",\n \"Filter\": \"test\"\n}", + "output": "{\n \"Response\": {\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"TotalCounts\": 30,\n \"MaxResults\": 10,\n \"IsTruncated\": true,\n \"UserProvisionings\": [\n {\n \"UserProvisioningId\": \"up-siwnei3nso\",\n \"Description\": \"this is cam user sync\",\n \"Status\": \"Enabled\",\n \"PrincipalId\": \"u-swnd8wn3\",\n \"PrincipalName\": \"test\",\n \"PrincipalType\": \"User\",\n \"TargetUin\": \"10000338332\",\n \"TargetName\": \"test\",\n \"DuplicationStrategy\": \"KeepBoth\",\n \"DeletionStrategy\": \"Delete\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"TargetType\": \"MemberUin\"\n }\n ],\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "查询CAM用户同步列表" + } + ], + "ListUsers": [ + { + "document": "查询用户列表", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListUsers\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2sw22w3\"\n}", + "output": "{\n \"Response\": {\n \"TotalCounts\": 50,\n \"MaxResults\": 20,\n \"Users\": [\n {\n \"UserName\": \"test\",\n \"FirstName\": \"test\",\n \"LastName\": \"test\",\n \"DisplayName\": \"test\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example\",\n \"UserStatus\": \"Enabled\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-2s334e3***\",\n \"CreateTime\": \"2024-03-12 12:12:12\",\n \"UpdateTime\": \"2024-03-12 12:12:12\"\n }\n ],\n \"NextToken\": \"OTM0YzE4MzY2ZjdhMWM0MYZDhnYaxsiYTLI=\",\n \"IsTruncated\": true,\n \"RequestId\": \"e297543a-80de-4039-83c8-9d35d4545\"\n }\n}", + "title": "查询用户列表" + } + ], "MoveOrganizationNodeMembers": [ { "document": "", @@ -472,6 +760,22 @@ "title": "移动成员到指定企业组织节点" } ], + "OpenIdentityCenter": [ + { + "document": "开通CIC服务", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: OpenIdentityCenter\n<公共请求参数>\n\n{\n \"ZoneName\": \"testName\"\n}", + "output": "{\n \"Response\": {\n \"ZoneId\": \"z-dj3jk*****\",\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324f45\"\n }\n}", + "title": "开通CIC服务" + } + ], + "ProvisionRoleConfiguration": [ + { + "document": "将权限配置部署到成员账号上", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ProvisionRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-disndw****\",\n \"RoleConfigurationId\": \"rc-sians9wn****\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 10000293120\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"d95c7cc0-195d-4818-aa3a-e7dc73eafe37\",\n \"Task\": {\n \"RoleConfigurationId\": \"rc-4plmus8fdfsb\",\n \"RoleConfigurationName\": \"testConfiguration1\",\n \"TargetType\": \"MemberUin\",\n \"TargetUin\": 700000145543,\n \"TaskId\": \"t-2xdmzwphpsbd\",\n \"TaskStatus\": \"InProgress\",\n \"TaskType\": \"CreateRoleAssignment\"\n }\n }\n}", + "title": "将权限配置部署到成员账号上" + } + ], "QuitOrganization": [ { "document": "", @@ -488,6 +792,46 @@ "title": "拒绝加入共享单元邀请" } ], + "RemoveExternalSAMLIdPCertificate": [ + { + "document": "移除SAML签名证书", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveExternalSAMLIdPCertificate\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-2js923necd***\",\n \"CertificateId\": \"idp-c-2jd8923je29****\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "移除SAML签名证书" + } + ], + "RemovePermissionPolicyFromRoleConfiguration": [ + { + "document": "为权限配置移除策略", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemovePermissionPolicyFromRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-djw9dn3i****\",\n \"RoleConfigurationId\": \"rc-swidddws***\",\n \"RolePolicyType\": \"System\",\n \"RolePolicyName\": \"test\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "为权限配置移除策略" + } + ], + "RemoveUserFromGroup": [ + { + "document": "从用户组中移除用户", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: RemoveUserFromGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d83n8sn3\",\n \"GroupId\": \"g-du3n83nd\",\n \"UserId\": \"u-sd823ns82n\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "从用户组中移除用户" + } + ], + "SetExternalSAMLIdentityProvider": [ + { + "document": "配置SAML身份提供商信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetExternalSAMLIdentityProvider\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-d3ideodm***\",\n \"EncodedMetadataDocument\": \"JTNDJTNGeG1sJTIwdmVyc2lvbiUzRCUyMjEuMCUyMiUyMGVuY29kaW5******\",\n \"SSOStatus\": \"Enabled\",\n \"EntityId\": \"http://www.okta.com/xd83nd83nd****\",\n \"LoginUrl\": \"https://dev-xxxxxx.okta.com/app/dev-xxxxxx_cloudssodemo_1/xd83nd83nd****/sso/saml\",\n \"X509Certificate\": \"MIIC8DCCAdigAwIBAgIQP9eomUYGeoND****\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"2ccd7ed1-24b4-4882-8f4a-5580b430bce7\"\n }\n}", + "title": "配置SAML身份提供商信息" + } + ], + "UpdateGroup": [ + { + "document": "修改用户组信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateGroup\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-s8shs8bd***\",\n \"GroupId\": \"g-s8dhdn3\",\n \"NewGroupName\": \"testGroup\",\n \"NewDescription\": \"this is group.\"\n}", + "output": "{\n \"Response\": {\n \"GroupInfo\": {\n \"GroupName\": \"testGroup\",\n \"Description\": \"this is group\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"GroupType\": \"Manual\",\n \"UpdateTime\": \"2024-01-01 12:12:12\",\n \"GroupId\": \"g-w8hd8n***\",\n \"MemberCount\": 20\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "修改用户组信息" + } + ], "UpdateOrganizationIdentity": [ { "document": "", @@ -528,6 +872,14 @@ "title": "编辑策略" } ], + "UpdateRoleConfiguration": [ + { + "document": "修改权限配置信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateRoleConfiguration\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-22m23mo2\",\n \"RoleConfigurationId\": \"rc-ai3n9si2m\",\n \"NewDescription\": \"this is role configuration\",\n \"NewSessionDuration\": 900,\n \"NewRelayState\": \"https://console.cloud.tencent.com\"\n}", + "output": "{\n \"Response\": {\n \"RoleConfigurationInfo\": {\n \"RoleConfigurationId\": \"rc-s2ns92ns***\",\n \"RoleConfigurationName\": \"test\",\n \"Description\": \"this is role configuration\",\n \"SessionDuration\": 900,\n \"RelayState\": \"https://console.cloud.tencent.com\",\n \"CreateTime\": \"2019-01-01 12:12:12\",\n \"UpdateTime\": \"2019-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": "修改权限配置信息" + } + ], "UpdateShareUnit": [ { "document": "", @@ -535,6 +887,38 @@ "output": "{\n \"Response\": {\n \"RequestId\": \"42a5622f-d1bc-4d7f-b08a-01adc8d9cec9\"\n }\n}", "title": "更新共享单元" } + ], + "UpdateUser": [ + { + "document": "修改用户信息", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateUser\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-343nh23kn\",\n \"UserId\": \"u-3324sfdds\",\n \"NewFirstName\": \"test\",\n \"NewLastName\": \"test\",\n \"NewDisplayName\": \"test\",\n \"NewDescription\": \"this is user.\",\n \"NewEmail\": \"test@example.com\"\n}", + "output": "{\n \"Response\": {\n \"UserInfo\": {\n \"UserName\": \"test\",\n \"FirstName\": \"test\",\n \"LastName\": \"test\",\n \"DisplayName\": \"test\",\n \"Description\": \"this is user\",\n \"Email\": \"test@example.com\",\n \"UserStatus\": \"test\",\n \"UserType\": \"Manual\",\n \"UserId\": \"u-33sjadjsk\",\n \"CreateTime\": \"2024-01-01 12:12:12\",\n \"UpdateTime\": \"2024-01-01 12:12:12\"\n },\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}", + "title": "修改用户信息" + } + ], + "UpdateUserStatus": [ + { + "document": "修改用户状态", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateUserStatus\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-dwesfeas2\",\n \"UserId\": \"u-d3eedws\",\n \"NewUserStatus\": \"Disabled\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-34545s45\"\n }\n}", + "title": "修改用户状态" + } + ], + "UpdateUserSyncProvisioning": [ + { + "document": " 修改CAM用户同步", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateUserSyncProvisioning\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-susn8xnsis\",\n \"UserProvisioningId\": \"up-xusjdjsss\",\n \"NewDescription\": \"this is cam user sync\",\n \"NewDuplicationStateful\": \"KeepBoth\",\n \"NewDeletionStrategy\": \"Delete\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"e297543a-80de-4039-83c8-9d324545\"\n }\n}", + "title": " 修改CAM用户同步" + } + ], + "UpdateZone": [ + { + "document": "修改空间名", + "input": "POST / HTTP/1.1\nHost: organization.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateZone\n<公共请求参数>\n\n{\n \"ZoneId\": \"z-vft38p2hq8tq\",\n \"NewZoneName\": \"testzone\"\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"14effcdf-fbae-44fb-ab21-e2e0cc6edde6\"\n }\n}", + "title": "修改空间名" + } ] }, "version": "1.0" diff --git a/tccli/services/tat/tat_client.py b/tccli/services/tat/tat_client.py index c61fe15448..8dd438078c 100644 --- a/tccli/services/tat/tat_client.py +++ b/tccli/services/tat/tat_client.py @@ -1265,6 +1265,58 @@ def doDisableRegisterCodes(args, parsed_globals): FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) +def doDescribeScenes(args, parsed_globals): + g_param = parse_global_arg(parsed_globals) + + if g_param[OptionsDefine.UseCVMRole.replace('-', '_')]: + cred = credential.CVMRoleCredential() + elif g_param[OptionsDefine.RoleArn.replace('-', '_')] and g_param[OptionsDefine.RoleSessionName.replace('-', '_')]: + cred = credential.STSAssumeRoleCredential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.RoleArn.replace('-', '_')], + g_param[OptionsDefine.RoleSessionName.replace('-', '_')], endpoint=g_param["sts_cred_endpoint"] + ) + elif os.getenv(OptionsDefine.ENV_TKE_REGION) and os.getenv(OptionsDefine.ENV_TKE_PROVIDER_ID) and os.getenv(OptionsDefine.ENV_TKE_WEB_IDENTITY_TOKEN_FILE) and os.getenv(OptionsDefine.ENV_TKE_ROLE_ARN): + cred = credential.DefaultTkeOIDCRoleArnProvider().get_credentials() + else: + cred = credential.Credential( + g_param[OptionsDefine.SecretId], g_param[OptionsDefine.SecretKey], g_param[OptionsDefine.Token] + ) + http_profile = HttpProfile( + reqTimeout=60 if g_param[OptionsDefine.Timeout] is None else int(g_param[OptionsDefine.Timeout]), + reqMethod="POST", + endpoint=g_param[OptionsDefine.Endpoint], + proxy=g_param[OptionsDefine.HttpsProxy.replace('-', '_')] + ) + profile = ClientProfile(httpProfile=http_profile, signMethod="HmacSHA256") + if g_param[OptionsDefine.Language]: + profile.language = g_param[OptionsDefine.Language] + mod = CLIENT_MAP[g_param[OptionsDefine.Version]] + client = mod.TatClient(cred, g_param[OptionsDefine.Region], profile) + client._sdkVersion += ("_CLI_" + __version__) + models = MODELS_MAP[g_param[OptionsDefine.Version]] + model = models.DescribeScenesRequest() + model.from_json_string(json.dumps(args)) + start_time = time.time() + while True: + rsp = client.DescribeScenes(model) + result = rsp.to_json_string() + try: + json_obj = json.loads(result) + except TypeError as e: + json_obj = json.loads(result.decode('utf-8')) # python3.3 + if not g_param[OptionsDefine.Waiter] or search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj) == g_param['OptionsDefine.WaiterInfo']['to']: + break + cur_time = time.time() + if cur_time - start_time >= g_param['OptionsDefine.WaiterInfo']['timeout']: + raise ClientError('Request timeout, wait `%s` to `%s` timeout, last request is %s' % + (g_param['OptionsDefine.WaiterInfo']['expr'], g_param['OptionsDefine.WaiterInfo']['to'], + search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj))) + else: + print('Inquiry result is %s.' % search(g_param['OptionsDefine.WaiterInfo']['expr'], json_obj)) + time.sleep(g_param['OptionsDefine.WaiterInfo']['interval']) + FormatOutput.output("action", json_obj, g_param[OptionsDefine.Output], g_param[OptionsDefine.Filter]) + + def doDescribeInvokerRecords(args, parsed_globals): g_param = parse_global_arg(parsed_globals) @@ -1508,6 +1560,7 @@ def doRunCommand(args, parsed_globals): "DescribeAutomationAgentStatus": doDescribeAutomationAgentStatus, "DescribeQuotas": doDescribeQuotas, "DisableRegisterCodes": doDisableRegisterCodes, + "DescribeScenes": doDescribeScenes, "DescribeInvokerRecords": doDescribeInvokerRecords, "ModifyInvoker": doModifyInvoker, "DescribeInvokers": doDescribeInvokers, diff --git a/tccli/services/tat/v20201028/api.json b/tccli/services/tat/v20201028/api.json index d52b666e44..9e5d3f577c 100644 --- a/tccli/services/tat/v20201028/api.json +++ b/tccli/services/tat/v20201028/api.json @@ -133,6 +133,13 @@ "output": "DescribeRegisterInstancesResponse", "status": "online" }, + "DescribeScenes": { + "document": "此接口用于查询场景详情。", + "input": "DescribeScenesRequest", + "name": "查询场景", + "output": "DescribeScenesResponse", + "status": "online" + }, "DisableInvoker": { "document": "此接口用于停止执行器。", "input": "DisableInvokerRequest", @@ -893,7 +900,7 @@ { "disabled": false, "document": "参数名。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test", + "example": "name", "member": "string", "name": "ParameterName", "output_required": true, @@ -904,7 +911,7 @@ { "disabled": false, "document": "参数默认值。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "test001", + "example": "value", "member": "string", "name": "ParameterValue", "output_required": true, @@ -915,7 +922,7 @@ { "disabled": false, "document": "参数描述。\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "自定义参数test的值为test001。", + "example": "This is a parameter.", "member": "string", "name": "ParameterDescription", "output_required": true, @@ -1149,7 +1156,7 @@ }, { "disabled": false, - "document": "过滤条件。\n
  • command-id - String - 是否必填:否 -(过滤条件)按照命令ID过滤。
  • \n
  • command-name - String - 是否必填:否 -(过滤条件)按照命令名称过滤。
  • \n
  • command-type - String - 是否必填:否 -(过滤条件)按照命令类型过滤,取值为 SHELL 或 POWERSHELL。
  • \n
  • created-by - String - 是否必填:否 -(过滤条件)按照命令创建者过滤,取值为 TAT 或 USER,TAT 代表公共命令,USER 代表由用户创建的命令。
  • \n
  • tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
  • \n
  • tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。
  • \n
  • tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例4
  • \n\n每次请求的 `Filters` 的上限为10, `Filter.Values` 的上限为5。参数不支持同时指定 `CommandIds` 和 `Filters` 。", + "document": "过滤条件。\n
  • command-id - String - 是否必填:否 -(过滤条件)按照命令ID过滤。
  • \n
  • command-name - String - 是否必填:否 -(过滤条件)按照命令名称过滤。
  • \n
  • command-type - String - 是否必填:否 -(过滤条件)按照命令类型过滤,取值为 SHELL 或 POWERSHELL。
  • \n
  • scene-id - String - 是否必填:否 -(过滤条件)按照场景ID过滤。
  • \n
  • created-by - String - 是否必填:否 -(过滤条件)按照命令创建者过滤,取值为 TAT 或 USER,TAT 代表公共命令,USER 代表由用户创建的命令。
  • \n
  • tag-key - String - 是否必填:否 -(过滤条件)按照标签键进行过滤。
  • \n
  • tag-value - String - 是否必填:否 -(过滤条件)按照标签值进行过滤。
  • \n
  • tag:tag-key - String - 是否必填:否 -(过滤条件)按照标签键值对进行过滤。 tag-key使用具体的标签键进行替换。使用请参考示例4
  • \n\n每次请求的 `Filters` 的上限为10, `Filter.Values` 的上限为5。参数不支持同时指定 `CommandIds` 和 `Filters` 。", "example": "无", "member": "Filter", "name": "Filters", @@ -1716,6 +1723,80 @@ ], "type": "object" }, + "DescribeScenesRequest": { + "document": "DescribeScenes请求参数结构体", + "members": [ + { + "disabled": false, + "document": "场景 ID 数组", + "example": "[\"sc-12345678\"]", + "member": "string", + "name": "SceneIds", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "过滤条件。\n
  • scene-id - String - 是否必填:否 -(过滤条件)按照场景 ID 过滤。
  • \n
  • scene-name - String - 是否必填:否 -(过滤条件)按照场景名称过滤。
  • \n
  • created-by - String - 是否必填:否 -(过滤条件)按照场景创建者过滤,取值为 TAT 或 USER。TAT 代表公共命令,USER 代表由用户创建的命令。
  • \n\n每次请求的 `Filters` 的上限为10, `Filter.Values` 的上限为5。参数不支持同时指定 `SceneIds` 和 `Filters` 。", + "example": "{\"scene-id\": \"sc-12345678\"}", + "member": "Filter", + "name": "Filters", + "required": false, + "type": "list" + }, + { + "disabled": false, + "document": "返回数量,默认为20,最大值为100。关于 `Limit` 的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。", + "example": "20", + "member": "uint64", + "name": "Limit", + "required": false, + "type": "int" + }, + { + "disabled": false, + "document": "偏移量,默认为0。关于 `Offset` 的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。", + "example": "0", + "member": "uint64", + "name": "Offset", + "required": false, + "type": "int" + } + ], + "type": "object" + }, + "DescribeScenesResponse": { + "document": "DescribeScenes返回参数结构体", + "members": [ + { + "disabled": false, + "document": "符合条件的场景总数。", + "example": "1", + "member": "uint64", + "name": "TotalCount", + "output_required": true, + "type": "int", + "value_allowed_null": false + }, + { + "disabled": false, + "document": "场景详情列表。", + "example": "无", + "member": "Scene", + "name": "SceneSet", + "output_required": true, + "type": "list", + "value_allowed_null": false + }, + { + "document": "唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。", + "member": "string", + "name": "RequestId", + "type": "string" + } + ], + "type": "object" + }, "DisableInvokerRequest": { "document": "DisableInvoker请求参数结构体", "members": [ @@ -2740,7 +2821,7 @@ }, { "disabled": false, - "document": "实例名。", + "document": "实例名称。有效长度为 1~60 字符。", "example": "register-test", "member": "string", "name": "InstanceName", @@ -3257,6 +3338,67 @@ ], "type": "object" }, + "Scene": { + "document": "场景详情。", + "members": [ + { + "disabled": false, + "document": "场景 ID 。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "sc-12345678", + "member": "string", + "name": "SceneId", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "场景名称。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "运维场景", + "member": "string", + "name": "SceneName", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "场景创建者。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "USER", + "member": "string", + "name": "CreatedBy", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "创建时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-05-12T02:49:04Z", + "member": "string", + "name": "CreatedTime", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "更新时间。\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "2021-05-12T02:49:04Z", + "member": "string", + "name": "UpdatedTime", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + } + ], + "usage": "both" + }, "ScheduleSettings": { "document": "周期执行器设置。", "members": [ @@ -3302,6 +3444,7 @@ "example": "tag-key", "member": "string", "name": "Key", + "output_required": true, "required": true, "type": "string", "value_allowed_null": false @@ -3312,6 +3455,7 @@ "example": "tag-value", "member": "string", "name": "Value", + "output_required": true, "required": true, "type": "string", "value_allowed_null": false diff --git a/tccli/services/tat/v20201028/examples.json b/tccli/services/tat/v20201028/examples.json index 1d9009ad4c..5baaf929e1 100644 --- a/tccli/services/tat/v20201028/examples.json +++ b/tccli/services/tat/v20201028/examples.json @@ -194,6 +194,14 @@ "title": "根据托管实例ID查询托管实例" } ], + "DescribeScenes": [ + { + "document": "", + "input": "POST / HTTP/1.1\nHost: tat.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeScenes\n<公共请求参数>\n\n{\n \"SceneIds\": [\n \"sc-12345678\"\n ],\n \"Offset\": 0,\n \"Limit\": 20\n}", + "output": "{\n \"Response\": {\n \"RequestId\": \"eb973a12-71e3-4c0c-b1d8-4b863e5f5daf\",\n \"TotalCount\": 1,\n \"SceneSet\": [\n {\n \"SceneId\": \"sc-12345678\",\n \"SceneName\": \"运维场景\",\n \"CreatedBy\": \"USER\",\n \"CreatedTime\": \"2020-11-02T02:48:11+00:00\",\n \"UpdatedTime\": \"2020-11-02T02:48:11+00:00\"\n }\n ]\n }\n}", + "title": "查询场景" + } + ], "DisableInvoker": [ { "document": "", diff --git a/tccli/services/trocket/v20230308/api.json b/tccli/services/trocket/v20230308/api.json index 75a8b25270..64ae8d9e79 100644 --- a/tccli/services/trocket/v20230308/api.json +++ b/tccli/services/trocket/v20230308/api.json @@ -521,7 +521,7 @@ }, { "disabled": false, - "document": "实例名称", + "document": "集群名称", "example": "testName", "member": "string", "name": "Name", @@ -557,7 +557,7 @@ }, { "disabled": false, - "document": "实例绑定的VPC信息", + "document": "集群绑定的VPC信息,必填", "example": "[]", "member": "VpcInfo", "name": "VpcList", @@ -566,7 +566,7 @@ }, { "disabled": false, - "document": "是否开启公网", + "document": "是否开启公网,默认值为false表示不开启", "example": "true", "member": "bool", "name": "EnablePublic", @@ -575,7 +575,16 @@ }, { "disabled": false, - "document": "公网带宽(单位:兆)", + "document": "公网是否按流量计费,默认值为false表示不按流量计费", + "example": "false", + "member": "bool", + "name": "BillingFlow", + "required": false, + "type": "bool" + }, + { + "disabled": false, + "document": "公网带宽(单位:兆),默认值为0。如果开启公网,该字段必须为大于0的正整数", "example": "2", "member": "int64", "name": "Bandwidth", @@ -602,7 +611,7 @@ }, { "disabled": false, - "document": "付费模式(0: 后付费;1: 预付费)", + "document": "付费模式(0: 后付费;1: 预付费),默认值为0", "example": "0", "member": "int64", "name": "PayMode", @@ -611,7 +620,7 @@ }, { "disabled": false, - "document": "是否自动续费(0: 不自动续费;1: 自动续费)", + "document": "是否自动续费(0: 不自动续费;1: 自动续费),默认值为0", "example": "1", "member": "int64", "name": "RenewFlag", @@ -620,7 +629,7 @@ }, { "disabled": false, - "document": "购买时长(单位:月)", + "document": "购买时长(单位:月),默认值为1", "example": "1", "member": "int64", "name": "TimeSpan", @@ -5648,7 +5657,7 @@ { "disabled": false, "document": "消费组名称\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "group1", "member": "string", "name": "GroupName", "output_required": true, @@ -5659,7 +5668,7 @@ { "disabled": false, "document": "备注信息\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "remark1", "member": "string", "name": "Remark", "output_required": false, @@ -5670,7 +5679,7 @@ { "disabled": false, "document": "是否已导入,作为入参时无效\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "true", "member": "bool", "name": "Imported", "output_required": true, @@ -5681,7 +5690,7 @@ { "disabled": false, "document": "命名空间,仅4.x集群有效\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "namespace1", "member": "string", "name": "Namespace", "output_required": false, @@ -5692,13 +5701,57 @@ { "disabled": false, "document": "导入状态\nUnknown 未知\nSuccess 成功\nFailure 失败\nAlreadyExists 已存在\n注意:此字段可能返回 null,表示取不到有效值。", - "example": "无", + "example": "Success", "member": "string", "name": "ImportStatus", "output_required": false, "required": false, "type": "string", "value_allowed_null": true + }, + { + "disabled": false, + "document": "4.x的命名空间,出参使用\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "namespace1", + "member": "string", + "name": "NamespaceV4", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "4.x的消费组名,出参使用\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "group1", + "member": "string", + "name": "GroupNameV4", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "4.x的完整命名空间,出参使用\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "namespace1", + "member": "string", + "name": "FullNamespaceV4", + "output_required": false, + "required": false, + "type": "string", + "value_allowed_null": true + }, + { + "disabled": false, + "document": "是否为顺序投递,5.0有效\n注意:此字段可能返回 null,表示取不到有效值。", + "example": "false", + "member": "bool", + "name": "ConsumeMessageOrderly", + "output_required": false, + "required": false, + "type": "bool", + "value_allowed_null": true } ], "usage": "both"