summaryrefslogtreecommitdiff
path: root/data/en_us/cr/2018-12-01/api-docs.php
diff options
context:
space:
mode:
Diffstat (limited to 'data/en_us/cr/2018-12-01/api-docs.php')
-rw-r--r--data/en_us/cr/2018-12-01/api-docs.php18410
1 files changed, 18410 insertions, 0 deletions
diff --git a/data/en_us/cr/2018-12-01/api-docs.php b/data/en_us/cr/2018-12-01/api-docs.php
new file mode 100644
index 0000000..8ba3a6e
--- /dev/null
+++ b/data/en_us/cr/2018-12-01/api-docs.php
@@ -0,0 +1,18410 @@
+<?php return [
+ 'version' => '1.0',
+ 'info' => [
+ 'style' => 'RPC',
+ 'product' => 'cr',
+ 'version' => '2018-12-01',
+ ],
+ 'directories' => [
+ [
+ 'id' => 195681,
+ 'title' => 'Artifact Subscription Management',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateArtifactSubscriptionRule',
+ 'DeleteArtifactSubscriptionRule',
+ 'ListArtifactSubscriptionTask',
+ 'GetArtifactSubscriptionRule',
+ 'GetArtifactSubscriptionTaskResult',
+ 'CreateArtifactSubscriptionRule',
+ 'ListArtifactSubscriptionRule',
+ 'GetArtifactSubscriptionTask',
+ 'CreateArtifactSubscriptionTask',
+ ],
+ ],
+ [
+ 'id' => 191665,
+ 'title' => 'ArtifactLifecycle Management',
+ 'type' => 'directory',
+ 'children' => [
+ 'UpdateArtifactLifecycleRule',
+ 'ListArtifactLifecycleRule',
+ 'GetArtifactLifecycleRule',
+ 'DeleteArtifactLifecycleRule',
+ 'CreateArtifactLifecycleRule',
+ ],
+ ],
+ [
+ 'id' => 188192,
+ 'title' => 'Tag',
+ 'type' => 'directory',
+ 'children' => [
+ 'TagResources',
+ 'UntagResources',
+ 'ListTagResources',
+ ],
+ ],
+ [
+ 'id' => 336341,
+ 'title' => 'Instance Storage Management',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateStorageDomainRoutingRule',
+ 'DeleteStorageDomainRoutingRule',
+ 'GetStorageDomainRoutingRule',
+ 'UpdateStorageDomainRoutingRule',
+ ],
+ ],
+ [
+ 'id' => 112035,
+ 'title' => 'Instances',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetInstance',
+ 'GetInstanceUsage',
+ 'ListInstanceRegion',
+ 'ListInstance',
+ 'GetInstanceCount',
+ ],
+ ],
+ [
+ 'id' => 112041,
+ 'title' => 'Instance endpoints',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateInstanceVpcEndpointLinkedVpc',
+ 'CreateInstanceEndpointAclPolicy',
+ 'DeleteInstanceEndpointAclPolicy',
+ 'DeleteInstanceVpcEndpointLinkedVpc',
+ 'UpdateInstanceEndpointStatus',
+ 'GetInstanceEndpoint',
+ 'ListInstanceEndpoint',
+ 'GetInstanceVpcEndpoint',
+ ],
+ ],
+ [
+ 'id' => 112050,
+ 'title' => 'Instance replication',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateRepoSyncTaskByRule',
+ 'CreateRepoSyncRule',
+ 'CreateRepoSyncTask',
+ 'DeleteRepoSyncRule',
+ 'ListRepoSyncTask',
+ 'ListRepoSyncRule',
+ 'GetRepoSyncTask',
+ 'CancelRepoSyncTask',
+ ],
+ ],
+ [
+ 'id' => 112058,
+ 'title' => 'Image namespaces',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateNamespace',
+ 'DeleteNamespace',
+ 'UpdateNamespace',
+ 'GetNamespace',
+ 'ListNamespace',
+ ],
+ ],
+ [
+ 'id' => 112064,
+ 'title' => 'Image repositories',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateRepository',
+ 'DeleteRepository',
+ 'UpdateRepository',
+ 'ListRepository',
+ 'GetRepository',
+ ],
+ ],
+ [
+ 'id' => 112070,
+ 'title' => 'Images',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateRepoTag',
+ 'DeleteRepoTag',
+ 'ListRepoTag',
+ 'GetRepoTag',
+ ],
+ ],
+ [
+ 'id' => 112077,
+ 'title' => 'Image security',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateRepoTagScanTask',
+ 'GetRepoTagScanStatus',
+ 'GetRepoTagScanSummary',
+ 'ListRepoTagScanResult',
+ 'ListScanBaselineByTask',
+ 'ListScanMaliciousFileByTask',
+ ],
+ ],
+ [
+ 'id' => 112082,
+ 'title' => 'Image building',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateBuildRecordByRule',
+ 'CreateBuildRecordByRecord',
+ 'CreateRepoBuildRule',
+ 'CreateRepoSourceCodeRepo',
+ 'DeleteRepoBuildRule',
+ 'CancelRepoBuildRecord',
+ 'UpdateRepoBuildRule',
+ 'UpdateRepoSourceCodeRepo',
+ 'ListRepoBuildRecordLog',
+ 'ListRepoBuildRule',
+ 'ListRepoBuildRecord',
+ 'GetRepoBuildRecordStatus',
+ 'GetRepoBuildRecord',
+ 'GetRepoSourceCodeRepo',
+ ],
+ ],
+ [
+ 'id' => 112096,
+ 'title' => 'Image building triggers',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateRepoTrigger',
+ 'DeleteRepoTrigger',
+ 'UpdateRepoTrigger',
+ 'ListRepoTrigger',
+ ],
+ ],
+ [
+ 'id' => 112102,
+ 'title' => 'Helm chart namespaces',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateChartNamespace',
+ 'DeleteChartNamespace',
+ 'UpdateChartNamespace',
+ 'GetChartNamespace',
+ 'ListChartNamespace',
+ ],
+ ],
+ [
+ 'id' => 112108,
+ 'title' => 'Helm chart repositories',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateChartRepository',
+ 'DeleteChartRepository',
+ 'UpdateChartRepository',
+ 'ListChartRepository',
+ 'GetChartRepository',
+ ],
+ ],
+ [
+ 'id' => 112114,
+ 'title' => 'Helm chart versions',
+ 'type' => 'directory',
+ 'children' => [
+ 'DeleteChartRelease',
+ 'ListChartRelease',
+ ],
+ ],
+ [
+ 'id' => 112117,
+ 'title' => 'Credentials',
+ 'type' => 'directory',
+ 'children' => [
+ 'GetAuthorizationToken',
+ 'ResetLoginPassword',
+ ],
+ ],
+ [
+ 'id' => 112120,
+ 'title' => 'Artifact building',
+ 'type' => 'directory',
+ 'children' => [
+ 'CancelArtifactBuildTask',
+ 'GetArtifactBuildRule',
+ 'GetArtifactBuildTask',
+ 'CreateArtifactBuildRule',
+ 'ListArtifactBuildTaskLog',
+ ],
+ ],
+ [
+ 'id' => 112124,
+ 'title' => 'Cloud-native delivery chains',
+ 'type' => 'directory',
+ 'children' => [
+ 'CreateChain',
+ 'DeleteChain',
+ 'UpdateChain',
+ 'GetChain',
+ 'ListChain',
+ 'ListChainInstance',
+ ],
+ ],
+ [
+ 'id' => 112131,
+ 'title' => 'Event notification',
+ 'type' => 'directory',
+ 'children' => [
+ 'DeleteEventCenterRule',
+ 'UpdateEventCenterRule',
+ 'ListEventCenterRecord',
+ 'ListEventCenterRuleName',
+ ],
+ ],
+ [
+ 'id' => 172536,
+ 'title' => 'Others',
+ 'type' => 'directory',
+ 'children' => [
+ 'ChangeResourceGroup',
+ 'CreateScanRule',
+ 'DeleteScanRule',
+ 'ListScanRule',
+ 'UpdateScanRule',
+ 'GetScanRule',
+ ],
+ ],
+ ],
+ 'components' => [
+ 'schemas' => [
+ 'RouteItem' => [
+ 'description' => 'Instance Storage Routing Item',
+ 'visibility' => 'Public',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceDomain' => [
+ 'description' => 'Instance Domain',
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test-instance-registry-vpc.cn-hangzhou.cr.aliyuncs.com',
+ 'backendName' => 'instanceDomain',
+ ],
+ 'StorageDomain' => [
+ 'description' => 'OSS Domain',
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'https://cri-cfafawer***-registry.oss-cn-hangzhou.aliyuncs.com',
+ 'backendName' => 'storageDomain',
+ ],
+ 'EndpointType' => [
+ 'description' => 'Instance Endpoint Type',
+ 'visibility' => 'Public',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Internet',
+ 'nullable' => false,
+ 'backendName' => 'endpointType',
+ 'enum' => [
+ 'Internet',
+ 'VPC',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'apis' => [
+ 'UpdateArtifactSubscriptionRule' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '141835',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr5ED6LF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-c0o11woew0k****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crasr-mdbpung4i1rm****',
+ ],
+ ],
+ [
+ 'name' => 'SourceProvider',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source of the artifacts.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DOCKER_HUB: Docker Hub'."\n"
+ .'* GCR: GCR'."\n"
+ .'* QUAY: Quay.io'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'DOCKER_HUB' => 'Docker Hub',
+ 'GCR' => 'GCR',
+ 'QUAY' => 'Quay.io',
+ ],
+ 'example' => 'DOCKER_HUB',
+ ],
+ ],
+ [
+ 'name' => 'SourceNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the source namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'library',
+ ],
+ ],
+ [
+ 'name' => 'SourceRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nginx'."\n",
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Container Registry namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-ns'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Container Registry repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-repo'."\n",
+ ],
+ ],
+ [
+ 'name' => 'TagRegexp',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tags in the subscription source repository. Regular expressions are supported.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'release-v.*'."\n",
+ ],
+ ],
+ [
+ 'name' => 'TagCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of subscribed images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Override',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to overwrite the original image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Accelerate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable an acceleration link for image subscription. The subscription acceleration feature is in public preview. The feature is optimized based on scheduling policies and network links to accelerate image subscription.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Platform',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The operating system and architecture. If the source repository contains multi-arch images, only the images with the specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and architecture.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* linux/arm: Linux/Arm'."\n"
+ .'* windows/x86: Windows/x86'."\n"
+ .'* \\*/\\*: \\*/\\*'."\n"
+ .'* linux/arm64: Linux/Arm64'."\n"
+ .'* windows/x86-64: Windows/x86-64'."\n"
+ .'* linux/amd64: Linux/AMD64'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'linux/arm' => 'linux/arm',
+ 'windows/x86' => 'windows/x86',
+ '*/*' => '*/*',
+ 'linux/arm64' => 'linux/arm64',
+ 'windows/x86-64' => 'windows/x86-64',
+ 'linux/amd64' => 'linux/amd64',
+ ],
+ 'example' => '*/*',
+ ],
+ 'required' => false,
+ 'maxItems' => 200,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '02B27D80-FD32-5155-931A-93700779BB9E'."\n",
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateArtifactSubscriptionRule',
+ 'summary' => 'Updates an artifact subscription rule.',
+ ],
+ 'DeleteArtifactSubscriptionRule' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-c0o11woew0k****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crasr-mdbpung4i1rm****'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '02B27D80-FD32-5155-931A-93700779BB9E'."\n",
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteArtifactSubscriptionRule',
+ 'summary' => 'Deletes an artifact subscription rule.',
+ ],
+ 'ListArtifactSubscriptionTask' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-m9ob8792vm****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '81E7A039-A4EF-57D9-A100-88E5DCEF9D56',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ 'Tasks' => [
+ 'description' => 'The queried artifact subscription tasks.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-7pd01myak****',
+ ],
+ 'TaskId' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crast-40le4es9yh0p****',
+ ],
+ 'TaskStatus' => [
+ 'description' => 'The status of the task.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'TaskResult' => [
+ 'description' => 'The task result.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'TaskType' => [
+ 'description' => 'The type of the task.'."\n",
+ 'type' => 'string',
+ 'example' => 'AUTO',
+ ],
+ 'StartTime' => [
+ 'description' => 'The start time of the artifact subscription task.'."\n",
+ 'type' => 'string',
+ 'example' => '1695348301000',
+ ],
+ 'EndTime' => [
+ 'description' => 'The end time of the artifact subscription task.'."\n",
+ 'type' => 'string',
+ 'example' => '1692756630000',
+ ],
+ 'ArtifactType' => [
+ 'description' => 'The type of the artifact.'."\n",
+ 'type' => 'string',
+ 'example' => 'IMAGE',
+ ],
+ 'SourceProvider' => [
+ 'description' => 'The artifact source.'."\n",
+ 'type' => 'string',
+ 'example' => 'DOCKER_HUB',
+ ],
+ 'SourceRepoType' => [
+ 'description' => 'The type of the source artifact.'."\n",
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'SourceNamespaceName' => [
+ 'description' => 'The name of the source namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'library',
+ ],
+ 'SourceRepoName' => [
+ 'description' => 'The name of the source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-ns',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo',
+ ],
+ 'TagTotalCount' => [
+ 'description' => 'The total number of tags.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '311',
+ ],
+ 'TagSubscriptionCount' => [
+ 'description' => 'The total number of subscribed tags.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '3',
+ ],
+ 'Message' => [
+ 'description' => 'The returned message.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"81E7A039-A4EF-57D9-A100-88E5DCEF9D56\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 5,\\n \\"Tasks\\": [\\n {\\n \\"InstanceId\\": \\"cri-7pd01myak****\\",\\n \\"TaskId\\": \\"crast-40le4es9yh0p****\\",\\n \\"TaskStatus\\": \\"RUNNING\\",\\n \\"TaskResult\\": \\"SUCCESS\\",\\n \\"TaskType\\": \\"AUTO\\",\\n \\"StartTime\\": \\"1695348301000\\",\\n \\"EndTime\\": \\"1692756630000\\",\\n \\"ArtifactType\\": \\"IMAGE\\",\\n \\"SourceProvider\\": \\"DOCKER_HUB\\",\\n \\"SourceRepoType\\": \\"PUBLIC\\",\\n \\"SourceNamespaceName\\": \\"library\\",\\n \\"SourceRepoName\\": \\"nginx\\",\\n \\"NamespaceName\\": \\"test-ns\\",\\n \\"RepoName\\": \\"test-repo\\",\\n \\"TagTotalCount\\": 311,\\n \\"TagSubscriptionCount\\": 3,\\n \\"Message\\": \\"success\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListArtifactSubscriptionTask',
+ 'summary' => 'Lists artifact subscription tasks.',
+ ],
+ 'GetArtifactSubscriptionRule' => [
+ 'summary' => 'Queries the information about an artifact subscription rule.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '141837',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr5ED6LF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-c0o11woew0k****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crasr-mdbpung4i1rm****'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-hpdfkc6utbaq****'."\n",
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crasr-mdbpung4i1rm****'."\n",
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B22C77',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'SourceProvider' => [
+ 'description' => 'The source of the artifact.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DOCKER_HUB: Docker Hub'."\n"
+ .'* GCR: GCR'."\n"
+ .'* QUAY: Quay.io'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DOCKER_HUB' => 'Docker Hub',
+ 'GCR' => 'GCR',
+ 'QUAY' => 'Quay.io',
+ ],
+ 'example' => 'DOCKER_HUB',
+ ],
+ 'SourceNamespaceName' => [
+ 'description' => 'The name of the source namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'library',
+ ],
+ 'SourceRepoName' => [
+ 'description' => 'The source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the Container Registry namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-ns'."\n",
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the Container Registry repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo'."\n",
+ ],
+ 'TagRegexp' => [
+ 'description' => 'The image tag in the subscription source repository. Regular expressions are supported.'."\n",
+ 'type' => 'string',
+ 'example' => 'release-v.*',
+ ],
+ 'TagCount' => [
+ 'description' => 'The number of subscribed images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Override' => [
+ 'description' => 'Indicates whether the original image is overwritten.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Accelerate' => [
+ 'description' => 'Indicates whether an acceleration link is enabled for image subscription. The subscription acceleration feature is in public preview. The feature is optimized based on scheduling policies and network links to accelerate image subscription.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the subscription rule was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570759546000',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the subscription rule was modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638259914000',
+ ],
+ 'Platform' => [
+ 'description' => 'The operating system and architecture. If the source repository contains multi-arch images, only the images with the specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and architecture.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* linux/arm: linux/arm'."\n"
+ .'* windows/x86: windows/x86'."\n"
+ .'* \\*/\\*: \\*/\\*'."\n"
+ .'* linux/arm64: linux/arm64'."\n"
+ .'* windows/x86-64: windows/x86-64'."\n"
+ .'* linux/amd64: linux/amd64'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'linux/arm' => 'linux/arm',
+ 'windows/x86' => 'windows/x86',
+ '*/*' => '*/*',
+ 'linux/arm64' => 'linux/arm64',
+ 'windows/x86-64' => 'windows/x86-64',
+ 'linux/amd64' => 'linux/amd64',
+ ],
+ 'example' => 'linux/amd64',
+ ],
+ ],
+ 'SourceDomain' => [
+ 'type' => 'string',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ [],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-hpdfkc6utbaq****\\\\n\\",\\n \\"RuleId\\": \\"crasr-mdbpung4i1rm****\\\\n\\",\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959B22C77\\",\\n \\"Code\\": \\"success\\",\\n \\"SourceProvider\\": \\"DOCKER_HUB\\",\\n \\"SourceNamespaceName\\": \\"library\\",\\n \\"SourceRepoName\\": \\"nginx\\",\\n \\"NamespaceName\\": \\"test-ns\\\\n\\",\\n \\"RepoName\\": \\"test-repo\\\\n\\",\\n \\"TagRegexp\\": \\"release-v.*\\",\\n \\"TagCount\\": 1,\\n \\"Override\\": true,\\n \\"Accelerate\\": true,\\n \\"CreateTime\\": 1570759546000,\\n \\"ModifiedTime\\": 1638259914000,\\n \\"Platform\\": [\\n \\"linux/amd64\\"\\n ],\\n \\"SourceDomain\\": \\"\\"\\n}","type":"json"}]',
+ 'title' => 'GetArtifactSubscriptionRule',
+ ],
+ 'GetArtifactSubscriptionTaskResult' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '141857',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr5ED6LF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-90fxryf9pwf****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crast-y64sq01bgad****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '0A8768F6-9B47-5127-A075-9CFB9F79181F',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TaskResults' => [
+ 'description' => 'The result of the artifact subscription task.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-isj2wgaw4z9****',
+ ],
+ 'TaskId' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crast-wkpfwqozjiq****',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-reop',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-ns',
+ ],
+ 'Tag' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'example' => 'v2.0',
+ ],
+ 'Status' => [
+ 'description' => 'The status of the task.'."\n",
+ 'type' => 'string',
+ 'example' => 'COMPLETED',
+ ],
+ 'Result' => [
+ 'description' => 'The result of the task.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'StartTime' => [
+ 'description' => 'The start time of the subscription task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1691719501000',
+ ],
+ 'EndTime' => [
+ 'description' => 'The end time of the subscription task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1692756630000',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0A8768F6-9B47-5127-A075-9CFB9F79181F\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 1,\\n \\"TaskResults\\": [\\n {\\n \\"InstanceId\\": \\"cri-isj2wgaw4z9****\\",\\n \\"TaskId\\": \\"crast-wkpfwqozjiq****\\",\\n \\"RepoName\\": \\"test-reop\\",\\n \\"NamespaceName\\": \\"test-ns\\",\\n \\"Tag\\": \\"v2.0\\",\\n \\"Status\\": \\"COMPLETED\\",\\n \\"Result\\": \\"SUCCESS\\",\\n \\"StartTime\\": 1691719501000,\\n \\"EndTime\\": 1692756630000\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'GetArtifactSubscriptionTaskResult',
+ 'summary' => 'Queries the details of an artifact subscription task.',
+ ],
+ 'CreateArtifactSubscriptionRule' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '141828',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr5ED6LF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-c0o11woew0k****',
+ ],
+ ],
+ [
+ 'name' => 'SourceProvider',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source of the artifact.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DOCKER_HUB: Docker Hub'."\n"
+ .'* GCR: GCR'."\n"
+ .'* QUAY: Quay.io'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'DOCKER_HUB' => 'Docker Hub',
+ 'GCR' => 'GCR',
+ 'QUAY' => 'Quay.io',
+ ],
+ 'example' => 'DOCKER_HUB',
+ ],
+ ],
+ [
+ 'name' => 'SourceNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'library',
+ ],
+ ],
+ [
+ 'name' => 'SourceRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'nginx',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Container Registry namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test-ns',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Container Registry repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test-repo',
+ ],
+ ],
+ [
+ 'name' => 'TagRegexp',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'schema' => [
+ 'description' => 'The image tag in the subscription source repository. Regular expressions are supported.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'release-v.*',
+ ],
+ ],
+ [
+ 'name' => 'TagCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of subscribed images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => true,
+ 'example' => '1',
+ 'maximum' => '30',
+ 'minimum' => '1',
+ ],
+ ],
+ [
+ 'name' => 'Override',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Indicates whether the original image is overwritten.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Accelerate',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Indicates whether an acceleration link is enabled for image subscription. The subscription acceleration feature is in public preview. The feature is optimized based on scheduling policies and network links to accelerate image subscription.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Platform',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The operating system and architecture. If the source repository contains a multi-arch image, only the specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance. Subscribe to the destination repository of an Enterprise Edition instance'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and architecture.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* linux/arm: linux/arm'."\n"
+ .'* windows/x86: windows/x86'."\n"
+ .'* \\*/\\*: \\*/\\*'."\n"
+ .'* linux/arm64: linux/arm64.'."\n"
+ .'* windows/x86-64: windows/x86-64.'."\n"
+ .'* linux/amd64: linux/amd64.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'linux/arm' => 'linux/arm',
+ 'windows/x86' => 'windows/x86',
+ '*/*' => '*/*',
+ 'linux/arm64' => 'linux/arm64',
+ 'windows/x86-64' => 'windows/x86-64',
+ 'linux/amd64' => 'linux/amd64',
+ ],
+ 'example' => '*/*',
+ ],
+ 'required' => true,
+ 'maxItems' => 200,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicate whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '02B27D80-FD32-5155-931A-93700779BB9E',
+ ],
+ 'RuleId' => [
+ 'description' => 'The ID of the artifact subscription rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crasr-lxdfele7dg4****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\",\\n \\"RuleId\\": \\"crasr-lxdfele7dg4****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateArtifactSubscriptionRule',
+ 'summary' => 'Creates an artifact subscription rule.',
+ ],
+ 'ListArtifactSubscriptionRule' => [
+ 'summary' => 'Lists the subscription rules of artifacts.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '141842',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr5ED6LF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-c0o11woew0k****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '07FC5654-C82A-59FA-A9D1-78B4EE443F86',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`'."\n"
+ .'* `false`'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '13',
+ ],
+ 'Rules' => [
+ 'description' => 'The queried artifact subscription rules.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The queried artifact subscription rule.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-brlg4cbj2yl****',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crasr-mdbpung4i1rm****'."\n",
+ ],
+ 'SourceProvider' => [
+ 'description' => 'The source of the artifact.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* DOCKER_HUB: Docker Hub'."\n"
+ .'* GCR: GCR'."\n"
+ .'* QUAY: Quay.io'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'DOCKER_HUB' => 'Docker Hub',
+ 'GCR' => 'GCR',
+ 'QUAY' => 'Quay.io',
+ ],
+ 'example' => 'DOCKER_HUB',
+ ],
+ 'SourceNamespaceName' => [
+ 'description' => 'The source namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'library',
+ ],
+ 'SourceRepoName' => [
+ 'description' => 'The source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the source namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-ns',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo',
+ ],
+ 'TagRegexp' => [
+ 'description' => 'The image tag in the subscription source repository. Regular expressions are supported.'."\n",
+ 'type' => 'string',
+ 'example' => 'release.*',
+ ],
+ 'TagCount' => [
+ 'description' => 'The number of subscribed images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Override' => [
+ 'description' => 'Indicates whether the original image is overwritten.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Accelerate' => [
+ 'description' => 'Indicates whether an acceleration link is enabled for image subscription. The subscription acceleration feature is in public preview. The feature is optimized based on scheduling policies and network links to accelerate image subscription.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the subscription rule was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638187989000',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the subscription rule was modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1678341923385',
+ ],
+ 'Platform' => [
+ 'description' => 'The operating system and architecture. If the source repository contains a multi-arch image, only the images with the specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and architecture.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* linux/arm: linux/arm'."\n"
+ .'* windows/x86: windows/x86'."\n"
+ .'* \\*/\\*: \\*/\\*'."\n"
+ .'* linux/arm64: linux/arm64'."\n"
+ .'* Windows/x86-64: windows/x86-64'."\n"
+ .'* linux/amd64: linux/amd64'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'linux/arm' => 'linux/arm',
+ 'windows/x86' => 'windows/x86',
+ '*/*' => '*/*',
+ 'linux/arm64' => 'linux/arm64',
+ 'windows/x86-64' => 'windows/x86-64',
+ 'linux/amd64' => 'linux/amd64',
+ ],
+ 'example' => '*/*',
+ ],
+ ],
+ 'SourceDomain' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"07FC5654-C82A-59FA-A9D1-78B4EE443F86\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 13,\\n \\"Rules\\": [\\n {\\n \\"InstanceId\\": \\"cri-brlg4cbj2yl****\\",\\n \\"RuleId\\": \\"crasr-mdbpung4i1rm****\\\\n\\",\\n \\"SourceProvider\\": \\"DOCKER_HUB\\",\\n \\"SourceNamespaceName\\": \\"library\\",\\n \\"SourceRepoName\\": \\"nginx\\",\\n \\"NamespaceName\\": \\"test-ns\\",\\n \\"RepoName\\": \\"test-repo\\",\\n \\"TagRegexp\\": \\"release.*\\",\\n \\"TagCount\\": 1,\\n \\"Override\\": true,\\n \\"Accelerate\\": true,\\n \\"CreateTime\\": 1638187989000,\\n \\"ModifiedTime\\": 1678341923385,\\n \\"Platform\\": [\\n \\"*/*\\"\\n ],\\n \\"SourceDomain\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListArtifactSubscriptionRule',
+ ],
+ 'GetArtifactSubscriptionTask' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'TaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crast-40le4es9yh0p****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'TaskId' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crast-40le4es9yh0p****',
+ ],
+ 'TaskStatus' => [
+ 'description' => 'The status of the task.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'TaskResult' => [
+ 'description' => 'The task results.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'TaskType' => [
+ 'description' => 'The type of the task. Valid values:'."\n",
+ 'type' => 'string',
+ 'example' => 'AUTO',
+ ],
+ 'StartTime' => [
+ 'description' => 'The start time of the artifact subscription task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1568718468000',
+ ],
+ 'EndTime' => [
+ 'description' => 'The end time of the artifact subscription task.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1691979202000',
+ ],
+ 'ArtifactType' => [
+ 'description' => 'The artifact type.'."\n",
+ 'type' => 'string',
+ 'example' => 'IMAGE',
+ ],
+ 'SourceProvider' => [
+ 'description' => 'The artifact source.'."\n",
+ 'type' => 'string',
+ 'example' => 'DOCKER_HUB',
+ ],
+ 'SourceRepoType' => [
+ 'description' => 'The type of the source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'SourceNamespaceName' => [
+ 'description' => 'The name of the source namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'library',
+ ],
+ 'SourceRepoName' => [
+ 'description' => 'The name of the source repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'nginx',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the Container Registry namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the Container Registry repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo',
+ ],
+ 'TagTotalCount' => [
+ 'description' => 'The total number of tags.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '6',
+ ],
+ 'TagSubscriptionCount' => [
+ 'description' => 'The total subscribed tags.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'Message' => [
+ 'description' => 'The return message.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"12589EF7-96E2-4554-AAD7-F7209E88CAD3\\",\\n \\"Code\\": \\"success\\",\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"TaskId\\": \\"crast-40le4es9yh0p****\\",\\n \\"TaskStatus\\": \\"RUNNING\\",\\n \\"TaskResult\\": \\"SUCCESS\\",\\n \\"TaskType\\": \\"AUTO\\",\\n \\"StartTime\\": 1568718468000,\\n \\"EndTime\\": 1691979202000,\\n \\"ArtifactType\\": \\"IMAGE\\",\\n \\"SourceProvider\\": \\"DOCKER_HUB\\",\\n \\"SourceRepoType\\": \\"PUBLIC\\",\\n \\"SourceNamespaceName\\": \\"library\\",\\n \\"SourceRepoName\\": \\"nginx\\",\\n \\"NamespaceName\\": \\"test\\",\\n \\"RepoName\\": \\"test-repo\\",\\n \\"TagTotalCount\\": 6,\\n \\"TagSubscriptionCount\\": 1,\\n \\"Message\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'GetArtifactSubscriptionTask',
+ 'summary' => 'Queries an artifact subscription task.',
+ ],
+ 'CreateArtifactSubscriptionTask' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-4ec5xvj4j0l****',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crasr-88s7vmelc3m****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '132D314B-BDD4-564C-89FE-3E2BAE115239',
+ ],
+ 'TaskId' => [
+ 'description' => 'The task ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crast-40le4es9yh0p****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"132D314B-BDD4-564C-89FE-3E2BAE115239\\",\\n \\"TaskId\\": \\"crast-40le4es9yh0p****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateArtifactSubscriptionTask',
+ 'summary' => 'Creates an artifact subscription task.',
+ ],
+ 'UpdateArtifactLifecycleRule' => [
+ 'summary' => 'Updates a lifecycle management rule of an artifact.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrQD2ZKV',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-r6ym0lerldp****',
+ ],
+ ],
+ [
+ 'name' => 'Auto',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically execute the lifecycle management rule.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'ScheduleTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The execution cycle of the lifecycle management rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'WEEK',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-ns',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test_1',
+ ],
+ ],
+ [
+ 'name' => 'TagRegexp',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regular expression that indicates which image tags you want to retain.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '.*production_.*',
+ ],
+ ],
+ [
+ 'name' => 'RetentionTagCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of images that you want to retain.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'EnableDeleteTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable lifecycle management for the artifact.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cralr-luq6qiegzvx****',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The deletion scope of artifacts.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'REPO',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'BF92FC2E-455F-5600-A276-D2150A59****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BF92FC2E-455F-5600-A276-D2150A59****\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateArtifactLifecycleRule',
+ ],
+ 'ListArtifactLifecycleRule' => [
+ 'summary' => 'Queries the lifecycle management rules of an artifact.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrQD2ZKV',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry Enterprise Edition instance.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-eztul9ucz76q****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'EnableDeleteTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable lifecycle management for the artifact.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'F92D82F9-A4C4-5A4A-97B9-E495BF1B****',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '10',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '39',
+ ],
+ 'Rules' => [
+ 'description' => '_',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NextTime' => [
+ 'description' => 'The time when the lifecycle management rule is next executed.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638187989000',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the lifecycle management rule was created.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638187989000',
+ ],
+ 'TagRegexp' => [
+ 'description' => 'The regular expression that indicates which image tags are retained.',
+ 'type' => 'string',
+ 'example' => '.*-alpine'."\n",
+ ],
+ 'EnableDeleteTag' => [
+ 'description' => 'Indicates whether lifecycle management is enabled for the artifact.',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.',
+ 'type' => 'string',
+ 'example' => 'cri-brlg4cbj2yl****',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.',
+ 'type' => 'string',
+ 'example' => 'test-ns',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.',
+ 'type' => 'string',
+ 'example' => 'cralr-yqx1q5sir6d****',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the lifecycle management rule was last modified.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1678341923385',
+ ],
+ 'RetentionTagCount' => [
+ 'description' => 'The number of retained images.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '30',
+ ],
+ 'Auto' => [
+ 'description' => 'Indicates whether the lifecycle management rule is automatically executed.',
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'ScheduleTime' => [
+ 'description' => 'The execution cycle of the lifecycle management rule.',
+ 'type' => 'string',
+ 'example' => 'WEEK',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.',
+ 'type' => 'string',
+ 'example' => 'test_1',
+ ],
+ 'Scope' => [
+ 'description' => 'The deletion scope of artifacts.',
+ 'type' => 'string',
+ 'example' => 'INSTANCE',
+ ],
+ 'Policies' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'type' => 'string',
+ ],
+ 'Filter' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagWildcard' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Condition' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LatestTagCount' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'LastPullOlderThanDays' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'LastPushOlderThanDays' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => 'The queried lifecycle management rules.',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"F92D82F9-A4C4-5A4A-97B9-E495BF1B****\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 10,\\n \\"TotalCount\\": 39,\\n \\"Rules\\": [\\n {\\n \\"NextTime\\": 1638187989000,\\n \\"CreateTime\\": 1638187989000,\\n \\"TagRegexp\\": \\".*-alpine\\\\n\\",\\n \\"EnableDeleteTag\\": true,\\n \\"InstanceId\\": \\"cri-brlg4cbj2yl****\\",\\n \\"NamespaceName\\": \\"test-ns\\",\\n \\"RuleId\\": \\"cralr-yqx1q5sir6d****\\",\\n \\"ModifiedTime\\": 1678341923385,\\n \\"RetentionTagCount\\": 30,\\n \\"Auto\\": false,\\n \\"ScheduleTime\\": \\"WEEK\\",\\n \\"RepoName\\": \\"test_1\\",\\n \\"Scope\\": \\"INSTANCE\\",\\n \\"Policies\\": [\\n {\\n \\"Type\\": \\"\\",\\n \\"Filter\\": {\\n \\"TagWildcard\\": \\"\\"\\n },\\n \\"Condition\\": {\\n \\"LatestTagCount\\": 0,\\n \\"LastPullOlderThanDays\\": 0,\\n \\"LastPushOlderThanDays\\": 0\\n }\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListArtifactLifecycleRule',
+ ],
+ 'GetArtifactLifecycleRule' => [
+ 'summary' => 'Queries the lifecycle management rules of an artifact.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrQD2ZKV',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cralr-a18bkiajy81****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NextTime' => [
+ 'description' => 'The time when the lifecycle management rule is next executed.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1701878400000',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the lifecycle management rule was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926439000',
+ ],
+ 'TagRegexp' => [
+ 'description' => 'The regular expression that indicates which image tags are retained.'."\n",
+ 'type' => 'string',
+ 'example' => '.*-alpine',
+ ],
+ 'EnableDeleteTag' => [
+ 'description' => 'Indicates whether lifecycle management is enabled for the artifact.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-namespace',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cralr-a18bkiajy8****',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '724402D0-75CD-4794-BC20-7D37208****',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the lifecycle management rule was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638259914000',
+ ],
+ 'RetentionTagCount' => [
+ 'description' => 'The number of retained images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '30',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Auto' => [
+ 'description' => 'Indicates whether the lifecycle management rule is automatically executed.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ScheduleTime' => [
+ 'description' => 'The execution cycle of the lifecycle management rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'WEEK',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo',
+ ],
+ 'Scope' => [
+ 'description' => 'The deletion scope of artifacts.'."\n",
+ 'type' => 'string',
+ 'example' => 'INSTANCE',
+ ],
+ 'Policies' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'type' => 'string',
+ ],
+ 'Filter' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagWildcard' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'Condition' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LastPushOlderThanDays' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'LastPullOlderThanDays' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ 'LatestTagCount' => [
+ 'type' => 'integer',
+ 'format' => 'int32',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"NextTime\\": 1701878400000,\\n \\"CreateTime\\": 1571926439000,\\n \\"TagRegexp\\": \\".*-alpine\\",\\n \\"EnableDeleteTag\\": true,\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"NamespaceName\\": \\"test-namespace\\",\\n \\"RuleId\\": \\"cralr-a18bkiajy8****\\",\\n \\"RequestId\\": \\"724402D0-75CD-4794-BC20-7D37208****\\",\\n \\"ModifiedTime\\": 1638259914000,\\n \\"RetentionTagCount\\": 30,\\n \\"Code\\": \\"success\\",\\n \\"Auto\\": true,\\n \\"ScheduleTime\\": \\"WEEK\\",\\n \\"RepoName\\": \\"test-repo\\",\\n \\"Scope\\": \\"INSTANCE\\",\\n \\"Policies\\": [\\n {\\n \\"Type\\": \\"\\",\\n \\"Filter\\": {\\n \\"TagWildcard\\": \\"\\"\\n },\\n \\"Condition\\": {\\n \\"LastPushOlderThanDays\\": 0,\\n \\"LastPullOlderThanDays\\": 0,\\n \\"LatestTagCount\\": 0\\n }\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'GetArtifactLifecycleRule',
+ ],
+ 'DeleteArtifactLifecycleRule' => [
+ 'summary' => 'Deletes an artifact lifecycle management rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrQD2ZKV',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-brlg4cbj2ylkrqqq',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cralr-3v8pao9k7chb8q62',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '001AB638-C99B-5A27-8AC9-B2DBABFFEBB5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"001AB638-C99B-5A27-8AC9-B2DBABFFEBB5\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteArtifactLifecycleRule',
+ ],
+ 'CreateArtifactLifecycleRule' => [
+ 'summary' => 'Creates a lifecycle management rule for an artifact.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrQD2ZKV',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-gbwfk7qbgrxe****',
+ ],
+ ],
+ [
+ 'name' => 'Auto',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specify whether to automatically execute the lifecycle management rule.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'ScheduleTime',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The execution cycle of the lifecycle management rule.',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'WEEK',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dev-backend',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test_1',
+ ],
+ ],
+ [
+ 'name' => 'TagRegexp',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regular expression that is used to indicate which image tags are retained.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'release-.*',
+ ],
+ ],
+ [
+ 'name' => 'RetentionTagCount',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of images that you want to retain.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'EnableDeleteTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specify whether to enable lifecycle management for the artifact.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The deletion scope.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'INSTANCE',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '0AA66379-B880-5123-9F6A-96BB25D****',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.',
+ 'type' => 'string',
+ 'example' => 'cralr-b6thg027zmk1****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"0AA66379-B880-5123-9F6A-96BB25D****\\",\\n \\"RuleId\\": \\"cralr-b6thg027zmk1****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateArtifactLifecycleRule',
+ ],
+ 'TagResources' => [
+ 'summary' => 'Adds tags to resources. Instance resources are supported.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '188653',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrRKSIY1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => 'The type of the resource. Instance resources are supported.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Instance',
+ 'enum' => [
+ 'Instance',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The resource IDs. You can specify a maximum of 20 resource IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The resource ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-1lg7vtctpqdn****',
+ ],
+ 'required' => true,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域Id',
+ 'description' => 'The region ID of the resources.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The tag list.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tag list.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => 'The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.'."\n"
+ ."\n"
+ .'A tag key can be up to 128 characters in length. It cannot start with acs: or aliyun, and cannot contain http:// or https://.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-key',
+ ],
+ 'Value' => [
+ 'description' => 'The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.'."\n"
+ ."\n"
+ .'A tag value can be up to 128 characters in length. It cannot start with acs: or aliyun, and cannot contain http:// or https://.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-val',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => true,
+ 'maxItems' => 21,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'E9A586D0-3977-5C28-A44D-55D3A9CD53CC',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.ResourceId',
+ 'errorMessage' => 'The ResourceId parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidResourceId.NotFound',
+ 'errorMessage' => 'The specified ResourceIds are not found in our records.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.ResourceIds',
+ 'errorMessage' => 'The maximum number of ResourceIds is exceeded.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.RegionId',
+ 'errorMessage' => 'The RegionId parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.ResourceType',
+ 'errorMessage' => 'The ResourceType parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceIds',
+ 'errorMessage' => 'You must specify ResourceId.N.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceType',
+ 'errorMessage' => 'You must specify ResourceType.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.Tags',
+ 'errorMessage' => 'You must specify Tags.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.TagKey',
+ 'errorMessage' => 'You must specify Tag.N.Key.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.TagValue',
+ 'errorMessage' => 'You must specify Tag.N.Value.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.TagKey',
+ 'errorMessage' => 'The Tag.N.Key parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.TagValue',
+ 'errorMessage' => 'The Tag.N.Value parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.Tags',
+ 'errorMessage' => 'The maximum number of Tags is exceeded.',
+ ],
+ [
+ 'errorCode' => 'QuotaExceed.TagsPerResource',
+ 'errorMessage' => 'The maximum number of tags for each resource is exceeded.',
+ ],
+ [
+ 'errorCode' => 'Duplicate.TagKey',
+ 'errorMessage' => 'The Tag.N.Key contains duplicate keys.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'The operator is not permission for this operate',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'InvalidOperation.ConcurrentModification',
+ 'errorMessage' => 'The resource is modified concurrently.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E9A586D0-3977-5C28-A44D-55D3A9CD53CC\\"\\n}","type":"json"}]',
+ 'title' => 'TagResources',
+ ],
+ 'UntagResources' => [
+ 'summary' => 'Removes tags from resources. Instance resources are supported.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '188658',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrRKSIY1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => 'The type of the resources. Instance resources are supported.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Instance',
+ 'enum' => [
+ 'Instance',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The resource IDs. You can specify a maximum of 20 resource IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The resource ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-8qong6ve5p3m****',
+ ],
+ 'required' => false,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域Id',
+ 'description' => 'The ID of the region in which the resources are deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'TagKey',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The key of tag N added to the resource. Valid values of N: 1 to 20.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The key of the tag.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-key',
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'All',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to remove all tags from the resource. Valid values:'."\n"
+ ."\n"
+ .'* **true**'."\n"
+ .'* **false**'."\n"
+ ."\n"
+ .'>If you specify both this parameter and the TagKey parameter, this parameter does not take effect.',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '724402D0-75CD-4794-BC20-7D3720823AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.ResourceType',
+ 'errorMessage' => 'The ResourceType parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceIds',
+ 'errorMessage' => 'You must specify ResourceId.N.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceType',
+ 'errorMessage' => 'You must specify ResourceType.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.TagKey',
+ 'errorMessage' => 'The Tag.N.Key parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.TagKeysOrDeleteAll',
+ 'errorMessage' => 'The TagKeys or DeleteAll parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.ResourceIds',
+ 'errorMessage' => 'The maximum number of ResourceIds is exceeded.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.TagKeys',
+ 'errorMessage' => 'The maximum number of TagKeys is exceeded.',
+ ],
+ [
+ 'errorCode' => 'Duplicate.TagKey',
+ 'errorMessage' => 'The Tag.N.Key contains duplicate keys.',
+ ],
+ [
+ 'errorCode' => 'InvalidResourceId.NotFound',
+ 'errorMessage' => 'The specified ResourceIds are not found in our records.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission',
+ 'errorMessage' => 'The operator is not permission for this operate ',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"724402D0-75CD-4794-BC20-7D3720823AE0\\"\\n}","type":"json"}]',
+ 'title' => 'UntagResources',
+ ],
+ 'ListTagResources' => [
+ 'summary' => 'Queries the tags that are added to cloud resources. Instance resources are supported.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '188659',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrRKSIY1',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceType',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源类型',
+ 'description' => 'The type of the resources. Instance resources are supported.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'Instance',
+ 'enum' => [
+ 'Instance',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The resource IDs. You can specify a maximum of 20 resource IDs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The resource ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-5w1ztcu2kruj****',
+ ],
+ 'required' => false,
+ 'maxItems' => 51,
+ ],
+ ],
+ [
+ 'name' => 'RegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域Id',
+ 'description' => 'The ID of the region in which the resources are deployed.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'The tag list.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tag list.',
+ 'type' => 'object',
+ 'properties' => [
+ 'Key' => [
+ 'description' => 'The tag key of the resource. You can specify up to 20 tag keys. The tag key cannot be an empty string.'."\n"
+ ."\n"
+ .'A tag key can be up to 128 characters in length. It cannot start with acs: or aliyun, and cannot contain http:// or https://.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-key',
+ ],
+ 'Value' => [
+ 'description' => 'The tag value of the resource. You can specify up to 20 tag values. The tag value can be an empty string.'."\n"
+ ."\n"
+ .'It can be up to 128 characters in length. It cannot start with acs: or aliyun and cannot contain http:// or https://.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-val',
+ ],
+ ],
+ 'required' => false,
+ ],
+ 'required' => false,
+ 'maxItems' => 21,
+ ],
+ ],
+ [
+ 'name' => 'NextToken',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The pagination token that is used in the next request to retrieve a new page of results. You do not need to specify this parameter for the first request or if no next query exists. You must specify the token that is obtained from the previous query as the value of NextToken.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'AAAAAfj+3fkqd8igM6VLaQjlaYc=',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => '7FF809ED-B42F-5AC3-9A17-CFE14BE32A8E',
+ ],
+ 'TagResources' => [
+ 'type' => 'object',
+ 'itemNode' => true,
+ 'properties' => [
+ 'TagResource' => [
+ 'description' => 'The tags that are added to the resource.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => [
+ 'description' => 'The tag key.',
+ 'type' => 'string',
+ 'example' => 'test-key'."\n",
+ ],
+ 'TagValue' => [
+ 'description' => 'The tag value.',
+ 'type' => 'string',
+ 'example' => 'test-val',
+ ],
+ 'ResourceId' => [
+ 'description' => 'The resource ID.',
+ 'type' => 'string',
+ 'example' => 'cri-w19e7qr2wibl****',
+ ],
+ 'ResourceType' => [
+ 'description' => 'The resource type.',
+ 'type' => 'string',
+ 'example' => 'Instance',
+ ],
+ ],
+ 'description' => 'The tags that are added to the resource.',
+ ],
+ ],
+ ],
+ ],
+ 'NextToken' => [
+ 'description' => 'A pagination token. It can be used in the next request to retrieve a new page of results. If NextToken is empty, no next page exists.',
+ 'type' => 'string',
+ 'example' => 'AAAAAfj+3fkqd8igM6VLaQjlaYc='."\n",
+ ],
+ ],
+ ],
+ ],
+ [],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.ResourceType',
+ 'errorMessage' => 'The ResourceType parameter is invalid.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceIdsOrTags',
+ 'errorMessage' => 'You must specify ResourceId.N or Tags.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceType',
+ 'errorMessage' => 'You must specify ResourceType.',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.TagKey',
+ 'errorMessage' => 'You must specify Tag.N.Key.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.ResourceIds',
+ 'errorMessage' => 'The maximum number of ResourceIds is exceeded.',
+ ],
+ [
+ 'errorCode' => 'NumberExceed.Tags',
+ 'errorMessage' => 'The maximum number of Tags is exceeded.',
+ ],
+ [
+ 'errorCode' => 'Duplicate.TagKey',
+ 'errorMessage' => 'The Tag.N.Key contains duplicate keys.',
+ ],
+ [
+ 'errorCode' => 'InvalidParameter.NextToken',
+ 'errorMessage' => 'The NextToken parameter is invalid.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPermission ',
+ 'errorMessage' => 'The operator is not permission for this operate',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7FF809ED-B42F-5AC3-9A17-CFE14BE32A8E\\",\\n \\"TagResources\\": {\\n \\"TagResource\\": [\\n {\\n \\"TagKey\\": \\"test-key\\\\n\\",\\n \\"TagValue\\": \\"test-val\\",\\n \\"ResourceId\\": \\"cri-w19e7qr2wibl****\\",\\n \\"ResourceType\\": \\"Instance\\"\\n }\\n ]\\n },\\n \\"NextToken\\": \\"AAAAAfj+3fkqd8igM6VLaQjlaYc=\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'ListTagResources',
+ ],
+ 'CreateStorageDomainRoutingRule' => [
+ 'summary' => 'Creates an instance store domain name routing rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrFQBFTD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'Routes',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The route list'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The routing rule entries'."\n",
+ 'required' => false,
+ '$ref' => '#/components/schemas/RouteItem',
+ ],
+ 'required' => true,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID'."\n",
+ 'type' => 'string',
+ 'example' => 'C8E90AB5-0A96-5D12-9E59-11EE463*****',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crsdr-n6pbhgjx*****',
+ ],
+ 'Success' => [
+ 'description' => 'Identification of whether the request is successful or not'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'AuthenticationFailed',
+ 'errorMessage' => 'Authentication failed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C8E90AB5-0A96-5D12-9E59-11EE463*****\\",\\n \\"RuleId\\": \\"crsdr-n6pbhgjx*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'CreateStorageDomainRoutingRule',
+ 'description' => 'The whitelist of this API operation is available. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).'."\n",
+ ],
+ 'DeleteStorageDomainRoutingRule' => [
+ 'summary' => 'Deletes an instance store domain name routing rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrFQBFTD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crsdr-n6pbhgjxtla***',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID'."\n",
+ 'type' => 'string',
+ 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B*****',
+ ],
+ 'Success' => [
+ 'description' => 'Request status ID'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'AuthenticationFailed',
+ 'errorMessage' => 'Authentication failed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959B*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteStorageDomainRoutingRule',
+ 'description' => 'The whitelist of this API operation is available. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).'."\n",
+ ],
+ 'GetStorageDomainRoutingRule' => [
+ 'summary' => 'Queries instance storage domain routing rules',
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrFQBFTD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crasr-mdbpung4i1rm****'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'D4978DCC-ECBD-40B0-A714-EE695******',
+ ],
+ 'Routes' => [
+ 'description' => 'The routing list.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Routing rule entry.',
+ 'example' => '[{\'Status\': \'Published\', \'DestinationCidrBlock\': \'10.192.0.0/14\', \'NextHopId\': \'eni-bp1gfdoy3r4f8bpc1nfq\', \'Description\': \'full cidr block route\', \'NextHopType\': \'NetworkInterface\'}]',
+ '$ref' => '#/components/schemas/RouteItem',
+ ],
+ ],
+ 'Code' => [
+ 'description' => 'The return value.',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'Success' => [
+ 'description' => 'Indicates whether the request is successful.',
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'ModifyTime' => [
+ 'description' => 'The modification time.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926439000',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The creation time.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926439000',
+ ],
+ 'RuleId' => [
+ 'description' => 'The rule ID.',
+ 'type' => 'string',
+ 'example' => 'crsdr-luq6qiegzvx****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 200 => [
+ [
+ 'errorCode' => 'INSTANCE_NOT_EXIST',
+ 'errorMessage' => 'Instance does not exist.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'AuthenticationFailed',
+ 'errorMessage' => 'Authentication failed.',
+ ],
+ ],
+ [
+ [
+ 'errorCode' => 'InvalidInstanceStorageDomainRoutingRule.NotFound',
+ 'errorMessage' => 'The specified InstanceStorageDomainRoutingRule does not exist.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE695******\\",\\n \\"Routes\\": [\\n {\\n \\"InstanceDomain\\": \\"\\",\\n \\"StorageDomain\\": \\"\\",\\n \\"EndpointType\\": \\"\\"\\n }\\n ],\\n \\"Code\\": \\"success\\",\\n \\"Success\\": true,\\n \\"ModifyTime\\": 1571926439000,\\n \\"CreateTime\\": 1571926439000,\\n \\"RuleId\\": \\"crsdr-luq6qiegzvx****\\"\\n}","type":"json"}]',
+ 'title' => '获取实例存储域名路由列表',
+ 'description' => 'This API is open to a whitelist. Please [submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket) for support.',
+ 'translator' => 'machine',
+ ],
+ 'UpdateStorageDomainRoutingRule' => [
+ 'summary' => 'Updates a routing rule for an instance store domain name.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'consumes' => [
+ 'application/json',
+ ],
+ 'produces' => [
+ 'application/json',
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrFQBFTD',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'Routes',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The route list'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The routing rule entries'."\n",
+ 'required' => false,
+ '$ref' => '#/components/schemas/RouteItem',
+ ],
+ 'required' => true,
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crsdr-b6thg027zmk1****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959*****',
+ ],
+ 'Success' => [
+ 'description' => 'Request status ID'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Code' => [
+ 'description' => 'The returned HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'AuthenticationFailed',
+ 'errorMessage' => 'Authentication failed.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateStorageDomainRoutingRule',
+ 'description' => 'The whitelist of this API operation is available. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).'."\n",
+ ],
+ 'GetInstance' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => [
+ 'description' => 'The time when the instance was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926560000',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '6EF34B18-4228-470C-860C-D28597CF010E',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the instance was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926439000',
+ ],
+ 'InstanceName' => [
+ 'description' => 'The name of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'shanghai-instance1',
+ ],
+ 'InstanceSpecification' => [
+ 'description' => 'The edition of the instance. Valid values: Enterprise_Basic: Basic Edition instances Enterprise_Standard: Standard Edition instances Enterprise_Advanced: Advanced Edition instances'."\n",
+ 'type' => 'string',
+ 'example' => 'Enterprise_Basic',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'InstanceStatus' => [
+ 'description' => 'The status of the instance. Valid values:'."\n"
+ ."\n"
+ .'* `PENDING`: The instance is being initialized.'."\n"
+ .'* `INIT_ERROR`: The instance failed to be initialized.'."\n"
+ .'* `STARTING`: The instance is being started.'."\n"
+ .'* `RUNNING`: The instance is running.'."\n"
+ .'* `STOPPING`: The instance is being stopped.'."\n"
+ .'* `STOPPED`: The instance is stopped.'."\n"
+ .'* `DELETING`: The instance is being deleted.'."\n"
+ .'* `DELETED`: The instance is deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfmv36i4isx****',
+ ],
+ 'InstanceIssue' => [
+ 'description' => 'The issue occurs on the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'The issue occurs on the instance. Valid values: OSS_TOO_MANY_BUCKETS: The number of Object Storage Service (OSS) buckets exceeds the upper limit. OSS_BUCKET_ALREADY_EXISTS: An OSS bucket that has the duplicate name already exists. OSS_SERVICE_ROLE_UNAUTHORIZED: The OSS service-linked role is not granted permissions. USER_NOT_REGISTERED_BY_REAL_NAME: The Alibaba Cloud account has not passed a real name verification.'."\n",
+ ],
+ 'Tags' => [
+ 'description' => 'The tags of the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tag of the instance.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => [
+ 'title' => '标签键',
+ 'description' => 'The tag key.'."\n",
+ 'type' => 'string',
+ 'example' => 'test_key',
+ ],
+ 'TagValue' => [
+ 'title' => '标签值',
+ 'description' => 'The tag value.'."\n",
+ 'type' => 'string',
+ 'example' => 'test_value',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"ModifiedTime\\": 1571926560000,\\n \\"RequestId\\": \\"6EF34B18-4228-470C-860C-D28597CF010E\\",\\n \\"CreateTime\\": 1571926439000,\\n \\"InstanceName\\": \\"shanghai-instance1\\",\\n \\"InstanceSpecification\\": \\"Enterprise_Basic\\",\\n \\"Code\\": \\"success\\",\\n \\"InstanceStatus\\": \\"RUNNING\\",\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"IsSuccess\\": true,\\n \\"ResourceGroupId\\": \\"rg-acfmv36i4isx****\\",\\n \\"InstanceIssue\\": \\"实例问题,取值:\\\\nOSS_TOO_MANY_BUCKETS:OSS Bucket 数量超限\\\\n\\\\nOSS_BUCKET_ALREADY_EXISTS:同名 OSS Bucket 已存在\\\\n\\\\nOSS_SERVICE_ROLE_UNAUTHORIZED:OSS 权限未授权\\\\n\\\\nUSER_NOT_REGISTERED_BY_REAL_NAME:国际站账号在购买中国站 OSS Bucket 时未进行实名认证\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"test_key\\",\\n \\"TagValue\\": \\"test_value\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetInstanceResponse>\\n <ModifiedTime>1571926560000</ModifiedTime>\\n <RequestId>6EF34B18-4228-470C-860C-D28597CF010E</RequestId>\\n <CreateTime>1571926439000</CreateTime>\\n <InstanceName>shanghai-instance1</InstanceName>\\n <InstanceSpecification>Enterprise_Basic</InstanceSpecification>\\n <Code>success</Code>\\n <InstanceStatus>RUNNING</InstanceStatus>\\n <InstanceId>cri-xkx6vujuhay0****</InstanceId>\\n <IsSuccess>true</IsSuccess>\\n</GetInstanceResponse>","errorExample":""}]',
+ 'title' => 'GetInstance',
+ 'summary' => 'The ID of the resource group to which the instance belongs.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetInstanceUsage' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33741',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLBBNHS',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NamespaceUsage' => [
+ 'description' => 'The number of image namespaces that are created in the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '4',
+ ],
+ 'RepoQuota' => [
+ 'description' => 'The quota of image repositories for the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '1000',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'A726E801-7FCF-43F9-AF1C-51B3E65D3E7A',
+ ],
+ 'ChartNamespaceQuota' => [
+ 'description' => 'The quota of chart namespaces.'."\n",
+ 'type' => 'string',
+ 'example' => '50',
+ ],
+ 'RepoUsage' => [
+ 'description' => 'The number of image repositories that are created in the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'NamespaceQuota' => [
+ 'description' => 'The quota of image namespaces for the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '100',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ChartRepoUsage' => [
+ 'description' => 'The number of chart repositories that are created.'."\n",
+ 'type' => 'string',
+ 'example' => '5',
+ ],
+ 'ChartNamespaceUsage' => [
+ 'description' => 'The number of chart namespaces that are created in the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ 'ChartRepoQuota' => [
+ 'description' => 'The quota of chart repositories for the instance.'."\n",
+ 'type' => 'string',
+ 'example' => '5000',
+ ],
+ 'VpcQuota' => [
+ 'description' => 'VPC quota',
+ 'type' => 'string',
+ 'example' => '5',
+ ],
+ 'VpcUsage' => [
+ 'description' => 'Number of bound VPCs',
+ 'type' => 'string',
+ 'example' => '2',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"NamespaceUsage\\": \\"4\\",\\n \\"RepoQuota\\": \\"1000\\",\\n \\"RequestId\\": \\"A726E801-7FCF-43F9-AF1C-51B3E65D3E7A\\",\\n \\"ChartNamespaceQuota\\": \\"50\\",\\n \\"RepoUsage\\": \\"2\\",\\n \\"NamespaceQuota\\": \\"100\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"ChartRepoUsage\\": \\"5\\",\\n \\"ChartNamespaceUsage\\": \\"2\\",\\n \\"ChartRepoQuota\\": \\"5000\\",\\n \\"VpcQuota\\": \\"5\\",\\n \\"VpcUsage\\": \\"2\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<ChartNamespaceUsage>2</ChartNamespaceUsage>\\n<ChartNamespaceQuota>50</ChartNamespaceQuota>\\n<RepoQuota>1000</RepoQuota>\\n<RequestId>A726E801-7FCF-43F9-AF1C-51B3E65D3E7A</RequestId>\\n<RepoUsage>2</RepoUsage>\\n<NamespaceQuota>100</NamespaceQuota>\\n<NamespaceUsage>4</NamespaceUsage>\\n<Code>success</Code>\\n<ChartRepoUsage>5</ChartRepoUsage>\\n<ChartRepoQuota>5000</ChartRepoQuota>","errorExample":""}]',
+ 'title' => 'GetInstanceUsage',
+ 'summary' => 'Queries the quota usage of an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListInstanceRegion' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '33779',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrRKSIY1',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'Lang',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The language used for response parameters. Set this parameter to `zh-CN`.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'zh-CN',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '11F182E1-0F84-4F5B-8D3B-61E991482727',
+ ],
+ 'Regions' => [
+ 'description' => 'The list of regions.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LocalName' => [
+ 'description' => 'The name of the region.'."\n",
+ 'type' => 'string',
+ 'example' => 'China (Shenzhen)'."\n",
+ ],
+ 'RegionId' => [
+ 'description' => 'The ID of the region.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shenzhen',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"11F182E1-0F84-4F5B-8D3B-61E991482727\\",\\n \\"Regions\\": [\\n {\\n \\"LocalName\\": \\"华南1(深圳)\\",\\n \\"RegionId\\": \\"cn-shenzhen\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>11F182E1-0F84-4F5B-8D3B-61E991482727</RequestId>\\n<Regions>\\n <RegionId>cn-shenzhen</RegionId>\\n <LocalName>华南1(深圳)</LocalName>\\n</Regions>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListInstanceRegion',
+ 'summary' => 'Queries regions in which you can create Container Registry instances.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListInstance' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33773',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance name.'."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'InstanceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The status of the instance. Valid values:'."\n"
+ ."\n"
+ .'* `PENDING`: The instance is being initialized.'."\n"
+ .'* `INIT_ERROR`: The initialization of the instance fails.'."\n"
+ .'* `STARTING`: The instance is being started.'."\n"
+ .'* `RUNNING`: The instance is running.'."\n"
+ .'* `STOPPING`: The instance is being stopped.'."\n"
+ .'* `STOPPED`: The instance is stopped.'."\n"
+ .'* `DELETING`: The instance is being deleted.'."\n"
+ .'* `DELETED`: The instance is deleted.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'RUNNING',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'rg-acfmv36i4is****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'A2A9BA68-B264-4953-9154-CE61B1C03BA6',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page. Default value: 30.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '12121',
+ ],
+ 'Instances' => [
+ 'description' => 'The queried instances.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The queried instance.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => [
+ 'description' => 'The time when the instance was last modified.'."\n",
+ 'type' => 'string',
+ 'example' => '1562849760000',
+ ],
+ 'InstanceName' => [
+ 'description' => 'The name of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the instance was created.'."\n",
+ 'type' => 'string',
+ 'example' => '1562849679000',
+ ],
+ 'InstanceSpecification' => [
+ 'description' => 'The edition of the Container Registry Enterprise Edition instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'Enterprise_Basic',
+ ],
+ 'InstanceStatus' => [
+ 'description' => 'The status of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-sgedpenzw80e****',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-aek2h3aexpy****',
+ ],
+ 'InstanceIssue' => [
+ 'description' => 'The issue occurs on the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'oss bucket already exists',
+ ],
+ 'Tags' => [
+ 'description' => 'The tags of the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The tag of the instance.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => [
+ 'title' => '标签键',
+ 'description' => 'The tag key.'."\n",
+ 'type' => 'string',
+ 'example' => 'test_key',
+ ],
+ 'TagValue' => [
+ 'title' => '标签值',
+ 'description' => 'The tag value.'."\n",
+ 'type' => 'string',
+ 'example' => 'test_value',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"A2A9BA68-B264-4953-9154-CE61B1C03BA6\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 12121,\\n \\"Instances\\": [\\n {\\n \\"ModifiedTime\\": \\"1562849760000\\",\\n \\"InstanceName\\": \\"test\\",\\n \\"CreateTime\\": \\"1562849679000\\",\\n \\"InstanceSpecification\\": \\"Enterprise_Basic\\",\\n \\"InstanceStatus\\": \\"RUNNING\\",\\n \\"InstanceId\\": \\"cri-sgedpenzw80e****\\",\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"ResourceGroupId\\": \\"rg-aek2h3aexpy****\\",\\n \\"InstanceIssue\\": \\"实例问题,取值:\\\\nOSS_TOO_MANY_BUCKETS:OSS Bucket 数量超限\\\\n\\\\nOSS_BUCKET_ALREADY_EXISTS:同名 OSS Bucket 已存在\\\\n\\\\nOSS_SERVICE_ROLE_UNAUTHORIZED:OSS 权限未授权\\\\n\\\\nUSER_NOT_REGISTERED_BY_REAL_NAME:国际站账号在购买中国站 OSS Bucket 时未进行实名认证\\",\\n \\"Tags\\": [\\n {\\n \\"TagKey\\": \\"test_key\\",\\n \\"TagValue\\": \\"test_value\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Instances>\\n <InstanceName>test</InstanceName>\\n <ModifiedTime>1562849760000</ModifiedTime>\\n <InstanceSpecification>Enterprise_Basic</InstanceSpecification>\\n <InstanceId>cri-sgedpenzw80e****</InstanceId>\\n <InstanceStatus>RUNNING</InstanceStatus>\\n <CreateTime>1562849679000</CreateTime>\\n <RegionId>cn-shanghai</RegionId>\\n</Instances>\\n<IsSuccess>true</IsSuccess>\\n<TotalCount>12121</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>A2A9BA68-B264-4953-9154-CE61B1C03BA6</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListInstance',
+ 'summary' => 'Queries Container Registry instances.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetInstanceCount' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'Return value',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API call was successful. Values:'."\n"
+ .'- `true`: The API call was successful. '."\n"
+ .'- `false`: The API call failed.',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'Request ID',
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ 'Count' => [
+ 'description' => 'Number of instances',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '5',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\",\\n \\"Count\\": 5\\n}","type":"json"}]',
+ 'title' => 'GetInstanceCount',
+ 'summary' => 'Queries the number of instances.',
+ 'translator' => 'machine',
+ ],
+ 'CreateInstanceVpcEndpointLinkedVpc' => [
+ 'summary' => 'Associates a virtual private cloud (VPC) with a Container Registry instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The VPC ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'vpc-uf6pa68zxnnlc48dd****',
+ ],
+ ],
+ [
+ 'name' => 'VswitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the vSwitch that is associated with the specified VPC.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'vsw-uf6u0kn8x2gbzxfn2****',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: image repositories.'."\n"
+ .'* `Chart`: Helm charts.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Registry',
+ ],
+ ],
+ [
+ 'name' => 'EnableCreateDNSRecordInPvzt',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically create Alibaba Cloud DNS PrivateZone records. Valid values:'."\n"
+ ."\n"
+ .'> If you enable automatic creation of PrivateZone records, a PrivateZone record is automatically created when you associate a VPC with the instance.'."\n"
+ ."\n"
+ .'* `true`'."\n"
+ .'* `false`'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B22C77',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959B22C77\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>D4978DCC-ECBD-40B0-A714-EE6959B22C77</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateInstanceVpcEndpointLinkedVpc',
+ 'description' => 'The VPC quota must be purchased separately.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateInstanceEndpointAclPolicy' => [
+ 'summary' => 'Creates a whitelist policy for the public endpoint of the instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'EndpointType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'internet',
+ ],
+ ],
+ [
+ 'name' => 'Entry',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The CIDR block that is accessible.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '192.168.1.1/32',
+ ],
+ ],
+ [
+ 'name' => 'Comment',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The description.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Registry',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'D735C5EC-4206-4F48-A090-307BF56BEB99',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SLB_SERVICE_ERROR',
+ 'errorMessage' => 'Bad request for this user.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"D735C5EC-4206-4F48-A090-307BF56BEB99\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>D735C5EC-4206-4F48-A090-307BF56BEB99</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateInstanceEndpointAclPolicy',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteInstanceEndpointAclPolicy' => [
+ 'summary' => 'Deletes a whitelist policy for the public endpoint of an instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'EndpointType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'internet',
+ ],
+ ],
+ [
+ 'name' => 'Entry',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The CIDR block.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '127.0.0.1/32',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Chart',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'BDB1F145-F0FF-44E9-AADF-A678642A7C7D',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SLB_SERVICE_ERROR',
+ 'errorMessage' => 'Bad request for this user.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BDB1F145-F0FF-44E9-AADF-A678642A7C7D\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>BDB1F145-F0FF-44E9-AADF-A678642A7C7D</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteInstanceEndpointAclPolicy',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteInstanceVpcEndpointLinkedVpc' => [
+ 'summary' => 'Disassociates a virtual private cloud (VPC) from an instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr8UG6HF',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'VpcId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the VPC.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'vpc-uf6pa68zxnnlc48dd****',
+ ],
+ ],
+ [
+ 'name' => 'VswitchId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the vSwitch.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'vpc-uf6pa68zxnnlc48dd****',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Chart',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '20FE7A66-0044-4E23-BBEC-C434EADBD7AF',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"true\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"20FE7A66-0044-4E23-BBEC-C434EADBD7AF\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>20FE7A66-0044-4E23-BBEC-C434EADBD7AF</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteInstanceVpcEndpointLinkedVpc',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateInstanceEndpointStatus' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'EndpointType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'internet',
+ ],
+ ],
+ [
+ 'name' => 'Enable',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable the instance endpoint. Valid values:'."\n"
+ ."\n"
+ .'* `true`: enables the instance endpoint.'."\n"
+ .'* `false`: disables the instance endpoint'."\n",
+ 'type' => 'boolean',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Chart',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '2FC14396-A16A-42BA-AAE4-BB94D956DF09',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"2FC14396-A16A-42BA-AAE4-BB94D956DF09\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>2FC14396-A16A-42BA-AAE4-BB94D956DF09</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'UpdateInstanceEndpointStatus',
+ 'summary' => 'Updates the status of an instance endpoint.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetInstanceEndpoint' => [
+ 'summary' => 'Queries an endpoint of an instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'EndpointType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'internet',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Registry',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '8F3D5EC5-39D1-4C53-A198-48C54C658FA3',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'AclEnable' => [
+ 'description' => 'Indicates whether the access control list (ACL) feature is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Enable' => [
+ 'description' => 'Indicates whether the ACL feature is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Domains' => [
+ 'description' => 'Domain names.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The type of the domain name. Valid values:'."\n"
+ ."\n"
+ .'* `SYSTEM`: a system domain name.'."\n"
+ .'* `USER`: a user domain name.'."\n",
+ 'type' => 'string',
+ 'example' => 'SYSTEM',
+ ],
+ 'Domain' => [
+ 'description' => 'The domain name that is used to access the Container Registry Enterprise Edition instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'shanghai-instance1-registry.cn-shanghai.cr.aliyuncs.com',
+ ],
+ ],
+ ],
+ ],
+ 'AclEntries' => [
+ 'description' => 'The ACLs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Comment' => [
+ 'description' => 'Remarks for public IP address whitelists.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Entry' => [
+ 'description' => 'The public IP address whitelist.'."\n",
+ 'type' => 'string',
+ 'example' => '192.168.1.0/24',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"RUNNING\\",\\n \\"RequestId\\": \\"8F3D5EC5-39D1-4C53-A198-48C54C658FA3\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"AclEnable\\": true,\\n \\"Enable\\": true,\\n \\"Domains\\": [\\n {\\n \\"Type\\": \\"SYSTEM\\",\\n \\"Domain\\": \\"shanghai-instance1-registry.cn-shanghai.cr.aliyuncs.com\\"\\n }\\n ],\\n \\"AclEntries\\": [\\n {\\n \\"Comment\\": \\"1\\",\\n \\"Entry\\": \\"192.168.1.0/24\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Status>RUNNING</Status>\\n<Domains>\\n <Type>SYSTEM</Type>\\n <Domain>shanghai-instance1-registry.cn-shanghai.cr.aliyuncs.com</Domain>\\n</Domains>\\n<AclEntries>\\n <Comment>1</Comment>\\n <Entry>192.168.1.0/24</Entry>\\n</AclEntries>\\n<IsSuccess>true</IsSuccess>\\n<AclEnable>true</AclEnable>\\n<RequestId>8F3D5EC5-39D1-4C53-A198-48C54C658FA3</RequestId>\\n<Enable>true</Enable>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'GetInstanceEndpoint',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListInstanceEndpoint' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: image repositories.'."\n"
+ .'* `Chart`: Helm charts.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Chart',
+ ],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'Specify whether to return endpoints in simple mode. If yes, no access control information about the endpoint is returned.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '1B21A877-66A2-4095-90EB-20A7781A4A67',
+ ],
+ 'Endpoints' => [
+ 'description' => 'The endpoints of the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'RUNNING',
+ ],
+ 'EndpointType' => [
+ 'description' => 'The type of the endpoint.'."\n",
+ 'type' => 'string',
+ 'example' => 'internet',
+ ],
+ 'AclEnable' => [
+ 'description' => 'Indicates whether the endpoint is added to an access control list (ACL).'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Enable' => [
+ 'description' => 'Indicates whether the endpoint is added to an ACL.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Domains' => [
+ 'description' => 'The list of domain names of the Container Registry instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => [
+ 'description' => 'The type of the domain name. Valid values:'."\n"
+ ."\n"
+ .'* SYSTEM: system domain name.'."\n"
+ .'* USER: user domain name.'."\n",
+ 'type' => 'string',
+ 'example' => 'SYSTEM',
+ ],
+ 'Domain' => [
+ 'description' => 'The domain name of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'example' => 't****-registry.cn-shanghai.cr.aliyuncs.com',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'LinkedVpcs' => [
+ 'description' => 'The VPCs associated with the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => [
+ 'description' => 'VPC ID'."\n",
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ 'AclEntries' => [
+ 'description' => 'The ACLs that are configured for the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Entry' => [
+ 'description' => 'The information about the ACL.'."\n",
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"1B21A877-66A2-4095-90EB-20A7781A4A67\\",\\n \\"Endpoints\\": [\\n {\\n \\"Status\\": \\"RUNNING\\",\\n \\"EndpointType\\": \\"internet\\",\\n \\"AclEnable\\": true,\\n \\"Enable\\": true,\\n \\"Domains\\": [\\n {\\n \\"Type\\": \\"SYSTEM\\",\\n \\"Domain\\": \\"t****-registry.cn-shanghai.cr.aliyuncs.com\\"\\n }\\n ],\\n \\"LinkedVpcs\\": [\\n {\\n \\"VpcId\\": \\"vpc-bp1b1xjllp3ve5yze****\\"\\n }\\n ],\\n \\"AclEntries\\": [\\n {\\n \\"Entry\\": \\"127.0.0.1\\"\\n }\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Endpoints>\\n <Status>RUNNING</Status>\\n <AclEnable>true</AclEnable>\\n <EndpointType>internet</EndpointType>\\n <Enable>true</Enable>\\n <Domains>\\n <Type>SYSTEM</Type>\\n <Domain>t****-registry.cn-shanghai.cr.aliyuncs.com</Domain>\\n </Domains>\\n <AclEntries>\\n <Entry>null</Entry>\\n </AclEntries>\\n <LinkedVpcs>\\n <VpcId>null</VpcId>\\n </LinkedVpcs>\\n</Endpoints>\\n<IsSuccess>true</IsSuccess>\\n<RequestId>1B21A877-66A2-4095-90EB-20A7781A4A67</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListInstanceEndpoint',
+ 'summary' => 'Queries the endpoints of a Container Registry instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetInstanceVpcEndpoint' => [
+ 'summary' => 'Queries the endpoints of the virtual private clouds (VPCs) in which a Container Registry instance is deployed.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrFQBFTD',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the module that you want to access. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: the image repository.'."\n"
+ .'* `Chart`: a Helm chart.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Chart',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'BAE9349D-A587-4F9A-B574-9DA0EF2638D1',
+ ],
+ 'Enable' => [
+ 'description' => 'Indicates whether the VPC endpoint is enabled. Valid values:'."\n"
+ ."\n"
+ .'* `true`'."\n"
+ .'* `false`'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Domains' => [
+ 'description' => 'Domain names.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The domain name.',
+ 'type' => 'string',
+ 'example' => 'test-registry.cn-hangzhou.cr.aliyuncs.com',
+ ],
+ ],
+ 'LinkedVpcs' => [
+ 'description' => 'List of linked VPCs'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The linked VPC information'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the VPC. Valid values:'."\n"
+ ."\n"
+ .'* `CREATING`'."\n"
+ .'* `RUNNING`'."\n",
+ 'type' => 'string',
+ 'example' => 'CREATING',
+ ],
+ 'VpcId' => [
+ 'description' => 'VPC ID'."\n",
+ 'type' => 'string',
+ 'example' => 'vpc-uf6aamu2nomfr1thd****',
+ ],
+ 'Ip' => [
+ 'description' => 'IP address.'."\n",
+ 'type' => 'string',
+ 'example' => '192.168.10.11',
+ ],
+ 'DefaultAccess' => [
+ 'description' => 'Indicates whether the VPC is the default VPC over which the Container Registry instance is accessed.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'VswitchId' => [
+ 'description' => 'The ID of the vSwitch.'."\n",
+ 'type' => 'string',
+ 'example' => 'vsw-uf62m5vmxl2e72dk7****',
+ ],
+ 'Issue' => [
+ 'title' => '关联VPC的访问控制存在的异常信息',
+ 'description' => 'The error message detected in the linked VPC access control.'."\n",
+ 'type' => 'string',
+ 'example' => 'PRIVATE_ZONE_CONFLICT_AT_{private_zone_id}',
+ ],
+ ],
+ ],
+ ],
+ 'ModuleName' => [
+ 'description' => 'The name of the modules that can be accessed. Valid values:'."\n"
+ ."\n"
+ .'* `Registry`: image repositories.'."\n"
+ .'* `Chart`: Helm charts.'."\n",
+ 'type' => 'string',
+ 'example' => 'Registry',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BAE9349D-A587-4F9A-B574-9DA0EF2638D1\\",\\n \\"Enable\\": true,\\n \\"Domains\\": [\\n \\"test-registry.cn-hangzhou.cr.aliyuncs.com\\"\\n ],\\n \\"LinkedVpcs\\": [\\n {\\n \\"Status\\": \\"CREATING\\",\\n \\"VpcId\\": \\"vpc-uf6aamu2nomfr1thd****\\",\\n \\"Ip\\": \\"192.168.10.11\\",\\n \\"DefaultAccess\\": false,\\n \\"VswitchId\\": \\"vsw-uf62m5vmxl2e72dk7****\\",\\n \\"Issue\\": \\"PRIVATE_ZONE_CONFLICT_AT_{private_zone_id}\\"\\n }\\n ],\\n \\"ModuleName\\": \\"Registry\\"\\n}","errorExample":""},{"type":"xml","example":"<GetInstanceVpcEndpointResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>BAE9349D-A587-4F9A-B574-9DA0EF2638D1</RequestId>\\n <Enable>true</Enable>\\n <Domains>test-registry.cn-hangzhou.cr.aliyuncs.com</Domains>\\n <LinkedVpcs>\\n <Status>CREATING</Status>\\n <VpcId>vpc-uf6aamu2nomfr1thd****</VpcId>\\n <Ip>192.168.10.11</Ip>\\n <DefaultAccess>false</DefaultAccess>\\n <VswitchId>vsw-uf62m5vmxl2e72dk7****</VswitchId>\\n </LinkedVpcs>\\n</GetInstanceVpcEndpointResponse>","errorExample":""}]',
+ 'title' => 'GetInstanceVpcEndpoint',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'translator' => 'machine',
+ ],
+ 'CreateRepoSyncTaskByRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-hnoq7j93or3k****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The version of the image to be synchronized.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1.24',
+ ],
+ ],
+ [
+ 'name' => 'SyncRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crsr-o8n4dijbumgq****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '17A4C658-AE8F-4A08-821F-EDCB5FC74EE8',
+ ],
+ 'SyncTaskId' => [
+ 'description' => 'The ID of the synchronization task.'."\n",
+ 'type' => 'string',
+ 'example' => 'rst-biu4u4pm4it5****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"17A4C658-AE8F-4A08-821F-EDCB5FC74EE8\\",\\n \\"SyncTaskId\\": \\"rst-biu4u4pm4it5****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>17A4C658-AE8F-4A08-821F-EDCB5FC74EE8</RequestId>\\n<SyncTaskId>rst-biu4u4pm4it5****</SyncTaskId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepoSyncTaskByRule',
+ 'summary' => 'Creates an image replication task based on a manual replication rule.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateRepoSyncRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '33690',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLKRO80',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The namespace name of the source instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository in the source instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The region ID of the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The destination instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-ibxs3piklys3****',
+ ],
+ ],
+ [
+ 'name' => 'TargetNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The namespace name of the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'TargetRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository in the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => false,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNameFilter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regular expression that is used to filter repositories.'."\n"
+ ."\n"
+ .'> This parameter is valid only when SyncScope is set to `NAMESPACE`.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '.*',
+ ],
+ ],
+ [
+ 'name' => 'TagFilter',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regular expression that is used to filter image tags.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '.*',
+ ],
+ ],
+ [
+ 'name' => 'SyncScope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The synchronization scope. Valid values:'."\n"
+ ."\n"
+ .'* `REPO`: synchronizes the image tags in an image repository that meet the synchronization rule.'."\n"
+ .'* `NAMESPACE`: synchronizes the image tags in a namespace that meet the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'REPO',
+ ],
+ ],
+ [
+ 'name' => 'SyncRuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image synchronization rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'rule',
+ ],
+ ],
+ [
+ 'name' => 'SyncTrigger',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The mode of triggering the synchronization rule. Valid values:'."\n"
+ ."\n"
+ .'* `INITIATIVE`: manually triggers the synchronization rule.'."\n"
+ .'* `PASSIVE`: automatically triggers the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'PASSIVE',
+ ],
+ ],
+ [
+ 'name' => 'TargetUserId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The user ID (UID) of the account to which the destination instance belongs.'."\n"
+ ."\n"
+ .'> If you synchronize images across accounts, you must use the UID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12645940***',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'SyncRuleId' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crsr-gk5p2ns1kzns****',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '8F8A0BA6-7F06-4BAE-B147-10BD6A25****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"SyncRuleId\\": \\"crsr-gk5p2ns1kzns****\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"8F8A0BA6-7F06-4BAE-B147-10BD6A25****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<SyncRuleId>crsr-gk5p2ns1kzns****</SyncRuleId>\\n<RequestId>8F8A0BA6-7F06-4BAE-B147-10BD6A25****</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepoSyncRule',
+ 'summary' => 'Creates an image synchronization rule for an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateRepoSyncTask' => [
+ 'methods' => [
+ 'get',
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-iql7jalx4g0****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'tag1',
+ ],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cn-hangzhou',
+ ],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-ibxs3piklys3****',
+ ],
+ ],
+ [
+ 'name' => 'TargetNamespace',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'TargetRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'TargetTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'tag1',
+ ],
+ ],
+ [
+ 'name' => 'TargetUserId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '12345***',
+ ],
+ ],
+ [
+ 'name' => 'Override',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '8F8A0BA6-7F06-4BAE-B147-10BD6A25****',
+ ],
+ 'SyncTaskId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'rst-gbch330f0c****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"8F8A0BA6-7F06-4BAE-B147-10BD6A25****\\",\\n \\"SyncTaskId\\": \\"rst-gbch330f0c****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>8F8A0BA6-7F06-4BAE-B147-10BD6A25****</RequestId>\\n<SyncTaskId>rst-gbch330f0c****</SyncTaskId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepoSyncTask',
+ 'summary' => 'Manually creates an image synchronization task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteRepoSyncRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****',
+ ],
+ ],
+ [
+ 'name' => 'SyncRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crsr-gk5p2ns1kzns****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '72DD4198-1BB9-47A3-BC01-EAD1A6D5E173',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"72DD4198-1BB9-47A3-BC01-EAD1A6D5E173\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>72DD4198-1BB9-47A3-BC01-EAD1A6D5E173</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteRepoSyncRule',
+ 'summary' => 'Deletes an image replication rule of an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoSyncTask' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33789',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLKRO80',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ns',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'nginx',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'SyncRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the synchronization task record, which is the same as SyncBatchTaskId in the response.'."\n"
+ ."\n"
+ .'> If an image meets multiple synchronization rules and multiple synchronization tasks are generated for the image, these synchronization tasks use the same SyncBatchTaskId.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crsr-7lph66uloi6h****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '7640819A-FB5B-4E25-A227-97717F62****',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of the queried synchronization tasks.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'SyncTasks' => [
+ 'description' => 'The queried synchronization tasks.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifedTime' => [
+ 'description' => 'The time when the synchronization task was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572839133000',
+ ],
+ 'SyncRuleId' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crsr-7lph66uloi6h****',
+ ],
+ 'SyncTaskId' => [
+ 'description' => 'The ID of the synchronization task.'."\n",
+ 'type' => 'string',
+ 'example' => 'rst-4kfd7fk6pohk****',
+ ],
+ 'TaskStatus' => [
+ 'description' => 'The status of the synchronization task.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the synchronization task was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572839126000',
+ ],
+ 'SyncBatchTaskId' => [
+ 'description' => 'The ID of the image synchronization batch tasks, which is the same as the value of SyncRecordId in the request.'."\n"
+ ."\n"
+ .'> If an image meets multiple synchronization rules and multiple synchronization tasks are generated for the image, these synchronization tasks use the same SyncBatchTaskId.'."\n",
+ 'type' => 'string',
+ 'example' => '15DEEB56-9271-4FDD-AC4D-C3A5CC2C****',
+ ],
+ 'CrossUser' => [
+ 'description' => 'Indicates whether the synchronization task is performed across Alibaba Cloud accounts. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The image synchronization task is performed across accounts.'."\n"
+ .'* `false`: The image synchronization task is performed within the same account.'."\n"
+ ."\n"
+ .'Default value: `false`.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'SyncTransAccelerate' => [
+ 'description' => 'Indicates whether the synchronization transfer acceleration feature is enabled for the synchronization task.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TaskTrigger' => [
+ 'description' => 'The policy that is configured to trigger the synchronization task. Valid values:'."\n"
+ ."\n"
+ .'* `PASSIVE`: automatically triggers the synchronization task.'."\n"
+ .'* `INITIATIVE`: manually triggers the synchronization task.'."\n"
+ ."\n"
+ .'Default value: `PASSIVE`.'."\n",
+ 'type' => 'string',
+ 'example' => 'PASSIVE',
+ ],
+ 'ImageFrom' => [
+ 'description' => 'The information about the source image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'RepoName' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ 'ImageTo' => [
+ 'description' => 'The information about the destination image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-k77rd2eo9zttneqo',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'RepoName' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shenzhen',
+ ],
+ ],
+ ],
+ 'CustomLink' => [
+ 'description' => 'Indicates whether a custom synchronization link is used.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TaskIssue' => [
+ 'description' => 'The error message that is returned if the synchronization task fails.'."\n"
+ ."\n"
+ .'> The system uses this parameter to return an error message if the synchronization task fails.'."\n"
+ ."\n"
+ .'Valid value:'."\n"
+ ."\n"
+ .'* OSS_POLICY_UNAUTHORIZED: Container Registry is not granted permissions to access Object Storage Service (OSS).'."\n"
+ .'* TAG_CONFLICT: The destination repository contains an image that has the same tag as the source image, and image tag immutability is enabled for the destination repository.'."\n"
+ .'* UNSUPPORTED_FORMAT: The manifest or config format of the image to be synchronized is not supported.'."\n"
+ .'* INTERNAL_ERROR: The synchronization task failed due to internal issues on the server.'."\n"
+ .'* NETWORK_ERROR: The synchronization task failed due to unstable network connection.'."\n"
+ .'* DATA_LENGTH_EXCEEDED: The manifest or config of the image is oversized.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'OSS_POLICY_UNAUTHORIZED' => '',
+ 'TAG_CONFLICT' => '',
+ 'UNSUPPORTED_FORMAT' => '',
+ 'INTERNAL_ERROR' => '',
+ 'NETWORK_ERROR' => '',
+ 'DATA_LENGTH_EXCEEDED' => '',
+ ],
+ 'example' => 'NETWORK_ERROR',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"7640819A-FB5B-4E25-A227-97717F62****\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"SyncTasks\\": [\\n {\\n \\"ModifedTime\\": 1572839133000,\\n \\"SyncRuleId\\": \\"crsr-7lph66uloi6h****\\",\\n \\"SyncTaskId\\": \\"rst-4kfd7fk6pohk****\\",\\n \\"TaskStatus\\": \\"ERROR\\",\\n \\"CreateTime\\": 1572839126000,\\n \\"SyncBatchTaskId\\": \\"9d8ac4f6-8138-4c15-a2e3-60624ad3****\\",\\n \\"CrossUser\\": true,\\n \\"SyncTransAccelerate\\": true,\\n \\"TaskTrigger\\": \\"PASSIVE\\",\\n \\"ImageFrom\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"ImageTag\\": \\"v0.1\\",\\n \\"RepoName\\": \\"test\\",\\n \\"RegionId\\": \\"cn-shanghai\\"\\n },\\n \\"ImageTo\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"InstanceId\\": \\"cri-k77rd2eo9zttneqo\\",\\n \\"ImageTag\\": \\"v0.1\\",\\n \\"RepoName\\": \\"test\\",\\n \\"RegionId\\": \\"cn-shenzhen\\"\\n },\\n \\"CustomLink\\": true,\\n \\"TaskIssue\\": \\"NETWORK_ERROR\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>7640819A-FB5B-4E25-A227-97717F62****</RequestId>\\n<PageNo>1</PageNo>\\n<SyncTasks>\\n <SyncRuleId>crsr-7lph66uloi6h****</SyncRuleId>\\n <TaskTrigger>PASSIVE</TaskTrigger>\\n <CrossUser>true</CrossUser>\\n <CreateTime>1572839126000</CreateTime>\\n <SyncBatchTaskId>15DEEB56-9271-4FDD-AC4D-C3A5CC2C****</SyncBatchTaskId>\\n <TaskStatus>SUCCESS</TaskStatus>\\n <SyncTaskId>rst-4kfd7fk6pohk****</SyncTaskId>\\n <ModifedTime>1572839133000</ModifedTime>\\n <ImageFrom>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>v0.1</ImageTag>\\n <InstanceId>cri-kmsiwlxxdcva****</InstanceId>\\n <RepoName>test</RepoName>\\n <RegionId>cn-shanghai</RegionId>\\n </ImageFrom>\\n <ImageTo>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>v0.1</ImageTag>\\n <InstanceId>cri-k77rd2eo9zttneqo</InstanceId>\\n <RepoName>test</RepoName>\\n <RegionId>cn-shenzhen</RegionId>\\n </ImageTo>\\n</SyncTasks>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoSyncTask',
+ 'summary' => 'Queries image synchronization tasks in an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoSyncRule' => [
+ 'summary' => 'Queries image synchronization rules of a repository.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33788',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLKRO80',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-namespace',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-repo',
+ ],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-k77rd2eo9ztt****',
+ ],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The region ID of the destination instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cn-shenzhen',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '838D1602-6D8F-47FB-B60A-656645D2****',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'SyncRules' => [
+ 'description' => 'The queried synchronization rules.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SyncTrigger' => [
+ 'description' => 'The policy that is applied to trigger the synchronization rule. Valid values:'."\n"
+ ."\n"
+ .'* `INITIATIVE`: The synchronization rule is positively triggered.'."\n"
+ .'* `PASSIVE`: The synchronization rule is passively triggered.'."\n",
+ 'type' => 'string',
+ 'example' => 'PASSIVE',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the synchronization rule was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572604642000',
+ ],
+ 'LocalRegionId' => [
+ 'description' => 'The region ID of the source instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ 'SyncScope' => [
+ 'description' => 'The synchronization scope. Valid values:'."\n"
+ ."\n"
+ .'* `NAMESPACE`: synchronizes the image tags in a namespace that meet the synchronization rule.'."\n"
+ .'* `REPO`: synchronizes the image tags in an image repository that meet the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'NAMESPACE',
+ ],
+ 'RepoNameFilter' => [
+ 'description' => 'The regular expression that is used to filter repositories.'."\n"
+ ."\n"
+ .'> This parameter is valid only when SyncScope is set to `NAMESPACE`.'."\n",
+ 'type' => 'string',
+ 'example' => '.*',
+ ],
+ 'TagFilter' => [
+ 'description' => 'The regular expression that is used to filter image tags.'."\n",
+ 'type' => 'string',
+ 'example' => '.*',
+ ],
+ 'TargetNamespaceName' => [
+ 'description' => 'The name of the namespace in the destination instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'TargetInstanceId' => [
+ 'description' => 'The ID of the destination instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-k77rd2eo9ztt****',
+ ],
+ 'TargetRepoName' => [
+ 'description' => 'The name of the repository in the destination instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo-target',
+ ],
+ 'SyncRuleId' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crsr-7lph66uloi6h****',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the synchronization rule was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572604642000',
+ ],
+ 'SyncRuleName' => [
+ 'description' => 'The name of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'sync-rule-1',
+ ],
+ 'TargetRegionId' => [
+ 'description' => 'The region ID of the destination instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shenzhen',
+ ],
+ 'LocalInstanceId' => [
+ 'description' => 'The ID of the source instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'LocalNamespaceName' => [
+ 'description' => 'The name of the namespace in the source instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'LocalRepoName' => [
+ 'description' => 'The name of the repository in the source instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo-local',
+ ],
+ 'SyncDirection' => [
+ 'description' => 'The synchronization direction. Valid values:'."\n"
+ ."\n"
+ .'* `FROM`: Images are synchronized from the source instance to the destination instance.'."\n"
+ .'* `TO`: Images are synchronized from the destination instance to the source instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'FROM',
+ ],
+ 'CrossUser' => [
+ 'description' => 'Indicates whether the synchronization is performed across Alibaba Cloud accounts. Valid values:'."\n"
+ ."\n"
+ .'* `true`: Images are synchronized across Alibaba Cloud accounts.'."\n"
+ .'* `false`: Images are synchronized within the same Alibaba Cloud account.'."\n"
+ ."\n"
+ .'Default value: `false`.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"838D1602-6D8F-47FB-B60A-656645D2****\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 1,\\n \\"SyncRules\\": [\\n {\\n \\"SyncTrigger\\": \\"PASSIVE\\",\\n \\"CreateTime\\": 1572604642000,\\n \\"LocalRegionId\\": \\"cn-shanghai\\",\\n \\"SyncScope\\": \\"NAMESPACE\\",\\n \\"RepoNameFilter\\": \\".*\\",\\n \\"TagFilter\\": \\".*\\",\\n \\"TargetNamespaceName\\": \\"test\\",\\n \\"TargetInstanceId\\": \\"cri-k77rd2eo9ztt****\\",\\n \\"TargetRepoName\\": \\"test-repo-target\\",\\n \\"SyncRuleId\\": \\"crsr-7lph66uloi6h****\\",\\n \\"ModifiedTime\\": 1572604642000,\\n \\"SyncRuleName\\": \\"sync-rule-1\\",\\n \\"TargetRegionId\\": \\"cn-shenzhen\\",\\n \\"LocalInstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"LocalNamespaceName\\": \\"test\\",\\n \\"LocalRepoName\\": \\"test-repo-local\\",\\n \\"SyncDirection\\": \\"FROM\\",\\n \\"CrossUser\\": true\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>838D1602-6D8F-47FB-B60A-656645D2****</RequestId>\\n<SyncRules>\\n <LocalInstanceId>cri-kmsiwlxxdcva****</LocalInstanceId>\\n <SyncScope>NAMESPACE</SyncScope>\\n <TagFilter>.*</TagFilter>\\n <CreateTime>1572604642000</CreateTime>\\n <TargetInstanceId>cri-k77rd2eo9ztt****</TargetInstanceId>\\n <SyncDirection>FROM</SyncDirection>\\n <SyncRuleName>sync-rule-1</SyncRuleName>\\n <LocalRepoName>test-repo-local</LocalRepoName>\\n <LocalNamespaceName>test</LocalNamespaceName>\\n <SyncRuleId>crsr-7lph66uloi6h****</SyncRuleId>\\n <TargetRepoName>test-repo-target</TargetRepoName>\\n <ModifiedTime>1572604642000</ModifiedTime>\\n <CrossUser>true</CrossUser>\\n <SyncTrigger>PASSIVE</SyncTrigger>\\n <TargetRegionId>cn-shenzhen</TargetRegionId>\\n <TargetNamespaceName>test</TargetNamespaceName>\\n <LocalRegionId>cn-shanghai</LocalRegionId>\\n</SyncRules>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoSyncRule',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepoSyncTask' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33752',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLKRO80',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-sgedpenzw80e****',
+ ],
+ ],
+ [
+ 'name' => 'SyncTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the synchronization task.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'rst-zxjkiv5oil6f****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SyncRuleId' => [
+ 'description' => 'The ID of the synchronization rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crsr-cllro6ho3wne****',
+ ],
+ 'Progress' => [
+ 'description' => 'The synchronization progress. Valid values:'."\n"
+ ."\n"
+ .'* `0`: The synchronization starts or failed.'."\n"
+ .'* `1`: The synchronization is successful.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'A6DEF8B0-5D45-46D6-867D-8C7FF0966B07',
+ ],
+ 'SyncedSize' => [
+ 'description' => 'The size of the image layer that is synchronized. Unit: bytes.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '23655489',
+ ],
+ 'TaskStatus' => [
+ 'description' => 'The status of the task. Valid values:'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'SyncTransAccelerate' => [
+ 'description' => 'Indicates whether transfer acceleration is enabled in the synchronization process.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'CrossUser' => [
+ 'description' => 'Indicates whether the synchronization task is performed across Alibaba Cloud accounts.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'SyncTaskId' => [
+ 'description' => 'The ID of the synchronization task.'."\n",
+ 'type' => 'string',
+ 'example' => 'rst-zxjkiv5oil6f****',
+ ],
+ 'SyncBatchTaskId' => [
+ 'description' => 'The ID of the synchronization task in which multiple images are synchronized at a time.'."\n",
+ 'type' => 'string',
+ 'example' => 'a9434731-95ef-4087-9cf4-369c8e90****',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TaskTrigger' => [
+ 'description' => 'The policy that is used to trigger the synchronization task.'."\n",
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'ImageFrom' => [
+ 'description' => 'The source address of the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-sgedpenzw80e****',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'master',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cn-shanghai',
+ ],
+ ],
+ ],
+ 'ImageTo' => [
+ 'description' => 'The destination address of the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-leqzomz5vijc****',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'master',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RegionId' => [
+ 'description' => 'The region ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'eu-west-1',
+ ],
+ ],
+ ],
+ 'LayerTasks' => [
+ 'description' => 'The synchronization tasks for the image layer.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The synchronization tasks for the image layer.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'TaskStatus' => [
+ 'description' => 'The status of the synchronization task. Valid values:'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'Digest' => [
+ 'description' => 'The digest of the image layer.'."\n",
+ 'type' => 'string',
+ 'example' => 'sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e',
+ ],
+ 'SyncedSize' => [
+ 'description' => 'The size of the image layer that is synchronized.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '23655489',
+ ],
+ 'Size' => [
+ 'description' => 'The size of synchronized image layers.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '23655489',
+ ],
+ 'SyncLayerTaskId' => [
+ 'description' => 'The ID of the synchronization task for the image layer.'."\n",
+ 'type' => 'string',
+ 'example' => 'rslt-074x4q20fx2d****',
+ ],
+ 'ArtifactDigest' => [
+ 'description' => 'The digest of the artifact.'."\n",
+ 'type' => 'string',
+ 'example' => 'sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e',
+ ],
+ ],
+ ],
+ ],
+ 'TaskIssue' => [
+ 'description' => 'The error message that is returned if the synchronization task fails.'."\n"
+ ."\n"
+ .'> The system uses this parameter to return an error message if the synchronization task fails.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* OSS_POLICY_UNAUTHORIZED: Container Registry is not granted permissions to use Object Storage Service (OSS).'."\n"
+ .'* TAG_CONFLICT: The destination repository contains an image that has the same tag as the source image, and image tag immutability is enabled for the destination repository.'."\n"
+ .'* UNSUPPORTED_FORMAT: The manifest and config formats of the image to be synchronized are not supported.'."\n"
+ .'* INTERNAL_ERROR: The synchronization task failed due to internal issues on the server.'."\n"
+ .'* NETWORK_ERROR: The synchronization task failed due to unstable network connection.'."\n"
+ .'* DATA_LENGTH_EXCEEDED: The manifest or config of the image is oversized.'."\n",
+ 'type' => 'string',
+ 'enumValueTitles' => [
+ 'OSS_POLICY_UNAUTHORIZED' => '',
+ 'TAG_CONFLICT' => '',
+ 'UNSUPPORTED_FORMAT' => '',
+ 'INTERNAL_ERROR' => '',
+ 'NETWORK_ERROR' => '',
+ 'DATA_LENGTH_EXCEEDED' => '',
+ ],
+ 'example' => 'NETWORK_ERROR',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"SyncRuleId\\": \\"crsr-cllro6ho3wne****\\",\\n \\"Progress\\": 1,\\n \\"RequestId\\": \\"A6DEF8B0-5D45-46D6-867D-8C7FF0966B07\\",\\n \\"SyncedSize\\": 23655489,\\n \\"TaskStatus\\": \\"SUCCESS\\",\\n \\"SyncTransAccelerate\\": true,\\n \\"CrossUser\\": true,\\n \\"SyncTaskId\\": \\"rst-zxjkiv5oil6f****\\",\\n \\"SyncBatchTaskId\\": \\"a9434731-95ef-4087-9cf4-369c8e90****\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"TaskTrigger\\": \\"PASSIVE\\",\\n \\"ImageFrom\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"InstanceId\\": \\"cri-sgedpenzw80e****\\",\\n \\"ImageTag\\": \\"master\\",\\n \\"RepoName\\": \\"test\\",\\n \\"RegionId\\": \\"cn-shanghai\\"\\n },\\n \\"ImageTo\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"InstanceId\\": \\"cri-leqzomz5vijc****\\",\\n \\"ImageTag\\": \\"master\\",\\n \\"RepoName\\": \\"test\\",\\n \\"RegionId\\": \\"eu-west-1\\"\\n },\\n \\"LayerTasks\\": [\\n {\\n \\"TaskStatus\\": \\"SUCCESS\\",\\n \\"Digest\\": \\"sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e\\",\\n \\"SyncedSize\\": 23655489,\\n \\"Size\\": 23655489,\\n \\"SyncLayerTaskId\\": \\"rslt-074x4q20fx2d****\\",\\n \\"ArtifactDigest\\": \\"sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e\\"\\n }\\n ],\\n \\"TaskIssue\\": \\"NETWORK_ERROR\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<Progress>1</Progress>\\n<RequestId>A6DEF8B0-5D45-46D6-867D-8C7FF0966B07</RequestId>\\n<LayerTasks>\\n <Digest>sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e</Digest>\\n <Size>23655489</Size>\\n <ArtifactDigest>sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e</ArtifactDigest>\\n <TaskStatus>SUCCESS</TaskStatus>\\n <SyncedSize>23655489</SyncedSize>\\n <SyncLayerTaskId>rslt-074x4q20fx2d****</SyncLayerTaskId>\\n</LayerTasks>\\n<TaskStatus>SUCCESS</TaskStatus>\\n<SyncTaskId>rst-zxjkiv5oil6f****</SyncTaskId>\\n<Code>success</Code>\\n<SyncedSize>23655489</SyncedSize>\\n<SyncRuleId>crsr-cllro6ho3wne****</SyncRuleId>\\n<ImageFrom>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>master</ImageTag>\\n <InstanceId>cri-sgedpenzw80e****</InstanceId>\\n <RepoName>test</RepoName>\\n <RegionId>cn-shanghai</RegionId>\\n</ImageFrom>\\n<TaskTrigger>null</TaskTrigger>\\n<ImageTo>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>master</ImageTag>\\n <InstanceId>cri-leqzomz5vijc****</InstanceId>\\n <RepoName>test</RepoName>\\n <RegionId>eu-west-1</RegionId>\\n</ImageTo>\\n<SyncBatchTaskId>a9434731-95ef-4087-9cf4-369c8e90****</SyncBatchTaskId>","errorExample":""}]',
+ 'title' => 'GetRepoSyncTask',
+ 'summary' => 'Queries an image synchronization task in an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CancelRepoSyncTask' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'readAndWrite',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '232709',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLKRO80',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'SyncTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the replication task.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'rst-biu4u4pm4it5****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C',
+ ],
+ 'Code' => [
+ 'description' => 'The response code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the CancelRepoSyncTask request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'SYNC_TASK_NOT_EXIST',
+ 'errorMessage' => 'Sync task is not exist.',
+ ],
+ ],
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ [
+ 'errorCode' => 'AUTHENTICATION_FAILED',
+ 'errorMessage' => 'Authentication failed.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EB9C5722-51E2-4497-A573-575B0CA5CE0C\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true\\n}","type":"json"}]',
+ 'title' => 'CancelRepoSyncTask',
+ 'summary' => 'Cancels a single replication task.',
+ ],
+ 'CreateNamespace' => [
+ 'summary' => 'Creates a namespace of image repositories.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33685',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace. The name must be 2 to 120 characters in length, and can contain lowercase letters, digits, and the following delimiters: underscores (\\_), hyphens (-), and periods (.). The name cannot start or end with a delimiter.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace1',
+ ],
+ ],
+ [
+ 'name' => 'AutoCreateRepo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically create an image repository in the namespace.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The default type of the repositories that are automatically created in the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: public repositories'."\n"
+ .'* `PRIVATE`: private repositories.'."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoConfiguration',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'required' => false,
+ '$ref' => '#/components/schemas/RepoConfiguration',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>BC648259-91A7-4502-BED3-EDF64361FA83</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateNamespace',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns3',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'BA08C185-8F76-48D7-ACB3-BA11BF2778F9',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BA08C185-8F76-48D7-ACB3-BA11BF2778F9\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>BA08C185-8F76-48D7-ACB3-BA11BF2778F9</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteNamespace',
+ 'summary' => 'Deletes a namespace.',
+ 'description' => '> After you delete a namespace, all repositories in the namespace and all images in these repositories are deleted as well.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateNamespace' => [
+ 'summary' => 'Updates a namespace.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33814',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr9J9LGC',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'AutoCreateRepo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically create a repository when an image is pushed to the namespace.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The default type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: The repository is a public repository.'."\n"
+ .'* `PRIVATE`: The repository is a private repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PRIVATE',
+ 'deprecated' => true,
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoConfiguration',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ '$ref' => '#/components/schemas/RepoConfiguration',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '90B8475C-C066-4B92-946E-4D0DECB514E8',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"90B8475C-C066-4B92-946E-4D0DECB514E8\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>90B8475C-C066-4B92-946E-4D0DECB514E8</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'UpdateNamespace',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetNamespace' => [
+ 'summary' => 'Queries the information about a namespace.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33746',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crn-tiw8t3f8i5lta****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultRepoType' => [
+ 'description' => 'The default type of repositories in the namespace. Valid values:'."\n"
+ ."\n"
+ .'* PUBLIC: public repositories.'."\n"
+ .'* PRIVATE: private repositories.'."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => 'PUBLIC',
+ ],
+ 'NamespaceId' => [
+ 'description' => 'The ID of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'crn-tiw8t3f8i5lt****',
+ ],
+ 'NamespaceStatus' => [
+ 'description' => 'The status of the namespace.'."\n"
+ ."\n"
+ .'* NORMAL'."\n"
+ .'* DELETING'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'E4BC9E21-8AA5-4582-83C1-C1209AB8196F',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'AutoCreateRepo' => [
+ 'description' => 'Indicates whether a repository is automatically created when an image is pushed to the namespace.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request was successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the namespace belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfmv36i4is****',
+ ],
+ 'DefaultRepoConfiguration' => [
+ '$ref' => '#/components/schemas/RepoConfiguration',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"DefaultRepoType\\": \\"PUBLIC\\",\\n \\"NamespaceId\\": \\"crn-tiw8t3f8i5lt****\\",\\n \\"NamespaceStatus\\": \\"NORMAL\\",\\n \\"RequestId\\": \\"E4BC9E21-8AA5-4582-83C1-C1209AB8196F\\",\\n \\"Code\\": \\"success\\",\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"AutoCreateRepo\\": true,\\n \\"IsSuccess\\": true,\\n \\"NamespaceName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfmv36i4is****\\",\\n \\"DefaultRepoConfiguration\\": {\\n \\"TagImmutability\\": true,\\n \\"RepoType\\": \\"\\",\\n \\"ArtifactBuildRuleParameters\\": {\\n \\"ImageIndexOnly\\": true,\\n \\"PriorityFile\\": \\"\\"\\n }\\n }\\n}","errorExample":""},{"type":"xml","example":"<AutoCreateRepo>true</AutoCreateRepo>\\n<Code>success</Code>\\n<DefaultRepoType>PUBLIC</DefaultRepoType>\\n<InstanceId>cri-kmsiwlxxdcvaduwb</InstanceId>\\n<IsSuccess>true</IsSuccess>\\n<NamespaceName>test</NamespaceName>\\n<NamespcaeId>crn-tiw8t3f8i5lta4uv</NamespcaeId>\\n<NamespaceStatus>NORMAL</NamespaceStatus>\\n<RequestId>E4BC9E21-8AA5-4582-83C1-C1209AB8196F</RequestId>","errorExample":""}]',
+ 'title' => 'GetNamespace',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListNamespace' => [
+ 'summary' => 'Queries namespaces in a Container Registry instance.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33783',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-94klsruryslx****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`'."\n"
+ .'* `DELETING`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NORMAL',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The namespace name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-namespace',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'B7E5FCA5-55ED-451C-9649-0BB2B93387D0',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of the queried namespaces.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Namespaces' => [
+ 'description' => 'The queried namespaces.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultRepoType' => [
+ 'description' => 'The default type of repositories in the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: public repositories.'."\n"
+ .'* `PRIVATE`: private repositories.'."\n",
+ 'type' => 'string',
+ 'deprecated' => true,
+ 'example' => 'PUBLIC',
+ ],
+ 'NamespaceStatus' => [
+ 'description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The namespace is normal.'."\n"
+ .'* `DELETING`: The namespace is being deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'NamespaceId' => [
+ 'description' => 'The namespace ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crn-tiw8t3f8i5lt****',
+ ],
+ 'AutoCreateRepo' => [
+ 'description' => 'Indicates whether the automatically creating repositories feature is enabled for the namespace.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-94klsruryslx****',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The namespace name.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The resource group ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfm4n5kzyf2fbi',
+ ],
+ 'DefaultRepoConfiguration' => [
+ '$ref' => '#/components/schemas/RepoConfiguration',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"B7E5FCA5-55ED-451C-9649-0BB2B93387D0\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"Namespaces\\": [\\n {\\n \\"DefaultRepoType\\": \\"PUBLIC\\",\\n \\"NamespaceStatus\\": \\"NORMAL\\",\\n \\"NamespaceId\\": \\"crn-tiw8t3f8i5lt****\\",\\n \\"AutoCreateRepo\\": true,\\n \\"InstanceId\\": \\"cri-94klsruryslx****\\",\\n \\"NamespaceName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfm4n5kzyf2fbi\\",\\n \\"DefaultRepoConfiguration\\": {\\n \\"TagImmutability\\": true,\\n \\"RepoType\\": \\"\\",\\n \\"ArtifactBuildRuleParameters\\": {\\n \\"ImageIndexOnly\\": true,\\n \\"PriorityFile\\": \\"\\"\\n }\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<Namespaces>\\n <NamespaceStatus>NORMAL</NamespaceStatus>\\n <NamespaceName>test</NamespaceName>\\n <DefaultRepoType>PUBLIC</DefaultRepoType>\\n <InstanceId>cri-94klsruryslx****</InstanceId>\\n <AutoCreateRepo>true</AutoCreateRepo>\\n <NamespaceId>crn-tiw8t3f8i5lt****</NamespaceId>\\n</Namespaces>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>B7E5FCA5-55ED-451C-9649-0BB2B93387D0</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListNamespace',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'translator' => 'machine',
+ ],
+ 'CreateRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the image repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace01',
+ ],
+ ],
+ [
+ 'name' => 'RepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: The repository is a public repository.'."\n"
+ .'* `PRIVATE`: The repository is a private repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'PRIVATE',
+ ],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The summary about the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'Detail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The description of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'TagImmutability',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable the feature of image tag immutability. Valid values:'."\n"
+ ."\n"
+ .'* `true`: enables the feature of image tag immutability.'."\n"
+ .'* `false`: disables the feature of image tag immutability.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-xwvi3osiy4ff****',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '886FB272-15C3-44FC-AA54-F4ABD5B93A28',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"RepoId\\": \\"crr-xwvi3osiy4ff****\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"886FB272-15C3-44FC-AA54-F4ABD5B93A28\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>886FB272-15C3-44FC-AA54-F4ABD5B93A28</RequestId>\\n<RepoId>crr-xwvi3osiy4ff****</RepoId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepository',
+ 'summary' => 'Creates an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-l4933wbcmun2****',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-repo',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-namespace',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'Return values'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '47DD9D56-09A0-4C52-B520-C3805DBAB96B',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"47DD9D56-09A0-4C52-B520-C3805DBAB96B\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>47DD9D56-09A0-4C52-B520-C3805DBAB96B</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteRepository',
+ 'summary' => 'Deletes an image repository.',
+ 'description' => 'If you delete a repository, all images in the repository are also deleted.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'RepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'test repo',
+ ],
+ ],
+ [
+ 'name' => 'Detail',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo-for-test',
+ ],
+ ],
+ [
+ 'name' => 'TagImmutability',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ejiayou-other',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'dsp/domain-microapp',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'CC43EC6B-0DD4-40AE-8811-B0519617051A',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"CC43EC6B-0DD4-40AE-8811-B0519617051A\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateRepositoryResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>CC43EC6B-0DD4-40AE-8811-B0519617051A</RequestId>\\n</UpdateRepositoryResponse>","errorExample":""}]',
+ 'title' => 'UpdateRepository',
+ 'summary' => 'The ID of the request.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo-test',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo-namespace-test',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100. If you specify a value larger than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '5241C090-DA69-4B0F-8E3F-2F24FDE1110E',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of the queried image repositories.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Repositories' => [
+ 'description' => 'The information about the repositories.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Summary' => [
+ 'description' => 'The summary of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test OK',
+ ],
+ 'RepoBuildType' => [
+ 'description' => 'The type of the repository building. Valid values:'."\n"
+ ."\n"
+ .'* `AUTO`: The repository is automatically built.'."\n"
+ .'* `MANUAL`: The repository is manually built.'."\n",
+ 'type' => 'string',
+ 'example' => 'MANUAL',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the repository was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1564153576000',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-03cuozrsqhkw****',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the repository was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1564153576000',
+ ],
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'TagImmutability' => [
+ 'description' => 'Indicates whether the feature of image tag immutability is enabled for the repository.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the Container Registry instance to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcv****',
+ ],
+ 'RepoType' => [
+ 'description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`'."\n"
+ .'* `PRIVATE`'."\n",
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'RepoStatus' => [
+ 'description' => 'The status of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfm4n5kzyfxxxx'."\n",
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"5241C090-DA69-4B0F-8E3F-2F24FDE1110E\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"Repositories\\": [\\n {\\n \\"Summary\\": \\"test OK\\",\\n \\"RepoBuildType\\": \\"MANUAL\\",\\n \\"ModifiedTime\\": 1564153576000,\\n \\"RepoId\\": \\"crr-03cuozrsqhkw****\\",\\n \\"CreateTime\\": 1564153576000,\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"TagImmutability\\": true,\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcv****\\",\\n \\"RepoType\\": \\"PRIVATE\\",\\n \\"RepoStatus\\": \\"NORMAL\\",\\n \\"RepoName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfm4n5kzyfxxxx\\\\n\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Repositories>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <TagImmutability>true</TagImmutability>\\n <RepoBuildType>MANUAL</RepoBuildType>\\n <ModifiedTime>1564153576000</ModifiedTime>\\n <RepoType>PRIVATE</RepoType>\\n <RepoStatus>NORMAL</RepoStatus>\\n <InstanceId>cri-kmsiwlxxdcv****</InstanceId>\\n <CreateTime>1564153576000</CreateTime>\\n <RepoName>test</RepoName>\\n <Summary>test OK</Summary>\\n <RepoId>crr-03cuozrsqhkw****</RepoId>\\n</Repositories>\\n<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>5241C090-DA69-4B0F-8E3F-2F24FDE1110E</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepository',
+ 'summary' => 'Queries image repositories.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33750',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr0GH77N',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crr-03cuozrsqhkw****',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Summary' => [
+ 'description' => 'The summary of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'Automatically created repository',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the repository was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570759546000',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'RepoStatus' => [
+ 'description' => 'The status of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RepoType' => [
+ 'description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: public repository.'."\n"
+ .'* `PRIVATE`: private repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'RepoBuildType' => [
+ 'description' => 'Indicates how the repository was created. Valid values:'."\n"
+ ."\n"
+ .'* `MANUAL`: The repository was manually created.'."\n"
+ .'* `AUTO`: The repository was automatically created.'."\n",
+ 'type' => 'string',
+ 'example' => 'MANUAL',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the repository was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1570759546100',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '915E6734-3E50-4640-8DBA-126D2D94DE29',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-l5eoubonp0l****',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'TagImmutability' => [
+ 'description' => 'Indicates whether the feature of image tag immutability is enabled. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The feature of image tag immutability is enabled.'."\n"
+ .'* `false`: The feature of image tag immutability is disabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'Detail' => [
+ 'description' => 'The details of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfmv36i4is****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Summary\\": \\"Automatically created repository\\",\\n \\"CreateTime\\": 1570759546000,\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"RepoStatus\\": \\"NORMAL\\",\\n \\"RepoType\\": \\"PRIVATE\\",\\n \\"RepoBuildType\\": \\"MANUAL\\",\\n \\"ModifiedTime\\": 1570759546100,\\n \\"RequestId\\": \\"915E6734-3E50-4640-8DBA-126D2D94DE29\\",\\n \\"RepoId\\": \\"crr-l5eoubonp0l****\\",\\n \\"Code\\": \\"success\\",\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"TagImmutability\\": true,\\n \\"RepoName\\": \\"test\\",\\n \\"Detail\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfmv36i4is****\\"\\n}","errorExample":""},{"type":"xml","example":"<RepoNamespaceName>test</RepoNamespaceName>\\n<IsSuccess>true</IsSuccess>\\n<RequestId>915E6734-3E50-4640-8DBA-126D2D94DE29</RequestId>\\n<InstanceId>cri-kmsiwlxxdcva****</InstanceId>\\n<CreateTime>1570759546000</CreateTime>\\n<RepoName>test</RepoName>\\n<Code>success</Code>\\n<TagImmutability>true</TagImmutability>\\n<RepoBuildType>MANUAL</RepoBuildType>\\n<ModifiedTime>1570759546100</ModifiedTime>\\n<RepoType>PRIVATE</RepoType>\\n<RepoStatus>NORMAL</RepoStatus>\\n<Summary>Automatically created repository</Summary>\\n<RepoId>crr-l5eoubonp0l****</RepoId>\\n<Detail>test</Detail>","errorExample":""}]',
+ 'title' => 'GetRepository',
+ 'summary' => 'Queries details about an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateRepoTag' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzv****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'FromTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The source image tag.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'v1',
+ ],
+ ],
+ [
+ 'name' => 'ToTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag that you want to create.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'v2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'C4C7DD0C-C9D6-437A-A7EE-8BY*****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access is denied for the user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C4C7DD0C-C9D6-437A-A7EE-8BY*****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>C4C7DD0C-C9D6-437A-A7EE-8BY*****</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepoTag',
+ 'summary' => 'Creates an image tag based on an existing image tag in an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteRepoTag' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-xwvi3osiy4ff****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1.24',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteRepoTag',
+ 'summary' => 'Deletes an image tag.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoTag' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Images' => [
+ 'description' => 'The images.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'ImageSize' => [
+ 'description' => 'The size of the image.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '27107966',
+ ],
+ 'ImageCreate' => [
+ 'description' => 'The time when the image was created.'."\n",
+ 'type' => 'string',
+ 'example' => '1572839125000',
+ ],
+ 'Digest' => [
+ 'description' => 'The digest of the image.'."\n",
+ 'type' => 'string',
+ 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****',
+ ],
+ 'ImageUpdate' => [
+ 'description' => 'The time when the image was last updated.'."\n",
+ 'type' => 'string',
+ 'example' => '1572875608000',
+ ],
+ 'Tag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'ImageId' => [
+ 'description' => 'The ID of the image.'."\n",
+ 'type' => 'string',
+ 'example' => '45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"031572FA-7D8F-4C05-B790-1071E0E05DE6\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"Images\\": [\\n {\\n \\"Status\\": \\"NORMAL\\",\\n \\"ImageSize\\": 27107966,\\n \\"ImageCreate\\": \\"1572839125000\\",\\n \\"Digest\\": \\"67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****\\",\\n \\"ImageUpdate\\": \\"1572875608000\\",\\n \\"Tag\\": \\"v0.1\\",\\n \\"ImageId\\": \\"45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>\\n<Images>\\n <Status>NORMAL</Status>\\n <ImageCreate>1572839125000</ImageCreate>\\n <ImageSize>27107966</ImageSize>\\n <Digest>67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****</Digest>\\n <ImageId>45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****</ImageId>\\n <ImageUpdate>1572875608000</ImageUpdate>\\n <Tag>v0.1</Tag>\\n</Images>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoTag',
+ 'summary' => 'Queries image tags in a repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepoTag' => [
+ 'summary' => 'Queries the information about an image tag.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The return value of status code.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The operation that you want to perform. Set the value to **GetRepoTag**.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of milliseconds that have elapsed since the image was created.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1.0',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'ImageCreate' => [
+ 'description' => 'crr-tquyps22md8p****',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572839125000',
+ ],
+ 'ImageSize' => [
+ 'description' => 'The number of milliseconds that have elapsed since the image was last updated.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '27107966',
+ ],
+ 'RequestId' => [
+ 'description' => '1.0',
+ 'type' => 'string',
+ 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6',
+ ],
+ 'Digest' => [
+ 'description' => 'The size of the image. Unit: Bytes.'."\n",
+ 'type' => 'string',
+ 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****',
+ ],
+ 'Code' => [
+ 'description' => 'The ID of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ImageUpdate' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1572875608000',
+ ],
+ 'Tag' => [
+ 'description' => 'The version of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => '1.0',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'The status of the image. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The image is normal.'."\n"
+ .'* `DELETING`: The image is being deleted.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'ImageId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"NORMAL\\",\\n \\"ImageCreate\\": 1572839125000,\\n \\"ImageSize\\": 27107966,\\n \\"RequestId\\": \\"031572FA-7D8F-4C05-B790-1071E0E05DE6\\",\\n \\"Digest\\": \\"67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****\\",\\n \\"Code\\": \\"success\\",\\n \\"ImageUpdate\\": 1572875608000,\\n \\"Tag\\": \\"1.0\\",\\n \\"IsSuccess\\": true,\\n \\"ImageId\\": \\"45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****\\"\\n}","errorExample":""},{"type":"xml","example":"<GetRepoTagResponse>\\n <Status>NORMAL</Status>\\n <ImageCreate>1572839125000</ImageCreate>\\n <ImageSize>27107966</ImageSize>\\n <RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>\\n <Digest>67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****</Digest>\\n <Code>success</Code>\\n <ImageUpdate>1572875608000</ImageUpdate>\\n <Tag>1.0</Tag>\\n <IsSuccess>true</IsSuccess>\\n <ImageId>45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****</ImageId>\\n</GetRepoTagResponse>","errorExample":""}]',
+ 'title' => 'GetRepoTag',
+ ],
+ 'CreateRepoTagScanTask' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '33693',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrKJDAEQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-xwvi3osiy4ff****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image version.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1.24',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The digest of the image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04',
+ ],
+ ],
+ [
+ 'name' => 'ScanService',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the scanning engine.'."\n"
+ ."\n"
+ .'* `SAS_SCAN_SERVICE`: Security Center scan engine (paid service)'."\n"
+ .'* `ACR_SCAN_SERVICE`: Container Registry scan engine'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ACR_SCAN_SERVICE',
+ ],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\"\\n}","type":"json"}]',
+ 'title' => 'CreateRepoTagScanTask',
+ 'summary' => 'Creates an image scan task.',
+ ],
+ 'GetRepoTagScanStatus' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33756',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ 'FEATUREacrKJDAEQ',
+ ],
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-2j88dtld8yel****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-uf082u9dg8do****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image scan task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '838152F9-F725-5A52-A344-8972D65AC045',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image digest.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529',
+ ],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => [
+ 'type' => 'string',
+ 'required' => false,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The scanning status of the image tag. Valid values:'."\n"
+ ."\n"
+ .'* `SCANNING`: The image tag is being scanned.'."\n"
+ .'* `COMPLETE`: The scanning of the image tag is complete.'."\n"
+ .'* `FAILED`: The image tag failed to be scanned.'."\n"
+ .'* `RETRYING`: The system is retrying to scan the image tag.'."\n",
+ 'type' => 'string',
+ 'example' => 'COMPLETE',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ 'ScanService' => [
+ 'description' => 'The type of the scanning engine.'."\n"
+ ."\n"
+ .'* `ACR_SCAN_SERVICE`: Trivy scan engine provided by Container Registry'."\n"
+ .'* `SAS_SCAN_SERVICE`: Security Center scan engine'."\n",
+ 'type' => 'string',
+ 'example' => 'ACR_SCAN_SERVICE',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Status\\": \\"COMPLETE\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\",\\n \\"ScanService\\": \\"ACR_SCAN_SERVICE\\"\\n}","type":"json"}]',
+ 'title' => 'GetRepoTagScanStatus',
+ 'summary' => 'Queries the scanning status of an image tag.',
+ ],
+ 'GetRepoTagScanSummary' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-2j88dtld8yel****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image tag.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-c2i5yk6h6pu9d5o8',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the security scan task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The digest of the image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '47A3E5A3-6AD4-5F02-93B8-59F778AE25D4',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of unknown-severity vulnerabilities.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sha256:c9f370a4eb1c00d0b0d7212a0a9fa4a7697756c90f0f680afaf9737a25725f4c',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'UnknownSeverity' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '4',
+ ],
+ 'RequestId' => [
+ 'description' => 'The total number of vulnerabilities detected on images.'."\n",
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ 'TotalSeverity' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '196',
+ ],
+ 'Code' => [
+ 'description' => 'The number of medium-severity vulnerabilities.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'MediumSeverity' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '81',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'The number of high-severity vulnerabilities.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'HighSeverity' => [
+ 'description' => 'The number of low-severity vulnerabilities.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '22',
+ ],
+ 'LowSeverity' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '89',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"UnknownSeverity\\": 4,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\",\\n \\"TotalSeverity\\": 196,\\n \\"Code\\": \\"success\\",\\n \\"MediumSeverity\\": 81,\\n \\"IsSuccess\\": true,\\n \\"HighSeverity\\": 22,\\n \\"LowSeverity\\": 89\\n}","type":"json"}]',
+ 'title' => 'GetRepoTagScanSummary',
+ 'summary' => 'Queries the number of vulnerabilities for each severity level. These vulnerabilities are detected in a security scan that is created for an image version.',
+ ],
+ 'ListRepoTagScanResult' => [
+ 'summary' => 'Queries the results of a security scan that is created for an image tag.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ 'FEATUREacrKJDAEQ',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-2j88dtld8yel****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-uf082u9dg8do****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image tag.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the security scan task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '6b0b094f-8a90-4f8f-b660-2427aed0****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'Severity',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The severity of the vulnerability. Valid values:'."\n"
+ ."\n"
+ .'* `High`'."\n"
+ .'* `Medium`'."\n"
+ .'* `Low`'."\n"
+ .'* `Unknown`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'High',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The digest of the image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sha256:6b0b094f8a904f8fb6602427aed0d1fa',
+ ],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the vulnerability. Valid values:'."\n"
+ ."\n"
+ .'* `cve`: image system vulnerability'."\n"
+ .'* `sca`: image application vulnerability'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sca',
+ ],
+ ],
+ [
+ 'name' => 'VulQueryKey',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The keyword for fuzzy search used in scanning. The value can be a CVE name.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'CVE-2021',
+ ],
+ ],
+ [
+ 'name' => 'FilterValue',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The parameter whose value that you want to query. Fox example, if the value is `FixCmd`, only the `FixCmd` parameter is returned.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'FixCmd',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '56B5C92F-F5D9-46E0-823F-EC71D1892DAA',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request failed.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of vulnerabilities detected on images.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '196',
+ ],
+ 'Vulnerabilities' => [
+ 'description' => 'The details about the detected vulnerabilities.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Severity' => [
+ 'description' => 'The severity of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'Medium',
+ ],
+ 'AddedBy' => [
+ 'description' => 'The ID of the image layer where the vulnerability was detected.'."\n",
+ 'type' => 'string',
+ 'example' => 'sha256:123456717b8e40b6480979b739010d8d549989602bcdd07922119aec6f9dbe57',
+ ],
+ 'CveName' => [
+ 'description' => 'The name of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'CVE-2009-5155',
+ ],
+ 'Description' => [
+ 'description' => 'The description of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'description.',
+ ],
+ 'Feature' => [
+ 'description' => 'The cause of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'eglibc',
+ ],
+ 'Version' => [
+ 'description' => 'The version of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => '2.19-6.9',
+ ],
+ 'VersionFormat' => [
+ 'description' => 'The format of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'dpkg',
+ ],
+ 'CveLink' => [
+ 'description' => 'The URL of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'https://security-tracker.debian.org/tracker/CVE-2009-5155',
+ ],
+ 'VersionFixed' => [
+ 'description' => 'The version where the vulnerability was fixed.'."\n",
+ 'type' => 'string',
+ 'example' => '2.19-18+deb8u5',
+ ],
+ 'FixCmd' => [
+ 'description' => 'The command used to fix the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'yum install -y xxx',
+ ],
+ 'CveLocation' => [
+ 'description' => 'The directory of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => '/test.txt',
+ ],
+ 'ScanType' => [
+ 'description' => 'The type of the vulnerability. Valid values:'."\n"
+ ."\n"
+ .'* `cve`: image system vulnerability'."\n"
+ .'* `sca`: image application vulnerability'."\n",
+ 'type' => 'string',
+ 'example' => 'cve',
+ ],
+ 'AliasName' => [
+ 'description' => 'The name of the vulnerability.'."\n",
+ 'type' => 'string',
+ 'example' => 'Vulnerability'."\n",
+ 'deprecated' => true,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"56B5C92F-F5D9-46E0-823F-EC71D1892DAA\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 196,\\n \\"Vulnerabilities\\": [\\n {\\n \\"Severity\\": \\"Medium\\",\\n \\"AddedBy\\": \\"sha256:123456717b8e40b6480979b739010d8d549989602bcdd07922119aec6f9dbe57\\",\\n \\"CveName\\": \\"CVE-2009-5155\\",\\n \\"Description\\": \\"description.\\",\\n \\"Feature\\": \\"eglibc\\",\\n \\"Version\\": \\"2.19-6.9\\",\\n \\"VersionFormat\\": \\"dpkg\\",\\n \\"CveLink\\": \\"https://security-tracker.debian.org/tracker/CVE-2009-5155\\",\\n \\"VersionFixed\\": \\"2.19-18+deb8u5\\",\\n \\"FixCmd\\": \\"yum install -y xxx\\",\\n \\"CveLocation\\": \\"/test.txt\\",\\n \\"ScanType\\": \\"cve\\",\\n \\"AliasName\\": \\"漏洞\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListRepoTagScanResultResponse>\\n <RequestId>56B5C92F-F5D9-46E0-823F-EC71D1892DAA</RequestId>\\n <Code>success</Code>\\n <PageNo>1</PageNo>\\n <IsSuccess>true</IsSuccess>\\n <PageSize>30</PageSize>\\n <TotalCount>196</TotalCount>\\n <Vulnerabilities>\\n <Severity>Medium</Severity>\\n <AddedBy>sha256:123456717b8e40b6480979b739010d8d549989602bcdd07922119aec6f9dbe57</AddedBy>\\n <CveName>CVE-2009-5155</CveName>\\n <Description>description.</Description>\\n <Feature>eglibc</Feature>\\n <Version>2.19-6.9</Version>\\n <VersionFormat>dpkg</VersionFormat>\\n <CveLink>https://security-tracker.debian.org/tracker/CVE-2009-5155</CveLink>\\n <VersionFixed>2.19-18+deb8u5</VersionFixed>\\n <FixCmd>yum install -y xxx</FixCmd>\\n <CveLocation>/test.txt</CveLocation>\\n <ScanType>cve</ScanType>\\n <AliasName>漏洞</AliasName>\\n </Vulnerabilities>\\n</ListRepoTagScanResultResponse>","errorExample":""}]',
+ 'title' => 'ListRepoTagScanResult',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListScanBaselineByTask' => [
+ 'summary' => 'Queries the baseline risks of a scan task by page.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-***********',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'Level',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The level of the baseline risk.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'High',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crr-**************',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image version.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '1.1.36',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The digest value of the image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sha256:1c89806cfaf66d2990e2cf1131ebd56ff24b133745a33abf1228*************',
+ ],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image scan task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '3e526d7e-4b45-4703-b046-***********',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Id of the request'."\n",
+ 'type' => 'string',
+ 'example' => '5259118F-79E2-57E9-9AEA-551586F4FAED',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request was successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'ScanBaselines' => [
+ 'description' => 'The scanned baseline risks.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The scanned baseline risks.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ScanTaskId' => [
+ 'description' => 'The ID of the image scan task.'."\n",
+ 'type' => 'string',
+ 'example' => '2328fcaa-f28a-405d-a357-asdvfrew23',
+ ],
+ 'BaselineClassAlias' => [
+ 'description' => 'The category to which the baseline risk belongs.'."\n",
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'BaselineNameAlias' => [
+ 'description' => 'The name of the baseline risk.'."\n",
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'BaselineNameLevel' => [
+ 'description' => 'The severity of the baseline risk.'."\n",
+ 'type' => 'string',
+ 'example' => 'high',
+ ],
+ 'LowRiskItemCount' => [
+ 'description' => 'Low risk quantity.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'MiddleRiskItemCount' => [
+ 'description' => 'Medium risk quantity.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'HighRiskItemCount' => [
+ 'description' => 'High risk quantity.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'BaselineItemCount' => [
+ 'description' => 'The number of baseline risks.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'BaselineNameKey' => [
+ 'description' => 'The key of the baseline name.'."\n",
+ 'type' => 'string',
+ 'example' => 'ak_leak',
+ ],
+ 'FirstScanTime' => [
+ 'description' => 'The time of the first scan.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2024-04-10 15:33:26',
+ ],
+ 'BaselineDetailDescription' => [
+ 'description' => 'The description of the baseline risk.'."\n",
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'BaselineDetailPrompt' => [
+ 'description' => 'The path and content of the baseline risk.'."\n",
+ 'type' => 'string',
+ 'example' => 'usr/local/www/project/environments/dev/common/config/paramsxxx',
+ ],
+ 'BaselineDetailAdvice' => [
+ 'description' => 'Suggestions about how to fix the baseline risk.'."\n",
+ 'type' => 'string',
+ 'example' => '',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The creation time.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1695090008000',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The update time.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1684220824226',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"5259118F-79E2-57E9-9AEA-551586F4FAED\\",\\n \\"Code\\": 0,\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 2,\\n \\"ScanBaselines\\": [\\n {\\n \\"ScanTaskId\\": \\"2328fcaa-f28a-405d-a357-asdvfrew23\\",\\n \\"BaselineClassAlias\\": \\"服务配置\\",\\n \\"BaselineNameAlias\\": \\"服务配置\\",\\n \\"BaselineNameLevel\\": \\"high\\",\\n \\"LowRiskItemCount\\": 1,\\n \\"MiddleRiskItemCount\\": 1,\\n \\"HighRiskItemCount\\": 1,\\n \\"BaselineItemCount\\": 1,\\n \\"BaselineNameKey\\": \\"ak_leak\\",\\n \\"FirstScanTime\\": 0,\\n \\"BaselineDetailDescription\\": \\"Access Key明文存储\\",\\n \\"BaselineDetailPrompt\\": \\"usr/local/www/project/environments/dev/common/config/paramsxxx\\",\\n \\"BaselineDetailAdvice\\": \\"建议对ak混淆加密,避免被利用\\",\\n \\"CreateTime\\": 1695090008000,\\n \\"UpdateTime\\": 1684220824226\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListScanBaselineByTask',
+ 'description' => 'Before you call this operation, use a Security Center scan engine to scan the image.'."\n",
+ 'translator' => 'machine',
+ ],
+ 'ListScanMaliciousFileByTask' => [
+ 'summary' => 'Queries the malicious files of a scan task by page.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-gu94qynvpwk*****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'Level',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The severity of the malicious file.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'High',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image repository ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crr-h1y4l279wb8*****',
+ ],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'V6.11',
+ ],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image digest.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'sha256:aa4bffff6406785e930dab1f94c9a1297ba22xxxx71d71504a015764*********',
+ ],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image scan task.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '79ee6bc2-3288-4c56-b967-**********',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '52AE49C8-B91A-5C1A-821F-C34324B42F7C',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number. Default value: 1.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '13',
+ ],
+ 'ScanMaliciousFiles' => [
+ 'description' => 'The queried malicious files.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'ScanTaskId' => [
+ 'description' => 'The ID of the image scan task.'."\n",
+ 'type' => 'string',
+ 'example' => 'fe2d8980-de45-4f55-b57d-e438e6d2e972',
+ ],
+ 'MaliciousName' => [
+ 'description' => 'The type of the malicious file.'."\n",
+ 'type' => 'string',
+ 'example' => 'Suspected to contain Webshell code',
+ ],
+ 'MaliciousMd5' => [
+ 'description' => 'The MD5 hash value of the malicious file.'."\n",
+ 'type' => 'string',
+ 'example' => 'e76c9759783cbbc9be0ff91ca3xxxxxx',
+ ],
+ 'FirstScanTime' => [
+ 'description' => 'The time when the image was first scanned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2023-04-10 11:42:06'."\n",
+ ],
+ 'Level' => [
+ 'description' => 'The severity of the malicious file.'."\n",
+ 'type' => 'string',
+ 'example' => 'remind',
+ ],
+ 'FilePath' => [
+ 'description' => 'The path of the file.'."\n",
+ 'type' => 'string',
+ 'example' => 'tenant/0000000000000000/',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the image was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2023-04-10 11:42:06',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the image was updated.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2023-04-10 11:42:06'."\n",
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"52AE49C8-B91A-5C1A-821F-C34324B42F7C\\",\\n \\"Code\\": 0,\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 13,\\n \\"ScanMaliciousFiles\\": [\\n {\\n \\"ScanTaskId\\": \\"fe2d8980-de45-4f55-b57d-e438e6d2e972\\",\\n \\"MaliciousName\\": \\"疑似含有Webshell代码\\",\\n \\"MaliciousMd5\\": \\"e76c9759783cbbc9be0ff91ca3xxxxxx\\",\\n \\"FirstScanTime\\": 0,\\n \\"Level\\": \\"remind\\",\\n \\"FilePath\\": \\"tenant/0000000000000000/\\",\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListScanMaliciousFileByTask',
+ 'description' => 'Before you call this operation, use a Security Center scan engine to scan the image.'."\n",
+ ],
+ 'CreateBuildRecordByRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-asd6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-8dz3aedjqlmk****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crbr-1j95g4bu2s1i****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'B01B8857-A16E-40E9-A37E-764F15776FAA',
+ ],
+ 'BuildRecordId' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'example' => '0A311FC5-B8C6-4332-80E4-539EB73****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"B01B8857-A16E-40E9-A37E-764F15776FAA\\",\\n \\"BuildRecordId\\": \\"0A311FC5-B8C6-4332-80E4-539EB73****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>B01B8857-A16E-40E9-A37E-764F15776FAA</RequestId>\\n<BuildRecordId>0A311FC5-B8C6-4332-80E4-539EB73****</BuildRecordId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateBuildRecordByRule',
+ 'summary' => 'Creates an image building record based on a rule.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateBuildRecordByRecord' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-hpdfkc6utbaq****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-hnoq7j93or3k****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'BuildRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '0A311FC5-B8C6-4332-80E4-539EB73****'."\n",
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The HTTP status code. The status code 200 indicates that the request is successful.\\'."\n"
+ .'Other status codes indicate that the request failed.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB'."\n",
+ ],
+ 'BuildRecordId' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'example' => 'crbr-ly77w5i3t31f****'."\n",
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\\\n\\",\\n \\"BuildRecordId\\": \\"crbr-ly77w5i3t31f****\\\\n\\"\\n}","type":"json"}]',
+ 'title' => 'CreateBuildRecordByRecord',
+ 'summary' => 'Creates an image building record based on an existing record.',
+ ],
+ 'CreateRepoBuildRule' => [
+ 'summary' => 'Creates an image building rule for a repository.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrYWOHWY',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-8dz3aedjqlmk****',
+ ],
+ ],
+ [
+ 'name' => 'DockerfileLocation',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The path of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => '/',
+ ],
+ ],
+ [
+ 'name' => 'DockerfileName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'Dockerfile',
+ ],
+ ],
+ [
+ 'name' => 'PushType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the push that triggers the building rule. Valid values:'."\n"
+ ."\n"
+ .'* `GIT_TAG`: tag push'."\n"
+ .'* `GIT_BRANCH`: branch push'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'GIT_BRANCH',
+ ],
+ ],
+ [
+ 'name' => 'PushName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the push that triggers the building rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'master',
+ ],
+ ],
+ [
+ 'name' => 'ImageTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'v0.9.5',
+ ],
+ ],
+ [
+ 'name' => 'BuildArgs',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'UserName=Test',
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'Platforms',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Architecture for image building. Valid values:'."\n"
+ ."\n"
+ .'* `linux/amd64`'."\n"
+ .'* `linux/arm64`'."\n"
+ .'* `linux/386`'."\n"
+ .'* `linux/arm/v7`'."\n"
+ .'* `inux/arm/v6`'."\n"
+ ."\n"
+ .'Default value: `linux/amd64`'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Architecture for image building. Valid values:'."\n"
+ ."\n"
+ .'* `linux/amd64`'."\n"
+ .'* `linux/arm64`'."\n"
+ .'* `linux/386`'."\n"
+ .'* `linux/arm/v7`'."\n"
+ .'* `inux/arm/v6`'."\n"
+ ."\n"
+ .'Default value: `linux/amd64`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'linux/amd64',
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB',
+ ],
+ 'BuildRuleId' => [
+ 'description' => 'The ID of the building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crbr-ly77w5i3t31f****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\",\\n \\"BuildRuleId\\": \\"crbr-ly77w5i3t31f****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateRepoBuildRuleResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>\\n <BuildRuleId>crbr-ly77w5i3t31f****</BuildRuleId>\\n</CreateRepoBuildRuleResponse>","errorExample":""}]',
+ 'title' => 'CreateRepoBuildRule',
+ ],
+ 'CreateRepoSourceCodeRepo' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-gzsrlevmvoaq****',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the source code hosting platform. Valid values: `GITHUB`, `GITLAB`, `GITEE`, `CODE`, and `CODEUP`.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'GITHUB',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The namespace to which the source code repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the source code repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo',
+ ],
+ ],
+ [
+ 'name' => 'AutoBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to trigger image building when source code is committed. Valid values:'."\n"
+ ."\n"
+ .'* `true`: triggers image building when source code is committed.'."\n"
+ .'* `false`: does not trigger image building when source code is committed.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'OverseaBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable Build With Servers Deployed Outside Chinese Mainland. Valid values:'."\n"
+ ."\n"
+ .'* `true`: enables Build With Servers Deployed Outside Chinese Mainland.'."\n"
+ .'* `false`: does not enable Build With Servers Deployed Outside Chinese Mainland.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'DisableCacheBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to disable building caches. Valid values:'."\n"
+ ."\n"
+ .'* `true`: disables building caches.'."\n"
+ .'* `false`: enables building caches.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateRepoSourceCodeRepo',
+ 'summary' => 'Binds a source code repository to an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteRepoBuildRule' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-xwvi3osiy4ff****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crbr-36tffn0kouvi****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '2E3F55BF-FA7B-454E-B2C6-85265E243ADC',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"2E3F55BF-FA7B-454E-B2C6-85265E243ADC\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>2E3F55BF-FA7B-454E-B2C6-85265E243ADC</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteRepoBuildRule',
+ 'summary' => 'Deletes an image building rule of a repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CancelRepoBuildRecord' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '74FDBA62-30C0-4F22-BE7B-F1D36FD1****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CancelRepoBuildRecord',
+ 'summary' => 'Cancels a repository building record.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateRepoBuildRule' => [
+ 'summary' => 'Updates an image building rule for a repository.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrYWOHWY',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'DockerfileLocation',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The path of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '/',
+ ],
+ ],
+ [
+ 'name' => 'DockerfileName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'Dockerfile',
+ ],
+ ],
+ [
+ 'name' => 'PushType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the push that triggers the building rule. Valid values:'."\n"
+ ."\n"
+ .'* `GIT_TAG`: tag push'."\n"
+ .'* `GIT_BRANCH`: branch push'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'GIT_BRANCH',
+ ],
+ ],
+ [
+ 'name' => 'PushName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the push that triggers the building rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'master',
+ ],
+ ],
+ [
+ 'name' => 'ImageTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'v0.9.5',
+ ],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the building rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crbr-ly77w5i3t31f****',
+ ],
+ ],
+ [
+ 'name' => 'BuildArgs',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'UserName=Test',
+ ],
+ 'required' => false,
+ 'maxItems' => 20,
+ ],
+ ],
+ [
+ 'name' => 'Platforms',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Architecture for image building. Valid values:'."\n"
+ ."\n"
+ .'* `linux/amd64`'."\n"
+ .'* `linux/arm64`'."\n"
+ .'* `linux/386`'."\n"
+ .'* `linux/arm/v7`'."\n"
+ .'* `linux/arm/v6`'."\n"
+ ."\n"
+ .'Default value: `linux/amd64`'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Architecture for image building. Valid values:'."\n"
+ ."\n"
+ .'* `linux/amd64`'."\n"
+ .'* `linux/arm64`'."\n"
+ .'* `linux/386`'."\n"
+ .'* `linux/arm/v7`'."\n"
+ .'* `linux/arm/v6`'."\n"
+ ."\n"
+ .'Default value: `linux/amd64`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'linux/amd64',
+ ],
+ 'required' => false,
+ 'example' => 'linux/amd64',
+ 'maxItems' => 20,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83',
+ ],
+ 'BuildRuleId' => [
+ 'description' => 'The ID of the building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crbr-ly77w5i3t31f****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\",\\n \\"BuildRuleId\\": \\"crbr-ly77w5i3t31f****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateRepoBuildRuleResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>BC648259-91A7-4502-BED3-EDF64361FA83</RequestId>\\n <BuildRuleId>crbr-ly77w5i3t31f****</BuildRuleId>\\n</UpdateRepoBuildRuleResponse>","errorExample":""}]',
+ 'title' => 'UpdateRepoBuildRule',
+ ],
+ 'UpdateRepoSourceCodeRepo' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry Enterprise Edition instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-gzsrlevmvoa****',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the source code hosting platform. Valid values: GITHUB, GITLAB, GITEE, CODE, and CODEUP.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'GITHUB',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The namespace to which the source code repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the source code repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo',
+ ],
+ ],
+ [
+ 'name' => 'AutoBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable automatic image building when code is committed. Valid values:'."\n"
+ ."\n"
+ .'* `true`: enables automatic image building when code is committed.'."\n"
+ .'* `false`: disables automatic image building when code is committed.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'OverseaBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to enable Build With Servers Deployed Outside Chinese Mainland. Valid values:'."\n"
+ ."\n"
+ .'* `true`: enables Build With Servers Deployed Outside Chinese Mainland.'."\n"
+ .'* `false`: disables Build With Servers Deployed Outside Chinese Mainland.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'DisableCacheBuild',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to disable building caches. Valid values:'."\n"
+ ."\n"
+ .'* `true`: disables building caches.'."\n"
+ .'* `false`: enables building caches.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'false',
+ ],
+ ],
+ [
+ 'name' => 'CodeRepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the source code repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crr-cp7d6sget5r****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => '200',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'F56D589D-AF7F-4900-BA46-62C780AC2C10',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"200\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"F56D589D-AF7F-4900-BA46-62C780AC2C10\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>F56D589D-AF7F-4900-BA46-62C780AC2C10</RequestId>\\n<Code>200</Code>","errorExample":""}]',
+ 'title' => 'UpdateRepoSourceCodeRepo',
+ 'summary' => 'Updates the URL of the source code repository that is bound to an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoBuildRecordLog' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-nmbv37dlv5d3****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-z4dvahhku9wv4****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'C5B4D5D7-A1C6-4E9B-ABD2-401361C4****',
+ ],
+ ],
+ [
+ 'name' => 'Offset',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The offset of log lines.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '0',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '100',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1000',
+ ],
+ 'BuildRecordLogs' => [
+ 'description' => 'The log content of the image building record.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LineNumber' => [
+ 'description' => 'The line number of the log entry.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '2',
+ ],
+ 'Message' => [
+ 'description' => 'The content of the log.'."\n",
+ 'type' => 'string',
+ 'example' => 'fetch stage begin',
+ ],
+ 'BuildStage' => [
+ 'description' => 'The stage of the building that is recorded in the log entry.'."\n",
+ 'type' => 'string',
+ 'example' => 'GIT_CLONE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 100,\\n \\"TotalCount\\": \\"1000\\",\\n \\"BuildRecordLogs\\": [\\n {\\n \\"LineNumber\\": 2,\\n \\"Message\\": \\"fetch stage begin\\",\\n \\"BuildStage\\": \\"GIT_CLONE\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<BuildRecordLogs>\\n <Message>fetch stage begin</Message>\\n <BuildStage>GIT_CLONE</BuildStage>\\n <LineNumber>2</LineNumber>\\n</BuildRecordLogs>\\n<TotalCount>1000</TotalCount>\\n<PageSize>100</PageSize>\\n<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoBuildRecordLog',
+ 'summary' => 'Queries the log of an image building record.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoBuildRule' => [
+ 'summary' => 'Queries image building rules of a repository.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrYWOHWY',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '42D782C8-E8F6-4A32-BEA0-6A6AC854C22A',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'BuildRules' => [
+ 'description' => 'The list of image building rules.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DockerfileLocation' => [
+ 'description' => 'The directory of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'example' => '/',
+ ],
+ 'BuildRuleId' => [
+ 'description' => 'The ID of the image building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crbr-khys0nd3asbe****',
+ ],
+ 'PushType' => [
+ 'description' => 'The type of the push that triggers the image building rule. Valid values:'."\n"
+ ."\n"
+ .'* GIT_BRANCH: branch push'."\n"
+ .'* GIT_TAG: tag push'."\n",
+ 'type' => 'string',
+ 'example' => 'GIT_BRANCH',
+ ],
+ 'PushName' => [
+ 'description' => 'The name of the push that triggers the building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'DockerfileName' => [
+ 'description' => 'The name of the Dockerfile.'."\n",
+ 'type' => 'string',
+ 'example' => 'Dockerfile',
+ ],
+ 'Platforms' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and platform of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'linux/amd64',
+ ],
+ ],
+ 'BuildArgs' => [
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'string',
+ 'example' => 'http_proxy=127.0.0.1 ',
+ ],
+ ],
+ 'DestArtifactType' => [
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"42D782C8-E8F6-4A32-BEA0-6A6AC854C22A\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"BuildRules\\": [\\n {\\n \\"DockerfileLocation\\": \\"/\\",\\n \\"BuildRuleId\\": \\"crbr-khys0nd3asbe****\\",\\n \\"PushType\\": \\"GIT_BRANCH\\",\\n \\"PushName\\": \\"v0.1\\",\\n \\"ImageTag\\": \\"v0.1\\",\\n \\"DockerfileName\\": \\"Dockerfile\\",\\n \\"Platforms\\": [\\n \\"linux/amd64\\"\\n ],\\n \\"BuildArgs\\": [\\n \\"http_proxy=127.0.0.1 \\"\\n ],\\n \\"DestArtifactType\\": \\"\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>42D782C8-E8F6-4A32-BEA0-6A6AC854C22A</RequestId>\\n<BuildRules>\\n <PushType>GIT_BRANCH</PushType>\\n <ImageTag>v0.1</ImageTag>\\n <BuildRuleId>crbr-khys0nd3asbe****</BuildRuleId>\\n <PushName>v0.1</PushName>\\n <DockerfileLocation>/</DockerfileLocation>\\n <DockerfileName>Dockerfile</DockerfileName>\\n <BuildArgs>http_proxy=127.0.0.1 </BuildArgs>\\n <Platforms>linux/amd64</Platforms>\\n</BuildRules>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoBuildRule',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoBuildRecord' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '9D23DEDF-E91D-434B-B7D5-9D12C648D166',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'BuildRecords' => [
+ 'description' => 'The list of image building records.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => 'The time when the image building ended.'."\n",
+ 'type' => 'string',
+ 'example' => '1572875610000',
+ ],
+ 'StartTime' => [
+ 'description' => 'The time when the image building started.'."\n",
+ 'type' => 'string',
+ 'example' => '1572872207000',
+ ],
+ 'BuildStatus' => [
+ 'description' => 'The status of the image building.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'BuildRecordId' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'example' => '537e08ab-735e-415f-b7c2-160eb87f8****',
+ ],
+ 'Image' => [
+ 'description' => 'The information about the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'v0.1',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-gzsrlevmvoaq****',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"9D23DEDF-E91D-434B-B7D5-9D12C648D166\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"BuildRecords\\": [\\n {\\n \\"EndTime\\": \\"1572875610000\\",\\n \\"StartTime\\": \\"1572872207000\\",\\n \\"BuildStatus\\": \\"SUCCESS\\",\\n \\"BuildRecordId\\": \\"537e08ab-735e-415f-b7c2-160eb87f8****\\",\\n \\"Image\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"ImageTag\\": \\"v0.1\\",\\n \\"RepoId\\": \\"crr-gzsrlevmvoaq****\\",\\n \\"RepoName\\": \\"test\\"\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<BuildRecords>\\n <EndTime>1572875610000</EndTime>\\n <StartTime>1572872207000</StartTime>\\n <BuildStatus>SUCCESS</BuildStatus>\\n <BuildRecordId>537e08ab-735e-415f-b7c2-160eb87f8****</BuildRecordId>\\n <Image>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>v0.1</ImageTag>\\n <RepoName>test</RepoName>\\n <RepoId>crr-gzsrlevmvoaq****</RepoId>\\n </Image>\\n</BuildRecords>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>9D23DEDF-E91D-434B-B7D5-9D12C648D166</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoBuildRecord',
+ 'summary' => 'Queries image building records of an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepoBuildRecordStatus' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-jnzm47ihjmgc****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '79174CBA-8556-443A-8976-22C922D7BE37',
+ ],
+ 'BuildStatus' => [
+ 'description' => 'The status of the image building.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"79174CBA-8556-443A-8976-22C922D7BE37\\",\\n \\"BuildStatus\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>79174CBA-8556-443A-8976-22C922D7BE37</RequestId>\\n<BuildStatus>success</BuildStatus>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'GetRepoBuildRecordStatus',
+ 'summary' => 'Queries the status of an image building task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepoBuildRecord' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'BuildRecordId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'EndTime' => [
+ 'description' => 'The time when the image building was completed.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1568718698000',
+ ],
+ 'StartTime' => [
+ 'description' => 'The time when the image building started.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1568718468000',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d9de1 ',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'BuildRecordId' => [
+ 'description' => 'The ID of the image building record.'."\n",
+ 'type' => 'string',
+ 'example' => '79174CBA-8556-443A-8976-22C922D7****',
+ ],
+ 'Image' => [
+ 'description' => 'The information about the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace to which the image repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ImageTag' => [
+ 'description' => 'The tag of the image.'."\n",
+ 'type' => 'string',
+ 'example' => 'master',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Status\\": \\"true\\",\\n \\"EndTime\\": 1568718698000,\\n \\"StartTime\\": 1568718468000,\\n \\"RequestId\\": \\"a78ec6fb-16ea-4649-93b7-f52afba7d9de1\\\\t\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"BuildRecordId\\": \\"79174CBA-8556-443A-8976-22C922D7****\\",\\n \\"Image\\": {\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"ImageTag\\": \\"master\\",\\n \\"RepoName\\": \\"test\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<Status>true</Status>\\n<IsSuccess>true</IsSuccess>\\n<EndTime>1568718698000</EndTime>\\n<RequestId>a78ec6fb-16ea-4649-93b7-f52afba7d9de1\\t</RequestId>\\n<StartTime>1568718468000</StartTime>\\n<BuildRecordId>79174CBA-8556-443A-8976-22C922D7****</BuildRecordId>\\n<Image>\\n <RepoNamespaceName>test</RepoNamespaceName>\\n <ImageTag>master</ImageTag>\\n <RepoName>test</RepoName>\\n</Image>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'GetRepoBuildRecord',
+ 'summary' => 'Queries the information about image building records of a repository.',
+ 'description' => '****',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetRepoSourceCodeRepo' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-gzsrlevmvoaq****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'CodeRepoType' => [
+ 'description' => 'The type of the code hosting platform. Valid values: `GITHUB`, `GITLAB`, `GITEE`, `CODE`, and `CODEUP`.'."\n",
+ 'type' => 'string',
+ 'example' => 'GITHUB',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-gzsrlevmvoaq****',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB',
+ ],
+ 'CodeRepoNamespaceName' => [
+ 'description' => 'The namespace to which the source code repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'namespace',
+ ],
+ 'OverseaBuild' => [
+ 'description' => 'Indicates whether image building is accelerated for servers outside the Chinese mainland. Valid values:'."\n"
+ ."\n"
+ .'* `true`: Image building is accelerated for servers outside the Chinese mainland.'."\n"
+ .'* `false`: Image building is not accelerated for servers outside the Chinese mainland.'."\n",
+ 'type' => 'string',
+ 'example' => 'false',
+ ],
+ 'Code' => [
+ 'description' => 'The response code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'CodeRepoName' => [
+ 'description' => 'The name of the source code repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'repo',
+ ],
+ 'AutoBuild' => [
+ 'description' => 'Indicates whether image building is automatically triggered when source code is committed. Valid values:'."\n"
+ ."\n"
+ .'* `true`: Image building is automatically triggered when source code is committed.'."\n"
+ .'* `false`: Image building is not triggered when source code is committed.'."\n",
+ 'type' => 'string',
+ 'example' => 'true',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API call is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'DisableCacheBuild' => [
+ 'description' => 'Indicates whether build cache is disabled. Valid values:'."\n"
+ ."\n"
+ .'* `true`: Build cache is disabled.'."\n"
+ .'* `false`: Build cache is enabled.'."\n",
+ 'type' => 'string',
+ 'example' => 'false',
+ ],
+ 'CodeRepoDomain' => [
+ 'description' => 'The address of the source code repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'https://github.com',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"CodeRepoType\\": \\"GITHUB\\",\\n \\"RepoId\\": \\"crr-gzsrlevmvoaq****\\",\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\",\\n \\"CodeRepoNamespaceName\\": \\"namespace\\",\\n \\"OverseaBuild\\": \\"false\\",\\n \\"Code\\": \\"success\\",\\n \\"CodeRepoName\\": \\"repo\\",\\n \\"AutoBuild\\": \\"true\\",\\n \\"IsSuccess\\": true,\\n \\"DisableCacheBuild\\": \\"false\\",\\n \\"CodeRepoDomain\\": \\"https://github.com\\"\\n}","errorExample":""},{"type":"xml","example":"<AutoBuild>true</AutoBuild>\\n<CodeRepoNamespaceName>namespace</CodeRepoNamespaceName>\\n<IsSuccess>true</IsSuccess>\\n<DisableCacheBuild>false</DisableCacheBuild>\\n<CodeRepoDomain>https://github.com</CodeRepoDomain>\\n<RequestId>4CE1F661-75DD-4EBD-A4AD-057B26834ABB</RequestId>\\n<CodeRepoName>repo</CodeRepoName>\\n<OverseaBuild>false</OverseaBuild>\\n<CodeRepoType>GITHUB</CodeRepoType>\\n<RepoId>crr-gzsrlevmvoaq****</RepoId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'GetRepoSourceCodeRepo',
+ 'summary' => 'Queries the information about the source code repository that is bound to an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateRepoTrigger' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'docRequired' => true,
+ 'example' => 'crr-xwvi3osiy4ff****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'TriggerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trigger.'."\n",
+ 'docRequired' => true,
+ 'example' => 'trigger1',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'TriggerUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The URL of the trigger.'."\n",
+ 'docRequired' => true,
+ 'example' => 'http://www.mysite.com',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'TriggerType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the trigger. Valid values:'."\n"
+ ."\n"
+ .'* `ALL`: a trigger that supports both tags and regular expressions.'."\n"
+ .'* `TAG_LIST`: a tag-based trigger.'."\n"
+ .'* `TAG_REG_EXP`: a regular expression-based trigger.'."\n",
+ 'docRequired' => true,
+ 'example' => 'ALL',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'TriggerTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag based on which the trigger is set.'."\n"
+ ."\n"
+ .'> '."\n"
+ ."\n"
+ .'* If `TriggerType` is set to `ALL`, `TriggerTag` can be set to a string or an array, for example, `*`.'."\n"
+ ."\n"
+ .'* If `TriggerType` is set to `TAG_LIST`, `TriggerTag` must be set to an array, for example, `[1]`.'."\n"
+ .'* If `TriggerType` is set to `TAG_REG_EXP`, `TriggerTag` must be set to a string, for example, `*`.'."\n",
+ 'docRequired' => true,
+ 'example' => '[1]',
+ 'required' => false,
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'example' => 'success',
+ 'type' => 'string',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'example' => 'true',
+ 'type' => 'boolean',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'example' => 'B79F5E0E-8770-407D-BCB6-ECF4BA9C****',
+ 'type' => 'string',
+ ],
+ 'TriggerId' => [
+ 'description' => 'The ID of the trigger.'."\n",
+ 'example' => 'crw-0z4pf81pgz35****',
+ 'type' => 'string',
+ ],
+ ],
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"B79F5E0E-8770-407D-BCB6-ECF4BA9C****\\",\\n \\"TriggerId\\": \\"crw-0z4pf81pgz35****\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>B79F5E0E-8770-407D-BCB6-ECF4BA9C****</RequestId>\\n<TriggerId>crw-0z4pf81pgz35****</TriggerId>\\n<Code>success</Code>","errorExample":""}]',
+ 'extraInfo' => ' ',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'summary' => 'Creates a trigger for a repository.',
+ 'title' => 'CreateRepoTrigger',
+ ],
+ 'DeleteRepoTrigger' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-xwvi3osiy4ff****',
+ ],
+ ],
+ [
+ 'name' => 'TriggerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the trigger.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crw-0z4pf81pgz35****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '85180AE4-9A57-48F8-9EF9-68ECCE54B552',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"85180AE4-9A57-48F8-9EF9-68ECCE54B552\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>85180AE4-9A57-48F8-9EF9-68ECCE54B552</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteRepoTrigger',
+ 'summary' => 'Deletes a trigger of an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateRepoTrigger' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ [
+ 'name' => 'TriggerName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the trigger.'."\n"
+ ."\n"
+ .'You can specify the TriggerName or TriggerUrl parameter. The TriggerName parameter is optional.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'test_trigger',
+ ],
+ ],
+ [
+ 'name' => 'TriggerUrl',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The URL of the trigger.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'https://www.test.com',
+ ],
+ ],
+ [
+ 'name' => 'TriggerType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the trigger. Valid values:'."\n"
+ ."\n"
+ .'* `ALL`: a trigger that supports both tags and regular expressions.'."\n"
+ .'* `TAG_LISTTAG`: a tag-based trigger.'."\n"
+ .'* `TAG_REG_EXP`: a regular expression-based trigger.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'TAG_LIST',
+ ],
+ ],
+ [
+ 'name' => 'TriggerTag',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The image tag based on which the trigger is set.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'master',
+ ],
+ ],
+ [
+ 'name' => 'TriggerId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the trigger.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crw-k7bdx4kt52ty****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '32535049-ED91-4589-98C0-7C88766EDF1F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"32535049-ED91-4589-98C0-7C88766EDF1F\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>32535049-ED91-4589-98C0-7C88766EDF1F</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'UpdateRepoTrigger',
+ 'summary' => 'Updates a trigger of an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListRepoTrigger' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-tquyps22md8p****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '2CA76D52-A8F0-4D0B-854E-FBD9F6C99049',
+ ],
+ 'Triggers' => [
+ 'description' => 'The triggers of the repository.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TriggerName' => [
+ 'description' => 'The name of the trigger.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RepoEvent' => [
+ 'description' => 'The type of the event that activates the trigger. Valid values:'."\n"
+ ."\n"
+ .'* `BUILD_SUCCESS`: The trigger is activated when an image building task is successful.'."\n"
+ .'* `BUILD_Fail`: The trigger is activated when an image building task fails.'."\n",
+ 'type' => 'string',
+ 'example' => 'BUILD_SUCCESS',
+ ],
+ 'TriggerId' => [
+ 'description' => 'The ID of the trigger.'."\n",
+ 'type' => 'string',
+ 'example' => 'crw-vriyql9eq7ep****',
+ ],
+ 'TriggerUrl' => [
+ 'description' => 'The URL of the trigger.'."\n",
+ 'type' => 'string',
+ 'example' => 'https://www.test.com',
+ ],
+ 'TriggerType' => [
+ 'description' => 'The type of the trigger. Valid values:'."\n"
+ ."\n"
+ .'* `ALL`: a trigger that supports both tags and regular expressions.'."\n"
+ .'* `TAG_LISTTAG`: a tag-based trigger.'."\n"
+ .'* `TAG_REG_EXP`: a regular expression-based trigger.'."\n",
+ 'type' => 'string',
+ 'example' => 'ALL',
+ ],
+ 'TriggerTag' => [
+ 'description' => 'The image tag based on which the trigger is set.'."\n",
+ 'type' => 'string',
+ 'example' => '*',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"2CA76D52-A8F0-4D0B-854E-FBD9F6C99049\\",\\n \\"Triggers\\": [\\n {\\n \\"TriggerName\\": \\"test\\",\\n \\"RepoEvent\\": \\"BUILD_SUCCESS\\",\\n \\"TriggerId\\": \\"crw-vriyql9eq7ep****\\",\\n \\"TriggerUrl\\": \\"https://www.test.com\\",\\n \\"TriggerType\\": \\"ALL\\",\\n \\"TriggerTag\\": \\"*\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>2CA76D52-A8F0-4D0B-854E-FBD9F6C99049</RequestId>\\n<Triggers>\\n <TriggerUrl>https://www.test.com</TriggerUrl>\\n <TriggerType>ALL</TriggerType>\\n <RepoEvent>BUILD_SUCCESS</RepoEvent>\\n <TriggerName>test</TriggerName>\\n <TriggerTag>*</TriggerTag>\\n <TriggerId>crw-vriyql9eq7ep****</TriggerId>\\n</Triggers>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListRepoTrigger',
+ 'summary' => 'Queries the triggers of a repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateChartNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace01',
+ ],
+ ],
+ [
+ 'name' => 'AutoCreateRepo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically create repositories in the namespace. Valid values:'."\n"
+ ."\n"
+ .'\\-` true `: automatically creates repositories in the namespace.'."\n"
+ ."\n"
+ .'\\-` false `: does not automatically create repositories in the namespace.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository'."\n"
+ .'* `PRIVATE`: a private repository'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '724402D0-75CD-4794-BC20-7D3720823AE0',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"724402D0-75CD-4794-BC20-7D3720823AE0\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>724402D0-75CD-4794-BC20-7D3720823AE0</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateChartNamespace',
+ 'summary' => 'Creates a chart namespace in an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteChartNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the chart namespace that you want to delete.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns2',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'FEC62DF1-1394-467F-A69F-4BC1BA29F383',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"FEC62DF1-1394-467F-A69F-4BC1BA29F383\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>FEC62DF1-1394-467F-A69F-4BC1BA29F383</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteChartNamespace',
+ 'summary' => 'Deletes a chart namespace from an instance.',
+ 'description' => '> If you delete a chart namespace, all repositories in the namespace and the charts in all repositories are deleted.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateChartNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'AutoCreateRepo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Specifies whether to automatically create repositories in the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `true`: automatically creates repositories in the namespace.'."\n"
+ .'* `false`: does not automatically create repositories in the namespace.'."\n",
+ 'type' => 'boolean',
+ 'required' => false,
+ 'example' => 'true',
+ ],
+ ],
+ [
+ 'name' => 'DefaultRepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The default type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository'."\n"
+ .'* `PRIVATE`: a private repository'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '6877B80A-2895-44C4-BC9E-703B157DEE66',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"6877B80A-2895-44C4-BC9E-703B157DEE66\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>6877B80A-2895-44C4-BC9E-703B157DEE66</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'UpdateChartNamespace',
+ 'summary' => 'Updates a chart namespace.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetChartNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultRepoType' => [
+ 'description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository.'."\n"
+ .'* `PRIVATE`: a private repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'PRIVATE',
+ ],
+ 'NamespaceId' => [
+ 'description' => 'The ID of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'crcn-43dhbjbyt2xl****',
+ ],
+ 'NamespaceStatus' => [
+ 'description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The namespace is normal.'."\n"
+ .'* `DELETING`: The namespace is being deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'CD71CF13-93AA-4805-848B-69B2DD543A9A',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'AutoCreateRepo' => [
+ 'description' => 'Indicates whether a repository was automatically created in the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `true`: A repository was automatically created in the namespace.'."\n"
+ .'* `false`: No repository was automatically created in the namespace.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'ns1',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfmv36i4is****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"DefaultRepoType\\": \\"PRIVATE\\",\\n \\"NamespaceId\\": \\"crcn-43dhbjbyt2xl****\\",\\n \\"NamespaceStatus\\": \\"NORMAL\\",\\n \\"RequestId\\": \\"CD71CF13-93AA-4805-848B-69B2DD543A9A\\",\\n \\"Code\\": \\"success\\",\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"AutoCreateRepo\\": true,\\n \\"IsSuccess\\": true,\\n \\"NamespaceName\\": \\"ns1\\",\\n \\"ResourceGroupId\\": \\"rg-acfmv36i4is****\\"\\n}","errorExample":""},{"type":"xml","example":"<NamespaceStatus>NORMAL</NamespaceStatus>\\n<NamespaceName>ns1</NamespaceName>\\n<IsSuccess>true</IsSuccess>\\n<DefaultRepoType>PRIVATE</DefaultRepoType>\\n<RequestId>CD71CF13-93AA-4805-848B-69B2DD543A9A</RequestId>\\n<InstanceId>cri-xkx6vujuhay0****</InstanceId>\\n<AutoCreateRepo>true</AutoCreateRepo>\\n<NamespaceId>crcn-43dhbjbyt2xl****</NamespaceId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'GetChartNamespace',
+ 'summary' => 'Queries a chart namespace in an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListChartNamespace' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The namespace is normal.'."\n"
+ .'* `DELETING`: The namespace is being deleted.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'NORMAL',
+ ],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'F56D589D-AF7F-4900-BA46-62C780AC2C10',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Namespaces' => [
+ 'description' => 'The namespaces.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultRepoType' => [
+ 'description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository'."\n"
+ .'* `PRIVATE`: a private repository'."\n",
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'NamespaceStatus' => [
+ 'description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The namespace is normal.'."\n"
+ .'* `DELETING`: The namespace is being deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'NamespaceId' => [
+ 'description' => 'The ID of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'null',
+ ],
+ 'AutoCreateRepo' => [
+ 'description' => 'Indicates whether a repository was automatically created when a chart is pushed to the namespace.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'NamespaceName' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfm4n5kzyf****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"F56D589D-AF7F-4900-BA46-62C780AC2C10\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"Namespaces\\": [\\n {\\n \\"DefaultRepoType\\": \\"PUBLIC\\",\\n \\"NamespaceStatus\\": \\"NORMAL\\",\\n \\"NamespaceId\\": \\"null\\",\\n \\"AutoCreateRepo\\": true,\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"NamespaceName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfm4n5kzyf****\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<Namespaces>\\n <NamespaceStatus>NORMAL</NamespaceStatus>\\n <NamespaceName>test</NamespaceName>\\n <DefaultRepoType>PUBLIC</DefaultRepoType>\\n <InstanceId>cri-kmsiwlxxdcva****</InstanceId>\\n <AutoCreateRepo>true</AutoCreateRepo>\\n <NamespaceId>null</NamespaceId>\\n</Namespaces>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>F56D589D-AF7F-4900-BA46-62C780AC2C10</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListChartNamespace',
+ 'summary' => 'Queries the chart namespaces of a Container Registry instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateChartRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo01',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace01',
+ ],
+ ],
+ [
+ 'name' => 'RepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository.'."\n"
+ .'* `PRIVATE`: a private repository.'."\n"
+ ."\n"
+ .'You can specify the RepoType or Summary parameter. The RepoType parameter is optional.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The summary of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'summary',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crcr-2micxey5ewj4****',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '60390244-A483-491A-B41D-F866C95380A1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"RepoId\\": \\"crcr-2micxey5ewj4****\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"60390244-A483-491A-B41D-F866C95380A1\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>60390244-A483-491A-B41D-F866C95380A1</RequestId>\\n<RepoId>crcr-2micxey5ewj4****</RepoId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CreateChartRepository',
+ 'summary' => 'Creates a chart repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteChartRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay****',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'namespace01',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo01',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"12589EF7-96E2-4554-AAD7-F7209E88CAD3\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>12589EF7-96E2-4554-AAD7-F7209E88CAD3</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteChartRepository',
+ 'summary' => 'Deletes a chart repository from an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'UpdateChartRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository.'."\n"
+ .'* `PRIVATE`: a private repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'PUBLIC',
+ ],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The summary of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"EB9C5722-51E2-4497-A573-575B0CA5CE0C\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>EB9C5722-51E2-4497-A573-575B0CA5CE0C</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'UpdateChartRepository',
+ 'summary' => 'Updates a chart repository of a Container Registry instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListChartRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoStatus',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The status of the chart repositories that you want to query. Valid values:'."\n"
+ ."\n"
+ .'* `ALL`: query repositories of all status.'."\n"
+ .'* `NORMAL`: query normal repositories.'."\n"
+ .'* `DELETING`: query repositories that are being deleted.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ALL',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '0AB62FB8-6873-4032-8515-4578D27523B7',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Repositories' => [
+ 'description' => 'The queried repositories.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Summary' => [
+ 'description' => 'The summary about the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the repository was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571930329000',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crcr-gpsu7b8chmxk****',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the repository was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571926644000',
+ ],
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'ns1',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'RepoType' => [
+ 'description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PRIVATE`: a private repository'."\n"
+ .'* `PUBLIC`: a public repository'."\n",
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'RepoStatus' => [
+ 'description' => 'The status of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The repository is normal.'."\n"
+ .'* `DELETING`: The repository is being deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'repo1',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-aek2ikd5rxxxxxx',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"0AB62FB8-6873-4032-8515-4578D27523B7\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"Repositories\\": [\\n {\\n \\"Summary\\": \\"test\\",\\n \\"ModifiedTime\\": 1571930329000,\\n \\"RepoId\\": \\"crcr-gpsu7b8chmxk****\\",\\n \\"CreateTime\\": 1571926644000,\\n \\"RepoNamespaceName\\": \\"ns1\\",\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"RepoType\\": \\"PUBLIC\\",\\n \\"RepoStatus\\": \\"NORMAL\\",\\n \\"RepoName\\": \\"repo1\\",\\n \\"ResourceGroupId\\": \\"rg-aek2ikd5rxxxxxx\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<Repositories>\\n <RepoNamespaceName>ns1</RepoNamespaceName>\\n <ModifiedTime>1571930329000</ModifiedTime>\\n <RepoType>PUBLIC</RepoType>\\n <RepoStatus>NORMAL</RepoStatus>\\n <InstanceId>cri-xkx6vujuhay0****</InstanceId>\\n <CreateTime>1571926644000</CreateTime>\\n <RepoName>repo1</RepoName>\\n <Summary>test</Summary>\\n <RepoId>crcr-gpsu7b8chmxk****</RepoId>\\n</Repositories>\\n<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>0AB62FB8-6873-4032-8515-4578D27523B7</RequestId>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListChartRepository',
+ 'summary' => 'Queries the chart repositories of a Container Registry instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetChartRepository' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Summary' => [
+ 'description' => 'The summary about the chart repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the chart repository was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1563767620000',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'RepoStatus' => [
+ 'description' => 'The status of the chart repository. Valid values:'."\n"
+ ."\n"
+ .'* `NORMAL`: The repository is normal.'."\n"
+ .'* `DELETING`: The repository is being deleted.'."\n",
+ 'type' => 'string',
+ 'example' => 'NORMAL',
+ ],
+ 'RepoType' => [
+ 'description' => 'The type of the chart repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository'."\n"
+ .'* `PRIVATE`: a private repository'."\n",
+ 'type' => 'string',
+ 'example' => 'PUBLIC',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the chart repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crcr-c7letfwev5oq****',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the chart repository was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1563767700000',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'RepoNamespaceName' => [
+ 'description' => 'The name of the namespace to which the chart repository belongs.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the chart repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ResourceGroupId' => [
+ 'description' => 'The ID of the resource group.'."\n",
+ 'type' => 'string',
+ 'example' => 'rg-acfmv36i4is****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Summary\\": \\"test\\",\\n \\"CreateTime\\": 1563767620000,\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"RepoStatus\\": \\"NORMAL\\",\\n \\"RepoType\\": \\"PUBLIC\\",\\n \\"RequestId\\": \\"A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F\\",\\n \\"RepoId\\": \\"crcr-c7letfwev5oq****\\",\\n \\"ModifiedTime\\": 1563767700000,\\n \\"Code\\": \\"success\\",\\n \\"RepoNamespaceName\\": \\"test\\",\\n \\"RepoName\\": \\"test\\",\\n \\"ResourceGroupId\\": \\"rg-acfmv36i4is****\\"\\n}","errorExample":""},{"type":"xml","example":"<RepoNamespaceName>test</RepoNamespaceName>\\n<IsSuccess>true</IsSuccess>\\n<RequestId>A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F</RequestId>\\n<InstanceId>cri-kmsiwlxxdcva****</InstanceId>\\n<CreateTime>1563767620000</CreateTime>\\n<RepoName>test</RepoName>\\n<Code>success</Code>\\n<ModifiedTime>1563767700000</ModifiedTime>\\n<RepoType>PUBLIC</RepoType>\\n<RepoStatus>NORMAL</RepoStatus>\\n<Summary>test</Summary>\\n<RepoId>crcr-c7letfwev5oq****</RepoId>","errorExample":""}]',
+ 'title' => 'GetChartRepository',
+ 'summary' => 'Queries the information about a chart repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteChartRelease' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'Chart',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the chart.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'chart3',
+ ],
+ ],
+ [
+ 'name' => 'Release',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The version of the chart that you want to delete.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '0.1.0',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'C2D6CE47-6DEF-45F4-A1AC-90F3AFBA751F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C2D6CE47-6DEF-45F4-A1AC-90F3AFBA751F\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>C2D6CE47-6DEF-45F4-A1AC-90F3AFBA751F</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteChartRelease',
+ 'summary' => 'Deletes a chart version from a chart repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListChartRelease' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '20',
+ ],
+ ],
+ [
+ 'name' => 'Chart',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The chart whose versions you want to query.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'null',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'F68823F6-F1B5-4A4E-8421-A83CAB8F2963',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of returned entries.'."\n",
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'ChartReleases' => [
+ 'description' => 'The list of chart versions.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => [
+ 'description' => 'The status of the chart.'."\n",
+ 'type' => 'string',
+ 'example' => 'ENABLED',
+ ],
+ 'ModifiedTime' => [
+ 'description' => 'The time when the chart was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571930323000',
+ ],
+ 'RepoId' => [
+ 'description' => 'The ID of the chart repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crcr-gpsu7b8chmxk****',
+ ],
+ 'Release' => [
+ 'description' => 'The version number of the chart.'."\n",
+ 'type' => 'string',
+ 'example' => '0.1.0',
+ ],
+ 'Size' => [
+ 'description' => 'The size of the chart of the version. Unit: bytes.'."\n",
+ 'type' => 'string',
+ 'example' => '2826',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ 'Chart' => [
+ 'description' => 'The name of the chart version.'."\n",
+ 'type' => 'string',
+ 'example' => 'chart1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"F68823F6-F1B5-4A4E-8421-A83CAB8F2963\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": \\"1\\",\\n \\"ChartReleases\\": [\\n {\\n \\"Status\\": \\"ENABLED\\",\\n \\"ModifiedTime\\": 1571930323000,\\n \\"RepoId\\": \\"crcr-gpsu7b8chmxk****\\",\\n \\"Release\\": \\"0.1.0\\",\\n \\"Size\\": \\"2826\\",\\n \\"InstanceId\\": \\"cri-xkx6vujuhay0****\\",\\n \\"Chart\\": \\"chart1\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>1</TotalCount>\\n<PageSize>30</PageSize>\\n<RequestId>F68823F6-F1B5-4A4E-8421-A83CAB8F2963</RequestId>\\n<ChartReleases>\\n <Status>null</Status>\\n <ModifiedTime>1571930323000</ModifiedTime>\\n <InstanceId>cri-xkx6vujuhay0****</InstanceId>\\n <Size>2826</Size>\\n <RepoId>crcr-gpsu7b8chmxk****</RepoId>\\n <Release>0.1.0</Release>\\n <Chart>chart1</Chart>\\n</ChartReleases>\\n<PageNo>1</PageNo>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListChartRelease',
+ 'summary' => 'Queries the versions of a chart in a chart repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetAuthorizationToken' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcvaduwb',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID'."\n",
+ 'type' => 'string',
+ 'example' => 'E069EB86-E6AD-4A98-ADDE-0E993390239A',
+ ],
+ 'ExpireTime' => [
+ 'description' => 'The timestamp when the temporary token expired. Unit: milliseconds.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1571242083000',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'TempUsername' => [
+ 'description' => 'The username that you use to log on to the registry.'."\n",
+ 'type' => 'string',
+ 'example' => 'temp_user_cr',
+ ],
+ 'AuthorizationToken' => [
+ 'description' => 'The password that you use to log on to the registry.'."\n",
+ 'type' => 'string',
+ 'example' => 'shaunadadakks:uuczxnjcyeyhdjadkkajsjdjadhyucb',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E069EB86-E6AD-4A98-ADDE-0E993390239A\\",\\n \\"ExpireTime\\": 1571242083000,\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"TempUsername\\": \\"temp_user_cr\\",\\n \\"AuthorizationToken\\": \\"shaunadadakks:uuczxnjcyeyhdjadkkajsjdjadhyucb\\"\\n}","type":"json"}]',
+ 'title' => 'GetAuthorizationToken',
+ 'summary' => 'Queries a pair of temporary username and password that you use to log on to a Container Registry instance.',
+ 'description' => 'The validity period of the temporary password is 1 hour. If you use STS to request a token, the validity period of the temporary password is the same as the validity period of the STS token.'."\n"
+ ."\n"
+ .'* If you log on to an instance by using the temporary password obtained through an Alibaba Cloud account, you have the same permissions on resources as the user of the Alibaba Cloud account.'."\n"
+ .'* If you log on to an instance by using the temporary password obtained through a RAM user, you have the same permissions as the RAM user.'."\n"
+ .'* If you log on to an instance by using the temporary password obtained through STS, you have the same permissions as the STS token.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ResetLoginPassword' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '33801',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrBHA1DM',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'Password',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The new password that you specify to log on to the instance. The password must be 8 to 32 bits in length, and must contain at least two of the following character types: letters, special characters, and digits.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"EB9C5722-51E2-4497-A573-575B0CA5CE0C\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>EB9C5722-51E2-4497-A573-575B0CA5CE0C</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ResetLoginPassword',
+ 'summary' => 'Resets the logon password of a Container Registry instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CancelArtifactBuildTask' => [
+ 'methods' => [
+ 'post',
+ 'put',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ ],
+ ],
+ [
+ 'name' => 'BuildTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the artifact building task.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'i2ei-12****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C4C7DD0C-C9D6-437A-A7EE-121EFD70D002\\"\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>C4C7DD0C-C9D6-437A-A7EE-121EFD70D002</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'CancelArtifactBuildTask',
+ 'summary' => 'Cancels an artifact building task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'GetArtifactBuildRule' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33715',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrSEEOQD',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'ScopeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The effective range of the artifact building rule. Valid values:'."\n"
+ ."\n"
+ .'* `REPOSITORY`: The artifact building rule is effective in the repository level.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'REPOSITORY',
+ ],
+ ],
+ [
+ 'name' => 'ScopeId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the effective range of the artifact building rule.'."\n"
+ ."\n"
+ .'* Set the value to the ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crr-8dz3aedjqlmk****'."\n",
+ ],
+ ],
+ [
+ 'name' => 'ArtifactType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the artifact.'."\n"
+ ."\n"
+ .'* `ACCELERATED_IMAGE`: accelerated images.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'ACCELERATED_IMAGE',
+ ],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the artifact building rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'crabr-o2670wqz2n70****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '7A3E98F6-296C-54AC-A612-B75E7777D4C1',
+ ],
+ 'ScopeId' => [
+ 'description' => 'The ID of the effective range of the artifact building rule.'."\n"
+ ."\n"
+ .'* The parameter value is the ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-8dz3aedjqlmk****',
+ ],
+ 'BuildRuleId' => [
+ 'description' => 'The ID of the artifact building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crabr-o2670wqz2n70****'."\n",
+ ],
+ 'ArtifactType' => [
+ 'description' => 'The type of the artifact. Valid values:'."\n"
+ ."\n"
+ .'* `ACCELERATED_IMAGE`: accelerated images.'."\n",
+ 'type' => 'string',
+ 'example' => 'ACCELERATED_IMAGE',
+ ],
+ 'ScopeType' => [
+ 'description' => 'The effective range of the artifact building rule. Valid values:'."\n"
+ ."\n"
+ .'* `REPOSITORY`: The artifact building rule is effective in the repository level.'."\n",
+ 'type' => 'string',
+ 'example' => 'REPOSITORY',
+ ],
+ 'Parameters' => [
+ 'description' => 'Additional parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageIndexOnly' => [
+ 'description' => 'Indicates whether the index-only mode is enabled.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'false',
+ ],
+ 'PriorityFile' => [
+ 'description' => 'The list of files that you want to prefetch when you use the image acceleration feature. Each entry contains the Base64-encoded absolute path of a file.'."\n",
+ 'type' => 'string',
+ 'example' => 'L2hvbWUvdGVzdC8=',
+ ],
+ ],
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: The request is successful.'."\n"
+ .'* `false`: The request fails.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7A3E98F6-296C-54AC-A612-B75E7777D4C1\\",\\n \\"ScopeId\\": \\"crr-8dz3aedjqlmk****\\",\\n \\"BuildRuleId\\": \\"crabr-o2670wqz2n70****\\\\n\\",\\n \\"ArtifactType\\": \\"ACCELERATED_IMAGE\\",\\n \\"ScopeType\\": \\"REPOSITORY\\",\\n \\"Parameters\\": {\\n \\"ImageIndexOnly\\": false,\\n \\"PriorityFile\\": \\"L2hvbWUvdGVzdC8=\\"\\n },\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true\\n}","type":"json"}]',
+ 'title' => 'GetArtifactBuildRule',
+ 'summary' => 'Queries the details of an artifact building rule.',
+ ],
+ 'GetArtifactBuildTask' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'BuildTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the artifact building task.'."\n",
+ 'docRequired' => true,
+ 'example' => 'i2a-1yu****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => 'The time when the artifact building task ends.'."\n",
+ 'example' => '156871880',
+ 'format' => 'int32',
+ 'type' => 'integer',
+ ],
+ 'StartTime' => [
+ 'description' => 'The time when the artifact building task starts.'."\n",
+ 'example' => '156871881',
+ 'format' => 'int32',
+ 'type' => 'integer',
+ ],
+ 'ArtifactBuildType' => [
+ 'description' => 'The type of the artifact building task. Valid values:'."\n"
+ ."\n"
+ .'* `IMAGE_TO_ACCELERATED_IMAGE`: builds accelerated images for Container Service for Kubernetes (ACK) clusters.'."\n"
+ .'* `IMAGE_TO_ECI_ACCELERATED_IMAGE`: builds accelerated images for elastic container instances.'."\n",
+ 'example' => 'IMAGE_TO_ACCELERATED_IMAGE',
+ 'type' => 'string',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002',
+ 'type' => 'string',
+ ],
+ 'TaskStatus' => [
+ 'description' => 'The status of the artifact that is built in the task. Valid values:'."\n"
+ ."\n"
+ .'* `PENDING`: The artifact is being scheduled.'."\n"
+ .'* `BUILDING`: The artifact is being built.'."\n"
+ .'* `SUCCESS`: The artifact is built.'."\n"
+ .'* `FAILED`: The artifact fails to be built.'."\n",
+ 'example' => 'BUILDING',
+ 'type' => 'string',
+ ],
+ 'BuildTaskId' => [
+ 'description' => 'The ID of the artifact building task.'."\n",
+ 'example' => 'i2a-1yu****',
+ 'type' => 'string',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'example' => 'success',
+ 'type' => 'string',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'example' => 'true',
+ 'type' => 'boolean',
+ ],
+ 'Instructions' => [
+ 'items' => [
+ 'description' => 'This parameter is left empty because it is a reserved parameter.'."\n",
+ 'example' => 'null',
+ 'type' => 'string',
+ ],
+ 'type' => 'array',
+ ],
+ 'SourceArtifact' => [
+ 'description' => 'The information about the source artifact.'."\n",
+ 'properties' => [
+ 'RepoId' => [
+ 'description' => 'The ID of the repository to which the source artifact belongs. The repository can only be an image repository.'."\n",
+ 'example' => 'cri-shac42yvqzvq****',
+ 'type' => 'string',
+ ],
+ 'Version' => [
+ 'description' => 'The version of the artifact. The artifact can only be an image.'."\n",
+ 'example' => 'latest',
+ 'type' => 'string',
+ ],
+ 'ArtifactType' => [
+ 'description' => 'The type of the artifact that is built in the task. The value can only be IMAGE.'."\n",
+ 'example' => 'IMAGE',
+ 'type' => 'string',
+ ],
+ ],
+ 'type' => 'object',
+ ],
+ 'TargetArtifact' => [
+ 'description' => 'The artifact that is built in the task.'."\n",
+ 'properties' => [
+ 'RepoId' => [
+ 'description' => 'The ID of the repository to which the artifact that is built in the task belongs. The repository can only be an image repository. The value is the same as the ID of the repository to which the source artifact belongs.'."\n",
+ 'example' => 'crr-1234567',
+ 'type' => 'string',
+ ],
+ 'Version' => [
+ 'description' => 'The version of the artifact that is built in the task. The artifact can only be an image.'."\n",
+ 'example' => 'latest_accelerated',
+ 'type' => 'string',
+ ],
+ 'ArtifactType' => [
+ 'description' => 'The type of the artifact that is built in the task. The value can only be IMAGE.'."\n",
+ 'example' => 'IMAGE',
+ 'type' => 'string',
+ ],
+ ],
+ 'type' => 'object',
+ ],
+ ],
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"EndTime\\": 1685415871,\\n \\"StartTime\\": 1685437471,\\n \\"ArtifactBuildType\\": \\"IMAGE_TO_ACCELERATED_IMAGE\\",\\n \\"RequestId\\": \\"C4C7DD0C-C9D6-437A-A7EE-121EFD70D002\\",\\n \\"TaskStatus\\": \\"BUILDING\\",\\n \\"BuildTaskId\\": \\"i2a-1yu****\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"Instructions\\": [\\n \\"null\\"\\n ],\\n \\"SourceArtifact\\": {\\n \\"RepoId\\": \\"cri-shac42yvqzvq****\\",\\n \\"Version\\": \\"latest\\",\\n \\"ArtifactType\\": \\"IMAGE\\"\\n },\\n \\"TargetArtifact\\": {\\n \\"RepoId\\": \\"crr-1234567\\",\\n \\"Version\\": \\"latest_accelerated\\",\\n \\"ArtifactType\\": \\"IMAGE\\"\\n }\\n}","errorExample":""},{"type":"xml","example":"<TargetArtifact>\\n <Version>latest_accelerated</Version>\\n <ArtifactType>IMAGE</ArtifactType>\\n <RepoId>crr-1234567</RepoId>\\n</TargetArtifact>\\n<ArtifactBuildType>IMAGE_TO_ACCELERATED_IMAGE</ArtifactBuildType>\\n<IsSuccess>true</IsSuccess>\\n<EndTime>15687188001</EndTime>\\n<BuildTaskId>i2a-123456</BuildTaskId>\\n<RequestId>C4C7DD0C-C9D6-437A-A7EE-121EFD70D002</RequestId>\\n<StartTime>15687188001</StartTime>\\n<Instructions/>\\n<TaskStatus>BUILDING</TaskStatus>\\n<Code>success</Code>\\n<SourceArtifact>\\n <Version>latest</Version>\\n <ArtifactType>IMAGE</ArtifactType>\\n <RepoId>crr-1234567</RepoId>\\n</SourceArtifact>","errorExample":""}]',
+ 'extraInfo' => ' ',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'summary' => 'Queries the details of an artifact building task.',
+ 'title' => 'GetArtifactBuildTask',
+ ],
+ 'CreateArtifactBuildRule' => [
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-cxreylqvcyje****',
+ ],
+ ],
+ [
+ 'name' => 'ScopeType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The effective range of the rule. Valid values:'."\n"
+ ."\n"
+ .'* `REPOSITORY`'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'REPOSITORY',
+ ],
+ ],
+ [
+ 'name' => 'ScopeId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the effective range of the rule.'."\n"
+ ."\n"
+ .'* Set the value to the ID of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'crr-pmajihou6cg0****',
+ ],
+ ],
+ [
+ 'name' => 'ArtifactType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the artifact.'."\n"
+ ."\n"
+ .'* `ACCELERATED_IMAGE`: accelerated images.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'ACCELERATED_IMAGE',
+ ],
+ ],
+ [
+ 'name' => 'Parameters',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'Additional parameters.'."\n",
+ 'type' => 'object',
+ 'required' => false,
+ 'example' => '{}',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'C8E90AB5-0A96-5D12-9E59-11EE46360642',
+ ],
+ 'BuildRuleId' => [
+ 'description' => 'The ID of the accelerated image building rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crabr-7dfa5qye5****',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C8E90AB5-0A96-5D12-9E59-11EE46360642\\",\\n \\"BuildRuleId\\": \\"crabr-7dfa5qye5****\\"\\n}","type":"json"}]',
+ 'title' => 'CreateArtifactBuildRule',
+ 'summary' => 'Create image repository acceleration rules for image building.',
+ 'description' => 'You can create building rules of accelerated images only for image repositories of Container Registry Advanced Edition instances. You cannot create building rules of accelerated images for image repositories of Container Registry Basic Edition instances. For more information, see [Specifications of different editions](https://www.alibabacloud.com/help/en/acr/product-overview/what-is-container-registry?spm=openapi-amp.newDocPublishment.0.0.bf82281fRj7rmV#section-n3q-ps7-x6k).'."\n"
+ ."\n"
+ .'Accelerated images are not supported in Alibaba Finance Cloud regions or Alibaba Gov Cloud regions.',
+ 'translator' => 'machine',
+ ],
+ 'ListArtifactBuildTaskLog' => [
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-shac42yvqzvq****',
+ ],
+ ],
+ [
+ 'name' => 'BuildTaskId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the artifact build task.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'i2a-1yu****',
+ ],
+ ],
+ [
+ 'name' => 'Page',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page. Maximum value: 100. If you specify a value greater than 100 for this parameter, the system reports a parameter error or uses 100 as the maximum value.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => '100',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The response code.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of log entries.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'BuildTaskLogs' => [
+ 'description' => 'The log entries of the artifact build task.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Message' => [
+ 'description' => 'The log data.'."\n",
+ 'type' => 'string',
+ 'example' => 'Start Build',
+ ],
+ 'LineNumber' => [
+ 'description' => 'The row number of the log entry.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'description' => '',
+ ],
+ ],
+ ],
+ 'errorCodes' => [],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C4C7DD0C-C9D6-437A-A7EE-121EFD70D002\\",\\n \\"TotalCount\\": 200,\\n \\"BuildTaskLogs\\": [\\n {\\n \\"Message\\": \\"Start Build\\",\\n \\"LineNumber\\": 1\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<IsSuccess>true</IsSuccess>\\n<TotalCount>200</TotalCount>\\n<BuildTaskLogs>\\n <Message>Start Build</Message>\\n <LineNumber>1</LineNumber>\\n</BuildTaskLogs>\\n<RequestId>C4C7DD0C-C9D6-437A-A7EE-121EFD70D002</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'ListArtifactBuildTaskLog',
+ 'summary' => 'Queries the log entries of an artifact building task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'CreateChain' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'repo1',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'docRequired' => true,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The description of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'description',
+ ],
+ ],
+ [
+ 'name' => 'ChainConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The configuration of the delivery chain in the JSON format.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'chainconfig',
+ ],
+ ],
+ [
+ 'name' => 'ScopeExclude',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Repositories in which the delivery chain does not take effect.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The names of the repositories in which the delivery chain does not take effect. Separate multiple repository names with commas (,).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo_name1,repo_name2',
+ ],
+ 'required' => false,
+ 'maxItems' => 50,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ChainId' => [
+ 'description' => 'The ID of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'chi-02ymhtwl3cq8****',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '4BC03B36-E515-5806-99AC-268AE3C0****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"ChainId\\": \\"chi-02ymhtwl3cq8****\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4BC03B36-E515-5806-99AC-268AE3C0****\\"\\n}","errorExample":""},{"type":"xml","example":"<CreateChainResponse>\\n <Code>success</Code>\\n <ChainId>chi-02ymhtwl3cq8****</ChainId>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>4BC03B36-E515-5806-99AC-268AE3C0****</RequestId>\\n</CreateChainResponse>","errorExample":""}]',
+ 'title' => 'CreateChain',
+ 'summary' => 'Creates a delivery chain.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'DeleteChain' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'docRequired' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ [
+ 'name' => 'ChainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the delivery pipeline.'."\n",
+ 'docRequired' => true,
+ 'example' => 'chi-02ymhtwl3cq8****',
+ 'required' => true,
+ 'type' => 'string',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'example' => 'success',
+ 'type' => 'string',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'example' => 'true',
+ 'type' => 'boolean',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'example' => 'DB1809A8-E1C8-5707-BAF8-D4FC1C11****',
+ 'type' => 'string',
+ ],
+ ],
+ 'type' => 'object',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"DB1809A8-E1C8-5707-BAF8-D4FC1C11****\\"\\n}","errorExample":""},{"type":"xml","example":"<DeleteChainResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>DB1809A8-E1C8-5707-BAF8-D4FC1C11****</RequestId>\\n</DeleteChainResponse>","errorExample":""}]',
+ 'extraInfo' => ' ',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'summary' => 'Deletes a delivery chain.',
+ 'title' => 'DeleteChain',
+ ],
+ 'UpdateChain' => [
+ 'summary' => 'Updates the information about a delivery chain, such as the node execution sequence of the delivery chain.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrPRPOYY',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ ],
+ [
+ 'name' => 'ChainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'chi-02ymhtwl3cq8****',
+ ],
+ ],
+ [
+ 'name' => 'Name',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'Description',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The description of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'description',
+ ],
+ ],
+ [
+ 'name' => 'ChainConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The configuration of the delivery chain in the JSON format.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'chainconfig',
+ ],
+ ],
+ [
+ 'name' => 'ScopeExclude',
+ 'in' => 'query',
+ 'style' => 'repeatList',
+ 'schema' => [
+ 'description' => 'Repositories in which the delivery chain does not take effect.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The names of the repositories in which the delivery chain does not take effect. Separate multiple repository names with commas (,).'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo_name1,repo_name2',
+ ],
+ 'required' => false,
+ 'maxItems' => 50,
+ 'minItems' => 0,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '85A99B10-3926-5201-958E-C06FA47F****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ [
+ 'errorCode' => 'NoPrivilege',
+ 'errorMessage' => 'Access denied for this user.',
+ ],
+ ],
+ 500 => [
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'Unknown error.',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"85A99B10-3926-5201-958E-C06FA47F****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateChainResponse>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RequestId>85A99B10-3926-5201-958E-C06FA47F****</RequestId>\\n</UpdateChainResponse>","errorExample":""}]',
+ 'title' => 'UpdateChain',
+ ],
+ 'GetChain' => [
+ 'summary' => 'Obtains the information of a delivery chain to understand the node execution sequence of the delivery chain.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrPRPOYY',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ ],
+ [
+ 'name' => 'ChainId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'chi-0ops0gsmw5x2****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638259914000',
+ ],
+ 'ScopeId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'crr-nyrh2oko32xb****',
+ ],
+ 'RequestId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'C87993B5-7D61-5CAC-8D64-1AC732DD69FF',
+ ],
+ 'Description' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'description',
+ ],
+ 'CreateTime' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638255427000',
+ ],
+ 'ScopeType' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'REPOSITORY',
+ ],
+ 'Code' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'ChainId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'chi-0ops0gsmw5x2****',
+ ],
+ 'InstanceId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ 'IsSuccess' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Name' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ChainConfig' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'ChainConfigId' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'cci-lz3ycgo69ukt****',
+ ],
+ 'IsActive' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'Version' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '1',
+ ],
+ 'Routers' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'From' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DOCKER_IMAGE_BUILD',
+ ],
+ ],
+ ],
+ 'To' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'DOCKER_IMAGE_PUSH',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'Nodes' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'VULNERABILITY_SCANNING',
+ ],
+ 'Enable' => [
+ 'description' => '',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'NodeConfig' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Timeout' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '',
+ ],
+ 'Retry' => [
+ 'description' => '',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '3',
+ ],
+ 'DenyPolicy' => [
+ 'description' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Logic' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'AND',
+ ],
+ 'IssueLevel' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'HIGH',
+ ],
+ 'IssueCount' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => '10',
+ ],
+ 'Action' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'BLOCK',
+ ],
+ 'IssueList' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'CVE-2020-8286,CVE-2020-8285',
+ ],
+ 'MaliciousList' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'mutate_cockhorse,abnormal_program',
+ ],
+ 'BaselineList' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'identification,hc_image_exploit',
+ ],
+ ],
+ ],
+ 'ScanEngine' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'ACR_SCAN_SERVICE',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'ScopeExclude' => [
+ 'description' => '',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => '',
+ 'type' => 'string',
+ 'example' => 'repo_name1,repo_name2'."\n",
+ ],
+ 'maxItems' => 50,
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"ModifiedTime\\": 1638259914000,\\n \\"ScopeId\\": \\"crr-nyrh2oko32xb****\\",\\n \\"RequestId\\": \\"C87993B5-7D61-5CAC-8D64-1AC732DD69FF\\",\\n \\"Description\\": \\"description\\",\\n \\"CreateTime\\": 1638255427000,\\n \\"ScopeType\\": \\"REPOSITORY\\",\\n \\"Code\\": \\"success\\",\\n \\"ChainId\\": \\"chi-0ops0gsmw5x2****\\",\\n \\"InstanceId\\": \\"cri-4cdrlqmhn4gm****\\",\\n \\"IsSuccess\\": true,\\n \\"Name\\": \\"test\\",\\n \\"ChainConfig\\": {\\n \\"ChainConfigId\\": \\"cci-lz3ycgo69ukt****\\",\\n \\"IsActive\\": true,\\n \\"Version\\": \\"1\\",\\n \\"Routers\\": [\\n {\\n \\"From\\": {\\n \\"NodeName\\": \\"DOCKER_IMAGE_BUILD\\"\\n },\\n \\"To\\": {\\n \\"NodeName\\": \\"DOCKER_IMAGE_PUSH\\"\\n }\\n }\\n ],\\n \\"Nodes\\": [\\n {\\n \\"NodeName\\": \\"VULNERABILITY_SCANNING\\",\\n \\"Enable\\": true,\\n \\"NodeConfig\\": {\\n \\"Timeout\\": 900,\\n \\"Retry\\": 3,\\n \\"DenyPolicy\\": {\\n \\"Logic\\": \\"AND\\",\\n \\"IssueLevel\\": \\"HIGH\\",\\n \\"IssueCount\\": \\"10\\",\\n \\"Action\\": \\"BLOCK\\",\\n \\"IssueList\\": \\"CVE-2020-8286,CVE-2020-8285\\",\\n \\"MaliciousList\\": \\"mutate_cockhorse,abnormal_program\\",\\n \\"BaselineList\\": \\"identification,hc_image_exploit\\"\\n },\\n \\"ScanEngine\\": \\"ACR_SCAN_SERVICE\\"\\n }\\n }\\n ]\\n },\\n \\"ScopeExclude\\": [\\n \\"repo_name1,repo_name2\\\\n\\"\\n ]\\n}","errorExample":""},{"type":"xml","example":"<GetChainResponse>\\n <ModifiedTime>1638259914000</ModifiedTime>\\n <ScopeId>crr-nyrh2oko32xb****</ScopeId>\\n <RequestId>C87993B5-7D61-5CAC-8D64-1AC732DD69FF</RequestId>\\n <Description>description</Description>\\n <CreateTime>1638255427000</CreateTime>\\n <ScopeType>REPOSITORY</ScopeType>\\n <Code>success</Code>\\n <ChainId>chi-0ops0gsmw5x2****</ChainId>\\n <InstanceId>cri-4cdrlqmhn4gm****</InstanceId>\\n <IsSuccess>true</IsSuccess>\\n <Name>test</Name>\\n <ChainConfig>\\n <ChainConfigId>cci-lz3ycgo69ukt****</ChainConfigId>\\n <IsActive>true</IsActive>\\n <Version>1</Version>\\n <Routers>\\n <From>\\n <NodeName>DOCKER_IMAGE_BUILD</NodeName>\\n </From>\\n <To>\\n <NodeName>DOCKER_IMAGE_PUSH</NodeName>\\n </To>\\n </Routers>\\n <Nodes>\\n <NodeName>VULNERABILITY_SCANNING</NodeName>\\n <Enable>true</Enable>\\n <NodeConfig>\\n <Timeout>5</Timeout>\\n <Retry>3</Retry>\\n <DenyPolicy>\\n <Logic>AND</Logic>\\n <IssueLevel>HIGH</IssueLevel>\\n <IssueCount>10</IssueCount>\\n <Action>BLOCK</Action>\\n </DenyPolicy>\\n <ScanEngine>ACR_SCAN_SERVICE</ScanEngine>\\n </NodeConfig>\\n </Nodes>\\n </ChainConfig>\\n</GetChainResponse>","errorExample":""}]',
+ 'title' => 'GetChain',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListChain' => [
+ 'summary' => 'Queries delivery chains.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrPRPOYY',
+ ],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '10',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ns1',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'repo1',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '85A99B10-3926-5201-958E-C06FA47F****',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of delivery chains.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'Chains' => [
+ 'description' => 'The list of delivery chains.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => [
+ 'description' => 'The time when the delivery chain was last modified.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638259914000',
+ ],
+ 'ScopeId' => [
+ 'description' => 'The ID of the delivery chain scope.'."\n",
+ 'type' => 'string',
+ 'example' => 'crr-nyrh2oko32xb****',
+ ],
+ 'Description' => [
+ 'description' => 'The description of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'description',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the delivery chain was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638255427000',
+ ],
+ 'ScopeType' => [
+ 'description' => 'The type of the delivery chain scope.'."\n",
+ 'type' => 'string',
+ 'example' => 'REPOSITORY',
+ ],
+ 'ChainId' => [
+ 'description' => 'The ID of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'chi-0ops0gsmw5x2****',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-4cdrlqmhn4gm****',
+ ],
+ 'Name' => [
+ 'description' => 'The name of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'test',
+ ],
+ 'ScopeExclude' => [
+ 'description' => 'Repositories to which the delivery chain does not apply.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The names of the repositories to which the delivery chain does not apply. Separate multiple repository names with commas (,).'."\n",
+ 'type' => 'string',
+ 'example' => 'repo_name1,repo_name2',
+ ],
+ 'minItems' => 0,
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"85A99B10-3926-5201-958E-C06FA47F****\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 1,\\n \\"TotalCount\\": 1,\\n \\"Chains\\": [\\n {\\n \\"ModifiedTime\\": 1638259914000,\\n \\"ScopeId\\": \\"crr-nyrh2oko32xb****\\",\\n \\"Description\\": \\"description\\",\\n \\"CreateTime\\": 1638255427000,\\n \\"ScopeType\\": \\"REPOSITORY\\",\\n \\"ChainId\\": \\"chi-0ops0gsmw5x2****\\",\\n \\"InstanceId\\": \\"cri-4cdrlqmhn4gm****\\",\\n \\"Name\\": \\"test\\",\\n \\"ScopeExclude\\": [\\n \\"repo_name1,repo_name2\\"\\n ]\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListChainResponse>\\n <RequestId>85A99B10-3926-5201-958E-C06FA47F****</RequestId>\\n <Code>success</Code>\\n <PageNo>1</PageNo>\\n <IsSuccess>true</IsSuccess>\\n <PageSize>1</PageSize>\\n <TotalCount>1</TotalCount>\\n <Chains>\\n <ModifiedTime>1638259914000</ModifiedTime>\\n <ScopeId>crr-nyrh2oko32xb****</ScopeId>\\n <Description>description</Description>\\n <CreateTime>1638255427000</CreateTime>\\n <ScopeType>REPOSITORY</ScopeType>\\n <ChainId>chi-0ops0gsmw5x2****</ChainId>\\n <InstanceId>cri-4cdrlqmhn4gm****</InstanceId>\\n <Name>test</Name>\\n </Chains>\\n</ListChainResponse>","errorExample":""}]',
+ 'title' => 'ListChain',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ ],
+ 'ListChainInstance' => [
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The operation that you want to perform. Set this parameter to **ListChainInstance**.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The time when the delivery chain started.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-namespace',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The time when the delivery chain is completed.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test-repo',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'string',
+ 'example' => '838D1602-6D8F-47FB-B60A-656645D2****',
+ ],
+ 'Code' => [
+ 'description' => 'The version of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => '30',
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'The execution record of the delivery chain.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The page number of the page to return.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ 'PageSize' => [
+ 'description' => 'Indicates whether the operation is successful.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ChainInstances' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => [
+ 'description' => 'The ID of the Container Registry instance.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1636685856000',
+ ],
+ 'Status' => [
+ 'description' => 'The status of the delivery chain. Valid values:'."\n"
+ ."\n"
+ .'* `RUNNING`'."\n"
+ .'* `COMPLETE`'."\n"
+ .'* `CANCELING`'."\n"
+ .'* `CANCELED`'."\n",
+ 'type' => 'string',
+ 'example' => 'COMPLETE',
+ ],
+ 'StartTime' => [
+ 'description' => 'test-repo',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1636685776000',
+ ],
+ 'Result' => [
+ 'description' => 'The list of the execution records of delivery chains.'."\n",
+ 'type' => 'string',
+ 'example' => 'SUCCESS',
+ ],
+ 'ChainInstanceId' => [
+ 'description' => '1',
+ 'type' => 'string',
+ 'example' => 'F4CF4DDB-BEF2-5575-****-*******',
+ ],
+ 'RepoNamespaceName' => [
+ 'description' => 'The execution result of the delivery chain. Valid values:'."\n"
+ ."\n"
+ .'* `SUCCESS`'."\n"
+ .'* `FAILED`'."\n"
+ .'* `CANCELED`'."\n"
+ .'* `DENIED`'."\n",
+ 'type' => 'string',
+ 'example' => 'test-ns',
+ ],
+ 'RepoName' => [
+ 'description' => 'The ID of the delivery chain.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-repo',
+ ],
+ 'Chain' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ChainId' => [
+ 'description' => 'The name of the namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'chi-m42gbku0****',
+ ],
+ 'ChainName' => [
+ 'description' => 'The number of entries returned on each page.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-chain',
+ ],
+ 'Version' => [
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"838D1602-6D8F-47FB-B60A-656645D2****\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-kmsiwlxxdcva****\\",\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 1,\\n \\"ChainInstances\\": [\\n {\\n \\"EndTime\\": 1636685856000,\\n \\"Status\\": \\"COMPLETE\\",\\n \\"StartTime\\": 1636685776000,\\n \\"Result\\": \\"SUCCESS\\",\\n \\"ChainInstanceId\\": \\"F4CF4DDB-BEF2-5575-****-*******\\",\\n \\"RepoNamespaceName\\": \\"test-ns\\",\\n \\"RepoName\\": \\"test-repo\\",\\n \\"Chain\\": {\\n \\"ChainId\\": \\"chi-m42gbku0****\\",\\n \\"ChainName\\": \\"test-chain\\",\\n \\"Version\\": 1\\n }\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListChainInstanceResponse>\\n <RequestId>838D1602-6D8F-47FB-B60A-656645D2****</RequestId>\\n <Code>success</Code>\\n <PageNo>1</PageNo>\\n <IsSuccess>true</IsSuccess>\\n <InstanceId>cri-kmsiwlxxdcva****</InstanceId>\\n <PageSize>30</PageSize>\\n <TotalCount>1</TotalCount>\\n <ChainInstances>\\n <EndTime>1636685856000</EndTime>\\n <Status>COMPLETE</Status>\\n <StartTime>1636685776000</StartTime>\\n <Result>SUCCESS</Result>\\n <ChainInstanceId>F4CF4DDB-BEF2-5575-****-*******</ChainInstanceId>\\n <RepoNamespaceName>test-ns</RepoNamespaceName>\\n <RepoName>test-repo</RepoName>\\n <Chain>\\n <ChainId>chi-m42gbku0****</ChainId>\\n <ChainName>test-chain</ChainName>\\n <Version>1</Version>\\n </Chain>\\n </ChainInstances>\\n</ListChainInstanceResponse>","errorExample":""}]',
+ 'title' => 'ListChainInstance',
+ 'summary' => 'Queries execution records of delivery chains.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ ],
+ 'DeleteEventCenterRule' => [
+ 'summary' => 'Deletes an event notification rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crecr-n6pbhgjx*****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"031572FA-7D8F-4C05-B790-1071E0E05DE6\\",\\n \\"Code\\": \\"success\\"\\n}","errorExample":""},{"type":"xml","example":"<RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>\\n<Code>success</Code>","errorExample":""}]',
+ 'title' => 'DeleteEventCenterRule',
+ ],
+ 'UpdateEventCenterRule' => [
+ 'summary' => 'Updates an event rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crecr-n6pbhgjxt*****',
+ ],
+ ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The name of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'chain-demo',
+ ],
+ ],
+ [
+ 'name' => 'EventChannel',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The event notification channel.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'EVENT_BRIDGE',
+ ],
+ ],
+ [
+ 'name' => 'EventType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the event. Valid values:'."\n"
+ ."\n"
+ .'* `cr:Artifact:DeliveryChainCompleted`: The delivery chain is processed.'."\n"
+ .'* `cr:Artifact:SynchronizationCompleted`: The image is replicated.'."\n"
+ .'* `cr:Artifact:BuildCompleted`: The image is built.'."\n"
+ .'* `cr:Artifact:ScanCompleted`: The image is scanned.'."\n"
+ .'* `cr:Artifact:SigningCompleted`: The image is signed.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cr:Artifact:DeliveryChainCompleted',
+ ],
+ ],
+ [
+ 'name' => 'EventScope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The event scope. Valid values:'."\n"
+ ."\n"
+ .'* `INSTANCE`'."\n"
+ .'* `NAMESPACE`'."\n"
+ .'* `REPO`'."\n"
+ ."\n"
+ .'Default value: `INSTANCE`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'INSTANCE',
+ ],
+ ],
+ [
+ 'name' => 'Namespaces',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The namespaces to which the event notification rule applies.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The namespaces.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '["ns1","ns2"]',
+ ],
+ 'required' => false,
+ 'example' => 'ns',
+ ],
+ ],
+ [
+ 'name' => 'RepoNames',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The names of the repositories to which the event notification rule applies.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The names of the repositories.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '["repo1","repo2"]',
+ ],
+ 'required' => false,
+ 'example' => 'reponame',
+ ],
+ ],
+ [
+ 'name' => 'RepoTagFilterPattern',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The regular expression for image tags.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '.*',
+ ],
+ ],
+ [
+ 'name' => 'EventConfig',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The event configuration.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => '{'."\n"
+ .' "notifyMethod":"http",'."\n"
+ .' "notifyConfig":{'."\n"
+ .' "Url":"http://www.aliyundoc.com",'."\n"
+ .' "id":"MaAV3HgTkO5Fh8l1V********",'."\n"
+ .' },'."\n"
+ .' "notifyFilter":{}'."\n"
+ .' }',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6',
+ ],
+ 'Code' => [
+ 'description' => 'The status code.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '200',
+ ],
+ 'RuleId' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crecr-n6pbhgjxt*****',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"031572FA-7D8F-4C05-B790-1071E0E05DE6\\",\\n \\"Code\\": 200,\\n \\"RuleId\\": \\"crecr-n6pbhgjxt*****\\"\\n}","errorExample":""},{"type":"xml","example":"<UpdateEventCenterRuleResponse>\\n <RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>\\n <Code>200</Code>\\n <RuleId>crecr-n6pbhgjxt*****</RuleId>\\n</UpdateEventCenterRuleResponse>","errorExample":""}]',
+ 'title' => 'UpdateEventCenterRule',
+ ],
+ 'ListEventCenterRecord' => [
+ 'summary' => 'Queries the historical events of an event rule.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'EventType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the event. Valid values:'."\n"
+ ."\n"
+ .'* `cr:Artifact:DeliveryChainCompleted`: The delivery chain is processed.'."\n"
+ .'* `cr:Artifact:SynchronizationCompleted`: The image is replicated.'."\n"
+ .'* `cr:Artifact:BuildCompleted`: The image is built.'."\n"
+ .'* `cr:Artifact:ScanCompleted`: The image is scanned.'."\n"
+ .'* `cr:Artifact:SigningCompleted`: The image is signed.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cr:Artifact:DeliveryChainCompleted',
+ ],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crecr-n6pbhgjxtla***',
+ ],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'The name of the namespace to which the repository belongs.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'allowEmptyValue' => true,
+ 'schema' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'test',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of the page to return.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries to return on each page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '665C7A5E-BAEC-5BCD-AF9F-5F9260D672BF',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number of the returned page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries returned per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total entries of historical events.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '50',
+ ],
+ 'Records' => [
+ 'description' => 'The list of historical events.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RecordId' => [
+ 'description' => 'The ID of the event record.'."\n",
+ 'type' => 'string',
+ 'example' => 'crecrr-ctdbzwtkpr*****',
+ ],
+ 'RuleId' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crecr-n6pbhgjxtla*****',
+ ],
+ 'InstanceId' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'example' => 'cri-gl34plsa****',
+ ],
+ 'RuleName' => [
+ 'description' => 'The name of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'chain-demo',
+ ],
+ 'Namespace' => [
+ 'description' => 'The namespace.'."\n",
+ 'type' => 'string',
+ 'example' => 'mychain',
+ ],
+ 'RepoName' => [
+ 'description' => 'The name of the image repository.'."\n",
+ 'type' => 'string',
+ 'example' => 'ruby-2.4.0',
+ ],
+ 'Tag' => [
+ 'description' => 'The tags.'."\n",
+ 'type' => 'string',
+ 'example' => 'ruby-2.4.0',
+ ],
+ 'EventChannel' => [
+ 'description' => 'The event notification channel.'."\n",
+ 'type' => 'string',
+ 'example' => 'EVENT_BRIDGE',
+ ],
+ 'EventType' => [
+ 'description' => 'The type of the event.'."\n",
+ 'type' => 'string',
+ 'example' => 'cr:Artifact:DeliveryChainCompleted',
+ ],
+ 'EventNotifyMethod' => [
+ 'description' => 'The notification method. Valid values:'."\n"
+ ."\n"
+ .'* `http`: The notification is sent over HTTP.'."\n"
+ .'* `https`: The notification is sent over HTTPS.'."\n"
+ .'* `dingding`: The notification is sent by using DingTalk.'."\n",
+ 'type' => 'string',
+ 'example' => 'http',
+ ],
+ 'EventNotifyId' => [
+ 'description' => 'The ID of the event notification.'."\n",
+ 'type' => 'string',
+ 'example' => '7d478419-61df-49e5-b92b-30ce730c2127',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The time when the event was created.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638188622000',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The time when the event was last updated.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1638188622000',
+ ],
+ ],
+ ],
+ 'example' => '[]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"665C7A5E-BAEC-5BCD-AF9F-5F9260D672BF\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 50,\\n \\"Records\\": [\\n {\\n \\"RecordId\\": \\"crecrr-ctdbzwtkpr*****\\",\\n \\"RuleId\\": \\"crecr-n6pbhgjxtla*****\\",\\n \\"InstanceId\\": \\"cri-gl34plsa****\\",\\n \\"RuleName\\": \\"chain-demo\\",\\n \\"Namespace\\": \\"mychain\\",\\n \\"RepoName\\": \\"ruby-2.4.0\\",\\n \\"Tag\\": \\"ruby-2.4.0\\",\\n \\"EventChannel\\": \\"EVENT_BRIDGE\\",\\n \\"EventType\\": \\"cr:Artifact:DeliveryChainCompleted\\",\\n \\"EventNotifyMethod\\": \\"http\\",\\n \\"EventNotifyId\\": \\"7d478419-61df-49e5-b92b-30ce730c2127\\",\\n \\"CreateTime\\": 1638188622000,\\n \\"UpdateTime\\": 1638188622000\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListEventCenterRecordResponse>\\n <RequestId>665C7A5E-BAEC-5BCD-AF9F-5F9260D672BF</RequestId>\\n <Code>success</Code>\\n <PageNo>1</PageNo>\\n <IsSuccess>true</IsSuccess>\\n <PageSize>30</PageSize>\\n <TotalCount>50</TotalCount>\\n <Records>\\n <RecordId>crecrr-ctdbzwtkpr*****</RecordId>\\n <RuleId>crecr-n6pbhgjxtla*****</RuleId>\\n <InstanceId>cri-gl34plsa****</InstanceId>\\n <RuleName>chain-demo</RuleName>\\n <Namespace>mychain</Namespace>\\n <RepoName>ruby-2.4.0</RepoName>\\n <Tag>ruby-2.4.0</Tag>\\n <EventChannel>EVENT_BRIDGE</EventChannel>\\n <EventType>cr:Artifact:DeliveryChainCompleted</EventType>\\n <EventNotifyMethod>http</EventNotifyMethod>\\n <EventNotifyId>7d478419-61df-49e5-b92b-30ce730c2127</EventNotifyId>\\n <CreateTime>1638188622000</CreateTime>\\n <UpdateTime>1638188622000</UpdateTime>\\n </Records>\\n</ListEventCenterRecordResponse>","errorExample":""}]',
+ 'title' => 'ListEventCenterRecord',
+ 'translator' => 'machine',
+ ],
+ 'ListEventCenterRuleName' => [
+ 'summary' => 'Queries the name of an event rule.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The ID of the instance.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'headers' => [],
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The ID of the request.'."\n",
+ 'type' => 'string',
+ 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6',
+ ],
+ 'Code' => [
+ 'description' => 'The return value.'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RuleNames' => [
+ 'description' => 'The list of names of event notification rules.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RuleId' => [
+ 'description' => 'The ID of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'crecr-n6pbhgjxtl*****',
+ ],
+ 'RuleName' => [
+ 'description' => 'The name of the event notification rule.'."\n",
+ 'type' => 'string',
+ 'example' => 'test-chain',
+ ],
+ ],
+ ],
+ 'example' => '[{\'RuleName\': \'mlf\', \'RuleId\': \'crecr-73q93pgljm1pc2fp\'}]',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"type":"json","example":"{\\n \\"RequestId\\": \\"031572FA-7D8F-4C05-B790-1071E0E05DE6\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RuleNames\\": [\\n {\\n \\"RuleId\\": \\"crecr-n6pbhgjxtl*****\\",\\n \\"RuleName\\": \\"test-chain\\"\\n }\\n ]\\n}","errorExample":""},{"type":"xml","example":"<ListEventCenterRuleNameResponse>\\n <RequestId>031572FA-7D8F-4C05-B790-1071E0E05DE6</RequestId>\\n <Code>success</Code>\\n <IsSuccess>true</IsSuccess>\\n <RuleNames>\\n <RuleId>crecr-n6pbhgjxtl*****</RuleId>\\n <RuleName>test-chain</RuleName>\\n </RuleNames>\\n</ListEventCenterRuleNameResponse>","errorExample":""}]',
+ 'title' => 'ListEventCenterRuleName',
+ ],
+ 'ChangeResourceGroup' => [
+ 'summary' => 'Changes the resource group to which a resource belongs.',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'ResourceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '资源Id',
+ 'description' => 'The ID of the resource.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-8qong6ve5p3mhlgt',
+ ],
+ ],
+ [
+ 'name' => 'ResourceRegionId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '地域Id',
+ 'description' => 'The ID of the region.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cn-shenzhen-finance-1',
+ ],
+ ],
+ [
+ 'name' => 'ResourceGroupId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '目标资源组',
+ 'description' => 'The ID of the resource group to which you want to move the resource.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'rg-aekz5nlvlaksnvi',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'The request ID.'."\n",
+ 'type' => 'string',
+ 'example' => '314CB661-35A5-5F01-A623-3EC6F87FF52F',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'errorCodes' => [
+ 400 => [
+ [
+ 'errorCode' => 'NoPermission.ChangeResourceGroup',
+ 'errorMessage' => 'You are not authorized to change resourcegroup',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceRegionId',
+ 'errorMessage' => 'The ResourceRegionId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceId',
+ 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'MissingParameter.ResourceGroupId',
+ 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing',
+ ],
+ [
+ 'errorCode' => 'InvalidResourceGroup',
+ 'errorMessage' => 'The specified ResourceGroupId is invalid',
+ ],
+ [
+ 'errorCode' => 'SystemError',
+ 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ [
+ 'errorCode' => 'ResourceNotFound',
+ 'errorMessage' => ' The specified resource is not found',
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"314CB661-35A5-5F01-A623-3EC6F87FF52F\\"\\n}","type":"json"}]',
+ 'title' => 'ChangeResourceGroup',
+ ],
+ 'CreateScanRule' => [
+ 'summary' => 'Creates a scan or content analysis rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119395',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ 'FEATUREacrKJDAEQ',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-dqwc**********',
+ ],
+ ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule name'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'default',
+ ],
+ ],
+ [
+ 'name' => 'ScanScope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The scan scope'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* NAMESPACE: namespace.'."\n"
+ .'* REPO: repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'NAMESPACE' => '',
+ 'REPO' => '',
+ ],
+ 'example' => 'NAMESPACE',
+ 'enum' => [
+ 'INSTANCE',
+ 'NAMESPACE',
+ 'REPO',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'TriggerType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'Trigger type'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* AUTO: automatically trigger.'."\n"
+ .'* MANUAL: manually trigger.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'AUTO' => '',
+ 'MANUAL' => '',
+ ],
+ 'example' => 'AUTO',
+ 'enum' => [
+ 'MANUAL',
+ 'AUTO',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Namespaces',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The list of namespaces.'."\n"
+ ."\n"
+ .'* When the scan scope is NAMESPACE, this parameter cannot be empty.'."\n"
+ .'* If the scan scope is REPO, you must specify a unique Namespace for this parameter.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Namespace'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'ns1',
+ 'minLength' => 1,
+ ],
+ 'required' => false,
+ 'minItems' => 0,
+ ],
+ ],
+ [
+ 'name' => 'RepoNames',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The list of repositories.'."\n"
+ ."\n"
+ .'* When the scan scope is NAMESPACE, this parameter must be empty.'."\n"
+ .'* When the scan scope is REPO, this parameter cannot be empty.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The repository name'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'reppo1',
+ 'minLength' => 1,
+ ],
+ 'required' => false,
+ 'minItems' => 0,
+ ],
+ ],
+ [
+ 'name' => 'RepoTagFilterPattern',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The tag that triggers the scan matches the regular expression'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => '.*',
+ ],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The scan type. Valid values:'."\n"
+ ."\n"
+ .'* `VUL`: Products Cloud Security Scanner'."\n"
+ .'* `SBOM`: Product Content Analysis'."\n"
+ ."\n"
+ .'Default value: `VUL`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SBOM' => '',
+ 'VUL' => '',
+ ],
+ 'example' => 'VUL',
+ 'default' => 'VUL',
+ 'enum' => [
+ 'VUL',
+ 'SBOM',
+ ],
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response struct'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Request Id'."\n",
+ 'type' => 'string',
+ 'example' => 'EAEAB520-2456-5BF2-BCB5-AC998DFA3A51',
+ ],
+ 'Code' => [
+ 'description' => 'The returned HTTP or HTTPS status code.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => 'success',
+ ],
+ 'ScanRuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crscnr-k3gdm5vrn2nzf5hw',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EAEAB520-2456-5BF2-BCB5-AC998DFA3A51\\",\\n \\"Code\\": 0,\\n \\"ScanRuleId\\": \\"crscnr-k3gdm5vrn2nzf5hw\\"\\n}","type":"json"}]',
+ 'title' => 'CreateScanRule',
+ 'description' => 'Creates a scan or content analysis rule.'."\n",
+ ],
+ 'DeleteScanRule' => [
+ 'summary' => 'Deletes a scan rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ 'FEATUREacrKJDAEQ',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-kmsiwlxxdcva****',
+ ],
+ ],
+ [
+ 'name' => 'ScanRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'crscnr-aemytkwad2h7fyhb',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response struct'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Request Id'."\n",
+ 'type' => 'string',
+ 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"12589EF7-96E2-4554-AAD7-F7209E88CAD3\\",\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'title' => 'DeleteScanRule',
+ 'description' => 'Deletes a scan rule.'."\n",
+ ],
+ 'ListScanRule' => [
+ 'summary' => 'Lists the scan rules.',
+ 'methods' => [
+ 'get',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119398',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ 'FEATUREacrKJDAEQ',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'cri-upoulewerx*****',
+ ],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '1',
+ ],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'required' => false,
+ 'example' => '30',
+ ],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The type of the vulnerability. Valid values:'."\n"
+ ."\n"
+ .'* `VUL`: Products Cloud Security Scanner.'."\n"
+ .'* `SBOM`: Product Content Analysis.'."\n"
+ ."\n"
+ .'Default value: `VUL`'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'enumValueTitles' => [
+ 'SBOM' => '',
+ 'VUL' => '',
+ ],
+ 'example' => 'SBOM',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response struct.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Request Id'."\n",
+ 'type' => 'string',
+ 'example' => '2CB62B5E-605B-5A23-9110-728B8207A25C',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code'."\n",
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'PageNo' => [
+ 'description' => 'The page number.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the request is successful.'."\n",
+ 'type' => 'boolean',
+ 'example' => 'True',
+ ],
+ 'PageSize' => [
+ 'description' => 'The number of entries per page.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '30',
+ ],
+ 'TotalCount' => [
+ 'description' => 'The total number of entries returned.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int32',
+ 'example' => '1',
+ ],
+ 'ScanRules' => [
+ 'description' => 'The list of scan rules.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of scan rules.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ScanRuleId' => [
+ 'description' => 'The scan rule id.'."\n",
+ 'type' => 'string',
+ 'example' => 'crscnr-2sdveqjhpzd****',
+ ],
+ 'RuleName' => [
+ 'description' => 'The rule name.'."\n",
+ 'type' => 'string',
+ 'example' => 'cicd-prod',
+ ],
+ 'ScanScope' => [
+ 'description' => 'The scan scope.'."\n",
+ 'type' => 'string',
+ 'example' => 'REPO',
+ ],
+ 'TriggerType' => [
+ 'description' => 'The trigger type.'."\n",
+ 'type' => 'string',
+ 'example' => 'AUTO',
+ ],
+ 'Namespaces' => [
+ 'description' => 'The list of namespaces.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The list of namespaces.'."\n",
+ 'type' => 'string',
+ 'example' => 'platform',
+ ],
+ ],
+ 'RepoNames' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'string',
+ 'example' => 'cloud-function-agent',
+ ],
+ ],
+ 'RepoTagFilterPattern' => [
+ 'description' => 'The tag that triggers the scan matches the regular expression.'."\n",
+ 'type' => 'string',
+ 'example' => '.*',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The creation time.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1702361810000',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The update time.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '1764122725000',
+ ],
+ 'ScanType' => [
+ 'description' => 'The scan type. Valid values:'."\n"
+ ."\n"
+ .'* `VUL`: Products Cloud Security Scanner'."\n"
+ .'* `SBOM`: Product Content Analysis'."\n",
+ 'type' => 'string',
+ 'example' => 'SBOM',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"2CB62B5E-605B-5A23-9110-728B8207A25C\\",\\n \\"Code\\": \\"success\\",\\n \\"PageNo\\": 1,\\n \\"IsSuccess\\": true,\\n \\"PageSize\\": 30,\\n \\"TotalCount\\": 1,\\n \\"ScanRules\\": [\\n {\\n \\"ScanRuleId\\": \\"crscnr-2sdveqjhpzd****\\",\\n \\"RuleName\\": \\"cicd-prod\\",\\n \\"ScanScope\\": \\"REPO\\",\\n \\"TriggerType\\": \\"AUTO\\",\\n \\"Namespaces\\": [\\n \\"platform\\"\\n ],\\n \\"RepoNames\\": [\\n \\"cloud-function-agent\\"\\n ],\\n \\"RepoTagFilterPattern\\": \\".*\\",\\n \\"CreateTime\\": 1702361810000,\\n \\"UpdateTime\\": 1764122725000,\\n \\"ScanType\\": \\"SBOM\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'title' => 'ListScanRule',
+ 'description' => 'Lists the scan rules.'."\n",
+ ],
+ 'UpdateScanRule' => [
+ 'summary' => 'Updates a scan rule.',
+ 'methods' => [
+ 'post',
+ ],
+ 'schemes' => [
+ 'http',
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119400',
+ 'abilityTreeNodes' => [
+ 'FEATUREacr7W016P',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The instance ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'cri-4abntrj42twd****',
+ ],
+ ],
+ [
+ 'name' => 'ScanRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crscnr-3qmkeiuggfpjkfrq',
+ ],
+ ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The rule name.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'scan-test',
+ ],
+ ],
+ [
+ 'name' => 'ScanScope',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The scan scope.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* NAMESPACE: namespace.'."\n"
+ .'* REPO: repository.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'NAMESPACE' => '',
+ 'REPO' => '',
+ ],
+ 'example' => 'REPO',
+ 'enum' => [
+ 'INSTANCE',
+ 'NAMESPACE',
+ 'REPO',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'TriggerType',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The trigger type.'."\n"
+ ."\n"
+ .'Valid values:'."\n"
+ ."\n"
+ .'* AUTO: automatically triggers.'."\n"
+ .'* MANUAL: manually triggers.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'enumValueTitles' => [
+ 'AUTO' => '',
+ 'MANUAL' => '',
+ ],
+ 'example' => 'AUTO',
+ 'enum' => [
+ 'AUTO',
+ 'MANUAL',
+ ],
+ ],
+ ],
+ [
+ 'name' => 'Namespaces',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The list of namespaces.'."\n"
+ ."\n"
+ .'* When the scan scope is NAMESPACE, this parameter cannot be empty.'."\n"
+ .'* If the scan scope is REPO, you must specify a unique Namespace for this parameter.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Namespace'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prd',
+ 'minLength' => 1,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RepoNames',
+ 'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The list of repositories.'."\n"
+ ."\n"
+ .'* When the scan scope is NAMESPACE, this parameter must be empty.'."\n"
+ .'* When the scan scope is REPO, this parameter cannot be empty.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The name of the repository.'."\n",
+ 'type' => 'string',
+ 'required' => false,
+ 'example' => 'prod',
+ 'minLength' => 1,
+ ],
+ 'required' => false,
+ ],
+ ],
+ [
+ 'name' => 'RepoTagFilterPattern',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The tag filtering rules.'."\n",
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'prod-.*',
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'The response struct.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => [
+ 'title' => 'Id of the request',
+ 'description' => 'Request Id'."\n",
+ 'type' => 'string',
+ 'example' => '33EF1695-E2B7-5D57-B4E1-3D655FE1EBD8',
+ ],
+ 'Code' => [
+ 'description' => 'The HTTP status code.'."\n",
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => 'success',
+ ],
+ 'ScanRuleId' => [
+ 'description' => 'The rule ID.'."\n",
+ 'type' => 'string',
+ 'example' => 'crscnr-3qmkeiuggfpjkfrq',
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"33EF1695-E2B7-5D57-B4E1-3D655FE1EBD8\\",\\n \\"Code\\": 0,\\n \\"ScanRuleId\\": \\"crscnr-3qmkeiuggfpjkfrq\\"\\n}","type":"json"}]',
+ 'title' => 'UpdateScanRule',
+ 'description' => 'The whitelist of this API operation is available. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket).'."\n",
+ ],
+ 'GetScanRule' => [
+ 'summary' => 'Queries a scan rule.',
+ 'path' => '',
+ 'methods' => [
+ 'post',
+ 'get',
+ ],
+ 'schemes' => [
+ 'https',
+ ],
+ 'security' => [
+ [
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => [
+ 'FEATUREacrLBBNHS',
+ ],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => [
+ 'title' => '实例id',
+ 'description' => 'The instance ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'docRequired' => true,
+ 'example' => 'cri-xkx6vujuhay0****',
+ ],
+ ],
+ [
+ 'name' => 'ScanRuleId',
+ 'in' => 'query',
+ 'schema' => [
+ 'description' => 'The scan rule ID.',
+ 'type' => 'string',
+ 'required' => true,
+ 'example' => 'crscnr-2sdveqjhpzdcafyq',
+ 'maxLength' => 100,
+ 'minLength' => 1,
+ ],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => 'Schema of Response',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => [
+ 'description' => 'Return value',
+ 'type' => 'string',
+ 'example' => 'success',
+ ],
+ 'IsSuccess' => [
+ 'description' => 'Indicates whether the API call was successful, valid values:'."\n"
+ ."\n"
+ .'- `true`: The API call was successful'."\n"
+ ."\n"
+ .'- `false`: The API call failed',
+ 'type' => 'boolean',
+ 'example' => 'true',
+ ],
+ 'RequestId' => [
+ 'description' => 'The request ID.',
+ 'type' => 'string',
+ 'example' => 'C87993B5-7D61-5CAC-8D64-1AC732DD69FF',
+ ],
+ 'ScanRule' => [
+ 'description' => 'The scan rule.',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => [
+ 'description' => 'The instance ID.',
+ 'type' => 'string',
+ 'example' => 'cri-szw6f6bhrky0c8jk',
+ ],
+ 'ScanRuleId' => [
+ 'description' => 'The scan rule ID.',
+ 'type' => 'string',
+ 'example' => 'crscnr-aemytkwad2h7fyhb',
+ ],
+ 'RuleName' => [
+ 'description' => 'The event rule name.',
+ 'type' => 'string',
+ 'example' => 'protection',
+ ],
+ 'ScanScope' => [
+ 'description' => 'The scan scope.',
+ 'type' => 'string',
+ 'example' => 'REPO',
+ ],
+ 'TriggerType' => [
+ 'description' => 'The trigger type, valid values:'."\n"
+ ."\n"
+ .'- `ALL`: All triggers'."\n"
+ ."\n"
+ .'- `TAG_LISTTAG`: Trigger'."\n"
+ ."\n"
+ .'- `TAG_REG_EXP`: Expression trigger',
+ 'type' => 'string',
+ 'example' => 'AUTO',
+ ],
+ 'Namespaces' => [
+ 'description' => 'Names of namespaces where the event is effective.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Names of namespaces where the event is effective.',
+ 'type' => 'string',
+ 'example' => '[\\"lwc-app-group\\"]',
+ ],
+ ],
+ 'RepoNames' => [
+ 'description' => 'Names of repositories where the event is effective.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'Names of repositories where the event is effective',
+ 'type' => 'string',
+ 'example' => '[\\"lesson-kit-api\\",\\"lesson-kit-consumer-gen\\"]',
+ ],
+ ],
+ 'RepoTagFilterPattern' => [
+ 'description' => 'Tag filter pattern for event triggering.',
+ 'type' => 'string',
+ 'example' => '.*',
+ ],
+ 'CreateTime' => [
+ 'description' => 'The creation time.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2018-03-15T17:08Z',
+ ],
+ 'UpdateTime' => [
+ 'description' => 'The update time.',
+ 'type' => 'integer',
+ 'format' => 'int64',
+ 'example' => '2025-08-28T20:07:33.164',
+ ],
+ 'ScanType' => [
+ 'description' => 'The vulnerability type: '."\n"
+ ."\n"
+ .'- `cve`: System vulnerability'."\n"
+ ."\n"
+ .'- `sca`: Application vulnerability',
+ 'type' => 'string',
+ 'example' => 'SBOM',
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ 'staticInfo' => [
+ 'returnType' => 'synchronous',
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C87993B5-7D61-5CAC-8D64-1AC732DD69FF\\",\\n \\"ScanRule\\": {\\n \\"InstanceId\\": \\"cri-szw6f6bhrky0c8jk\\",\\n \\"ScanRuleId\\": \\"crscnr-aemytkwad2h7fyhb\\",\\n \\"RuleName\\": \\"protection\\",\\n \\"ScanScope\\": \\"REPO\\",\\n \\"TriggerType\\": \\"AUTO\\",\\n \\"Namespaces\\": [\\n \\"[\\\\\\\\\\\\\\"lwc-app-group\\\\\\\\\\\\\\"]\\"\\n ],\\n \\"RepoNames\\": [\\n \\"[\\\\\\\\\\\\\\"lesson-kit-api\\\\\\\\\\\\\\",\\\\\\\\\\\\\\"lesson-kit-consumer-gen\\\\\\\\\\\\\\"]\\"\\n ],\\n \\"RepoTagFilterPattern\\": \\".*\\",\\n \\"CreateTime\\": 0,\\n \\"UpdateTime\\": 0,\\n \\"ScanType\\": \\"SBOM\\"\\n }\\n}","type":"json"}]',
+ 'title' => '获取扫描规则',
+ 'description' => 'Get scan rule.',
+ 'translator' => 'machine',
+ ],
+ ],
+ 'endpoints' => [
+ [
+ 'regionId' => 'cn-qingdao',
+ 'endpoint' => 'cr.cn-qingdao.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing',
+ 'endpoint' => 'cr.cn-beijing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhangjiakou',
+ 'endpoint' => 'cr.cn-zhangjiakou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-zhengzhou-jva',
+ 'endpoint' => 'cr.cn-zhengzhou-jva.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-huhehaote',
+ 'endpoint' => 'cr.cn-huhehaote.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu',
+ 'endpoint' => 'cr.cn-wulanchabu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou',
+ 'endpoint' => 'cr.cn-hangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai',
+ 'endpoint' => 'cr.cn-shanghai.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-nanjing',
+ 'endpoint' => 'cr.cn-nanjing.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-fuzhou',
+ 'endpoint' => 'cr.cn-fuzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen',
+ 'endpoint' => 'cr.cn-shenzhen.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan',
+ 'endpoint' => 'cr.cn-heyuan.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-guangzhou',
+ 'endpoint' => 'cr.cn-guangzhou.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-chengdu',
+ 'endpoint' => 'cr.cn-chengdu.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wuhan-lr',
+ 'endpoint' => 'cr.cn-wuhan-lr.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hongkong',
+ 'endpoint' => 'cr.cn-hongkong.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-1',
+ 'endpoint' => 'cr.ap-northeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-northeast-2',
+ 'endpoint' => 'cr.ap-northeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-1',
+ 'endpoint' => 'cr.ap-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-2',
+ 'endpoint' => 'cr.ap-southeast-2.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-3',
+ 'endpoint' => 'cr.ap-southeast-3.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-5',
+ 'endpoint' => 'cr.ap-southeast-5.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-6',
+ 'endpoint' => 'cr.ap-southeast-6.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-east-1',
+ 'endpoint' => 'cr.us-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-west-1',
+ 'endpoint' => 'cr.us-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-west-1',
+ 'endpoint' => 'cr.eu-west-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'eu-central-1',
+ 'endpoint' => 'cr.eu-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-south-1',
+ 'endpoint' => 'cr.ap-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-east-1',
+ 'endpoint' => 'cr.me-east-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-hangzhou-finance',
+ 'endpoint' => 'cr.cn-hangzhou-finance.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shanghai-finance-1',
+ 'endpoint' => 'cr.cn-shanghai-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-shenzhen-finance-1',
+ 'endpoint' => 'cr.cn-shenzhen-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'ap-southeast-7',
+ 'endpoint' => 'cr.ap-southeast-7.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-beijing-finance-1',
+ 'endpoint' => 'cr.cn-beijing-finance-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'me-central-1',
+ 'endpoint' => 'cr.me-central-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-heyuan-acdr-1',
+ 'endpoint' => 'cr.cn-heyuan-acdr-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'na-south-1',
+ 'endpoint' => 'cr.na-south-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'us-southeast-1',
+ 'endpoint' => 'cr.us-southeast-1.aliyuncs.com',
+ ],
+ [
+ 'regionId' => 'cn-wulanchabu-gic-1',
+ 'endpoint' => 'cr.cn-wulanchabu-gic-1.aliyuncs.com',
+ ],
+ ],
+];