summaryrefslogtreecommitdiff
path: root/data/zh_cn/governance/2021-01-20
diff options
context:
space:
mode:
Diffstat (limited to 'data/zh_cn/governance/2021-01-20')
-rw-r--r--data/zh_cn/governance/2021-01-20/api-docs.php3216
1 files changed, 3216 insertions, 0 deletions
diff --git a/data/zh_cn/governance/2021-01-20/api-docs.php b/data/zh_cn/governance/2021-01-20/api-docs.php
new file mode 100644
index 0000000..658b366
--- /dev/null
+++ b/data/zh_cn/governance/2021-01-20/api-docs.php
@@ -0,0 +1,3216 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'governance',
+ 'version' => '2021-01-20',
+ ],
+ 'directories' => [
+ [
+ 'id' => 366159,
+ 'title' => '账号工厂',
+ 'type' => 'directory',
+ 'children' => [
+ 'EnrollAccount',
+ 'BatchEnrollAccounts',
+ 'ListEnrolledAccounts',
+ 'GetEnrolledAccount',
+ 'GetAccountFactoryBaseline',
+ 'ListAccountFactoryBaselines',
+ 'CreateAccountFactoryBaseline',
+ 'DeleteAccountFactoryBaseline',
+ 'ListAccountFactoryBaselineItems',
+ 'UpdateAccountFactoryBaseline',
+ ],
+ ],
+ [
+ 'id' => 366170,
+ 'title' => '治理成熟度检测',
+ 'type' => 'directory',
+ 'children' => [
+ 'RunEvaluation',
+ 'ListEvaluationMetadata',
+ 'ListEvaluationScoreHistory',
+ 'ListEvaluationMetricDetails',
+ 'ListEvaluationResults',
+ 'GenerateEvaluationReport',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [],
+ ],
+ 'apis' => [
+ 'EnrollAccount' => [
+ 'summary' => '通过账号工厂创建一个新的资源账号或者纳管一个已有的资源账号。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceUXLQGP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccountNamePrefix',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '账号名称前缀',
+ 'description' => '账号名称前缀。'."\n"
+ ."\n"
+ .'- 如果是新建资源账号,则该参数必填。'."\n"
+ .'- 如果是注册应用到已有账号,则该参数不需要填写。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-account',
+ ],
+ ],
+ [
+ 'name' => 'DisplayName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '账号显示名称',
+ 'description' => '账号显示名称。'."\n"
+ ."\n"
+ .'- 如果是新建资源账号,则该参数必填。'."\n"
+ .'- 如果是注册应用到已有账号,则该参数不需要填写。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-account',
+ ],
+ ],
+ [
+ 'name' => 'FolderId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '父资源夹ID',
+ 'description' => '父资源夹ID。'."\n"
+ ."\n"
+ .'- 如果是新建资源账号,该参数不填,则默认创建在Root资源夹下。'."\n"
+ .'- 如果是注册应用到已有账号,则该参数不需要填写。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'fd-5ESoku****',
+ ],
+ ],
+ [
+ 'name' => 'PayerAccountUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '结算账号ID',
+ 'description' => '结算账号ID。'."\n"
+ ."\n"
+ .'- 如果是新建资源账号,该参数不填,则默认为自主结算。'."\n"
+ .'- 如果是注册应用到已有账号,则该参数不需要填写。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '19534534552****',
+ ],
+ ],
+ [
+ 'name' => 'AccountUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '注册账号ID',
+ 'description' => '注册账号ID。'."\n"
+ ."\n"
+ .'- 如果是新建资源账号,则该参数不需要填写。'."\n"
+ .'- 如果是注册应用到已有账号,则该参数必填。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '12868156179****',
+ ],
+ ],
+ [
+ 'name' => 'BaselineItems',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'title' => '基线项配置数组',
+ 'description' => '基线项配置数组。'."\n"
+ ."\n"
+ .'如果传递了该参数,那么基线项的配置将和指定账号基线进行合并。相同的基线项将以该参数的配置为准。建议您将该参数置空,通过`BaselineId`参数指定账号基线,通过现有基线将配置应用到账号上。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'title' => '基线项配置',
+ 'description' => '基线项配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}',
+ ],
+ 'Name' => [
+ 'title' => '基线项名称',
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Skip' => [
+ 'title' => '是否跳过基线项',
+ 'description' => '是否跳过基线项。取值:'."\n"
+ ."\n"
+ .'- false:不跳过。'."\n"
+ .'- true:跳过。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'Version' => [
+ 'title' => '基线项版本',
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0',
+ 'default' => '1.0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'BaselineId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '基线ID',
+ 'description' => '基线ID。'."\n"
+ ."\n"
+ .'置空则默认使用系统默认基线。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'afb-bp1durvn3lgqe28v****',
+ ],
+ ],
+ [
+ 'name' => 'ResellAccountType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '账号身份类型',
+ 'description' => '成员的身份类型。取值:'."\n"
+ ."\n"
+ .'- resell(默认值):分销账号。创建的成员将自动与您的分销商建立分销关系,同时您需要使用管理账号为新成员付款。'."\n"
+ .'- non_resell:非分销账号。创建的成员为阿里云普通账号,与您当前的分销商无关联关系,该账号直接从阿里云购买资源,需自主付款。'."\n"
+ ."\n"
+ .'> '."\n"
+ .'> 该参数仅支持国际站分销客户。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'resell',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '标签列表,最多包含20个子项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagKey',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'tagValue',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<EnrollAccountResponse>',
+ 'description' => '返回参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountUid' => [
+ 'title' => '注册账号ID',
+ 'description' => '注册账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '143165363236****',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '7071E5FA-515E-5F53-B335-B87D619C6A66',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'The specified parameter %s is not valid.',
+ ],
+ [
+ 'errorCode' => 'DeployConflict.Blueprint',
+ 'errorMessage' => 'The %s blueprint is being deployed. Please wait for its deployment to complete and try again.',
+ ],
+ [
+ 'errorCode' => 'DependencyViolation.Blueprint',
+ 'errorMessage' => 'The %s blueprint has not been deployed. Please deploy the resource structure first.',
+ ],
+ [
+ 'errorCode' => 'DependencyViolation.BaselineItem',
+ 'errorMessage' => 'The dependency of %s baseline item has not been configured. Please config %s first.',
+ ],
+ [
+ 'errorCode' => 'IncorrectBlueprintStatus',
+ 'errorMessage' => 'The current status of the blueprint does not support this operation.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'InvalidUser.NotResourceDirectoryMaster',
+ 'errorMessage' => 'The specified account is not a master account of resource directory.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'InvalidUser.NotFound',
+ 'errorMessage' => 'The specified user does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidBlueprint.NotFound',
+ 'errorMessage' => 'The specified blueprint does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidBaselineItem.NotFound',
+ 'errorMessage' => 'The specified baseline item named %s does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountUid\\": 0,\\n \\"RequestId\\": \\"7071E5FA-515E-5F53-B335-B87D619C6A66\\"\\n}","type":"json"}]',
+ 'title' => '注册账号',
+ 'description' => '通过该API,您可以创建一个新的资源账号或者纳管一个已有的资源账号,并在该账号上应用账号基线。'."\n"
+ ."\n"
+ .'注册账号是一个异步过程,创建完资源账号后,会在该账号上实施账号工厂基线。您可以通过[GetEnrolledAccount](~~GetEnrolledAccount~~)查询账号详情,获取实施结果。',
+ ],
+ 'BatchEnrollAccounts' => [
+ 'summary' => '批量为已有的资源账号应用账号基线。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceUXLQGP',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Accounts',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '账号列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '账号信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountUid' => [
+ 'description' => '注册账号ID。该参数必填。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '12868156179****'."\n",
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'BaselineItems',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '基线项配置数组。'."\n"
+ ."\n"
+ .'如果传递了该参数,那么基线项的配置将和指定账号基线进行合并。相同的基线项将以该参数的配置为准。建议您将该参数置空,通过`BaselineId`参数指定账号基线,通过现有基线将配置应用到账号上。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'description' => '基线项配置。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"Notifications":[{"GroupKey":"account_msg","Contacts":[{"Name":"aa"}],"PmsgStatus":1,"EmailStatus":1,"SmsStatus":1}]}',
+ ],
+ 'Name' => [
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Skip' => [
+ 'description' => '是否跳过基线项。取值:'."\n"
+ ."\n"
+ .'- false:不跳过。'."\n"
+ .'- true:跳过。',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0'."\n",
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'BaselineId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线ID。'."\n"
+ ."\n"
+ .'置空则默认使用系统默认基线。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'afb-bp1durvn3lgqe28v****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<Void>',
+ 'description' => '返回参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1\\"\\n}","type":"json"}]',
+ 'title' => '批量注册账号',
+ 'description' => '通过该API,您可以在已有的资源账号上应用账号基线。'."\n"
+ ."\n"
+ .'注册账号是一个异步过程,创建完资源账号后,会在该账号上实施账号工厂基线。您可以通过[GetEnrolledAccount](~~609062~~)查询账号详情,获取实施结果。',
+ ],
+ 'ListEnrolledAccounts' => [
+ 'summary' => '获取账号工厂中注册账号的列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceARZHCM',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '查询返回结果下一页的令牌。首次调用API不需要NextToken',
+ 'description' => '查询返回结果下一页的令牌。'."\n"
+ ."\n"
+ .'首次调用API不需要NextToken。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'title' => '每页的最大数据条数',
+ 'description' => '每页的最大数据条数。'."\n"
+ ."\n"
+ .'取值范围:1~100。默认值:10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'maximum' => '100',
+ 'exclusiveMaximum' => false,
+ 'minimum' => '1',
+ 'exclusiveMinimum' => false,
+ 'example' => '10',
+ 'default' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '注册账号列表',
+ 'description' => '注册账号列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EnrolledAccounts' => [
+ 'title' => '账号列表',
+ 'description' => '账号列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '账号。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountUid' => [
+ 'title' => '账号ID',
+ 'description' => '账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '19534534552*****',
+ ],
+ 'BaselineId' => [
+ 'description' => '当前应用的基线ID。',
+ 'type' => 'string',
+ 'example' => 'afb-bp1durvn3lgqe28v****',
+ ],
+ 'CreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-11-01T02:38:27Z',
+ ],
+ 'DisplayName' => [
+ 'title' => '账号显示名称',
+ 'description' => '账号显示名称。',
+ 'type' => 'string',
+ 'example' => 'TestAccount',
+ ],
+ 'FolderId' => [
+ 'title' => '父资源夹ID',
+ 'description' => '父资源夹ID。',
+ 'type' => 'string',
+ 'example' => 'fd-5ESoku****',
+ ],
+ 'PayerAccountUid' => [
+ 'title' => '结算账号ID',
+ 'description' => '结算账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '13161210500*****',
+ ],
+ 'Status' => [
+ 'title' => '创建状态',
+ 'description' => '创建状态。取值:'."\n"
+ ."\n"
+ .'- Pending:等待中。'."\n"
+ .'- Running:创建实施中。'."\n"
+ .'- Finished:创建成功。'."\n"
+ .'- Failed:创建失败。'."\n"
+ .'- Scheduling:调度中。'."\n"
+ .'- ScheduleFailed:调度失败。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ 'enum' => [],
+ ],
+ 'UpdateTime' => [
+ 'title' => '更新时间',
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-11-01T02:38:27Z',
+ ],
+ ],
+ ],
+ ],
+ 'NextToken' => [
+ 'title' => '查询返回结果下一页的令牌',
+ 'description' => '查询返回结果下一页的令牌。',
+ 'type' => 'string',
+ 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '768F908D-A66A-5A5D-816C-20C93CBBFEE3',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'The specified parameter %s is not valid.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => 'InvalidUser.NotFound',
+ 'errorMessage' => 'The specified user does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"EnrolledAccounts\\": [\\n {\\n \\"AccountUid\\": 0,\\n \\"BaselineId\\": \\"afb-bp1durvn3lgqe28v****\\",\\n \\"CreateTime\\": \\"2021-11-01T02:38:27Z\\",\\n \\"DisplayName\\": \\"TestAccount\\",\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"PayerAccountUid\\": 0,\\n \\"Status\\": \\"Running\\",\\n \\"UpdateTime\\": \\"2021-11-01T02:38:27Z\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****\\",\\n \\"RequestId\\": \\"768F908D-A66A-5A5D-816C-20C93CBBFEE3\\"\\n}","errorExample":""},{"type":"xml","example":"<ListEnrolledAccountsResponse>\\n <RequestId>768F908D-A66A-5A5D-816C-20C93CBBFEE3</RequestId>\\n <NextToken>AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****</NextToken>\\n <EnrolledAccounts>\\n <Status>Running</Status>\\n <CreateTime>2021-11-01T02:38:27Z</CreateTime>\\n <DisplayName>TestAccount</DisplayName>\\n <FolderId>fd-5ESoku****</FolderId>\\n <UpdateTime>2021-11-01T02:38:27Z</UpdateTime>\\n <AccountUid>1234</AccountUid>\\n <PayerAccountUid>1234</PayerAccountUid>\\n </EnrolledAccounts>\\n</ListEnrolledAccountsResponse>","errorExample":""}]',
+ 'title' => '获取账号工厂中注册账号的列表',
+ ],
+ 'GetEnrolledAccount' => [
+ 'summary' => '获取账号工厂中注册账号详情。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccountUid',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '账号ID',
+ 'description' => '账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '19534534552****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '注册账号信息',
+ 'description' => '注册账号信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountUid' => [
+ 'title' => '账号ID',
+ 'description' => '账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12868156179*****',
+ ],
+ 'BaselineId' => [
+ 'title' => '基线ID',
+ 'description' => '当前应用的基线ID。',
+ 'type' => 'string',
+ 'example' => 'afb-bp1adadfadsf***',
+ ],
+ 'BaselineItems' => [
+ 'description' => '基线项配置数组。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'description' => '基线项配置。',
+ 'type' => 'string',
+ 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}',
+ ],
+ 'Name' => [
+ 'description' => '基线项的名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Skip' => [
+ 'description' => '是否跳过基线项。取值:'."\n"
+ ."\n"
+ .'- false:不跳过。'."\n"
+ .'- true:跳过。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ ],
+ 'CreateTime' => [
+ 'title' => '创建时间',
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-11-01T02:38:27Z',
+ ],
+ 'DisplayName' => [
+ 'title' => '账号显示名称',
+ 'description' => '账号显示名称。',
+ 'type' => 'string',
+ 'example' => 'test-account',
+ ],
+ 'ErrorInfo' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。'."\n"
+ ."\n"
+ .'> 当`Status`为`Failed`或`ScheduleFailed`时,返回该错误信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'title' => '错误码',
+ 'description' => '错误码。',
+ 'type' => 'string',
+ 'example' => 'EntityAlreadyExists.Role',
+ ],
+ 'Message' => [
+ 'title' => '错误信息',
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'The role already exists.',
+ ],
+ 'Recommend' => [
+ 'title' => '错误处理建议',
+ 'description' => '处理建议。',
+ 'type' => 'string',
+ 'example' => 'https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\\u0026product=Ram',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E',
+ ],
+ ],
+ ],
+ 'FolderId' => [
+ 'title' => '父资源夹ID',
+ 'description' => '父资源夹ID。',
+ 'type' => 'string',
+ 'example' => 'fd-5ESoku****',
+ ],
+ 'Initialized' => [
+ 'title' => '是否初始化完成',
+ 'description' => '是否初始化完成。取值:'."\n"
+ ."\n"
+ .'- false:未完成。'."\n"
+ .'- true:已完成。',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Inputs' => [
+ 'title' => '注册账号时的输入参数',
+ 'description' => '注册账号时的输入参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountNamePrefix' => [
+ 'title' => '账号名称前缀',
+ 'description' => '账号名称前缀。',
+ 'type' => 'string',
+ 'example' => 'test-account',
+ ],
+ 'AccountUid' => [
+ 'title' => '账号ID',
+ 'description' => '账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '12868156179*****',
+ ],
+ 'BaselineItems' => [
+ 'title' => '基线项配置数组',
+ 'description' => '基线项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'title' => '基线项配置',
+ 'description' => '基线项配置。',
+ 'type' => 'string',
+ 'example' => '{\\"Contacts\\":[{\\"Name\\":\\"governance\\",\\"Email\\":\\"[email protected]\\",\\"Mobile\\":\\"1234\\",\\"Position\\":\\"Other\\"}]}',
+ ],
+ 'Name' => [
+ 'title' => '基线项名称',
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Skip' => [
+ 'title' => '是否跳过基线项',
+ 'description' => '是否跳过基线项。取值:'."\n"
+ ."\n"
+ .'- false:不跳过。'."\n"
+ .'- true:跳过。',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'Version' => [
+ 'title' => '基线项版本',
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ ],
+ 'DisplayName' => [
+ 'title' => '账号展示名称',
+ 'description' => '账号显示名称。',
+ 'type' => 'string',
+ 'example' => 'test-account',
+ ],
+ 'FolderId' => [
+ 'title' => '父资源夹ID',
+ 'description' => '父资源夹ID。',
+ 'type' => 'string',
+ 'example' => 'fd-5ESoku****',
+ ],
+ 'PayerAccountUid' => [
+ 'title' => '结算账号ID',
+ 'description' => '结算账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '19534534552*****',
+ ],
+ 'Tag' => [
+ 'description' => '标签。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '标签。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '标签键。',
+ 'type' => 'string',
+ 'example' => 'product',
+ ],
+ 'Value' => [
+ 'description' => '标签值。',
+ 'type' => 'string',
+ 'example' => 'governance',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'MasterAccountUid' => [
+ 'title' => '所属的Master账号ID',
+ 'description' => '所属的资源目录管理账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '19534534552*****',
+ ],
+ 'PayerAccountUid' => [
+ 'title' => '结算账号ID',
+ 'description' => '结算账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '19534534552*****',
+ ],
+ 'Progress' => [
+ 'title' => '基线实施进度',
+ 'description' => '基线实施进度。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '实施进度。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'title' => '基线项名称',
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Status' => [
+ 'title' => '基线项实施状态',
+ 'description' => '基线项实施状态。取值:'."\n"
+ ."\n"
+ .'- Pending:等待中。'."\n"
+ .'- Running:实施中。'."\n"
+ .'- Finished:实施成功。'."\n"
+ .'- Failed:实施失败。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '768F908D-A66A-5A5D-816C-20C93CBBFEE3',
+ ],
+ 'Status' => [
+ 'title' => '账号注册状态',
+ 'description' => '账号注册状态。取值:'."\n"
+ ."\n"
+ .'- Pending:等待中。'."\n"
+ .'- Running:创建实施中。'."\n"
+ .'- Finished:创建成功。'."\n"
+ .'- Failed:创建失败。'."\n"
+ .'- Scheduling:调度中。'."\n"
+ .'- ScheduleFailed:调度失败。',
+ 'type' => 'string',
+ 'example' => 'Finished',
+ ],
+ 'UpdateTime' => [
+ 'title' => '更新时间',
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2021-11-01T02:38:27Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'The specified parameter %s is not valid.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => 'InvalidUser.NotFound',
+ 'errorMessage' => 'The specified user does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidBlueprint.NotFound',
+ 'errorMessage' => 'The specified blueprint does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountUid\\": 0,\\n \\"BaselineId\\": \\"afb-bp1adadfadsf***\\",\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Notifications\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"GroupKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"account_msg\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"aa\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"PmsgStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"EmailStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"SmsStatus\\\\\\\\\\\\\\":1}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Skip\\": false,\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"CreateTime\\": \\"2021-11-01T02:38:27Z\\",\\n \\"DisplayName\\": \\"test-account\\",\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"EntityAlreadyExists.Role\\",\\n \\"Message\\": \\"The role already exists.\\",\\n \\"Recommend\\": \\"https://next.api.aliyun.com/troubleshoot?q=EntityAlreadyExists.Role\\\\\\\\u0026product=Ram\\",\\n \\"RequestId\\": \\"6D5EAA86-2D41-5CB7-8DA7-B60093ACAA4E\\"\\n },\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"Initialized\\": true,\\n \\"Inputs\\": {\\n \\"AccountNamePrefix\\": \\"test-account\\",\\n \\"AccountUid\\": 0,\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"governance\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Email\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"[email protected]\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Mobile\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"1234\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Position\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Other\\\\\\\\\\\\\\"}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Skip\\": false,\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"DisplayName\\": \\"test-account\\",\\n \\"FolderId\\": \\"fd-5ESoku****\\",\\n \\"PayerAccountUid\\": 0,\\n \\"Tag\\": [\\n {\\n \\"Key\\": \\"product\\",\\n \\"Value\\": \\"governance\\"\\n }\\n ]\\n },\\n \\"MasterAccountUid\\": 0,\\n \\"PayerAccountUid\\": 0,\\n \\"Progress\\": [\\n {\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Status\\": \\"Running\\"\\n }\\n ],\\n \\"RequestId\\": \\"768F908D-A66A-5A5D-816C-20C93CBBFEE3\\",\\n \\"Status\\": \\"Finished\\",\\n \\"UpdateTime\\": \\"2021-11-01T02:38:27Z\\"\\n}","type":"json"}]',
+ 'title' => '获取账号工厂中注册账号详情',
+ ],
+ 'GetAccountFactoryBaseline' => [
+ 'summary' => '获取账号工厂基线详情。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'BaselineId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'afb-bp1nf0enuzb89az*****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<GetAccountFactoryBaselineResponse>',
+ 'description' => '基线配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'BaselineId' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'example' => 'afb-bp16ae2k8a3yo3d*****',
+ ],
+ 'BaselineItems' => [
+ 'description' => '基线项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'description' => '基线项的配置。'."\n"
+ ."\n"
+ .'格式为JSON字符串。',
+ 'type' => 'string',
+ 'example' => '{\\"Notifications\\":[{\\"GroupKey\\":\\"account_msg\\",\\"Contacts\\":[{\\"Name\\":\\"aa\\"}],\\"PmsgStatus\\":1,\\"EmailStatus\\":1,\\"SmsStatus\\":1}]}',
+ ],
+ 'Name' => [
+ 'description' => '基线项的名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Version' => [
+ 'description' => '基线项的版本。',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ ],
+ 'BaselineName' => [
+ 'description' => '基线名称。',
+ 'type' => 'string',
+ 'example' => 'Default',
+ 'default' => 'Default',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2022-11-28T00:46:34Z',
+ ],
+ 'Description' => [
+ 'description' => '基线描述。',
+ 'type' => 'string',
+ 'example' => '默认基线',
+ ],
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '60D54503-F1F6-51B6-B6FA-A70CBDA2A68C',
+ ],
+ 'Type' => [
+ 'description' => '基线类型。取值:'."\n"
+ .'- System:系统默认基线。'."\n"
+ .'- Custom:用户自定义基线。',
+ 'type' => 'string',
+ 'example' => 'Custom',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-11-02T01:00:07Z',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'InvalidParameter',
+ 'errorMessage' => 'The specified parameter %s is not valid.',
+ ],
+ ],
+ 404 => [
+ [
+ 'errorCode' => 'InvalidUser.NotFound',
+ 'errorMessage' => 'The specified user does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidBaseline.NotFound',
+ 'errorMessage' => 'The specified baseline does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineId\\": \\"afb-bp16ae2k8a3yo3d*****\\",\\n \\"BaselineItems\\": [\\n {\\n \\"Config\\": \\"{\\\\\\\\\\\\\\"Notifications\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"GroupKey\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"account_msg\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"Contacts\\\\\\\\\\\\\\":[{\\\\\\\\\\\\\\"Name\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"aa\\\\\\\\\\\\\\"}],\\\\\\\\\\\\\\"PmsgStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"EmailStatus\\\\\\\\\\\\\\":1,\\\\\\\\\\\\\\"SmsStatus\\\\\\\\\\\\\\":1}]}\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"BaselineName\\": \\"Default\\",\\n \\"CreateTime\\": \\"2022-11-28T00:46:34Z\\",\\n \\"Description\\": \\"默认基线\\",\\n \\"RequestId\\": \\"60D54503-F1F6-51B6-B6FA-A70CBDA2A68C\\",\\n \\"Type\\": \\"Custom\\",\\n \\"UpdateTime\\": \\"2022-11-02T01:00:07Z\\"\\n}","type":"json"}]',
+ 'title' => '获取账号工厂基线详情',
+ ],
+ 'ListAccountFactoryBaselines' => [
+ 'summary' => '获取账号工厂基线列表。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceH3XRB0',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询返回结果下一页的令牌。'."\n"
+ ."\n"
+ .'首次调用API不需要NextToken。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页的最大数据条数。'."\n"
+ ."\n"
+ .'取值范围:1~100。默认值:10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponsePageResult<ListAccountFactoryBaselinesResponse>',
+ 'description' => '返回参数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Baselines' => [
+ 'description' => '基线列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'BaselineId' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'example' => 'afb-bp1durvn3lgqe28v****',
+ ],
+ 'BaselineName' => [
+ 'description' => '基线名称。',
+ 'type' => 'string',
+ 'example' => 'Default',
+ ],
+ 'CreateTime' => [
+ 'description' => '创建时间。',
+ 'type' => 'string',
+ 'example' => '2021-11-30T09:09:28Z',
+ ],
+ 'Description' => [
+ 'description' => '基线描述。',
+ 'type' => 'string',
+ 'example' => '默认基线',
+ ],
+ 'Type' => [
+ 'description' => '基线类型。取值:'."\n"
+ ."\n"
+ .'- System:系统默认基线。'."\n"
+ .'- Custom:用户自定义基线。',
+ 'type' => 'string',
+ 'enumValueTitles' => [],
+ 'example' => 'Custom',
+ ],
+ 'UpdateTime' => [
+ 'description' => '更新时间。',
+ 'type' => 'string',
+ 'example' => '2022-12-29T07:08:40Z',
+ ],
+ ],
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => '查询返回结果下一页的令牌。',
+ 'type' => 'string',
+ 'example' => 'AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****',
+ ],
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '3245E413-7CDD-5287-8988-6A94DE8A8369',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidUser.NotFound',
+ 'errorMessage' => 'The specified user does not exist.',
+ ],
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Baselines\\": [\\n {\\n \\"BaselineId\\": \\"afb-bp1durvn3lgqe28v****\\",\\n \\"BaselineName\\": \\"Default\\",\\n \\"CreateTime\\": \\"2021-11-30T09:09:28Z\\",\\n \\"Description\\": \\"默认基线\\",\\n \\"Type\\": \\"Custom\\",\\n \\"UpdateTime\\": \\"2022-12-29T07:08:40Z\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAALHWGpGoYCcYMxiFfmlhvh62Xr2DzYbz/SAfc*****\\",\\n \\"RequestId\\": \\"3245E413-7CDD-5287-8988-6A94DE8A8369\\"\\n}","type":"json"}]',
+ 'title' => '获取账号工厂基线列表',
+ ],
+ 'CreateAccountFactoryBaseline' => [
+ 'summary' => '创建账号工厂基线。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernance7SBZ97',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'BaselineName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Default',
+ 'default' => 'Default',
+ ],
+ ],
+ [
+ 'name' => 'BaselineItems',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '基线项列表。'."\n"
+ ."\n"
+ .'您可以调用[ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~),获取云治理中心支持的账号工厂基线项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'description' => '基线项配置。格式为JSON字符串。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"EnabledServices":["CEN_TR","CDT","CMS","KMS"]}',
+ ],
+ 'Name' => [
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0',
+ 'default' => '1.0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Default Baseline.',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<CreateAccountFactoryBaselineResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'BaselineId' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'example' => 'afb-bp1e6ixtiwupap8m****',
+ ],
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'A5592E2E-0FC4-557C-B989-DF229B5EBE13',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineId\\": \\"afb-bp1e6ixtiwupap8m****\\",\\n \\"RequestId\\": \\"A5592E2E-0FC4-557C-B989-DF229B5EBE13\\"\\n}","type":"json"}]',
+ 'title' => '创建账号工厂基线',
+ ],
+ 'DeleteAccountFactoryBaseline' => [
+ 'summary' => '删除账号工厂基线。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'BaselineId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'afb-bp1durvn3lgqe28v****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<Void>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '0F45D888-8C4D-55E5-ACA2-D1515159181D',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0F45D888-8C4D-55E5-ACA2-D1515159181D\\"\\n}","type":"json"}]',
+ 'title' => '删除账号工厂基线',
+ ],
+ 'ListAccountFactoryBaselineItems' => [
+ 'summary' => '获取云治理中心账号工厂支持的基线项列表。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceARZHCM',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Type',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线项类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AccountFactory',
+ ],
+ ],
+ [
+ 'name' => 'Names',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '基线项名称列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Versions',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '基线项版本列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0',
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询返回结果下一页的令牌。首次调用API不需要NextToken。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '每页的最大数据条数。'."\n"
+ ."\n"
+ .'取值范围:1~100。默认值:10。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ 'default' => '100',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponsePageResult<ListAccountFactoryBaselineItemsResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'BaselineItems' => [
+ 'description' => '基线项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DependsOn' => [
+ 'description' => '基线项依赖。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '依赖配置。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Name' => [
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC',
+ ],
+ 'Type' => [
+ 'description' => '基线项类型。',
+ 'type' => 'string',
+ 'example' => 'AccountFactory',
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ ],
+ 'Description' => [
+ 'description' => '基线项描述。',
+ 'type' => 'string',
+ 'example' => 'Notification.',
+ ],
+ 'Name' => [
+ 'description' => '基线项名称。',
+ 'type' => 'string',
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_ACCOUNT_NOTIFICATION',
+ ],
+ 'Type' => [
+ 'description' => '基线项类型。',
+ 'type' => 'string',
+ 'example' => 'AccountFactory',
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。',
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => '查询返回结果下一页的令牌。',
+ 'type' => 'string',
+ 'example' => 'AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod',
+ ],
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'B40D73D8-76AC-5D3C-AC63-4FC8AFCE6671',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"BaselineItems\\": [\\n {\\n \\"DependsOn\\": [\\n {\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_VPC\\",\\n \\"Type\\": \\"AccountFactory\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"Description\\": \\"Notification.\\",\\n \\"Name\\": \\"ACS-BP_ACCOUNT_FACTORY_ACCOUNT_NOTIFICATION\\",\\n \\"Type\\": \\"AccountFactory\\",\\n \\"Version\\": \\"1.0\\"\\n }\\n ],\\n \\"NextToken\\": \\"AAAAACDGQdAEX3m42z3sQ+f3VTK2Xr2DzYbz/SAfc/zJRqod\\",\\n \\"RequestId\\": \\"B40D73D8-76AC-5D3C-AC63-4FC8AFCE6671\\"\\n}","type":"json"}]',
+ 'title' => '获取账号工厂支持的基线项列表',
+ ],
+ 'UpdateAccountFactoryBaseline' => [
+ 'summary' => '更新账号工厂基线。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'BaselineId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'afb-bp1pq3emlkt27vsj****',
+ ],
+ ],
+ [
+ 'name' => 'BaselineName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线名称。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '自定义基线',
+ ],
+ ],
+ [
+ 'name' => 'BaselineItems',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '基线项列表。'."\n"
+ ."\n"
+ .'您可以调用[ListAccountFactoryBaselineItems](~~ListAccountFactoryBaselineItems~~),获取云治理中心支持的账号工厂基线项列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '基线项配置。'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Config' => [
+ 'description' => '基线项配置。格式为JSON字符串。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{"EnabledServices":["CEN_TR","CDT","CMS","KMS"]}',
+ ],
+ 'Name' => [
+ 'description' => '基线项名称。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACS-BP_ACCOUNT_FACTORY_VPC'."\n",
+ ],
+ 'Version' => [
+ 'description' => '基线项版本。'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.0'."\n",
+ 'default' => '1.0',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '基线描述。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '默认基线',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<Void>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'requestId',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'C18A891D-7B04-51A1-AAC6-201727A361CE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C18A891D-7B04-51A1-AAC6-201727A361CE\\"\\n}","type":"json"}]',
+ 'title' => '更新账号工厂基线',
+ ],
+ 'RunEvaluation' => [
+ 'summary' => '运行云治理中心治理检测。',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceMBMBHG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '成员账号ID。该参数仅适用于多账号检测模式。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '176618589410****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '治理成熟度检测范围。取值:'."\n"
+ ."\n"
+ .'- Account(默认):运行单账号治理成熟度检测,仅检测当前账号。'."\n"
+ .'- ResourceDirectory:运行多账号治理成熟度检测,即检测资源目录所有成员账号。操作前,需要先升级至多账号治理成熟度检测。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceDirectory',
+ ],
+ ],
+ [
+ 'name' => 'MetricIds',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '需要检测的检测项ID列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测项ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xfyve5****',
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<RunEvaluationResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '2D3E2A3A-F2B8-578D-9659-3195F94A****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2D3E2A3A-F2B8-578D-9659-3195F94A****\\"\\n}","type":"json"}]',
+ 'title' => '运行治理检测',
+ ],
+ 'ListEvaluationMetadata' => [
+ 'summary' => '获取所有可用的治理检测评估项的信息,包括名称、ID、描述、阶段、资源明细元数据和修复指引。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceMBMBHG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Language',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '语言类型。治理检测定义将以此语言返回。取值:'."\n"
+ ."\n"
+ .'- en:英文。'."\n"
+ .'- zh:中文。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh',
+ ],
+ ],
+ [
+ 'name' => 'LensCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'TopicCode',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => '治理专题code',
+ 'description' => '治理专题code',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceUtilization',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<ListEvaluationMetadataResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EvaluationMetadata' => [
+ 'description' => '治理检测定义元数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '治理检测定义元数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Metadata' => [
+ 'description' => '特定元数据类型下的元数据对象列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '特定元数据类型下的元数据对象列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Category' => [
+ 'description' => '检测项所属的支柱。',
+ 'type' => 'string',
+ 'example' => 'Security',
+ ],
+ 'Description' => [
+ 'description' => '检测项描述。',
+ 'type' => 'string',
+ 'example' => '主账号 AccessKey 等同于主账号权限,无法进行条件限制(如访问来源 IP、访问时间等),一旦泄漏风险极大。有存在的主账号 AccessKey,则视为不合规。',
+ ],
+ 'DisplayName' => [
+ 'description' => '显示名称。',
+ 'type' => 'string',
+ 'example' => '主账号存在启用的 AccessKey',
+ ],
+ 'Id' => [
+ 'description' => '元数据随机ID。',
+ 'type' => 'string',
+ 'example' => 'pxgtda****',
+ ],
+ 'RecommendationLevel' => [
+ 'description' => '检测项推荐治理等级。',
+ 'type' => 'string',
+ 'example' => 'High',
+ ],
+ 'RemediationMetadata' => [
+ 'description' => '修复元数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Remediation' => [
+ 'description' => '修复项。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '修复项。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Actions' => [
+ 'description' => '修复动作。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '修复动作。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Classification' => [
+ 'description' => '修复方式类别。'."\n"
+ ."\n"
+ .'> 仅当`RemediationType`为`Analysis`时返回该参数。',
+ 'type' => 'string',
+ 'example' => 'UnusedAccessKeyInRamUser',
+ ],
+ 'CostDescription' => [
+ 'description' => '修复花费。',
+ 'type' => 'string',
+ 'example' => '当前操作不产生费用',
+ ],
+ 'Description' => [
+ 'description' => '修复描述。'."\n"
+ ."\n"
+ .'> 仅当`RemediationType`为`Analysis`时返回该参数。',
+ 'type' => 'string',
+ 'example' => 'RAM 用户既启用控制台登录又保有子账号AK,且子账号AK从未使用。',
+ ],
+ 'Guidance' => [
+ 'description' => '修复内容。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '修复内容。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ButtonName' => [
+ 'description' => '修复步骤按钮显示名称。',
+ 'type' => 'string',
+ 'example' => '手动修复',
+ ],
+ 'ButtonRef' => [
+ 'description' => '修复步骤按钮跳转链接。',
+ 'type' => 'string',
+ 'example' => 'https://ram.console.aliyun.com/users',
+ ],
+ 'Content' => [
+ 'description' => '修复步骤内容。',
+ 'type' => 'string',
+ 'example' => '需进行腾挪操作,步骤如下:</br>1. 进入 RAM 控制台,「身份管理」-「用户」,单击「创建用户」。</br>2. 填写「登录名称」,下方「访问方式」,勾选 OpenAPI 调用访问。</br>3. 创建成功后,保存该 RAM 用户的 AccessKey,勾选该 RAM 用户,单击「添加权限」,在弹出的侧边栏中,添加 AdministratorAccess权限。</br>4. 在程序中将主账号 AccessKey 替换为上步骤中创建的 RAM 用户 AccessKey,在相应的测试环境中验证程序逻辑是否正常。</br>5. 如果验证通过,将程序发布到生产环境,并将主账号 AccessKey 禁用,观察应用是否正常。</br>6. 如果应用正常,则等待一定时间(如 3 个月),将禁用的主账号 AccessKey 删除。',
+ ],
+ 'Title' => [
+ 'description' => '修复步骤标题。',
+ 'type' => 'string',
+ 'example' => '情况三:针对「90天内使用中的 AccessKey」',
+ ],
+ ],
+ ],
+ ],
+ 'Notice' => [
+ 'description' => '修复注意事项。',
+ 'type' => 'string',
+ 'example' => '此治理项会在配置审计中开启AccessKey及权限治理最佳实践合规包,从AccessKey、阿里云账号、RAM用户的设置和使用方式等方面进行检测。',
+ ],
+ 'Suggestion' => [
+ 'description' => '修复建议。'."\n"
+ ."\n"
+ .'> 仅当`RemediationType`为`Analysis`时返回该参数。',
+ 'type' => 'string',
+ 'example' => '该RAM用户既启用控制台登录又保有子账号AK,且子账号AccessKey从未使用过,因此建议禁用该AccessKey。禁用90天后,如果没有发生与该AcccessKey相关的问题,则可以直接删除该AccessKey。',
+ ],
+ ],
+ ],
+ ],
+ 'RemediationType' => [
+ 'description' => '修复类型。取值:'."\n"
+ ."\n"
+ .'- Manual:手动修复。'."\n"
+ .'- QuickFix:快速修复。'."\n"
+ .'- Analysis:辅助决策。',
+ 'type' => 'string',
+ 'example' => 'Manual',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ResourceMetadata' => [
+ 'description' => '检测项的资源元数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ResourcePropertyMetadata' => [
+ 'description' => '资源属性元数据。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源属性元数据。',
+ 'type' => 'object',
+ 'properties' => [
+ 'DisplayName' => [
+ 'description' => '属性显示名称。',
+ 'type' => 'string',
+ 'example' => 'AccessKey 最后使用时间',
+ ],
+ 'PropertyName' => [
+ 'description' => '资源属性名称。',
+ 'type' => 'string',
+ 'example' => 'AkLastUsedTime',
+ ],
+ 'PropertyType' => [
+ 'description' => '资源属性类型。',
+ 'type' => 'string',
+ 'example' => 'String',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Scope' => [
+ 'description' => '检测项所属范围。取值:'."\n"
+ ."\n"
+ .'- Account:单账号检测项。'."\n"
+ .'- ResourceDirectory:多账号检测项。',
+ 'type' => 'string',
+ 'example' => 'Account',
+ ],
+ 'Stage' => [
+ 'description' => '检测项所处状态。取值:'."\n"
+ ."\n"
+ .'- Released:正式。'."\n"
+ .'- Beta:预上线。',
+ 'type' => 'string',
+ 'example' => 'Released',
+ ],
+ 'TopicCode' => [
+ 'title' => '所属治理专题code',
+ 'description' => '所属治理专题code',
+ 'type' => 'string',
+ 'example' => 'ResourceUtilization',
+ ],
+ ],
+ ],
+ ],
+ 'Type' => [
+ 'description' => '元数据类型。取值:'."\n"
+ ."\n"
+ .'- Metric:检测项。',
+ 'type' => 'string',
+ 'example' => 'Metric',
+ ],
+ ],
+ ],
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => '16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"EvaluationMetadata\\": [\\n {\\n \\"Metadata\\": [\\n {\\n \\"Category\\": \\"Security\\",\\n \\"Description\\": \\"主账号 AccessKey 等同于主账号权限,无法进行条件限制(如访问来源 IP、访问时间等),一旦泄漏风险极大。有存在的主账号 AccessKey,则视为不合规。\\",\\n \\"DisplayName\\": \\"主账号存在启用的 AccessKey\\",\\n \\"Id\\": \\"pxgtda****\\",\\n \\"RecommendationLevel\\": \\"High\\",\\n \\"RemediationMetadata\\": {\\n \\"Remediation\\": [\\n {\\n \\"Actions\\": [\\n {\\n \\"Classification\\": \\"UnusedAccessKeyInRamUser\\",\\n \\"CostDescription\\": \\"当前操作不产生费用\\",\\n \\"Description\\": \\"RAM 用户既启用控制台登录又保有子账号AK,且子账号AK从未使用。\\",\\n \\"Guidance\\": [\\n {\\n \\"ButtonName\\": \\"手动修复\\",\\n \\"ButtonRef\\": \\"https://ram.console.aliyun.com/users\\",\\n \\"Content\\": \\"需进行腾挪操作,步骤如下:</br>1. 进入 RAM 控制台,「身份管理」-「用户」,单击「创建用户」。</br>2. 填写「登录名称」,下方「访问方式」,勾选 OpenAPI 调用访问。</br>3. 创建成功后,保存该 RAM 用户的 AccessKey,勾选该 RAM 用户,单击「添加权限」,在弹出的侧边栏中,添加 AdministratorAccess权限。</br>4. 在程序中将主账号 AccessKey 替换为上步骤中创建的 RAM 用户 AccessKey,在相应的测试环境中验证程序逻辑是否正常。</br>5. 如果验证通过,将程序发布到生产环境,并将主账号 AccessKey 禁用,观察应用是否正常。</br>6. 如果应用正常,则等待一定时间(如 3 个月),将禁用的主账号 AccessKey 删除。\\",\\n \\"Title\\": \\"情况三:针对「90天内使用中的 AccessKey」\\"\\n }\\n ],\\n \\"Notice\\": \\"此治理项会在配置审计中开启AccessKey及权限治理最佳实践合规包,从AccessKey、阿里云账号、RAM用户的设置和使用方式等方面进行检测。\\",\\n \\"Suggestion\\": \\"该RAM用户既启用控制台登录又保有子账号AK,且子账号AccessKey从未使用过,因此建议禁用该AccessKey。禁用90天后,如果没有发生与该AcccessKey相关的问题,则可以直接删除该AccessKey。\\"\\n }\\n ],\\n \\"RemediationType\\": \\"Manual\\"\\n }\\n ]\\n },\\n \\"ResourceMetadata\\": {\\n \\"ResourcePropertyMetadata\\": [\\n {\\n \\"DisplayName\\": \\"AccessKey 最后使用时间\\",\\n \\"PropertyName\\": \\"AkLastUsedTime\\",\\n \\"PropertyType\\": \\"String\\"\\n }\\n ]\\n },\\n \\"Scope\\": \\"Account\\",\\n \\"Stage\\": \\"Released\\",\\n \\"TopicCode\\": \\"ResourceUtilization\\"\\n }\\n ],\\n \\"Type\\": \\"Metric\\"\\n }\\n ],\\n \\"RequestId\\": \\"16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1\\"\\n}","type":"json"}]',
+ 'title' => '获取治理检测项信息',
+ ],
+ 'ListEvaluationScoreHistory' => [
+ 'summary' => '获取治理检测历史分数。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceVMJHAB',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'StartDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的开始时间,格式:YYYY-MM-DD。'."\n"
+ ."\n"
+ .'最多查询最近180天的记录。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2024-06-11',
+ ],
+ ],
+ [
+ 'name' => 'EndDate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '查询的结束时间,格式:YYYY-MM-DD。'."\n"
+ ."\n"
+ .'默认为查询当前日期前7天的历史分数。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '2024-07-11',
+ ],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '成员账号ID。该参数仅适用于多账号检测模式。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '176618589410****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<ListEvaluationScoreHistoryResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AC9BD94C-D20C-4D27-88D4-89E8D75C051B',
+ ],
+ 'ScoreHistory' => [
+ 'description' => '历史检测分数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'TotalScoreHistory' => [
+ 'description' => '历史检测分数。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '历史检测分数。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EvaluationTime' => [
+ 'description' => '分数生成时间(UTC时间)。',
+ 'type' => 'string',
+ 'example' => '2024-06-30T03:34:02Z',
+ ],
+ 'Score' => [
+ 'description' => '分数。'."\n"
+ ."\n"
+ .'取值范围:0~1。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '0.6753',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"AC9BD94C-D20C-4D27-88D4-89E8D75C051B\\",\\n \\"ScoreHistory\\": {\\n \\"TotalScoreHistory\\": [\\n {\\n \\"EvaluationTime\\": \\"2024-06-30T03:34:02Z\\",\\n \\"Score\\": 0.6753\\n }\\n ]\\n }\\n}","type":"json"}]',
+ 'title' => '获取治理检测历史分数',
+ ],
+ 'ListEvaluationMetricDetails' => [
+ 'summary' => '获取指定检测项的不合规资源信息,包含不合规资源的名称、ID、类别、类型、地域以及相关元数据。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceMBMBHG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Id',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '需要获取不合规资源的检测项ID。'."\n"
+ ."\n"
+ .'您可以调用[ListEvaluationMetadata](~~2841889~~)接口,获取检测项ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'xfyve5****',
+ ],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '成员账号ID。该参数仅适用于多账号检测模式。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '103144549568****',
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '下一个查询开始的Token。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****',
+ ],
+ ],
+ [
+ 'name' => 'MaxResults',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '单次请求返回结果的最大条数。默认值:5。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '5',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'SnapshotId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检测快照ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'es-bp1r**************',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '治理成熟度检测范围。取值:'."\n"
+ ."\n"
+ .'- Account(默认):查询当前账号的检测项明细。'."\n"
+ .'- ResourceDirectory:查询资源目录所有成员账号的检测项明细。操作前,需要先升级至多账号治理成熟度检测。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Account',
+ ],
+ ],
+ [
+ 'name' => 'Date',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponsePageResult<ListEvaluationItemDetailsResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NextToken' => [
+ 'description' => '用于获取下一页数据的令牌。',
+ 'type' => 'string',
+ 'example' => 'AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'AC9BD94C-D20C-4D27-88D4-89E8D75C****',
+ ],
+ 'Resources' => [
+ 'description' => '不合规资源详情。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '不合规资源详情。',
+ 'type' => 'object',
+ 'properties' => [
+ 'RegionId' => [
+ 'title' => '资源所属 region',
+ 'description' => '资源所属的地域ID。',
+ 'type' => 'string',
+ 'example' => 'cn-hangzhou',
+ ],
+ 'ResourceClassification' => [
+ 'description' => '辅助决策分类。'."\n"
+ ."\n"
+ .'> 只有支持辅助决策的检测项,才会返回该参数。',
+ 'type' => 'string',
+ 'example' => 'RecentUnloginRamUser',
+ ],
+ 'ResourceId' => [
+ 'title' => '资源 id',
+ 'description' => '资源ID。',
+ 'type' => 'string',
+ 'example' => '26435103783237****',
+ ],
+ 'ResourceName' => [
+ 'title' => '资源名称',
+ 'description' => '资源名称。',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceOwnerId' => [
+ 'title' => '账号 id',
+ 'description' => '资源所属的阿里云账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '176618589410****',
+ ],
+ 'ResourceProperties' => [
+ 'description' => '资源额外属性列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '资源额外属性列表。',
+ 'type' => 'object',
+ 'properties' => [
+ 'PropertyName' => [
+ 'description' => '资源属性的名称。',
+ 'type' => 'string',
+ 'example' => 'DisplayName',
+ ],
+ 'PropertyValue' => [
+ 'description' => '资源属性的值。',
+ 'type' => 'string',
+ 'example' => 'TestAccount',
+ ],
+ ],
+ ],
+ ],
+ 'ResourceType' => [
+ 'title' => '资源类型',
+ 'description' => '资源类型。',
+ 'type' => 'string',
+ 'example' => 'ACS::RAM::User',
+ ],
+ 'ComplianceType' => [
+ 'description' => '合规状态。取值:'."\n"
+ .'- NonCompliant:不合规。'."\n"
+ .'- Excluded:已忽略。'."\n"
+ .'- PendingExclusion:已忽略未生效。'."\n"
+ .'- PendingInclusion:已取消忽略未生效。',
+ 'type' => 'string',
+ 'example' => 'NonCompliant',
+ ],
+ ],
+ ],
+ ],
+ 'Date' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextToken\\": \\"AAAAAGEaXR18y1rqykZHIqRuBejOqED4S3Xne33c7zbn****\\",\\n \\"RequestId\\": \\"AC9BD94C-D20C-4D27-88D4-89E8D75C****\\",\\n \\"Resources\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"ResourceClassification\\": \\"RecentUnloginRamUser\\",\\n \\"ResourceId\\": \\"26435103783237****\\",\\n \\"ResourceName\\": \\"test\\",\\n \\"ResourceOwnerId\\": 0,\\n \\"ResourceProperties\\": [\\n {\\n \\"PropertyName\\": \\"DisplayName\\",\\n \\"PropertyValue\\": \\"TestAccount\\"\\n }\\n ],\\n \\"ResourceType\\": \\"ACS::RAM::User\\",\\n \\"ComplianceType\\": \\"NonCompliant\\"\\n }\\n ],\\n \\"Date\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => '获取指定检测项的不合规资源信息',
+ ],
+ 'ListEvaluationResults' => [
+ 'summary' => '获取治理检测结果和状态。',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernanceMBMBHG',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '成员账号ID。该参数仅适用于多账号检测模式。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '176618589410****',
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => '地域ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Filters',
+ 'in' => 'query',
+ 'style' => 'flat',
+ 'schema' => [
+ 'description' => '过滤条件。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '过滤条件。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => '过滤条件键。取值:'."\n"
+ ."\n"
+ .'- ResourceId:资源ID。'."\n"
+ .'- ResourceName:资源名称。'."\n"
+ .'- ResourceType:资源类型。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceId',
+ ],
+ 'Values' => [
+ 'description' => '过滤条件值列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '过滤条件值。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'c191**************b4f',
+ ],
+ 'required' => false,
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'SnapshotId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '检测快照ID。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'es-bp1r**************',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '治理成熟度检测范围。取值:'."\n"
+ ."\n"
+ .'- Account(默认):执行单账号治理成熟度检测,仅检测当前账号。'."\n"
+ .'- ResourceDirectory:执行多账号治理成熟度检测,即检测资源目录所有成员账号。操作前,需要先升级至多账号治理成熟度检测。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ResourceDirectory',
+ ],
+ ],
+ [
+ 'name' => 'LensCode',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '专项检测代码。取值:'."\n"
+ ."\n"
+ .'- basic(默认):基础模型(治理成熟度)检测。'."\n"
+ .'- ack:容器构建专项检测。'."\n"
+ .'- ai:机器学习专项检测。'."\n"
+ .'- nis:网络服务专项检测。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'basic',
+ ],
+ ],
+ [
+ 'name' => 'TopicCode',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'title' => '治理专题code',
+ 'description' => '治理专题code',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'IdentityAndAccessManagement',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'ResponseBaseResult<ListEvaluationResultsResponse>',
+ 'description' => '返回结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountId' => [
+ 'description' => '成员账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '176618589410****',
+ ],
+ 'RequestId' => [
+ 'title' => '请求ID',
+ 'description' => '请求ID。',
+ 'type' => 'string',
+ 'example' => 'BD57329E-131A-59F4-8746-E1CD8D7B****',
+ ],
+ 'Results' => [
+ 'description' => '检测结果,包含整体检测状态以及子项检测结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'EvaluationTime' => [
+ 'description' => '整体检测结束时间(UTC时间)。',
+ 'type' => 'string',
+ 'example' => '2023-12-13T03:35:00Z'."\n",
+ ],
+ 'MetricResults' => [
+ 'description' => '检测结果。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '检测结果。',
+ 'type' => 'object',
+ 'properties' => [
+ 'ErrorInfo' => [
+ 'description' => '错误信息。'."\n"
+ ."\n"
+ .'> 当`Status`为`Failed`时,返回该错误信息。',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '错误码。'."\n",
+ 'type' => 'string',
+ 'example' => 'EcsInsightEnableFailed',
+ ],
+ 'Message' => [
+ 'description' => '错误信息。',
+ 'type' => 'string',
+ 'example' => 'Unable to enable ECS Insight due to a server error.',
+ ],
+ ],
+ ],
+ 'EvaluationTime' => [
+ 'description' => '单个检测项检测结束时间(UTC时间)。',
+ 'type' => 'string',
+ 'example' => '2023-12-13T03:34:02Z',
+ ],
+ 'Id' => [
+ 'description' => '检测项ID。',
+ 'type' => 'string',
+ 'example' => 'r7xdcu****',
+ ],
+ 'ResourcesSummary' => [
+ 'description' => '检测项资源评估汇总。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NonCompliant' => [
+ 'description' => '不合规资源数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ 'Result' => [
+ 'description' => '检测项资源合规率。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '0.67',
+ ],
+ 'Risk' => [
+ 'description' => '检测风险等级。取值:'."\n"
+ ."\n"
+ .'- Error:高风险。'."\n"
+ .'- Warning:中风险。'."\n"
+ .'- None:无风险。',
+ 'type' => 'string',
+ 'example' => 'Error',
+ ],
+ 'Status' => [
+ 'description' => '单个检测项检测状态。取值:'."\n"
+ ."\n"
+ .'- Running:正在检测。'."\n"
+ .'- Finished:检测完成。'."\n"
+ .'- Failed:检测失败。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ ],
+ 'AccountSummary' => [
+ 'description' => '检测项账号评估汇总。',
+ 'type' => 'object',
+ 'properties' => [
+ 'NonCompliant' => [
+ 'description' => '不合规账号数量。',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ 'PotentialScoreIncrease' => [
+ 'title' => '潜在分数提升',
+ 'description' => '潜在分数提升',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '0.2',
+ ],
+ 'AvailableRemediation' => [
+ 'description' => '可用的修复列表。',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RemediationTemplateId' => [
+ 'description' => '修正模板ID。',
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Status' => [
+ 'description' => '整体检测状态。取值:'."\n"
+ ."\n"
+ .'- Running:正在检测。'."\n"
+ .'- Finished:检测完成。'."\n"
+ .'- Failed:检测失败。',
+ 'type' => 'string',
+ 'example' => 'Running',
+ ],
+ 'TotalScore' => [
+ 'description' => '总体分数。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '0.6453',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 404 => [
+ [
+ 'errorCode' => 'InvalidEnterpriseRealName.NotFound',
+ 'errorMessage' => 'The specified account has not passed enterprise real name verification. Please complete the verification for the account first.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InternalError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountId\\": 0,\\n \\"RequestId\\": \\"BD57329E-131A-59F4-8746-E1CD8D7B****\\",\\n \\"Results\\": {\\n \\"EvaluationTime\\": \\"2023-12-13T03:35:00Z\\\\n\\",\\n \\"MetricResults\\": [\\n {\\n \\"ErrorInfo\\": {\\n \\"Code\\": \\"EcsInsightEnableFailed\\",\\n \\"Message\\": \\"Unable to enable ECS Insight due to a server error.\\"\\n },\\n \\"EvaluationTime\\": \\"2023-12-13T03:34:02Z\\",\\n \\"Id\\": \\"r7xdcu****\\",\\n \\"ResourcesSummary\\": {\\n \\"NonCompliant\\": 2\\n },\\n \\"Result\\": 0.67,\\n \\"Risk\\": \\"Error\\",\\n \\"Status\\": \\"Running\\",\\n \\"AccountSummary\\": {\\n \\"NonCompliant\\": 1\\n },\\n \\"PotentialScoreIncrease\\": 0.2,\\n \\"AvailableRemediation\\": [\\n {\\n \\"RemediationTemplateId\\": \\"\\"\\n }\\n ]\\n }\\n ],\\n \\"Status\\": \\"Running\\",\\n \\"TotalScore\\": 0.6453\\n }\\n}","type":"json"}]',
+ 'title' => '获取治理检测结果和状态',
+ ],
+ 'GenerateEvaluationReport' => [
+ 'summary' => '生成治理检测报告',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'none',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREgovernance9GNJ07',
+ ],
+ 'tenantRelevance' => 'publicInformation',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RegionId',
+ 'description' => 'RegionId',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'AccountId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '账号ID,若不传入,默认生成当前账号的报告,MA账号可以传入成员账号的ID生成成员账号的报告。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '103144549568****',
+ ],
+ ],
+ [
+ 'name' => 'ReportType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '报告类型。取值类型:'."\n"
+ .'- EvaluationAccountHtmlReport:单账号HTML报告。'."\n"
+ .'- EvaluationAccountExcelReport:单账号EXCEL报告。'."\n"
+ .'- EvaluationMultiAccountExcelReport:多账号EXCEL报告。',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EvaluationAccountExcelReport',
+ 'enum' => [
+ 'EvaluationAccountReport',
+ 'EvaluationAccountExcelReport',
+ 'EvaluationMultiAccountExcelReport',
+ 'EvaluationAccountHtmlReport',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'AccountIds',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => '生成报告的成员账号ID列表。'."\n"
+ .'说明:仅在您生成多账号报告时,且希望生成指定账号范围的报告,才需要传入该参数。',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1319994761488600',
+ ],
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'AccountId' => [
+ 'description' => '生成报告的账号ID。',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '103144549568****',
+ ],
+ 'EvaluationScore' => [
+ 'description' => '治理成熟度检测分数。',
+ 'type' => 'number',
+ 'format' => 'double',
+ 'example' => '0.7684',
+ ],
+ 'EvaluationTime' => [
+ 'description' => '检测时间。',
+ 'type' => 'string',
+ 'example' => '2026-01-12T07:25:33Z',
+ ],
+ 'Finished' => [
+ 'description' => '报告是否生成完毕。'."\n"
+ ."\n"
+ .'> - true:报告生成完毕'."\n"
+ .'> - false:报告未生成完毕',
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'ReportType' => [
+ 'description' => '报告类型。返回值类型:'."\n"
+ .'- EvaluationAccountHtmlReport:单账号HTML报告。'."\n"
+ .'- EvaluationAccountExcelReport:单账号EXCEL报告。'."\n"
+ .'- EvaluationMultiAccountExcelReport:多账号EXCEL报告。',
+ 'type' => 'string',
+ 'example' => 'EvaluationAccountExcelReport',
+ ],
+ 'ReportUrl' => [
+ 'description' => '报告的下载地址。',
+ 'type' => 'string',
+ 'example' => 'https://governance-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/reports-html/*****',
+ ],
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request',
+ 'type' => 'string',
+ 'example' => '7DCF863F-CBBB-57C4-8AF2-5D4EE35D1EB1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"AccountId\\": 0,\\n \\"EvaluationScore\\": 0.7684,\\n \\"EvaluationTime\\": \\"2026-01-12T07:25:33Z\\",\\n \\"Finished\\": \\"true\\",\\n \\"ReportType\\": \\"EvaluationAccountExcelReport\\",\\n \\"ReportUrl\\": \\"https://governance-prod-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com/reports-html/*****\\",\\n \\"RequestId\\": \\"7DCF863F-CBBB-57C4-8AF2-5D4EE35D1EB1\\"\\n}","type":"json"}]',
+ 'title' => '生成治理检测报告',
+ 'description' => '生成治理检测报告'."\n"
+ .'> '."\n"
+ .'> - 该接口为异步接口,通过返回值`Finished`字段判断报告生成情况。'."\n",
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'governance.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'governance.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'governance.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'governance.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ ],
+];