summaryrefslogtreecommitdiff
path: root/data/en_us/cr
diff options
context:
space:
mode:
authorZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
committerZhineng Li <im@zhineng.li>2026-07-12 17:11:17 +0800
commit1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 (patch)
tree5f0857666365b7e40cdaa3733ebe1f3ba9e13c67 /data/en_us/cr
parent7347bac4ab7e136157fc94777e6cf87ef9e08599 (diff)
downloadafterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.tar.gz
afterglow-metadata-full-1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634.zip
update APIs 20260712
Diffstat (limited to 'data/en_us/cr')
-rw-r--r--data/en_us/cr/2018-12-01/api-docs.php23058
1 files changed, 9269 insertions, 13789 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
index 8ba3a6e..0d9d6ae 100644
--- a/data/en_us/cr/2018-12-01/api-docs.php
+++ b/data/en_us/cr/2018-12-01/api-docs.php
@@ -1,323 +1,210 @@
<?php return [
'version' => '1.0',
- 'info' => [
- 'style' => 'RPC',
- 'product' => 'cr',
- 'version' => '2018-12-01',
- ],
+ 'info' => ['style' => 'RPC', 'product' => 'cr', 'version' => '2018-12-01'],
'directories' => [
[
- 'id' => 195681,
- 'title' => 'Artifact Subscription Management',
+ 'children' => ['GetArtifactSubscriptionRule', 'ListArtifactSubscriptionRule'],
'type' => 'directory',
- 'children' => [
- 'UpdateArtifactSubscriptionRule',
- 'DeleteArtifactSubscriptionRule',
- 'ListArtifactSubscriptionTask',
- 'GetArtifactSubscriptionRule',
- 'GetArtifactSubscriptionTaskResult',
- 'CreateArtifactSubscriptionRule',
- 'ListArtifactSubscriptionRule',
- 'GetArtifactSubscriptionTask',
- 'CreateArtifactSubscriptionTask',
- ],
+ 'title' => 'Artifact subscription management',
],
[
- 'id' => 191665,
- 'title' => 'ArtifactLifecycle Management',
+ 'children' => ['ListArtifactLifecycleRule', 'GetArtifactLifecycleRule'],
'type' => 'directory',
- 'children' => [
- 'UpdateArtifactLifecycleRule',
- 'ListArtifactLifecycleRule',
- 'GetArtifactLifecycleRule',
- 'DeleteArtifactLifecycleRule',
- 'CreateArtifactLifecycleRule',
- ],
+ 'title' => 'Artifact lifecycle management',
],
[
- 'id' => 188192,
- 'title' => 'Tag',
+ 'children' => ['CreateStorageDomainRoutingRule', 'DeleteStorageDomainRoutingRule', 'GetStorageDomainRoutingRule', 'UpdateStorageDomainRoutingRule'],
'type' => 'directory',
- 'children' => [
- 'TagResources',
- 'UntagResources',
- 'ListTagResources',
- ],
+ 'title' => 'Instance storage management',
],
[
- 'id' => 336341,
- 'title' => 'Instance Storage Management',
+ 'children' => ['GetInstance'],
'type' => 'directory',
- 'children' => [
- 'CreateStorageDomainRoutingRule',
- 'DeleteStorageDomainRoutingRule',
- 'GetStorageDomainRoutingRule',
- 'UpdateStorageDomainRoutingRule',
- ],
+ 'title' => 'Instance management',
],
[
- 'id' => 112035,
- 'title' => 'Instances',
+ 'children' => ['GetInstanceVpcEndpoint'],
'type' => 'directory',
- 'children' => [
- 'GetInstance',
- 'GetInstanceUsage',
- 'ListInstanceRegion',
- 'ListInstance',
- 'GetInstanceCount',
- ],
+ 'title' => 'Instance access control management',
],
[
- 'id' => 112041,
- 'title' => 'Instance endpoints',
+ 'children' => ['CreateRepoSyncTask', 'ListRepoSyncTask', 'ListRepoSyncRule'],
'type' => 'directory',
- 'children' => [
- 'CreateInstanceVpcEndpointLinkedVpc',
- 'CreateInstanceEndpointAclPolicy',
- 'DeleteInstanceEndpointAclPolicy',
- 'DeleteInstanceVpcEndpointLinkedVpc',
- 'UpdateInstanceEndpointStatus',
- 'GetInstanceEndpoint',
- 'ListInstanceEndpoint',
- 'GetInstanceVpcEndpoint',
- ],
+ 'title' => 'Instance synchronization management',
],
[
- 'id' => 112050,
- 'title' => 'Instance replication',
+ 'children' => ['CreateNamespace', 'UpdateNamespace', 'GetNamespace', 'ListNamespace'],
'type' => 'directory',
- 'children' => [
- 'CreateRepoSyncTaskByRule',
- 'CreateRepoSyncRule',
- 'CreateRepoSyncTask',
- 'DeleteRepoSyncRule',
- 'ListRepoSyncTask',
- 'ListRepoSyncRule',
- 'GetRepoSyncTask',
- 'CancelRepoSyncTask',
- ],
+ 'title' => 'Image namespace management',
],
[
- 'id' => 112058,
- 'title' => 'Image namespaces',
+ 'children' => ['UpdateRepository', 'ListRepository'],
'type' => 'directory',
- 'children' => [
- 'CreateNamespace',
- 'DeleteNamespace',
- 'UpdateNamespace',
- 'GetNamespace',
- 'ListNamespace',
- ],
+ 'title' => 'Image repository management',
],
[
- 'id' => 112064,
- 'title' => 'Image repositories',
+ 'children' => ['ListRepoTag', 'GetRepoTag'],
'type' => 'directory',
- 'children' => [
- 'CreateRepository',
- 'DeleteRepository',
- 'UpdateRepository',
- 'ListRepository',
- 'GetRepository',
- ],
+ 'title' => 'Image management',
],
[
- 'id' => 112070,
- 'title' => 'Images',
+ 'children' => ['CreateRepoTagScanTask', 'GetRepoTagScanStatus', 'GetRepoTagScanSummary'],
'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',
- ],
+ 'title' => 'Image security management',
],
[
- 'id' => 112108,
- 'title' => 'Helm chart repositories',
+ 'children' => ['ListRepoBuildRule'],
'type' => 'directory',
- 'children' => [
- 'CreateChartRepository',
- 'DeleteChartRepository',
- 'UpdateChartRepository',
- 'ListChartRepository',
- 'GetChartRepository',
- ],
+ 'title' => 'Image build management',
],
[
- 'id' => 112114,
- 'title' => 'Helm chart versions',
+ 'children' => ['GetAuthorizationToken'],
'type' => 'directory',
- 'children' => [
- 'DeleteChartRelease',
- 'ListChartRelease',
- ],
+ 'title' => 'Access credential management',
],
[
- 'id' => 112117,
- 'title' => 'Credentials',
+ 'children' => ['GetArtifactBuildRule', 'GetArtifactBuildTask'],
'type' => 'directory',
- 'children' => [
- 'GetAuthorizationToken',
- 'ResetLoginPassword',
- ],
+ 'title' => 'Artifact build',
],
[
- 'id' => 112120,
- 'title' => 'Artifact building',
+ 'children' => ['GetChain'],
'type' => 'directory',
- 'children' => [
- 'CancelArtifactBuildTask',
- 'GetArtifactBuildRule',
- 'GetArtifactBuildTask',
- 'CreateArtifactBuildRule',
- 'ListArtifactBuildTaskLog',
- ],
+ 'title' => 'Cloud native delivery chain management',
],
[
- 'id' => 112124,
- 'title' => 'Cloud-native delivery chains',
- 'type' => 'directory',
'children' => [
- 'CreateChain',
- 'DeleteChain',
- 'UpdateChain',
- 'GetChain',
- 'ListChain',
- 'ListChainInstance',
+ 'CreateScanRule', 'DeleteScanRule', 'ListScanRule', 'UpdateScanRule', 'GetScanRule', 'CancelArtifactBuildTask', 'CancelRepoBuildRecord', 'CancelRepoSyncTask', 'ChangeResourceGroup', 'CreateArtifactBuildRule', 'CreateArtifactLifecycleRule', 'CreateArtifactSubscriptionRule', 'CreateArtifactSubscriptionTask', 'CreateBuildRecordByRecord', 'CreateBuildRecordByRule', 'CreateChain', 'CreateChartNamespace', 'CreateChartRepository', 'CreateInstanceCustomizedDomain', 'CreateInstanceEndpointAclPolicy',
+ 'CreateInstanceVpcEndpointLinkedVpc', 'CreateRepoBuildRule', 'CreateRepoSourceCodeRepo', 'CreateRepoSyncRule', 'CreateRepoSyncTaskByRule', 'CreateRepoTag', 'CreateRepoTrigger', 'CreateRepository', 'DeleteArtifactLifecycleRule', 'DeleteArtifactSubscriptionRule', 'DeleteChain', 'DeleteChartNamespace', 'DeleteChartRelease', 'DeleteChartRepository', 'DeleteEventCenterRule', 'DeleteInstanceCustomizedDomain', 'DeleteInstanceEndpointAclPolicy', 'DeleteInstanceVpcEndpointLinkedVpc', 'DeleteNamespace', 'DeleteRepoBuildRule',
+ 'DeleteRepoSyncRule', 'DeleteRepoTag', 'DeleteRepoTrigger', 'DeleteRepository', 'GetArtifactSubscriptionTask', 'GetArtifactSubscriptionTaskResult', 'GetChartNamespace', 'GetChartRepository', 'GetInstanceCount', 'GetInstanceCustomizedDomain', 'GetInstanceEndpoint', 'GetInstanceUsage', 'GetRepoBuildRecord', 'GetRepoBuildRecordStatus', 'GetRepoSourceCodeRepo', 'GetRepoSyncTask', 'GetRepository', 'ListArtifactBuildTaskLog', 'ListArtifactSubscriptionTask', 'ListChain',
+ 'ListChainInstance', 'ListChartNamespace', 'ListChartRelease', 'ListChartRepository', 'ListEventCenterRecord', 'ListEventCenterRuleName', 'ListInstance', 'ListInstanceEndpoint', 'ListInstanceRegion', 'ListRepoBuildRecord', 'ListRepoBuildRecordLog', 'ListRepoTagScanResult', 'ListRepoTrigger', 'ListScanBaselineByTask', 'ListScanMaliciousFileByTask', 'ListTagResources', 'ResetLoginPassword', 'TagResources', 'UntagResources', 'UpdateArtifactLifecycleRule',
+ 'UpdateArtifactSubscriptionRule', 'UpdateChain', 'UpdateChartNamespace', 'UpdateChartRepository', 'UpdateEventCenterRule', 'UpdateInstanceCustomizedDomain', 'UpdateInstanceEndpointStatus', 'UpdateRepoBuildRule', 'UpdateRepoSourceCodeRepo', 'UpdateRepoTrigger',
],
- ],
- [
- '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',
+ 'AccessControlEntry' => [
'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',
+ 'Entry' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Comment' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ArtifactLifecyclePolicy' => [
+ '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'],
+ ],
+ ],
+ ],
+ ],
+ 'DiagnosisIssue' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Level' => [
+ 'title' => '',
+ 'description' => 'Specifies the severity of the issue. Valid values are `INFO`, `WARN`, and `ERROR`.',
+ 'type' => 'string',
+ 'example' => 'INFO',
+ 'enum' => ['INFO', 'WARN', 'FATAL'],
+ ],
+ 'Code' => ['title' => '', 'description' => 'A unique code that identifies the issue type.', 'type' => 'string', 'example' => 'RepoNumOverLimit'],
+ 'FirstOccurrence' => ['title' => '', 'description' => 'The time, in ISO 8601 format, when the issue was first detected.', 'type' => 'string', 'example' => '2026-01-01T00:00:00+08:00', 'format' => 'iso8601_normal'],
+ 'LastOccurrence' => ['title' => '', 'description' => 'The time, in ISO 8601 format, when the issue was last detected.', 'type' => 'string', 'example' => '2026-01-01T00:30:00+08:00', 'format' => 'iso8601_normal'],
+ 'OccurrenceCount' => ['title' => '', 'description' => 'The total number of times the issue has occurred.', 'type' => 'integer', 'example' => '10', 'format' => 'int64'],
+ 'Solution' => ['title' => '', 'description' => 'The recommended action to resolve the issue.', 'type' => 'string', 'example' => 'Buy repository quota'],
+ 'Extra' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'A custom key-value pair that provides additional details about the issue. The key and its value are both strings.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'An object that contains additional, unstructured key-value information about the issue.',
+ 'example' => '',
+ ],
+ ],
+ 'description' => 'Provides details about a diagnosis issue.',
+ 'example' => '',
+ ],
+ 'DiagnosisTarget' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'properties' => [
+ 'Namespace' => ['title' => '', 'description' => 'The namespace that contains the repository.', 'type' => 'string', 'example' => 'test_namespace'],
+ 'Repository' => ['title' => '', 'description' => 'The name of the repository.', 'type' => 'string', 'example' => 'test_repo'],
+ 'Tag' => ['title' => '', 'description' => 'The container image tag.', 'type' => 'string', 'example' => 'latest'],
+ 'RelatedId' => ['title' => '', 'description' => 'The ID of a related operation, such as a previous diagnostic task.', 'type' => 'string', 'example' => ''],
+ 'StartTime' => ['title' => '', 'description' => 'The start of the diagnostic time window, in ISO 8601 format.', 'type' => 'string', 'example' => '2026-01-01T00:00:00+08:00', 'format' => 'iso8601_normal'],
+ 'EndTime' => ['title' => '', 'description' => 'The end of the diagnostic time window, in ISO 8601 format. Must be after `StartTime`.', 'type' => 'string', 'example' => '2026-01-01T00:30:00+08:00', 'format' => 'iso8601_normal'],
+ 'Extra' => [
+ 'title' => '',
+ 'type' => 'object',
+ 'additionalProperties' => ['description' => 'The value of a key-value pair in the `Extra` map.', 'type' => 'string', 'title' => '', 'example' => ''],
+ 'description' => 'A map of key-value pairs providing additional context for the diagnosis.',
+ 'example' => '',
],
- 'StorageDomain' => [
- 'description' => 'OSS Domain',
- 'visibility' => 'Public',
+ ],
+ 'description' => 'Specifies the resource to diagnose.',
+ 'example' => '',
+ ],
+ 'RepoConfiguration' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoType' => [
'type' => 'string',
'required' => true,
- 'example' => 'https://cri-cfafawer***-registry.oss-cn-hangzhou.aliyuncs.com',
- 'backendName' => 'storageDomain',
+ 'enum' => ['PRIVATE', 'PUBLIC'],
],
+ 'TagImmutability' => ['type' => 'boolean', 'required' => true],
+ 'ArtifactBuildRuleParameters' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageIndexOnly' => ['type' => 'boolean', 'required' => true],
+ ],
+ ],
+ ],
+ ],
+ 'RouteItem' => [
+ 'description' => 'Instance Storage Routing Item',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceDomain' => ['description' => 'Instance Domain', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''],
+ 'StorageDomain' => ['description' => 'OSS Domain', 'type' => 'string', 'required' => true, 'title' => '', 'example' => ''],
'EndpointType' => [
'description' => 'Instance Endpoint Type',
- 'visibility' => 'Public',
'type' => 'string',
'required' => true,
- 'example' => 'Internet',
- 'nullable' => false,
- 'backendName' => 'endpointType',
- 'enum' => [
- 'Internet',
- 'VPC',
- ],
+ 'enum' => ['Internet', 'VPC'],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'title' => '',
+ 'example' => '',
],
],
],
'apis' => [
- 'UpdateArtifactSubscriptionRule' => [
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CancelArtifactBuildTask' => [
+ 'methods' => ['post', 'put'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -325,172 +212,84 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '141835',
- 'abilityTreeNodes' => [
- 'FEATUREacr5ED6LF',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'systemTags' => ['operationType' => 'delete', '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",
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'BuildTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crasr-mdbpung4i1rm****',
- ],
+ 'schema' => ['description' => 'The ID of the artifact building task.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i2ei-12****', 'title' => ''],
],
- [
- 'name' => 'SourceProvider',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'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',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002', 'title' => ''],
],
- '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",
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [],
+ 'title' => 'CancelArtifactBuildTask',
+ 'summary' => 'Cancels an artifact building task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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",
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:CancelArtifactBuildTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
+ ],
],
],
+ ],
+ '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":""}]',
+ ],
+ 'CancelRepoBuildRecord' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TagCount',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of subscribed images.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '1',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'delete', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
[
- 'name' => 'Override',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'Specifies whether to overwrite the original image.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'Accelerate',
+ 'name' => 'RepoId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
[
- 'name' => 'Platform',
+ 'name' => 'BuildRecordId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '74FDBA62-30C0-4F22-BE7B-F1D36FD1****', 'title' => ''],
],
],
'responses' => [
@@ -498,74 +297,70 @@
'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",
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'CancelRepoBuildRecord',
+ 'summary' => 'Cancels a repository building record.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:CancelBuildRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'CancelRepoSyncTask' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'readAndWrite',
'deprecated' => false,
'systemTags' => [
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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-c0o11woew0k****'."\n",
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'SyncTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crasr-mdbpung4i1rm****'."\n",
- ],
+ 'schema' => ['description' => 'The ID of the replication task.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rst-biu4u4pm4it5****', 'title' => ''],
],
],
'responses' => [
@@ -573,312 +368,161 @@
'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",
- ],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C', 'title' => ''],
+ 'Code' => ['description' => 'The response code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the CancelRepoSyncTask request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SYNC_TASK_NOT_EXIST', 'errorMessage' => 'Sync task is not exist.', 'description' => ''],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ['errorCode' => 'AUTHENTICATION_FAILED', 'errorMessage' => 'Authentication failed.', 'description' => 'Authentication failed.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CancelRepoSyncTask',
+ 'summary' => 'Cancels a single replication task.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:CancelRepoSyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
],
- '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.',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EB9C5722-51E2-4497-A573-575B0CA5CE0C\\",\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true\\n}","type":"json"}]',
],
- 'ListArtifactSubscriptionTask' => [
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ChangeResourceGroup' => [
+ 'summary' => 'Changes the resource group to which a resource belongs.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'systemTags' => ['operationType' => 'update'],
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'ResourceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-m9ob8792vm****',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the resource.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cri-8qong6ve5p3mhlgt'],
],
[
- 'name' => 'PageNo',
+ 'name' => 'ResourceRegionId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the region.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-shenzhen-finance-1'],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ResourceGroupId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ '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' => '',
+ 'description' => 'Schema of Response'."\n",
'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',
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '314CB661-35A5-5F01-A623-3EC6F87FF52F'],
],
- 'description' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ 400 => [
+ ['errorCode' => 'NoPermission.ChangeResourceGroup', 'errorMessage' => 'You are not authorized to change resourcegroup', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceRegionId', 'errorMessage' => 'The ResourceRegionId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceId', 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceGroupId', 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing', 'description' => ''],
+ ['errorCode' => 'InvalidResourceGroup', 'errorMessage' => 'The specified ResourceGroupId is invalid', 'description' => ''],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => ''],
+ ['errorCode' => 'ResourceNotFound', 'errorMessage' => ' The specified resource is not found', 'description' => ''],
],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ],
+ 'title' => 'ChangeResourceGroup',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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.',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"314CB661-35A5-5F01-A623-3EC6F87FF52F\\"\\n}","type":"json"}]',
],
- 'GetArtifactSubscriptionRule' => [
- 'summary' => 'Queries the information about an artifact subscription rule.',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateArtifactBuildRule' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '141837',
- 'abilityTreeNodes' => [
- 'FEATUREacr5ED6LF',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-c0o11woew0k****'."\n",
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-cxreylqvcyje****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'ScopeType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crasr-mdbpung4i1rm****'."\n",
- ],
+ 'schema' => ['description' => 'The effective range of the rule. Valid values:'."\n"
+ ."\n"
+ .'* `REPOSITORY`'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'REPOSITORY', 'title' => ''],
+ ],
+ [
+ '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****', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Parameters',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => ['description' => 'Additional parameters.'."\n", 'type' => 'object', 'required' => false, 'example' => '{}', 'title' => ''],
],
],
'responses' => [
@@ -886,162 +530,55 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'C8E90AB5-0A96-5D12-9E59-11EE46360642', 'title' => ''],
+ 'BuildRuleId' => ['description' => 'The ID of the accelerated image building rule.'."\n", 'type' => 'string', 'example' => 'crabr-7dfa5qye5****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
- [],
],
- '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',
+ '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.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"C8E90AB5-0A96-5D12-9E59-11EE46360642\\",\\n \\"BuildRuleId\\": \\"crabr-7dfa5qye5****\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'CreateArtifactLifecycleRule' => [
+ 'summary' => 'Creates a lifecycle management rule for an artifact.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '141857',
- 'abilityTreeNodes' => [
- 'FEATUREacr5ED6LF',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrQD2ZKV'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -1049,46 +586,47 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-90fxryf9pwf****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-gbwfk7qbgrxe****', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'Auto',
'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'Specify whether to automatically execute the lifecycle management rule.', 'type' => 'boolean', 'required' => false, 'docRequired' => true, 'example' => 'false', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ScheduleTime',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The execution cycle of the lifecycle management rule.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'WEEK', 'title' => ''],
],
[
- 'name' => 'TaskId',
+ 'name' => 'NamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The task ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crast-y64sq01bgad****',
- ],
+ 'schema' => ['description' => 'The name of the namespace.', 'type' => 'string', 'required' => false, 'example' => 'dev-backend', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the image repository.', 'type' => 'string', 'required' => false, 'example' => 'test_1', 'title' => ''],
+ ],
+ [
+ '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-.*', 'title' => ''],
+ ],
+ [
+ 'name' => 'RetentionTagCount',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of images that you want to retain.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '30', 'title' => ''],
+ ],
+ [
+ 'name' => 'EnableDeleteTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specify whether to enable lifecycle management for the artifact.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The deletion scope.', 'type' => 'string', 'required' => false, 'example' => 'INSTANCE', 'title' => ''],
],
],
'responses' => [
@@ -1096,130 +634,48 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '0AA66379-B880-5123-9F6A-96BB25D****', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'cralr-b6thg027zmk1****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'CreateArtifactLifecycleRule',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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.',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"0AA66379-B880-5123-9F6A-96BB25D****\\",\\n \\"RuleId\\": \\"cralr-b6thg027zmk1****\\"\\n}","type":"json"}]',
],
'CreateArtifactSubscriptionRule' => [
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -1230,9 +686,7 @@
'systemTags' => [
'operationType' => 'create',
'abilityTreeCode' => '141828',
- 'abilityTreeNodes' => [
- 'FEATUREacr5ED6LF',
- ],
+ 'abilityTreeNodes' => ['FEATUREacr5ED6LF'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -1240,13 +694,7 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-c0o11woew0k****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-c0o11woew0k****', 'title' => ''],
],
[
'name' => 'SourceProvider',
@@ -1261,97 +709,51 @@
.'* QUAY: Quay.io'."\n",
'type' => 'string',
'required' => true,
- 'enumValueTitles' => [
- 'DOCKER_HUB' => 'Docker Hub',
- 'GCR' => 'GCR',
- 'QUAY' => 'Quay.io',
- ],
+ 'enumValueTitles' => ['DOCKER_HUB' => 'Docker Hub', 'GCR' => 'GCR', 'QUAY' => 'Quay.io'],
'example' => 'DOCKER_HUB',
+ 'title' => '',
],
],
[
'name' => 'SourceNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The source namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'library',
- ],
+ 'schema' => ['description' => 'The source namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'library', 'title' => ''],
],
[
'name' => 'SourceRepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The source repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'nginx',
- ],
+ 'schema' => ['description' => 'The source repository.'."\n", 'type' => 'string', 'required' => true, 'example' => 'nginx', 'title' => ''],
],
[
'name' => 'NamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the Container Registry namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test-ns',
- ],
+ 'schema' => ['description' => 'The name of the Container Registry namespace.'."\n", 'type' => 'string', 'required' => true, 'example' => 'test-ns', 'title' => ''],
],
[
'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the Container Registry repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'test-repo',
- ],
+ 'schema' => ['description' => 'The name of the Container Registry repository.'."\n", 'type' => 'string', 'required' => true, 'example' => 'test-repo', 'title' => ''],
],
[
'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.*',
- ],
+ 'schema' => ['description' => 'The image tag in the subscription source repository. Regular expressions are supported.'."\n", 'type' => 'string', 'required' => true, 'example' => 'release-v.*', 'title' => ''],
],
[
'name' => 'TagCount',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of subscribed images.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => true,
- 'example' => '1',
- 'maximum' => '30',
- 'minimum' => '1',
- ],
+ 'schema' => ['description' => 'The number of subscribed images.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => true, 'example' => '1', 'maximum' => '30', 'minimum' => '1', 'title' => ''],
],
[
'name' => 'Override',
'in' => 'query',
- 'schema' => [
- 'description' => 'Indicates whether the original image is overwritten.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'Indicates whether the original image is overwritten.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'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',
- ],
+ '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', 'title' => ''],
],
[
'name' => 'Platform',
@@ -1373,18 +775,14 @@
.'* 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',
- ],
+ 'enumValueTitles' => ['linux/arm' => 'linux/arm', 'windows/x86' => 'windows/x86', '*/*' => '*/*', 'linux/arm64' => 'linux/arm64', 'windows/x86-64' => 'windows/x86-64', 'linux/amd64' => 'linux/amd64'],
'example' => '*/*',
+ 'title' => '',
],
'required' => true,
'maxItems' => 200,
+ 'title' => '',
+ 'example' => '',
],
],
],
@@ -1393,112 +791,67 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '02B27D80-FD32-5155-931A-93700779BB9E', 'title' => ''],
+ 'RuleId' => ['description' => 'The ID of the artifact subscription rule.'."\n", 'type' => 'string', 'example' => 'crasr-lxdfele7dg4****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown 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',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\",\\n \\"RuleId\\": \\"crasr-lxdfele7dg4****\\"\\n}","type":"json"}]',
+ ],
+ 'CreateArtifactSubscriptionTask' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'list',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '141842',
- 'abilityTreeNodes' => [
- 'FEATUREacr5ED6LF',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4ec5xvj4j0l****', 'title' => ''],
],
[
- 'name' => 'PageNo',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
- ],
- [
- 'name' => 'PageSize',
+ 'name' => 'RuleId',
'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',
- ],
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crasr-88s7vmelc3m****', 'title' => ''],
],
],
'responses' => [
@@ -1506,223 +859,63 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '132D314B-BDD4-564C-89FE-3E2BAE115239', 'title' => ''],
+ 'TaskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => 'crast-40le4es9yh0p****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ 'title' => 'CreateArtifactSubscriptionTask',
+ 'summary' => 'Creates an artifact subscription task.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"132D314B-BDD4-564C-89FE-3E2BAE115239\\",\\n \\"TaskId\\": \\"crast-40le4es9yh0p****\\"\\n}","type":"json"}]',
],
- 'GetArtifactSubscriptionTask' => [
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateBuildRecordByRecord' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****'."\n", 'title' => ''],
],
[
- 'name' => 'TaskId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The task ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crast-40le4es9yh0p****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-hnoq7j93or3k****'."\n", 'title' => ''],
+ ],
+ [
+ '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", 'title' => ''],
],
],
'responses' => [
@@ -1730,177 +923,72 @@
'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',
- ],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB'."\n", 'title' => ''],
+ 'BuildRecordId' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'example' => 'crbr-ly77w5i3t31f****'."\n", 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateBuildRecordByRecord',
+ 'summary' => 'Creates an image building record based on an existing record.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:BuildRepositoryByRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
],
],
- '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.',
+ '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"}]',
],
- 'CreateArtifactSubscriptionTask' => [
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateBuildRecordByRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-4ec5xvj4j0l****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-asd6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crasr-88s7vmelc3m****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-8dz3aedjqlmk****', 'title' => ''],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the image building rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crbr-1j95g4bu2s1i****', 'title' => ''],
],
],
'responses' => [
@@ -1908,61 +996,60 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'B01B8857-A16E-40E9-A37E-764F15776FAA', 'title' => ''],
+ 'BuildRecordId' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'example' => '0A311FC5-B8C6-4332-80E4-539EB73****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'CreateBuildRecordByRule',
+ 'summary' => 'Creates an image building record based on a rule.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:BuildRepositoryByRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'CreateChain' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'high',
+ 'operationType' => 'create',
+ 'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrQD2ZKV',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrPRPOYY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -1970,107 +1057,131 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-r6ym0lerldp****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'Auto',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'Specifies whether to automatically execute the lifecycle management rule.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'false',
- ],
+ 'schema' => ['description' => 'The repository name.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
],
[
- 'name' => 'ScheduleTime',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The execution cycle of the lifecycle management rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'WEEK',
- ],
+ 'schema' => ['description' => 'The namespace name.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-ns',
- ],
+ 'schema' => ['description' => 'The name of the delivery chain.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'RepoName',
+ 'name' => 'Description',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_1',
- ],
+ 'schema' => ['description' => 'The description of the delivery chain.', 'type' => 'string', 'required' => false, 'example' => 'description', 'title' => ''],
],
[
- 'name' => 'TagRegexp',
+ 'name' => 'ChainConfig',
'in' => 'query',
- 'schema' => [
- 'description' => 'The regular expression that indicates which image tags you want to retain.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '.*production_.*',
- ],
+ 'schema' => ['description' => 'The JSON-serialized entity object that describes the delivery chain.', 'type' => 'string', 'required' => false, 'example' => 'chainconfig', 'title' => ''],
],
[
- 'name' => 'RetentionTagCount',
+ 'name' => 'ScopeExclude',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The number of images that you want to retain.'."\n",
- 'type' => 'integer',
- 'format' => 'int64',
+ 'description' => 'The collection of repositories excluded from the delivery chain execution.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The repository names excluded from the delivery chain execution. Separate multiple repository names with commas (,).', 'type' => 'string', 'required' => false, 'example' => 'repo_name1,repo_name2', 'title' => ''],
'required' => false,
- 'example' => '30',
+ 'maxItems' => 50,
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'EnableDeleteTag',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'Specifies whether to enable lifecycle management for the artifact.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'ChainId' => ['description' => 'The delivery chain ID.', 'type' => 'string', 'example' => 'chi-02ymhtwl3cq8****', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the operation is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '4BC03B36-E515-5806-99AC-268AE3C0****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Create a delivery chain',
+ 'summary' => 'Creates a delivery chain.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'RuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cralr-luq6qiegzvx****',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"ChainId\\": \\"chi-02ymhtwl3cq8****\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"4BC03B36-E515-5806-99AC-268AE3C0****\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'CreateChartNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Scope',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'create', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The deletion scope of artifacts.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'REPO',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace01', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -2078,101 +1189,88 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '724402D0-75CD-4794-BC20-7D3720823AE0', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'CreateChartNamespace',
+ 'summary' => 'Creates a chart namespace in an instance.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'CreateChartRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrQD2ZKV',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'create', '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.',
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo01', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'RepoNamespaceName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace01', 'title' => ''],
],
[
- 'name' => 'EnableDeleteTag',
+ 'name' => 'RepoType',
'in' => 'query',
- 'schema' => [
- 'description' => 'Specifies whether to enable lifecycle management for the artifact.',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The summary of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'summary', 'title' => ''],
],
],
'responses' => [
@@ -2180,201 +1278,64 @@
'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.',
- ],
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crcr-2micxey5ewj4****', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '60390244-A483-491A-B41D-F866C95380A1', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateChartRepository',
+ 'summary' => 'Creates a chart repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- 'GetArtifactLifecycleRule' => [
- 'summary' => 'Queries the lifecycle management rules of an artifact.',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateInstanceCustomizedDomain' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrQD2ZKV',
- ],
+ 'abilityTreeNodes' => ['FEATUREacr9LPARH'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -2382,24 +1343,27 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-hpdfkc6utbaq****'."\n",
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xxxxxx', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cralr-a18bkiajy81****',
- ],
+ 'schema' => ['description' => 'The custom module name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'Registry', 'title' => ''],
+ ],
+ [
+ 'name' => 'Domain',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The custom domain name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test.com', 'title' => ''],
+ ],
+ [
+ 'name' => 'CertId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the custom domain name certificate.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '21428921', 'title' => ''],
+ ],
+ [
+ 'name' => 'CertRegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region to which the certificate belongs.', 'type' => 'string', 'default' => 'cn-hangzhou', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
@@ -2407,184 +1371,89 @@
'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',
- ],
- ],
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '1FA54F8C-8849-57F9-8069-F5F15EE82BE2', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
+ 'title' => 'Create instance custom domain name',
+ 'summary' => 'Creates a custom domain name for an instance.',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"1FA54F8C-8849-57F9-8069-F5F15EE82BE2\\"\\n}","type":"json"}]',
+ ],
+ 'CreateInstanceEndpointAclPolicy' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrQD2ZKV',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-brlg4cbj2ylkrqqq',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'EndpointType',
'in' => 'query',
+ 'schema' => ['description' => 'The endpoint type. Only Internet is supported.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet', 'title' => ''],
+ ],
+ [
+ 'name' => 'Entry',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The IP address range that is allowed to access the instance.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'docRequired' => false, 'example' => '192.168.1.1/32', 'title' => ''],
+ ],
+ [
+ 'name' => 'Comment',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The description.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'test', 'title' => ''],
+ ],
+ [
+ 'name' => 'ModuleName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The module for which you want to set the access policy. Valid values:'."\n"
+ ."\n"
+ .'- `Registry`: access the image repository'."\n"
+ ."\n"
+ .'- `Chart`: access Helm Chart', 'type' => 'string', 'required' => false, 'example' => 'Registry', 'title' => ''],
+ ],
+ [
+ 'name' => 'Entries',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => 'The rule ID.',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cralr-3v8pao9k7chb8q62',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/AccessControlEntry', 'description' => '', 'title' => '', 'example' => ''],
+ 'maxItems' => 50,
+ 'minItems' => 1,
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
@@ -2593,68 +1462,66 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The call is successful.'."\n"
+ ."\n"
+ .'- `false`: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D735C5EC-4206-4F48-A090-307BF56BEB99', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SLB_SERVICE_ERROR', 'errorMessage' => 'Bad request for this user.', 'description' => 'An exception occurred while calling the SLB service, the call failed'],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Create a whitelist policy for an instance access endpoint (public network only)',
+ 'summary' => 'Creates a whitelist policy for an instance access endpoint (public network only).',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateInstanceEndpointAclPolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"001AB638-C99B-5A27-8AC9-B2DBABFFEBB5\\"\\n}","type":"json"}]',
- 'title' => 'DeleteArtifactLifecycleRule',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"D735C5EC-4206-4F48-A090-307BF56BEB99\\"\\n}","type":"json"}]',
],
- 'CreateArtifactLifecycleRule' => [
- 'summary' => 'Creates a lifecycle management rule for an artifact.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateInstanceVpcEndpointLinkedVpc' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
- 'riskType' => 'high',
+ 'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrQD2ZKV',
- ],
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -2662,96 +1529,35 @@
[
'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',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test_1',
- ],
- ],
- [
- 'name' => 'TagRegexp',
+ 'name' => 'VpcId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The regular expression that is used to indicate which image tags are retained.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'release-.*',
- ],
+ 'schema' => ['description' => 'The VPC ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vpc-uf6pa68zxnnlc48dd****', 'title' => ''],
],
[
- 'name' => 'RetentionTagCount',
+ 'name' => 'VswitchId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of images that you want to retain.',
- 'type' => 'integer',
- 'format' => 'int64',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The ID of the vSwitch that is associated with the specified VPC.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vsw-uf6u0kn8x2gbzxfn2****', 'title' => ''],
],
[
- 'name' => 'EnableDeleteTag',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'schema' => [
- 'description' => 'Specify whether to enable lifecycle management for the artifact.',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'Scope',
+ 'name' => 'EnableCreateDNSRecordInPvzt',
'in' => 'query',
- 'schema' => [
- 'description' => 'The deletion scope.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'INSTANCE',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -2759,693 +1565,496 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B22C77', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateInstanceVpcEndpointLinkedVpc',
+ 'summary' => 'Associates a virtual private cloud (VPC) with a Container Registry instance.',
+ 'description' => 'The VPC quota must be purchased separately.'."\n",
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateInstanceVpcEndpointLinkedVpc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- 'TagResources' => [
- 'summary' => 'Adds tags to resources. Instance resources are supported.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateNamespace' => [
+ 'summary' => 'Creates a repository namespace.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
'systemTags' => [
'operationType' => 'create',
- 'abilityTreeCode' => '188653',
- 'abilityTreeNodes' => [
- 'FEATUREacrRKSIY1',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33685',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'The type of the resource. Instance resources are supported.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Instance',
- 'enum' => [
- 'Instance',
- ],
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'NamespaceName',
'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,
- ],
+ 'schema' => ['description' => 'The name of the namespace. The name must be 2 to 120 characters long and can contain only lowercase letters, digits, and the following separators: underscores (\\_), hyphens (-), and periods (.). A separator cannot be used as the first or last character.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace1', 'title' => ''],
],
[
- 'name' => 'RegionId',
+ 'name' => 'AutoCreateRepo',
'in' => 'query',
- 'schema' => [
- 'title' => '地域Id',
- 'description' => 'The region ID of the resources.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'Specifies whether a repository is automatically created when an image is pushed to a repository that does not yet exist in the namespace.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
- 'name' => 'Tag',
+ 'name' => 'DefaultRepoType',
'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,
- ],
+ 'schema' => ['description' => 'The default type of automatically created repositories. Valid values:'."\n"
+ ."\n"
+ .'- `PUBLIC`: public'."\n"
+ ."\n"
+ .'- `PRIVATE`: private', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'PUBLIC', 'title' => ''],
+ ],
+ [
+ 'name' => 'DefaultRepoConfiguration',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => ['$ref' => '#/components/schemas/RepoConfiguration', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
],
],
'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',
- ],
+ 'Code' => ['description' => 'The response code. The value `success` indicates that the request was successful.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'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',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'InvalidOperation.ConcurrentModification',
- 'errorMessage' => 'The resource is modified concurrently.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateNamespace',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E9A586D0-3977-5C28-A44D-55D3A9CD53CC\\"\\n}","type":"json"}]',
- 'title' => 'TagResources',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'UntagResources' => [
- 'summary' => 'Removes tags from resources. Instance resources are supported.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateRepoBuildRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'abilityTreeCode' => '188658',
- 'abilityTreeNodes' => [
- 'FEATUREacrRKSIY1',
- ],
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrYWOHWY'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'The type of the resources. Instance resources are supported.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Instance',
- 'enum' => [
- 'Instance',
- ],
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'RepoId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-8dz3aedjqlmk****', 'title' => ''],
],
[
- 'name' => 'RegionId',
+ 'name' => 'DockerfileLocation',
'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',
- ],
+ 'schema' => ['description' => 'The path of the Dockerfile.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '/', 'title' => ''],
],
[
- 'name' => 'TagKey',
+ 'name' => 'DockerfileName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the Dockerfile.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'Dockerfile', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'ImageTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'v0.9.5', 'title' => ''],
+ ],
+ [
+ 'name' => 'BuildArgs',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
- 'description' => 'The key of tag N added to the resource. Valid values of N: 1 to 20.',
+ 'description' => 'Building arguments.'."\n",
'type' => 'array',
- 'items' => [
- 'description' => 'The key of the tag.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-key',
- ],
+ 'items' => ['description' => 'Building arguments.'."\n", 'type' => 'string', 'required' => false, 'example' => 'UserName=Test', 'title' => ''],
'required' => false,
- 'maxItems' => 21,
+ 'maxItems' => 20,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'All',
+ 'name' => 'Platforms',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'Specifies whether to remove all tags from the resource. Valid values:'."\n"
+ 'description' => 'Architecture for image building. Valid values:'."\n"
."\n"
- .'* **true**'."\n"
- .'* **false**'."\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"
- .'>If you specify both this parameter and the TagKey parameter, this parameter does not take effect.',
- 'type' => 'boolean',
+ .'Default value: `linux/amd64`'."\n", 'type' => 'string', 'required' => false, 'example' => 'linux/amd64', 'title' => ''],
'required' => false,
- 'example' => 'true',
+ 'maxItems' => 20,
+ 'title' => '',
+ 'example' => '',
],
],
],
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
+ 'BuildRuleId' => ['description' => 'The ID of the building rule.'."\n", 'type' => 'string', 'example' => 'crbr-ly77w5i3t31f****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'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 ',
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateRepoBuildRule',
+ 'summary' => 'Creates an image building rule for a repository.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
],
],
],
- 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"724402D0-75CD-4794-BC20-7D3720823AE0\\"\\n}","type":"json"}]',
- 'title' => 'UntagResources',
+ '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":""}]',
],
- 'ListTagResources' => [
- 'summary' => 'Queries the tags that are added to cloud resources. Instance resources are supported.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateRepoSourceCodeRepo' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
+ 'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '188659',
- 'abilityTreeNodes' => [
- 'FEATUREacrRKSIY1',
- ],
- ],
+ 'systemTags' => ['operationType' => 'create', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
'parameters' => [
[
- 'name' => 'ResourceType',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'title' => '资源类型',
- 'description' => 'The type of the resources. Instance resources are supported.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'Instance',
- 'enum' => [
- 'Instance',
- ],
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
],
[
- 'name' => 'ResourceId',
+ 'name' => 'RepoId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-gzsrlevmvoaq****', 'title' => ''],
],
[
- 'name' => 'RegionId',
+ 'name' => 'CodeRepoType',
'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',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'Tag',
+ 'name' => 'CodeRepoNamespaceName',
'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,
- ],
+ 'schema' => ['description' => 'The namespace to which the source code repository belongs.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace', 'title' => ''],
],
[
- 'name' => 'NextToken',
+ 'name' => 'CodeRepoName',
'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=',
- ],
+ 'schema' => ['description' => 'The name of the source code repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'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",
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
- [],
],
'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',
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateRepoSourceCodeRepo',
+ 'summary' => 'Binds a source code repository to an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- 'CreateStorageDomainRoutingRule' => [
- 'summary' => 'Creates an instance store domain name routing rule.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateRepoSyncRule' => [
+ 'summary' => 'Creates an image synchronization rule for an image repository.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'operationType' => 'write',
'systemTags' => [
'operationType' => 'create',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrFQBFTD',
- ],
+ 'abilityTreeCode' => '33690',
+ 'abilityTreeNodes' => ['FEATUREacrLKRO80'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The source instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****', 'title' => ''],
],
[
- 'name' => 'Routes',
+ 'name' => 'NamespaceName',
'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,
- ],
+ 'schema' => ['description' => 'The namespace name of the source instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The region ID of the destination instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The destination instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-ibxs3piklys3****', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetNamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The namespace name of the destination instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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' => '.*', 'title' => ''],
+ ],
+ [
+ 'name' => 'TagFilter',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The regular expression that is used to filter image tags.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '.*', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'SyncRuleName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the image synchronization rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rule', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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***', 'title' => ''],
+ ],
+ [
+ 'name' => 'LinkId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'title' => '', 'description' => '', 'example' => ''],
],
],
'responses' => [
@@ -3453,91 +2062,109 @@
'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',
- ],
+ 'Code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'SyncRuleId' => ['description' => 'The ID of the synchronization rule.'."\n", 'type' => 'string', 'example' => 'crsr-gk5p2ns1kzns****', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '8F8A0BA6-7F06-4BAE-B147-10BD6A25****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'AuthenticationFailed',
- 'errorMessage' => 'Authentication failed.',
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateRepoSyncRule',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
],
- '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",
+ '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":""}]',
],
- 'DeleteStorageDomainRoutingRule' => [
- 'summary' => 'Deletes an instance store domain name routing rule.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateRepoSyncTask' => [
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrFQBFTD',
- ],
- ],
+ 'systemTags' => ['operationType' => 'create', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-4cdrlqmhn4gm****',
- ],
+ 'schema' => ['description' => 'Source instance ID', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crsdr-n6pbhgjxtla***',
- ],
+ 'schema' => ['description' => 'Image repository ID in the source instance', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-iql7jalx4g0****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Image tag in the source instance', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'tag1', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Region ID of the target instance', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cn-hangzhou', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Target instance ID', 'type' => 'string', 'required' => true, 'example' => 'cri-ibxs3piklys3****', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetNamespace',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Namespace in the target instance', 'type' => 'string', 'required' => true, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetRepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Name of the image repository in the target instance', 'type' => 'string', 'required' => true, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Image tag in the target instance', 'type' => 'string', 'required' => true, 'example' => 'tag1', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetUserId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'UID of the account to which the target instance belongs', 'type' => 'string', 'required' => false, 'example' => '12345***', 'title' => ''],
+ ],
+ [
+ 'name' => 'Override',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to overwrite an existing image:'."\n"
+ ."\n"
+ .'- `true`: Overwrite the existing image.'."\n"
+ ."\n"
+ .'- `false`: Do not overwrite the existing image.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'responses' => [
@@ -3545,87 +2172,81 @@
'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',
- ],
+ 'Code' => ['description' => 'Return value', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the invocation succeeded. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The invocation succeeded.'."\n"
+ ."\n"
+ .'- `false`: Failed to invoke.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => '8F8A0BA6-7F06-4BAE-B147-10BD6A25****', 'title' => ''],
+ 'SyncTaskId' => ['description' => 'Sync task ID', 'type' => 'string', 'example' => 'rst-gbch330f0c****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'AuthenticationFailed',
- 'errorMessage' => 'Authentication failed.',
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Manually create a repository synchronization task',
+ 'summary' => 'Manually create a sync task.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
],
- '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",
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"8F8A0BA6-7F06-4BAE-B147-10BD6A25****\\",\\n \\"SyncTaskId\\": \\"rst-gbch330f0c****\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'GetStorageDomainRoutingRule' => [
- 'summary' => 'Queries instance storage domain routing rules',
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateRepoSyncTaskByRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrFQBFTD',
- ],
- ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'create', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.',
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crasr-mdbpung4i1rm****'."\n",
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-hnoq7j93or3k****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The version of the image to be synchronized.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1.24', 'title' => ''],
+ ],
+ [
+ 'name' => 'SyncRuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the synchronization rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crsr-o8n4dijbumgq****', 'title' => ''],
],
],
'responses' => [
@@ -3633,139 +2254,85 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '17A4C658-AE8F-4A08-821F-EDCB5FC74EE8', 'title' => ''],
+ 'SyncTaskId' => ['description' => 'The ID of the synchronization task.'."\n", 'type' => 'string', 'example' => 'rst-biu4u4pm4it5****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
- 200 => [
- [
- 'errorCode' => 'INSTANCE_NOT_EXIST',
- 'errorMessage' => 'Instance does not exist.',
- ],
- ],
403 => [
- [
- 'errorCode' => 'AuthenticationFailed',
- 'errorMessage' => 'Authentication failed.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
+ ],
+ 'title' => 'CreateRepoSyncTaskByRule',
+ 'summary' => 'Creates an image replication task based on a manual replication rule.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- [
- 'errorCode' => 'InvalidInstanceStorageDomainRoutingRule.NotFound',
- 'errorMessage' => 'The specified InstanceStorageDomainRoutingRule does not exist.',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- 'UpdateStorageDomainRoutingRule' => [
- 'summary' => 'Updates a routing rule for an instance store domain name.',
- 'methods' => [
- 'post',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'CreateRepoTag' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'consumes' => [
- 'application/json',
- ],
- 'produces' => [
- 'application/json',
- ],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrFQBFTD',
- ],
- ],
+ '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,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzv****', 'title' => ''],
],
[
- 'name' => 'Routes',
+ 'name' => 'NamespaceName',
'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,
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns', 'title' => ''],
],
[
- 'name' => 'RuleId',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crsdr-b6thg027zmk1****',
- ],
+ 'schema' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ 'name' => 'FromTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The source image tag.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'v1', 'title' => ''],
+ ],
+ [
+ 'name' => 'ToTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image tag that you want to create.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'v2', 'title' => ''],
],
],
'responses' => [
@@ -3773,69 +2340,94 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'C4C7DD0C-C9D6-437A-A7EE-8BY*****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'AuthenticationFailed',
- 'errorMessage' => 'Authentication failed.',
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'CreateRepoTag',
+ 'summary' => 'Creates an image tag based on an existing image tag in an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepoTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
],
],
],
- '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",
+ '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":""}]',
],
- 'GetInstance' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateRepoTagScanTask' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image repository ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-xwvi3osiy4ff****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image tag.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1.24', 'title' => ''],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image digest.', 'type' => 'string', 'required' => false, 'example' => 'sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanService',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The scan engine type:'."\n"
+ ."\n"
+ .'- `SAS_SCAN_SERVICE`: The cloud security scan engine. This is a paid service.'."\n"
+ ."\n"
+ .'- `ACR_SCAN_SERVICE`: The ACR scan engine.', 'type' => 'string', 'required' => false, 'example' => 'ACR_SCAN_SERVICE', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanType',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => false, 'description' => '', 'title' => '', 'example' => ''],
],
],
'responses' => [
@@ -3843,293 +2435,196 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API call succeeded. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The API call succeeded.'."\n"
+ ."\n"
+ .'- `false`: The API call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'CreateRepoTagScanTask',
+ 'summary' => 'Creates a security scan task for an image.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:PutScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'GetInstanceUsage' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateRepoTrigger' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '33741',
- 'abilityTreeNodes' => [
- 'FEATUREacrLBBNHS',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'required' => true, 'type' => 'string', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'docRequired' => true, 'example' => 'crr-xwvi3osiy4ff****', 'required' => true, 'type' => 'string', 'title' => ''],
+ ],
+ [
+ 'name' => 'TriggerName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the trigger.'."\n", 'docRequired' => true, 'example' => 'trigger1', 'required' => true, 'type' => 'string', 'title' => ''],
+ ],
+ [
+ 'name' => 'TriggerUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The URL of the trigger.'."\n", 'docRequired' => true, 'example' => 'http://www.mysite.com', 'required' => true, 'type' => 'string', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'example' => 'success', 'type' => 'string', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'example' => 'true', 'type' => 'boolean', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'example' => 'B79F5E0E-8770-407D-BCB6-ECF4BA9C****', 'type' => 'string', 'title' => ''],
+ 'TriggerId' => ['description' => 'The ID of the trigger.'."\n", 'example' => 'crw-0z4pf81pgz35****', 'type' => 'string', 'title' => ''],
],
+ 'type' => 'object',
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'CreateRepoTrigger',
+ 'summary' => 'Creates a trigger for a repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListInstanceRegion' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"B79F5E0E-8770-407D-BCB6-ECF4BA9C****\\",\\n \\"TriggerId\\": \\"crw-0z4pf81pgz35****\\"\\n}","type":"json"},{"errorExample":"","example":"<IsSuccess>true</IsSuccess>\\n<RequestId>B79F5E0E-8770-407D-BCB6-ECF4BA9C****</RequestId>\\n<TriggerId>crw-0z4pf81pgz35****</TriggerId>\\n<Code>success</Code>","type":"xml"}]',
+ ],
+ 'CreateRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'list',
- 'abilityTreeCode' => '33779',
- 'abilityTreeNodes' => [
- 'FEATUREacrRKSIY1',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'create', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
'parameters' => [
[
- 'name' => 'Lang',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The language used for response parameters. Set this parameter to `zh-CN`.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'zh-CN',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The summary about the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ 'name' => 'Detail',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The description of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -4137,77 +2632,49 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'example' => 'crr-xwvi3osiy4ff****', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '886FB272-15C3-44FC-AA54-F4ABD5B93A28', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'CreateRepository',
+ 'summary' => 'Creates an image repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListInstance' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'CreateScanRule' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4216,314 +2683,239 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '33773',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'create',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119395',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P', 'FEATUREacrKJDAEQ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
- 'name' => 'InstanceName',
+ 'name' => 'InstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'cri-dqwc**********', 'title' => ''],
+ ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The rule name.', 'type' => 'string', 'required' => true, 'maxLength' => 256, 'minLength' => 1, 'example' => 'default', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanScope',
'in' => 'query',
'schema' => [
- 'description' => 'The instance name.'."\n",
+ 'description' => 'The scan scope.',
+ 'enumValueTitles' => ['NAMESPACE' => 'namespace.', 'REPO' => 'repository.'],
'type' => 'string',
- 'deprecated' => true,
- 'required' => false,
- 'example' => 'test',
+ 'required' => true,
+ 'enum' => ['INSTANCE', 'NAMESPACE', 'REPO'],
+ 'example' => 'NAMESPACE',
+ 'title' => '',
],
],
[
- 'name' => 'InstanceStatus',
+ 'name' => 'TriggerType',
'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",
+ 'description' => 'The trigger type.',
+ 'enumValueTitles' => ['AUTO' => 'automatically triggered on push.', 'MANUAL' => 'manually triggered.'],
'type' => 'string',
- 'required' => false,
- 'example' => 'RUNNING',
+ 'required' => true,
+ 'enum' => ['MANUAL', 'AUTO'],
+ 'example' => 'AUTO',
+ 'title' => '',
],
],
[
- 'name' => 'PageNo',
+ 'name' => 'Namespaces',
'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => 'The collection of namespaces.'."\n"
+ .'- If the scan scope is set to NAMESPACE, this parameter cannot be empty.'."\n"
+ .'- If the scan scope is set to REPO, this parameter must contain exactly one namespace.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The namespace.', 'type' => 'string', 'minLength' => 1, 'required' => false, 'example' => 'ns1', 'title' => ''],
'required' => false,
- 'example' => '1',
+ 'minItems' => 0,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'PageSize',
+ 'name' => 'RepoNames',
'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => 'The list of repositories.'."\n"
+ .'- If the scan scope is set to NAMESPACE, this parameter must be empty.'."\n"
+ .'- If the scan scope is set to REPO, this parameter cannot be empty.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The repository name.', 'type' => 'string', 'minLength' => 1, 'required' => false, 'example' => 'reppo1', 'title' => ''],
'required' => false,
- 'example' => '30',
+ 'minItems' => 0,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'ResourceGroupId',
+ 'name' => 'RepoTagFilterPattern',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The regular expression used to match tags that trigger a scan.', 'type' => 'string', 'required' => true, 'example' => '.*', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanType',
'in' => 'query',
'schema' => [
- 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
+ 'description' => 'The scan type. Valid values:'."\n"
+ ."\n"
+ .'- `VUL`: cloud native artifact vulnerability scanning.'."\n"
+ .'- `SBOM`: cloud native artifact content analysis.'."\n"
+ ."\n"
+ .'Default value: `VUL`.',
+ 'enumValueTitles' => ['SBOM' => 'cloud native artifact content analysis.', 'VUL' => 'cloud native artifact vulnerability scanning.'],
'type' => 'string',
'required' => false,
- 'example' => 'rg-acfmv36i4is****',
+ 'default' => 'VUL',
+ 'enum' => ['VUL', 'SBOM'],
+ 'example' => 'VUL',
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'The response struct.',
'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',
- ],
- ],
- ],
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request Id', 'type' => 'string', 'example' => 'EAEAB520-2456-5BF2-BCB5-AC998DFA3A51'],
+ 'Code' => ['description' => 'The status code.', 'type' => 'integer', 'format' => 'int64', 'example' => 'success', 'title' => ''],
+ 'ScanRuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'crscnr-k3gdm5vrn2nzf5hw', 'title' => ''],
],
- 'description' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'Create a scan rule',
+ 'summary' => 'Creates a scan or content analysis rule.',
+ 'description' => 'Creates a scan or content analysis rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/*'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"EAEAB520-2456-5BF2-BCB5-AC998DFA3A51\\",\\n \\"Code\\": 0,\\n \\"ScanRuleId\\": \\"crscnr-k3gdm5vrn2nzf5hw\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'GetInstanceCount' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'CreateStorageDomainRoutingRule' => [
+ 'summary' => 'Creates an instance store domain name routing rule.',
+ 'methods' => ['post'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Routes',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => [
+ 'description' => 'The route list'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The routing rule entries'."\n", '$ref' => '#/components/schemas/RouteItem', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
],
- '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',
- ],
+ 'RequestId' => ['description' => 'The request ID'."\n", 'type' => 'string', 'example' => 'C8E90AB5-0A96-5D12-9E59-11EE463*****', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'example' => 'crsdr-n6pbhgjx*****', 'title' => ''],
+ 'Success' => ['description' => 'Identification of whether the request is successful or not'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Code' => ['description' => 'The HTTP status code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'Authentication failed.', 'description' => 'Authentication failed.'],
],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ],
+ 'title' => 'CreateStorageDomainRoutingRule',
+ 'description' => '此API白名单开放,请[提交工单](https://smartservice.console.aliyun.com/service/create-ticket)获取支持。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/*'],
+ ],
],
],
],
- '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',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"C8E90AB5-0A96-5D12-9E59-11EE463*****\\",\\n \\"RuleId\\": \\"crsdr-n6pbhgjx*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
],
- 'CreateInstanceVpcEndpointLinkedVpc' => [
- 'summary' => 'Associates a virtual private cloud (VPC) with a Container Registry instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteArtifactLifecycleRule' => [
+ 'summary' => 'Deletes an artifact lifecycle management rule.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrQD2ZKV'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -4531,63 +2923,78 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-brlg4cbj2ylkrqqq', 'title' => ''],
],
[
- 'name' => 'VpcId',
+ 'name' => 'RuleId',
'in' => 'query',
+ 'schema' => ['description' => 'The rule ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cralr-3v8pao9k7chb8q62', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The VPC ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'vpc-uf6pa68zxnnlc48dd****',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '001AB638-C99B-5A27-8AC9-B2DBABFFEBB5', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'DeleteArtifactLifecycleRule',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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****',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"001AB638-C99B-5A27-8AC9-B2DBABFFEBB5\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteArtifactSubscriptionRule' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'ModuleName',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => ['autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'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',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-c0o11woew0k****'."\n", 'title' => ''],
],
[
- 'name' => 'EnableCreateDNSRecordInPvzt',
+ 'name' => 'RuleId',
'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',
- ],
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crasr-mdbpung4i1rm****'."\n", 'title' => ''],
],
],
'responses' => [
@@ -4595,60 +3002,49 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '02B27D80-FD32-5155-931A-93700779BB9E'."\n", 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'DeleteArtifactSubscriptionRule',
+ 'summary' => 'Deletes an artifact subscription rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\\\n\\"\\n}","type":"json"}]',
],
- 'CreateInstanceEndpointAclPolicy' => [
- 'summary' => 'Creates a whitelist policy for the public endpoint of the instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteChain' => [
+ 'summary' => 'Deletes a delivery chain.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4656,12 +3052,10 @@
],
'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrPRPOYY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -4669,58 +3063,70 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'EndpointType',
+ 'name' => 'ChainId',
'in' => 'query',
+ 'schema' => ['description' => 'The delivery chain ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'chi-02ymhtwl3cq8****', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'internet',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'DB1809A8-E1C8-5707-BAF8-D4FC1C11****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'title' => 'Delete a delivery chain',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"DB1809A8-E1C8-5707-BAF8-D4FC1C11****\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'DeleteChartNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Comment',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'delete', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The description.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'NamespaceName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the chart namespace that you want to delete.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns2', 'title' => ''],
],
],
'responses' => [
@@ -4728,126 +3134,84 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'FEC62DF1-1394-467F-A69F-4BC1BA29F383', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'SLB_SERVICE_ERROR',
- 'errorMessage' => 'Bad request for this user.',
- ],
- ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ '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' => ' ',
- ],
- 'DeleteInstanceEndpointAclPolicy' => [
- 'summary' => 'Deletes a whitelist policy for the public endpoint of an instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteChartRelease' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'EndpointType',
+ 'name' => 'Chart',
'in' => 'query',
- 'schema' => [
- 'description' => 'The type of the endpoint. Set the value to Internet.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'internet',
- ],
+ 'schema' => ['description' => 'The name of the chart.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'chart3', 'title' => ''],
],
[
- 'name' => 'Entry',
+ 'name' => 'Release',
'in' => 'query',
- 'schema' => [
- 'description' => 'The CIDR block.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '127.0.0.1/32',
- ],
+ 'schema' => ['description' => 'The version of the chart that you want to delete.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '0.1.0', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'RepoName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
],
],
'responses' => [
@@ -4855,64 +3219,49 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'C2D6CE47-6DEF-45F4-A1AC-90F3AFBA751F', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'SLB_SERVICE_ERROR',
- 'errorMessage' => 'Bad request for this user.',
- ],
- ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'DeleteChartRelease',
+ 'summary' => 'Deletes a chart version from a chart repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'DeleteInstanceVpcEndpointLinkedVpc' => [
- 'summary' => 'Disassociates a virtual private cloud (VPC) from an instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteChartRelease',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteChartRepository' => [
+ 'summary' => 'Deletes a chart repository.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -4923,9 +3272,7 @@
'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr8UG6HF',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrY0JUHY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -4933,48 +3280,17 @@
[
'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****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay****', 'title' => ''],
],
[
- 'name' => 'VswitchId',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the vSwitch.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'vpc-uf6pa68zxnnlc48dd****',
- ],
+ 'schema' => ['description' => 'The namespace name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace01', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'RepoName',
'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',
- ],
+ 'schema' => ['description' => 'The repository name.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo01', 'title' => ''],
],
],
'responses' => [
@@ -4982,65 +3298,120 @@
'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',
- ],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The API call is successful.'."\n"
+ ."\n"
+ .'- `false`: The API call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'Delete a chart repository',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"12589EF7-96E2-4554-AAD7-F7209E88CAD3\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'UpdateInstanceEndpointStatus' => [
- 'methods' => [
- 'post',
- 'get',
+ 'DeleteEventCenterRule' => [
+ '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****', 'title' => ''],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the event notification rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crecr-n6pbhgjx*****', 'title' => ''],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'responses' => [
+ 200 => [
+ 'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', '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', 'title' => ''],
+ ],
+ 'example' => '',
+ ],
+ ],
],
+ 'title' => 'DeleteEventCenterRule',
+ 'summary' => 'Deletes an event notification rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteEventCenterRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ '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":""}]',
+ ],
+ 'DeleteInstanceCustomizedDomain' => [
+ 'summary' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr9LPARH'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -5048,51 +3419,17 @@
[
'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',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'cri-av3kxfkkiwofikl5', 'title' => ''],
],
[
- 'name' => 'Enable',
+ 'name' => 'ModuleName',
'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',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'Registry', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'Domain',
'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',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'crtest.wgine-inc.com', 'title' => ''],
],
],
'responses' => [
@@ -5100,109 +3437,84 @@
'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',
- ],
+ 'Code' => ['type' => 'string', 'description' => '', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['type' => 'boolean', 'description' => '', 'example' => 'True', 'title' => ''],
+ 'RequestId' => ['type' => 'string', 'description' => '', 'example' => 'EEE92FA9-3181-5174-8A06-BE2252FA462E', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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' => ' ',
+ 'title' => '',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"EEE92FA9-3181-5174-8A06-BE2252FA462E\\"\\n}","type":"json"}]',
],
- 'GetInstanceEndpoint' => [
- 'summary' => 'Queries an endpoint of an instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'DeleteInstanceEndpointAclPolicy' => [
+ 'summary' => 'Deletes a whitelist policy from the public access endpoint of an instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
+ '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****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
'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',
- ],
+ 'schema' => ['description' => 'The endpoint type. Only Internet is supported.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet', 'title' => ''],
+ ],
+ [
+ 'name' => 'Entry',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The IP CIDR block.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'docRequired' => false, 'example' => '127.0.0.1/32', 'title' => ''],
],
[
'name' => 'ModuleName',
'in' => 'query',
+ 'schema' => ['description' => 'The module for which the access policy is set. Valid values:'."\n"
+ ."\n"
+ .'- `Registry`: access to the image repository'."\n"
+ ."\n"
+ .'- `Chart`: access to Helm Chart', 'type' => 'string', 'required' => false, 'example' => 'Chart', 'title' => ''],
+ ],
+ [
+ 'name' => 'Entries',
+ 'in' => 'query',
+ 'style' => 'json',
'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',
+ 'type' => 'array',
+ 'items' => ['$ref' => '#/components/schemas/AccessControlEntry', 'description' => '', 'title' => '', 'example' => ''],
+ 'maxItems' => 50,
+ 'minItems' => 1,
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
@@ -5211,118 +3523,66 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the call is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The call is successful.'."\n"
+ ."\n"
+ .'- `false`: The call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BDB1F145-F0FF-44E9-AADF-A678642A7C7D', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SLB_SERVICE_ERROR', 'errorMessage' => 'Bad request for this user.', 'description' => 'An exception occurred while calling the SLB service, the call failed'],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'Delete a whitelist policy from the public access endpoint of an instance',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListInstanceEndpoint' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteInstanceEndpointAclPolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BDB1F145-F0FF-44E9-AADF-A678642A7C7D\\"\\n}","type":"json"}]',
+ ],
+ 'DeleteInstanceVpcEndpointLinkedVpc' => [
+ 'summary' => 'Disassociates a virtual private cloud (VPC) from an instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr8UG6HF'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -5330,37 +3590,25 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'VpcId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the VPC.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vpc-uf6pa68zxnnlc48dd****', 'title' => ''],
],
[
- 'name' => 'Summary',
+ 'name' => 'VswitchId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the vSwitch.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'vpc-uf6pa68zxnnlc48dd****', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -5368,365 +3616,139 @@
'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' => '',
- ],
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'true', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '20FE7A66-0044-4E23-BBEC-C434EADBD7AF', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'DeleteInstanceVpcEndpointLinkedVpc',
'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',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteInstanceVpcEndpointLinkedVpc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrFQBFTD',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'ModuleName',
+ 'name' => 'NamespaceName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns3', 'title' => ''],
],
],
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'BA08C185-8F76-48D7-ACB3-BA11BF2778F9', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ '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' => ' ',
- 'translator' => 'machine',
- ],
- 'CreateRepoSyncTaskByRule' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteRepoBuildRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-hnoq7j93or3k****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-xwvi3osiy4ff****', 'title' => ''],
],
[
- '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',
+ 'name' => 'BuildRuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the synchronization rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crsr-o8n4dijbumgq****',
- ],
+ 'schema' => ['description' => 'The ID of the image building rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crbr-36tffn0kouvi****', 'title' => ''],
],
],
'responses' => [
@@ -5734,229 +3756,207 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '2E3F55BF-FA7B-454E-B2C6-85265E243ADC', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'DeleteRepoBuildRule',
+ 'summary' => 'Deletes an image building rule of a repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateRepoSyncRule' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteRepoSyncRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '33690',
- 'abilityTreeNodes' => [
- 'FEATUREacrLKRO80',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'systemTags' => ['operationType' => 'delete', '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'SyncRuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The namespace name of the source instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The ID of the synchronization rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crsr-gk5p2ns1kzns****', 'title' => ''],
],
- [
- 'name' => 'RepoName',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The name of the image repository in the source instance.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'repo1',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '72DD4198-1BB9-47A3-BC01-EAD1A6D5E173', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'DeleteRepoSyncRule',
+ 'summary' => 'Deletes an image replication rule of an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'TargetRegionId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The region ID of the destination instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-shanghai',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
+ ],
+ '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":""}]',
+ ],
+ 'DeleteRepoTag' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TargetInstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The destination instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-ibxs3piklys3****',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'delete', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
[
- 'name' => 'TargetNamespaceName',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The namespace name of the destination instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay****', 'title' => ''],
],
[
- 'name' => 'TargetRepoName',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository in the destination instance.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => false,
- 'example' => 'repo1',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-xwvi3osiy4ff****', 'title' => ''],
],
[
- 'name' => 'RepoNameFilter',
+ 'name' => 'Tag',
'in' => 'query',
+ 'schema' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1.24', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'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' => '.*',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '96E66B3A-C81A-48BE-ACD6-C0AB1F9313C0', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'DeleteRepoTag',
+ 'summary' => 'Deletes an image tag.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'TagFilter',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The regular expression that is used to filter image tags.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '.*',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
],
],
+ ],
+ '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":""}]',
+ ],
+ 'DeleteRepoTrigger' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- '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',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'delete', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
[
- 'name' => 'SyncRuleName',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image synchronization rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'rule',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'SyncTrigger',
+ 'name' => 'RepoId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-xwvi3osiy4ff****', 'title' => ''],
],
[
- 'name' => 'TargetUserId',
+ 'name' => 'TriggerId',
'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***',
- ],
+ 'schema' => ['description' => 'The ID of the trigger.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crw-0z4pf81pgz35****', 'title' => ''],
],
],
'responses' => [
@@ -5964,270 +3964,220 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '85180AE4-9A57-48F8-9EF9-68ECCE54B552', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'DeleteRepoTrigger',
+ 'summary' => 'Deletes a trigger of an image repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateRepoSyncTask' => [
- 'methods' => [
- 'get',
- 'post',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'DeleteRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'systemTags' => ['operationType' => 'delete', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-hpdfkc6utbaq****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-iql7jalx4g0****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-l4933wbcmun2****', 'title' => ''],
],
[
- 'name' => 'Tag',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'tag1',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-repo', 'title' => ''],
],
[
- 'name' => 'TargetRegionId',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cn-hangzhou',
- ],
+ 'schema' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-namespace', 'title' => ''],
],
- [
- 'name' => 'TargetInstanceId',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'Return values'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '47DD9D56-09A0-4C52-B520-C3805DBAB96B', 'title' => ''],
+ ],
'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-ibxs3piklys3****',
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'TargetNamespace',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'ns1',
- ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
+ ],
+ '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' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'TargetRepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'repo1',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
],
+ ],
+ '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":""}]',
+ ],
+ 'DeleteScanRule' => [
+ 'summary' => 'Deletes a scan rule.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'TargetTag',
- 'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'tag1',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'write',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'delete',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P', 'FEATUREacrKJDAEQ'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
+ ],
+ 'parameters' => [
[
- 'name' => 'TargetUserId',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => false,
- 'example' => '12345***',
- ],
+ 'schema' => ['description' => 'The instance ID'."\n", 'type' => 'string', 'required' => false, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'Override',
+ 'name' => 'ScanRuleId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'The rule ID'."\n", 'type' => 'string', 'required' => false, 'example' => 'crscnr-aemytkwad2h7fyhb', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'The response struct'."\n",
'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****',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request Id'."\n", 'type' => 'string', 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3'],
+ 'Code' => ['description' => 'The HTTP status code'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'DeleteScanRule',
+ 'description' => '删除扫描规则。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"12589EF7-96E2-4554-AAD7-F7209E88CAD3\\",\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
],
- 'DeleteRepoSyncRule' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ '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',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrFQBFTD'],
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-hpdfkc6utbaq****',
- ],
+ 'schema' => ['description' => 'The instance ID'."\n", 'type' => 'string', 'required' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'SyncRuleId',
+ 'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the synchronization rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crsr-gk5p2ns1kzns****',
- ],
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'crsdr-n6pbhgjxtla***', 'title' => ''],
],
],
'responses' => [
@@ -6235,396 +4185,271 @@
'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',
- ],
+ 'RequestId' => ['description' => 'The request ID'."\n", 'type' => 'string', 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B*****', 'title' => ''],
+ 'Success' => ['description' => 'Request status ID'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Code' => ['description' => 'The HTTP status code'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'Authentication failed.', 'description' => 'Authentication failed.'],
],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ],
+ 'title' => 'DeleteStorageDomainRoutingRule',
+ 'description' => '此API白名单开放,请[提交工单](https://smartservice.console.aliyun.com/service/create-ticket)获取支持。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959B*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
],
- 'ListRepoSyncTask' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetArtifactBuildRule' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '33789',
- 'abilityTreeNodes' => [
- 'FEATUREacrLKRO80',
- ],
+ 'abilityTreeCode' => '33715',
+ 'abilityTreeNodes' => ['FEATUREacrSEEOQD'],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****'."\n", 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'ScopeType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ns',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'RepoName',
+ 'name' => 'ScopeId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The repository name.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ '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", 'title' => ''],
],
[
- 'name' => 'Tag',
+ 'name' => 'ArtifactType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The image tag.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'nginx',
- ],
+ 'schema' => ['description' => 'The type of the artifact.'."\n"
+ ."\n"
+ .'* `ACCELERATED_IMAGE`: accelerated images.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'ACCELERATED_IMAGE', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'BuildRuleId',
'in' => 'query',
+ 'schema' => ['description' => 'The ID of the artifact building rule.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crabr-o2670wqz2n70****', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '7A3E98F6-296C-54AC-A612-B75E7777D4C1', 'title' => ''],
+ '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****', 'title' => ''],
+ 'BuildRuleId' => ['description' => 'The ID of the artifact building rule.'."\n", 'type' => 'string', 'example' => 'crabr-o2670wqz2n70****'."\n", 'title' => ''],
+ 'ArtifactType' => ['description' => 'The type of the artifact. Valid values:'."\n"
+ ."\n"
+ .'* `ACCELERATED_IMAGE`: accelerated images.'."\n", 'type' => 'string', 'example' => 'ACCELERATED_IMAGE', 'title' => ''],
+ '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', 'title' => ''],
+ 'Parameters' => [
+ 'description' => 'Additional parameters.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'ImageIndexOnly' => ['description' => 'Indicates whether the index-only mode is enabled.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''],
+ '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=', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Code' => ['description' => 'The API return code:'."\n"
+ .'- **200**: Indicates success.'."\n"
+ .'- Others: Indicate error codes.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'title' => 'GetArtifactBuildRule',
+ 'summary' => 'Queries the details of an artifact building rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
+ ],
+ '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"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetArtifactBuildTask' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'SyncRecordId',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
+ ],
+ [
+ 'name' => 'BuildTaskId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the artifact build task.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i2a-1yu****', 'title' => ''],
],
],
'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',
+ 'EndTime' => ['description' => 'The Unix timestamp in seconds when the task ended.', 'type' => 'integer', 'format' => 'int32', 'example' => '1685415871', 'title' => ''],
+ 'StartTime' => ['description' => 'The Unix timestamp in seconds when the task started.', 'type' => 'integer', 'format' => 'int32', 'example' => '1685437471', 'title' => ''],
+ 'ArtifactBuildType' => ['description' => 'The artifact build type. Valid values:'."\n"
+ ."\n"
+ .'- `IMAGE_TO_ACCELERATED_IMAGE`: an accelerated image for ACK.'."\n"
+ ."\n"
+ .'- `IMAGE_TO_ECI_ACCELERATED_IMAGE`: an accelerated image for ECI.', 'type' => 'string', 'example' => 'IMAGE_TO_ACCELERATED_IMAGE', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002', 'title' => ''],
+ 'TaskStatus' => ['description' => 'The status of the artifact build task. Valid values:'."\n"
+ ."\n"
+ .'- `PENDING`: The task is being scheduled.'."\n"
+ ."\n"
+ .'- `BUILDING`: The task is in progress.'."\n"
+ ."\n"
+ .'- `SUCCESS`: The task is successful.'."\n"
+ ."\n"
+ .'- `FAILED`: The task failed.', 'type' => 'string', 'example' => 'BUILDING', 'title' => ''],
+ 'BuildTaskId' => ['description' => 'The ID of the artifact build task.', 'type' => 'string', 'example' => 'i2a-1yu****', 'title' => ''],
+ 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Instructions' => [
+ 'items' => ['description' => 'This parameter is reserved.', 'type' => 'string', 'example' => 'null', 'title' => ''],
+ 'type' => 'array',
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
- 'TotalCount' => [
- 'description' => 'The total number of the queried synchronization tasks.'."\n",
- 'type' => 'string',
- 'example' => '1',
+ 'SourceArtifact' => [
+ 'description' => 'The source artifact.',
+ 'properties' => [
+ 'RepoId' => ['description' => 'The repository ID. Currently, only image repositories are supported.', 'type' => 'string', 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
+ 'Version' => ['description' => 'The artifact version. Currently, only image versions are supported.', 'type' => 'string', 'example' => 'latest', 'title' => ''],
+ 'ArtifactType' => ['description' => 'The artifact type. Currently, only `IMAGE` is supported.', 'type' => 'string', 'example' => 'IMAGE', 'title' => ''],
+ ],
+ 'type' => 'object',
+ 'title' => '',
+ 'example' => '',
],
- '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' => '',
+ 'TargetArtifact' => [
+ 'description' => 'The target artifact.',
+ 'properties' => [
+ 'RepoId' => ['description' => 'The repository ID. It must be the same as the repository ID of the source artifact. Only image repositories are supported.', 'type' => 'string', 'example' => 'crr-1234567', 'title' => ''],
+ 'Version' => ['description' => 'The artifact version. Currently, only image versions are supported.', 'type' => 'string', 'example' => 'latest_accelerated', 'title' => ''],
+ 'ArtifactType' => ['description' => 'The artifact type. Currently, only `IMAGE` is supported.', 'type' => 'string', 'example' => 'IMAGE', 'title' => ''],
],
+ 'type' => 'object',
+ 'title' => '',
+ 'example' => '',
],
],
+ 'type' => 'object',
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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.',
+ 'errorCodes' => [],
+ 'title' => 'GetArtifactBuildTask',
+ 'summary' => 'Retrieves the details of an artifact build task.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListRepoSyncRule' => [
- 'summary' => 'Queries image synchronization rules of a repository.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactBuildTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetArtifactLifecycleRule' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '33788',
- 'abilityTreeNodes' => [
- 'FEATUREacrLKRO80',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrQD2ZKV'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -6632,75 +4457,12 @@
[
'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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-hpdfkc6utbaq****'."\n", 'title' => ''],
],
[
- 'name' => 'TargetInstanceId',
+ 'name' => 'RuleId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the rule.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cralr-a18bkiajy81****', 'title' => ''],
],
],
'responses' => [
@@ -6708,191 +4470,90 @@
'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",
+ 'NextTime' => ['description' => 'The timestamp of the next scheduled execution.', 'type' => 'integer', 'format' => 'int64', 'example' => '1701878400000', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1571926439000', 'title' => ''],
+ 'TagRegexp' => ['description' => 'The regular expression that matches image tags to select versions for retention.', 'type' => 'string', 'example' => '.*-alpine', 'title' => ''],
+ 'EnableDeleteTag' => ['description' => 'Specifies if lifecycle management is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request succeeded. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request succeeded.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The namespace name.', 'type' => 'string', 'example' => 'test-namespace', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'cralr-a18bkiajy8****', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '724402D0-75CD-4794-BC20-7D37208****', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The last modified time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1638259914000', 'title' => ''],
+ 'RetentionTagCount' => ['description' => 'The number of image versions to retain.', 'type' => 'integer', 'format' => 'int64', 'example' => '30', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'Auto' => ['description' => 'Specifies if the rule is executed automatically.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'ScheduleTime' => ['description' => 'The execution schedule.', 'type' => 'string', 'example' => 'WEEK', 'title' => ''],
+ 'RepoName' => ['description' => 'The repository name.', 'type' => 'string', 'example' => 'test-repo', 'title' => ''],
+ 'Scope' => ['description' => 'The scope of the rule.', 'type' => 'string', 'example' => 'INSTANCE', 'title' => ''],
+ 'Policies' => [
'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',
+ 'Type' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Filter' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagWildcard' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
- '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',
+ 'Condition' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LastPushOlderThanDays' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'LastPullOlderThanDays' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'LatestTagCount' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'GetArtifactLifecycleRule',
+ 'summary' => 'Lists artifact lifecycle management rules.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
+ 'translator' => 'machine',
],
- 'GetRepoSyncTask' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetArtifactSubscriptionRule' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -6902,33 +4563,23 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '33752',
- 'abilityTreeNodes' => [
- 'FEATUREacrLKRO80',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '141837',
+ 'abilityTreeNodes' => ['FEATUREacr5ED6LF'],
+ '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-sgedpenzw80e****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-c0o11woew0k****'."\n", 'title' => ''],
],
[
- 'name' => 'SyncTaskId',
+ 'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the synchronization task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'rst-zxjkiv5oil6f****',
- ],
+ 'schema' => ['description' => 'The rule ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crasr-mdbpung4i1rm****'."\n", 'title' => ''],
],
],
'responses' => [
@@ -6936,273 +4587,94 @@
'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",
+ 'IsSuccess' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request succeeded.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-hpdfkc6utbaq****'."\n", 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'crasr-mdbpung4i1rm****'."\n", 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959B22C77', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'SourceProvider' => [
+ 'description' => 'The artifact source.',
+ 'enumValueTitles' => ['DOCKER_HUB' => 'Docker Hub', 'GCR' => 'GCR', 'QUAY' => 'Quay.io'],
'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",
+ 'example' => 'DOCKER_HUB',
+ 'title' => '',
+ ],
+ 'SourceNamespaceName' => ['description' => 'The source namespace.', 'type' => 'string', 'example' => 'library', 'title' => ''],
+ 'SourceRepoName' => ['description' => 'The source repository.', 'type' => 'string', 'example' => 'nginx', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The destination ACR namespace.', 'type' => 'string', 'example' => 'test-ns'."\n", 'title' => ''],
+ 'RepoName' => ['description' => 'The destination ACR repository.', 'type' => 'string', 'example' => 'test-repo'."\n", 'title' => ''],
+ 'TagRegexp' => ['description' => 'The regular expression that is used to match the tags of images in the source repository for subscription.', 'type' => 'string', 'example' => 'release-v.*', 'title' => ''],
+ 'TagCount' => ['description' => 'The number of images to subscribe to.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Override' => ['description' => 'Indicates whether to overwrite the existing images that have the same tag in the destination repository.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Accelerate' => ['description' => 'Indicates whether to enable the accelerated data transfer feature. This feature is in public preview. It optimizes scheduling policies and network paths to improve the speed of artifact subscription.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the rule was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1570759546000', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the rule was last modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '1638259914000', 'title' => ''],
+ 'Platform' => [
+ 'description' => 'The operating systems and architectures. If a source repository contains multi-architecture images, only images that match the specified platforms are synchronized to the destination repository of the Enterprise Edition instance.',
'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' => '',
+ 'description' => 'The operating system/architecture.',
+ 'enumValueTitles' => ['linux/arm' => 'linux/arm', 'windows/x86' => 'windows/x86', '*/*' => 'All platforms.', 'linux/arm64' => 'linux/arm64', 'windows/x86-64' => 'windows/x86-64', 'linux/amd64' => 'linux/amd64'],
+ 'type' => 'string',
+ 'example' => 'linux/amd64',
+ 'title' => '',
],
- 'example' => 'NETWORK_ERROR',
+ 'title' => '',
+ 'example' => '',
],
+ 'SourceDomain' => ['description' => 'The domain name of the artifact source.', 'type' => 'string', 'title' => '', 'example' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ [],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'GetArtifactSubscriptionRule',
+ 'summary' => 'Retrieves the details of an artifact subscription rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
+ 'translator' => 'machine',
],
- 'CancelRepoSyncTask' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'https',
- ],
+ 'GetArtifactSubscriptionTask' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'readAndWrite',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '232709',
- 'abilityTreeNodes' => [
- 'FEATUREacrLKRO80',
- ],
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'SyncTaskId',
+ 'name' => 'TaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the replication task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'rst-biu4u4pm4it5****',
- ],
+ 'schema' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crast-40le4es9yh0p****', 'title' => ''],
],
],
'responses' => [
@@ -7210,81 +4682,76 @@
'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',
- ],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '12589EF7-96E2-4554-AAD7-F7209E88CAD3', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ 'TaskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => 'crast-40le4es9yh0p****', 'title' => ''],
+ 'TaskStatus' => ['description' => 'The status of the task.'."\n", 'type' => 'string', 'example' => 'RUNNING', 'title' => ''],
+ 'TaskResult' => ['description' => 'The task results.'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'TaskType' => ['description' => 'The type of the task. Valid values:'."\n", 'type' => 'string', 'example' => 'AUTO', 'title' => ''],
+ 'StartTime' => ['description' => 'The start time of the artifact subscription task.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1568718468000', 'title' => ''],
+ 'EndTime' => ['description' => 'The end time of the artifact subscription task.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1691979202000', 'title' => ''],
+ 'ArtifactType' => ['description' => 'The artifact type.'."\n", 'type' => 'string', 'example' => 'IMAGE', 'title' => ''],
+ 'SourceProvider' => ['description' => 'The artifact source.'."\n", 'type' => 'string', 'example' => 'DOCKER_HUB', 'title' => ''],
+ 'SourceRepoType' => ['description' => 'The type of the source repository.'."\n", 'type' => 'string', 'example' => 'PUBLIC', 'title' => ''],
+ 'SourceNamespaceName' => ['description' => 'The name of the source namespace.'."\n", 'type' => 'string', 'example' => 'library', 'title' => ''],
+ 'SourceRepoName' => ['description' => 'The name of the source repository.'."\n", 'type' => 'string', 'example' => 'nginx', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the Container Registry namespace.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the Container Registry repository.'."\n", 'type' => 'string', 'example' => 'test-repo', 'title' => ''],
+ 'TagTotalCount' => ['description' => 'The total number of tags.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '6', 'title' => ''],
+ 'TagSubscriptionCount' => ['description' => 'The total subscribed tags.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Message' => ['description' => 'The return message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'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.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'GetArtifactSubscriptionTask',
+ 'summary' => 'Queries an artifact subscription task.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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.',
+ '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"}]',
],
- 'CreateNamespace' => [
- 'summary' => 'Creates a namespace of image repositories.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetArtifactSubscriptionTaskResult' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '33685',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '141857',
+ 'abilityTreeNodes' => ['FEATUREacr5ED6LF'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -7292,57 +4759,22 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-90fxryf9pwf****', 'title' => ''],
],
[
- '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',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'Specifies whether to automatically create an image repository in the namespace.'."\n",
- 'type' => 'boolean',
- 'required' => false,
- 'example' => 'true',
- ],
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'DefaultRepoType',
+ 'name' => 'PageSize',
'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',
- ],
+ 'schema' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
- 'name' => 'DefaultRepoConfiguration',
+ 'name' => 'TaskId',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'required' => false,
- '$ref' => '#/components/schemas/RepoConfiguration',
- ],
+ 'schema' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crast-y64sq01bgad****', 'title' => ''],
],
],
'responses' => [
@@ -7350,62 +4782,86 @@
'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',
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '0A8768F6-9B47-5127-A075-9CFB9F79181F', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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****', 'title' => ''],
+ 'TaskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => 'crast-wkpfwqozjiq****', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'test-reop', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test-ns', 'title' => ''],
+ 'Tag' => ['description' => 'The image tag.'."\n", 'type' => 'string', 'example' => 'v2.0', 'title' => ''],
+ 'Status' => ['description' => 'The status of the task.'."\n", 'type' => 'string', 'example' => 'COMPLETED', 'title' => ''],
+ 'Result' => ['description' => 'The result of the task.'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'StartTime' => ['description' => 'The start time of the subscription task.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1691719501000', 'title' => ''],
+ 'EndTime' => ['description' => 'The end time of the subscription task.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1692756630000', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'GetArtifactSubscriptionTaskResult',
+ 'summary' => 'Queries the details of an artifact subscription task.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionTaskResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
],
- 'DeleteNamespace' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetAuthorizationToken' => [
+ 'summary' => 'Retrieves a temporary account and temporary password for logging on to an instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr9J9LGC'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -7413,24 +4869,7 @@
[
'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',
- ],
+ 'schema' => ['description' => 'The repository instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcvaduwb', 'title' => ''],
],
],
'responses' => [
@@ -7438,71 +4877,68 @@
'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',
- ],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E069EB86-E6AD-4A98-ADDE-0E993390239A', 'title' => ''],
+ 'ExpireTime' => ['description' => 'The expiration timestamp of the temporary token, in milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1571242083000', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'TempUsername' => ['description' => 'The username used to log on to the Registry.', 'type' => 'string', 'example' => 'temp_user_cr', 'title' => ''],
+ 'AuthorizationToken' => ['description' => 'The password used to log on to the Registry.', 'type' => 'string', 'example' => 'shaunadadakks:uuczxnjcyeyhdjadkkajsjdjadhyucb', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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",
+ 'title' => 'Retrieve temporary account and password for instance logon',
+ 'description' => 'The temporary password is valid for 1 hour. If you use STS to make the request, the validity period of the temporary password is the same as that of the STS token used in the request.'."\n"
+ ."\n"
+ .'- The permissions granted by a temporary token obtained through an Alibaba Cloud account are the same as the permissions granted when you log on to the instance with the username and password of the Alibaba Cloud account.'."\n"
+ .'- The permissions granted by a temporary token obtained through a RAM user are the same as the permissions granted when you log on to the instance with the username and password of the RAM user.'."\n"
+ .'- The permissions granted by a temporary token obtained through STS are the same as the permissions of the STS token.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'UpdateNamespace' => [
- 'summary' => 'Updates a namespace.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetAuthorizationToken',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ '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"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetChain' => [
+ 'summary' => 'Obtain the delivery chain definition to understand the execution order of edge zones in the delivery chain.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeCode' => '33814',
- 'abilityTreeNodes' => [
- 'FEATUREacr9J9LGC',
- ],
+ 'abilityTreeNodes' => ['FEATUREacrPRPOYY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -7510,56 +4946,188 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'Instance ID ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'ChainId',
'in' => 'query',
+ 'schema' => ['description' => 'Delivery chain ID ', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'chi-0ops0gsmw5x2****', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => ['description' => 'Updated At of the delivery chain description ', 'type' => 'integer', 'format' => 'int64', 'example' => '1638259914000', 'title' => ''],
+ 'ScopeId' => ['description' => 'Delivery chain scope ID', 'type' => 'string', 'example' => 'crr-nyrh2oko32xb****', 'title' => ''],
+ 'RequestId' => ['description' => 'Request ID', 'type' => 'string', 'example' => 'C87993B5-7D61-5CAC-8D64-1AC732DD69FF', 'title' => ''],
+ 'Description' => ['description' => 'Delivery chain description', 'type' => 'string', 'example' => 'description', 'title' => ''],
+ 'CreateTime' => ['description' => 'Delivery chain creation time', 'type' => 'integer', 'format' => 'int64', 'example' => '1638255427000', 'title' => ''],
+ 'ScopeType' => ['description' => 'Delivery chain scope type', 'type' => 'string', 'example' => 'REPOSITORY', 'title' => ''],
+ 'Code' => ['description' => 'Return code', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'ChainId' => ['description' => 'Delivery chain ID ', 'type' => 'string', 'example' => 'chi-0ops0gsmw5x2****', 'title' => ''],
+ 'InstanceId' => ['description' => 'Instance ID', 'type' => 'string', 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the operation succeeded', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Name' => ['description' => 'Delivery chain name', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ChainConfig' => [
+ 'description' => 'Delivery chain configuration description',
+ 'type' => 'object',
+ 'properties' => [
+ 'ChainConfigId' => ['description' => 'Delivery chain configuration ID', 'type' => 'string', 'example' => 'cci-lz3ycgo69ukt****', 'title' => ''],
+ 'IsActive' => ['description' => 'Indicates whether the delivery chain configuration is active. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The configuration is active.'."\n"
+ ."\n"
+ .'- `false`: The configuration is not active.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Version' => ['description' => 'Delivery chain version', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'Routers' => [
+ 'description' => 'Execution order relationships between edge zones in the delivery chain',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'From' => [
+ 'description' => 'source edge zone',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['description' => 'source edge zone name', 'type' => 'string', 'example' => 'DOCKER_IMAGE_BUILD', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'To' => [
+ 'description' => 'destination edge zone',
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['description' => 'destination edge zone name', 'type' => 'string', 'example' => 'DOCKER_IMAGE_PUSH', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Nodes' => [
+ 'description' => 'Each edge zone in the delivery chain',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'NodeName' => ['description' => 'Delivery chain edge zone name', 'type' => 'string', 'example' => 'VULNERABILITY_SCANNING', 'title' => ''],
+ 'Enable' => ['description' => 'Indicates whether to enable the delivery chain edge zone. Valid values:'."\n"
+ ."\n"
+ .'- `true`: Enable the delivery chain edge zone.'."\n"
+ ."\n"
+ .'- `false`: Do not enable the delivery chain edge zone.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'NodeConfig' => [
+ 'description' => 'Delivery chain edge zone configuration',
+ 'type' => 'object',
+ 'properties' => [
+ 'Timeout' => ['description' => 'Timeout (in seconds)', 'type' => 'integer', 'format' => 'int64', 'example' => '900', 'title' => ''],
+ 'Retry' => ['description' => 'Retry Count ', 'type' => 'integer', 'format' => 'int32', 'example' => '3', 'title' => ''],
+ 'DenyPolicy' => [
+ 'description' => 'Deny rules for scan nodes in the delivery chain',
+ 'type' => 'object',
+ 'properties' => [
+ 'Logic' => ['description' => 'The logic that triggers blocking upon scan detection ', 'type' => 'string', 'example' => 'AND', 'title' => ''],
+ 'IssueLevel' => ['description' => 'The vulnerability Level at which blocking is triggered during a scan ', 'type' => 'string', 'example' => 'HIGH', 'title' => ''],
+ 'IssueCount' => ['description' => 'Number of scanned vulnerabilities that triggers a block', 'type' => 'string', 'example' => '10', 'title' => ''],
+ 'Action' => ['description' => 'Deny action. Valid values:'."\n"
+ ."\n"
+ .'- `BLOCK`: Block further execution of the delivery chain'."\n"
+ ."\n"
+ .'- `BLOCK_RETAG`: Block overwriting and pushing image tags'."\n"
+ ."\n"
+ .'- `BLOCK_DELETE_TAG`: Block deleting image tags', 'type' => 'string', 'example' => 'BLOCK', 'title' => ''],
+ 'IssueList' => ['description' => 'Collection of CVE vulnerabilities to block. Separate multiple CVE vulnerability names with commas.', 'type' => 'string', 'example' => 'CVE-2020-8286,CVE-2020-8285', 'title' => ''],
+ 'MaliciousList' => ['description' => 'The collection of malicious samples to block, with multiple sample names separated by commas ', 'type' => 'string', 'example' => 'mutate_cockhorse,abnormal_program', 'title' => ''],
+ 'BaselineList' => ['description' => 'Collection of baseline samples to block. Separate multiple baseline sample names with commas.', 'type' => 'string', 'example' => 'identification,hc_image_exploit', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ScanEngine' => ['description' => 'Scan engine for the delivery chain node '."\n"
+ ."\n"
+ .'- `SAS_SCAN_SERVICE`, Security Center scan engine (requires paid activation) '."\n"
+ .'- `ACR_SCAN_SERVICE`, ACR scan engine ', 'type' => 'string', 'example' => 'ACR_SCAN_SERVICE', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ScopeExclude' => [
+ 'description' => 'Collection of repositories excluded from delivery chain execution',
+ 'type' => 'array',
+ 'items' => ['description' => 'Names of repositories excluded from delivery chain execution, separated by commas', 'type' => 'string', 'example' => 'repo_name1,repo_name2'."\n", 'title' => ''],
+ 'maxItems' => 50,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'title' => 'Retrieve delivery chain definition ',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetChartNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'DefaultRepoType',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => ['operationType' => 'get', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'DefaultRepoConfiguration',
+ 'name' => 'NamespaceName',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- '$ref' => '#/components/schemas/RepoConfiguration',
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
],
],
'responses' => [
@@ -7567,104 +5135,89 @@
'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',
- ],
+ 'DefaultRepoType' => ['description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: a public repository.'."\n"
+ .'* `PRIVATE`: a private repository.'."\n", 'type' => 'string', 'example' => 'PRIVATE', 'title' => ''],
+ 'NamespaceId' => ['description' => 'The ID of the namespace.'."\n", 'type' => 'string', 'example' => 'crcn-43dhbjbyt2xl****', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'CD71CF13-93AA-4805-848B-69B2DD543A9A', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'ns1', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.'."\n", 'type' => 'string', 'example' => 'rg-acfmv36i4is****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'GetChartNamespace',
+ 'summary' => 'Queries a chart namespace in an instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetNamespace' => [
- 'summary' => 'Queries the information about a namespace.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#NamespaceName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetChartRepository' => [
+ '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不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'NamespaceId',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crn-tiw8t3f8i5lta****',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
],
'responses' => [
@@ -7672,160 +5225,79 @@
'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',
- ],
+ 'Summary' => ['description' => 'The summary about the chart repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the chart repository was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1563767620000', 'title' => ''],
+ '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', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'A3F6AB56-DEF4-4FF5-8DE4-680362C0E21F', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the chart repository.'."\n", 'type' => 'string', 'example' => 'crcr-c7letfwev5oq****', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the chart repository was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1563767700000', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace to which the chart repository belongs.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the chart repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group.'."\n", 'type' => 'string', 'example' => 'rg-acfmv36i4is****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'GetChartRepository',
+ 'summary' => 'Queries the information about a chart repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListNamespace' => [
- 'summary' => 'Queries namespaces in a Container Registry instance.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetInstance' => [
+ '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不符合测试要求',
- ],
+ '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-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',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
],
'responses' => [
@@ -7833,223 +5305,186 @@
'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",
+ 'ModifiedTime' => ['description' => 'The time when the instance was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1571926560000', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '6EF34B18-4228-470C-860C-D28597CF010E', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the instance was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1571926439000', 'title' => ''],
+ 'InstanceName' => ['description' => 'The name of the instance.'."\n", 'type' => 'string', 'example' => 'shanghai-instance1', 'title' => ''],
+ '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', 'title' => ''],
+ 'Code' => ['description' => 'Return value', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ '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', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.'."\n", 'type' => 'string', 'example' => 'rg-acfmv36i4isx****', 'title' => ''],
+ 'InstanceIssue' => ['description' => 'The issue occurs on the instance.'."\n", 'type' => 'string', 'example' => '实例问题,取值:'."\n"
+ .'OSS_TOO_MANY_BUCKETS:OSS Bucket 数量超限'."\n"
+ ."\n"
+ .'OSS_BUCKET_ALREADY_EXISTS:同名 OSS Bucket 已存在'."\n"
+ ."\n"
+ .'OSS_SERVICE_ROLE_UNAUTHORIZED:OSS 权限未授权'."\n"
+ ."\n"
+ .'USER_NOT_REGISTERED_BY_REAL_NAME:国际站账号在购买中国站 OSS Bucket 时未进行实名认证', 'title' => ''],
+ 'Tags' => [
+ 'description' => 'The tags of the instance.'."\n",
'type' => 'array',
'items' => [
+ 'description' => 'The tag of the instance.'."\n",
'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',
- ],
+ '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' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'Query instance information ',
+ 'summary' => 'Query instance information.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
'translator' => 'machine',
],
- 'CreateRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetInstanceCount' => [
+ 'summary' => 'Queries the number of instances of a user.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr9J9LGC'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
+ 'parameters' => [],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The API call is successful.'."\n"
+ ."\n"
+ .'- `false`: The API call fails.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
+ 'Count' => ['description' => 'The number of instances.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
- [
- 'name' => 'RepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'GetUserSourceCount',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BC648259-91A7-4502-BED3-EDF64361FA83\\",\\n \\"Count\\": 5\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetInstanceCustomizedDomain' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- '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',
- ],
+ 'AK' => [],
],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33731',
+ 'abilityTreeNodes' => ['FEATUREacr9LPARH'],
+ 'autoTest' => false,
+ 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ ],
+ 'parameters' => [
[
- 'name' => 'Summary',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The summary about the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'Detail',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The description of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'repo1',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'Registry', 'title' => ''],
],
[
- 'name' => 'TagImmutability',
+ 'name' => 'Domain',
'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',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'registry.ugnas.com', 'title' => ''],
],
],
'responses' => [
@@ -8057,68 +5492,54 @@
'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',
- ],
+ 'ModuleName' => ['type' => 'string', 'description' => '', 'example' => 'Chart', 'title' => ''],
+ 'Domain' => ['type' => 'string', 'description' => '', 'example' => 'docker-images.qu-in.club', 'title' => ''],
+ 'CreateTime' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => '1571926439000', 'title' => ''],
+ 'IsSuccess' => ['type' => 'boolean', 'description' => '', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['type' => 'string', 'description' => '', 'example' => 'cri-4ec5xvj4j0l****', 'title' => ''],
+ 'CertId' => ['type' => 'string', 'description' => '', 'example' => '24858802', 'title' => ''],
+ 'EndpointType' => ['type' => 'string', 'description' => '', 'example' => 'internet', 'title' => ''],
+ 'RegionId' => ['type' => 'string', 'description' => '', 'example' => 'cn-shanghai', 'title' => ''],
+ 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
+ 'ModifiedTime' => ['type' => 'integer', 'format' => 'int64', 'description' => '', 'example' => '1638259914000', 'title' => ''],
+ 'Code' => ['type' => 'string', 'description' => '', 'example' => 'success', 'title' => ''],
+ 'DomainType' => ['type' => 'string', 'description' => '', 'example' => 'USER', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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' => ' ',
+ 'title' => '',
+ 'summary' => '',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ModuleName\\": \\"Chart\\",\\n \\"Domain\\": \\"docker-images.qu-in.club\\",\\n \\"CreateTime\\": 1571926439000,\\n \\"IsSuccess\\": true,\\n \\"InstanceId\\": \\"cri-4ec5xvj4j0l****\\",\\n \\"CertId\\": \\"24858802\\",\\n \\"EndpointType\\": \\"internet\\",\\n \\"RegionId\\": \\"cn-shanghai\\",\\n \\"RequestId\\": \\"4CE1F661-75DD-4EBD-A4AD-057B26834ABB\\",\\n \\"ModifiedTime\\": 1638259914000,\\n \\"Code\\": \\"success\\",\\n \\"DomainType\\": \\"USER\\"\\n}","type":"json"}]',
],
- 'DeleteRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetInstanceEndpoint' => [
+ 'summary' => 'Queries an endpoint of an instance.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -8126,44 +5547,20 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'EndpointType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'crr-l4933wbcmun2****',
- ],
+ 'schema' => ['description' => 'The type of the endpoint. Set the value to Internet.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet', 'title' => ''],
],
[
- 'name' => 'RepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-repo',
- ],
- ],
- [
- 'name' => 'RepoNamespaceName',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-namespace',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -8171,68 +5568,96 @@
'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',
+ 'Status' => ['description' => 'The status of the instance.'."\n", 'type' => 'string', 'example' => 'RUNNING', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '8F3D5EC5-39D1-4C53-A198-48C54C658FA3', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'AclEnable' => ['description' => 'Indicates whether the access control list (ACL) feature is enabled.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Enable' => ['description' => 'Indicates whether the ACL feature is enabled.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'RequestId' => [
- 'description' => 'The request ID.'."\n",
- 'type' => 'string',
- 'example' => '47DD9D56-09A0-4C52-B520-C3805DBAB96B',
+ 'AclEntries' => [
+ 'description' => 'The ACLs.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Comment' => ['description' => 'Remarks for public IP address whitelists.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'Entry' => ['description' => 'The public IP address whitelist.'."\n", 'type' => 'string', 'example' => '192.168.1.0/24', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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",
+ 'title' => 'GetInstanceEndpoint',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'UpdateRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetInstanceUsage' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33741',
+ 'abilityTreeNodes' => ['FEATUREacrLBBNHS'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -8240,85 +5665,7 @@
[
'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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
],
'responses' => [
@@ -8326,55 +5673,62 @@
'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',
- ],
+ 'NamespaceUsage' => ['description' => 'The number of image namespaces that are created in the instance.'."\n", 'type' => 'string', 'example' => '4', 'title' => ''],
+ 'RepoQuota' => ['description' => 'The quota of image repositories for the instance.'."\n", 'type' => 'string', 'example' => '1000', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'A726E801-7FCF-43F9-AF1C-51B3E65D3E7A', 'title' => ''],
+ 'ChartNamespaceQuota' => ['description' => 'The quota of chart namespaces.'."\n", 'type' => 'string', 'example' => '50', 'title' => ''],
+ 'RepoUsage' => ['description' => 'The number of image repositories that are created in the instance.'."\n", 'type' => 'string', 'example' => '2', 'title' => ''],
+ 'NamespaceQuota' => ['description' => 'The quota of image namespaces for the instance.'."\n", 'type' => 'string', 'example' => '100', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'ChartRepoUsage' => ['description' => 'The number of chart repositories that are created.'."\n", 'type' => 'string', 'example' => '5', 'title' => ''],
+ 'ChartNamespaceUsage' => ['description' => 'The number of chart namespaces that are created in the instance.'."\n", 'type' => 'string', 'example' => '2', 'title' => ''],
+ 'ChartRepoQuota' => ['description' => 'The quota of chart repositories for the instance.'."\n", 'type' => 'string', 'example' => '5000', 'title' => ''],
+ 'VpcQuota' => ['description' => 'VPC quota', 'type' => 'string', 'example' => '5', 'title' => ''],
+ 'VpcUsage' => ['description' => 'Number of bound VPCs', 'type' => 'string', 'example' => '2', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'GetInstanceUsage',
+ 'summary' => 'Queries the quota usage of an instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceUsage',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ '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' => [],
@@ -8383,224 +5737,116 @@
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrFQBFTD'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ModuleName',
'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',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'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',
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'BAE9349D-A587-4F9A-B574-9DA0EF2638D1', 'title' => ''],
+ 'Enable' => ['description' => 'Indicates whether the VPC endpoint is enabled. Valid values:'."\n"
+ ."\n"
+ .'* `true`'."\n"
+ .'* `false`'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Domains' => [
+ 'description' => 'Domain names.'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The domain name.', 'type' => 'string', 'example' => 'test-registry.cn-hangzhou.cr.aliyuncs.com', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
- 'Repositories' => [
- 'description' => 'The information about the repositories.'."\n",
+ 'LinkedVpcs' => [
+ 'description' => 'List of linked VPCs'."\n",
'type' => 'array',
'items' => [
+ 'description' => 'The linked VPC information'."\n",
'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",
- ],
+ 'Status' => ['description' => 'The status of the VPC. Valid values:'."\n"
+ ."\n"
+ .'* `CREATING`'."\n"
+ .'* `RUNNING`'."\n", 'type' => 'string', 'example' => 'CREATING', 'title' => ''],
+ 'VpcId' => ['description' => 'VPC ID'."\n", 'type' => 'string', 'example' => 'vpc-uf6aamu2nomfr1thd****', 'title' => ''],
+ 'Ip' => ['description' => 'IP address.'."\n", 'type' => 'string', 'example' => '192.168.10.11', 'title' => ''],
+ 'DefaultAccess' => ['description' => 'Indicates whether the VPC is the default VPC over which the Container Registry instance is accessed.'."\n", 'type' => 'boolean', 'example' => 'false', 'title' => ''],
+ 'VswitchId' => ['description' => 'The ID of the vSwitch.'."\n", 'type' => 'string', 'example' => 'vsw-uf62m5vmxl2e72dk7****', 'title' => ''],
+ 'Issue' => ['title' => '', 'description' => 'The error message detected in the linked VPC access control.'."\n", 'type' => 'string', 'example' => 'PRIVATE_ZONE_CONFLICT_AT_{private_zone_id}'],
],
- 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
+ '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', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'GetInstanceVpcEndpoint',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceVpcEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ 'GetNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -8609,10 +5855,10 @@
'operationType' => 'read',
'systemTags' => [
'operationType' => 'get',
- 'abilityTreeCode' => '33750',
- 'abilityTreeNodes' => [
- 'FEATUREacr0GH77N',
- ],
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33746',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -8620,246 +5866,179 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'NamespaceName',
'in' => 'query',
- 'schema' => [
- 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
- 'description' => 'The ID of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crr-03cuozrsqhkw****',
- ],
+ 'schema' => ['description' => 'The name of the namespace.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'NamespaceId',
'in' => 'query',
+ 'schema' => ['description' => 'The ID of the namespace.', 'type' => 'string', 'required' => false, 'example' => 'crn-tiw8t3f8i5lta****', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ 'type' => 'object',
+ 'properties' => [
+ 'DefaultRepoType' => ['description' => 'The default repository type. Valid values:'."\n"
+ ."\n"
+ .'- `PUBLIC`: a public repository'."\n"
+ ."\n"
+ .'- `PRIVATE`: a private repository', 'type' => 'string', 'deprecated' => true, 'example' => 'PUBLIC', 'title' => ''],
+ 'NamespaceId' => ['description' => 'The ID of the namespace.', 'type' => 'string', 'example' => 'crn-tiw8t3f8i5lt****', 'title' => ''],
+ 'NamespaceStatus' => ['description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'- `NORMAL`: The namespace is running as expected.'."\n"
+ ."\n"
+ .'- `DELETING`: The namespace is being deleted.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'E4BC9E21-8AA5-4582-83C1-C1209AB8196F', 'title' => ''],
+ 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'AutoCreateRepo' => ['description' => 'Indicates whether automatic repository creation is enabled.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request succeeded.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-acfmv36i4is****', 'title' => ''],
+ 'DefaultRepoConfiguration' => ['$ref' => '#/components/schemas/RepoConfiguration', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'title' => 'GetNamespace',
+ 'summary' => 'Retrieves information about a namespace.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'RepoName',
- 'in' => 'query',
- 'schema' => [
- 'title' => 'RepoId、RepoNamespaceName、RepoName不可同时为空,至少需传入1个。',
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}'],
+ ],
],
],
],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","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 \\"RepoType\\": \\"\\",\\n \\"TagImmutability\\": true,\\n \\"ArtifactBuildRuleParameters\\": {\\n \\"ImageIndexOnly\\": true\\n }\\n }\\n}","type":"json"}]',
+ ],
+ '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****', 'title' => ''],
+ ],
+ [
+ '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****', 'title' => ''],
+ ],
+ ],
'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****',
+ 'Status' => ['description' => 'The status of the instance.'."\n", 'type' => 'string', 'example' => 'true', 'title' => ''],
+ 'EndTime' => ['description' => 'The time when the image building was completed.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1568718698000', 'title' => ''],
+ 'StartTime' => ['description' => 'The time when the image building started.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1568718468000', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d9de1 ', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'BuildRecordId' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'example' => '79174CBA-8556-443A-8976-22C922D7****', 'title' => ''],
+ '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', 'title' => ''],
+ 'ImageTag' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'example' => 'master', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'GetRepoBuildRecord',
+ 'summary' => 'Queries the information about image building records of a repository.',
+ 'description' => '****',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateRepoTag' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositoryBuildRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetRepoBuildRecordStatus' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-shac42yvqzv****',
- ],
- ],
- [
- 'name' => 'NamespaceName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
- ],
- [
- 'name' => 'FromTag',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The source image tag.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'v1',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-jnzm47ihjmgc****', 'title' => ''],
],
[
- 'name' => 'ToTag',
+ 'name' => 'BuildRecordId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The image tag that you want to create.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'v2',
- ],
+ 'schema' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d****', 'title' => ''],
],
],
'responses' => [
@@ -8867,99 +6046,67 @@
'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*****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '79174CBA-8556-443A-8976-22C922D7BE37', 'title' => ''],
+ 'BuildStatus' => ['description' => 'The status of the image building.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access is denied for the user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'GetRepoBuildRecordStatus',
+ 'summary' => 'Queries the status of an image building task.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'DeleteRepoTag' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetBuildRepositoryStatus',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetRepoSourceCodeRepo' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-xkx6vujuhay****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
],
[
'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',
- ],
+ 'schema' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-gzsrlevmvoaq****', 'title' => ''],
],
],
'responses' => [
@@ -8967,110 +6114,90 @@
'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',
- ],
+ 'CodeRepoType' => ['description' => 'The type of the code hosting platform. Valid values: `GITHUB`, `GITLAB`, `GITEE`, `CODE`, and `CODEUP`.'."\n", 'type' => 'string', 'example' => 'GITHUB', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crr-gzsrlevmvoaq****', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
+ 'CodeRepoNamespaceName' => ['description' => 'The namespace to which the source code repository belongs.'."\n", 'type' => 'string', 'example' => 'namespace', 'title' => ''],
+ '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', 'title' => ''],
+ 'Code' => ['description' => 'The response code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'CodeRepoName' => ['description' => 'The name of the source code repository.'."\n", 'type' => 'string', 'example' => 'repo', 'title' => ''],
+ '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', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ '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', 'title' => ''],
+ 'CodeRepoDomain' => ['description' => 'The address of the source code repository.'."\n", 'type' => 'string', 'example' => 'https://github.com', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'GetRepoSourceCodeRepo',
+ 'summary' => 'Queries the information about the source code repository that is bound to an image repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListRepoTag' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'RepoSourceCodeRepo', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'GetRepoSyncTask' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-sgedpenzw80e****', 'title' => ''],
],
[
- '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',
+ 'name' => 'SyncTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page. Maximum value: 100.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The ID of the synchronization task.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'rst-zxjkiv5oil6f****', 'title' => ''],
],
],
'responses' => [
@@ -9078,117 +6205,132 @@
'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',
+ 'SyncRuleId' => ['description' => 'The ID of the synchronization rule.'."\n", 'type' => 'string', 'example' => 'crsr-cllro6ho3wne****', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'A6DEF8B0-5D45-46D6-867D-8C7FF0966B07', 'title' => ''],
+ 'SyncedSize' => ['description' => 'The size of the image layer that is synchronized. Unit: bytes.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '23655489', 'title' => ''],
+ 'TaskStatus' => ['description' => 'The status of the task. Valid values:'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'SyncTransAccelerate' => ['description' => 'Indicates whether transfer acceleration is enabled in the synchronization process.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'CrossUser' => ['description' => 'Indicates whether the synchronization task is performed across Alibaba Cloud accounts.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'SyncTaskId' => ['description' => 'The ID of the synchronization task.'."\n", 'type' => 'string', 'example' => 'rst-zxjkiv5oil6f****', 'title' => ''],
+ '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****', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'TaskTrigger' => ['description' => 'The policy that is used to trigger the synchronization task.'."\n", 'type' => 'string', 'example' => 'PASSIVE', 'title' => ''],
+ 'ImageFrom' => [
+ 'description' => 'The source address of the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-sgedpenzw80e****', 'title' => ''],
+ 'ImageTag' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'example' => 'master', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RegionId' => ['description' => 'The region ID.'."\n", 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'TotalCount' => [
- 'description' => 'The total number of returned entries.'."\n",
- 'type' => 'string',
- 'example' => '1',
+ 'ImageTo' => [
+ 'description' => 'The destination address of the image.'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-leqzomz5vijc****', 'title' => ''],
+ 'ImageTag' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'example' => 'master', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RegionId' => ['description' => 'The region ID.'."\n", 'type' => 'string', 'example' => 'eu-west-1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
],
- 'Images' => [
- 'description' => 'The images.'."\n",
+ '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' => [
- '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****',
- ],
+ 'TaskStatus' => ['description' => 'The status of the synchronization task. Valid values:'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'Digest' => ['description' => 'The digest of the image layer.'."\n", 'type' => 'string', 'example' => 'sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e', 'title' => ''],
+ 'SyncedSize' => ['description' => 'The size of the image layer that is synchronized.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '23655489', 'title' => ''],
+ 'Size' => ['description' => 'The size of synchronized image layers.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '23655489', 'title' => ''],
+ 'SyncLayerTaskId' => ['description' => 'The ID of the synchronization task for the image layer.'."\n", 'type' => 'string', 'example' => 'rslt-074x4q20fx2d****', 'title' => ''],
+ 'ArtifactDigest' => ['description' => 'The digest of the artifact.'."\n", 'type' => 'string', 'example' => 'sha256:36fb85fcb5e919cb60e782397a6be04201868fe7b38ef7669fc01caec1c8fc4e', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
+ ],
+ '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',
+ 'title' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'GetRepoSyncTask',
+ 'summary' => 'Queries an image synchronization task in an instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetRepoTag' => [
- 'summary' => 'Queries the information about an image tag.',
- 'methods' => [
- 'get',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ '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":""}]',
+ 'gatewayOptions' => [
+ 'gatewayProtocols' => [],
],
+ ],
+ 'GetRepoTag' => [
+ 'summary' => 'Retrieve information about a single image tag.',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -9196,44 +6338,22 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The return value of status code.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
'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****',
- ],
+ 'schema' => ['description' => 'The operation that you want to perform. Set the value to **GetRepoTag**.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
[
'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',
- ],
+ 'schema' => ['description' => 'The number of milliseconds that have elapsed since the image was created.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => '1.0', 'title' => ''],
],
],
'responses' => [
@@ -9241,156 +6361,89 @@
'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****',
- ],
+ 'Status' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'ImageCreate' => ['description' => 'crr-tquyps22md8p****', 'type' => 'integer', 'format' => 'int64', 'example' => '1572839125000', 'title' => ''],
+ 'ImageSize' => ['description' => 'The number of milliseconds that have elapsed since the image was last updated.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '27107966', 'title' => ''],
+ 'RequestId' => ['description' => '1.0', 'type' => 'string', 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6', 'title' => ''],
+ 'Digest' => ['description' => 'The size of the image. Unit: Bytes.'."\n", 'type' => 'string', 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****', 'title' => ''],
+ 'Code' => ['description' => 'The ID of the image.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'ImageUpdate' => ['description' => 'The ID of the request.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1572875608000', 'title' => ''],
+ 'Tag' => ['description' => 'The version of the repository.'."\n", 'type' => 'string', 'example' => '1.0', 'title' => ''],
+ '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', 'title' => ''],
+ 'ImageId' => ['description' => 'Image ID', 'type' => 'string', 'example' => '45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'title' => 'Query a specific image version (tag)',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetRepoTagScanStatus' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'abilityTreeCode' => '33693',
- 'abilityTreeNodes' => [
- 'FEATUREacrKJDAEQ',
- ],
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '33756',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P', '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-2j88dtld8yel****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-xwvi3osiy4ff****',
- ],
+ 'schema' => ['description' => 'The ID of the repository.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-uf082u9dg8do****', 'title' => ''],
],
[
'name' => 'Tag',
'in' => 'query',
- 'schema' => [
- 'description' => 'The image version.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '1.24',
- ],
+ 'schema' => ['description' => 'The image tag.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'Digest',
+ 'name' => 'ScanTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The digest of the image.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sha256:815386ebbe9a3490f38785ab11bda34ec8dacf4634af77b8912832d4f85dca04',
- ],
+ 'schema' => ['description' => 'The ID of the image scan task.', 'type' => 'string', 'required' => false, 'example' => '838152F9-F725-5A52-A344-8972D65AC045', 'title' => ''],
],
[
- 'name' => 'ScanService',
+ 'name' => 'Digest',
'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',
- ],
+ 'schema' => ['description' => 'The image digest.', 'type' => 'string', 'required' => false, 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1d529', 'title' => ''],
],
[
'name' => 'ScanType',
'in' => 'query',
- 'schema' => [
- 'type' => 'string',
- 'required' => false,
- ],
+ 'schema' => ['type' => 'string', 'description' => '', 'required' => false, 'title' => '', 'example' => ''],
],
],
'responses' => [
@@ -9398,56 +6451,64 @@
'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',
- ],
+ 'Status' => ['description' => 'The scan status of the image. Valid values:'."\n"
+ ."\n"
+ .'- `SCANNING`: The image is being scanned.'."\n"
+ ."\n"
+ .'- `COMPLETE`: The scan is complete.'."\n"
+ ."\n"
+ .'- `FAILED`: The scan failed.'."\n"
+ ."\n"
+ .'- `RETRYING`: The scan is being retried.', 'type' => 'string', 'example' => 'COMPLETE', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Specifies whether the request was successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request was successful.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
+ 'ScanService' => ['description' => 'The scan engine type. Valid values:'."\n"
+ ."\n"
+ .'- `ACR_SCAN_SERVICE`: the ACR Trivy scan engine.'."\n"
+ ."\n"
+ .'- `SAS_SCAN_SERVICE`: the Cloud Security scan engine.', 'type' => 'string', 'example' => 'ACR_SCAN_SERVICE', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'GetRepoTagScanStatus',
+ 'summary' => 'Retrieves the scan status of a specific image tag.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
],
],
],
- '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.',
+ '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"}]',
+ 'translator' => 'machine',
],
- 'GetRepoTagScanStatus' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetRepoTagScanSummary' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -9455,75 +6516,32 @@
],
'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '33756',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
- 'FEATUREacrKJDAEQ',
- ],
- ],
+ '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-2j88dtld8yel****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-2j88dtld8yel****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'crr-uf082u9dg8do****',
- ],
+ 'schema' => ['description' => 'The name of the image tag.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-c2i5yk6h6pu9d5o8', 'title' => ''],
],
[
'name' => 'Tag',
'in' => 'query',
- 'schema' => [
- 'description' => 'The image tag.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The ID of the security scan task.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '1', 'title' => ''],
],
[
'name' => 'ScanTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image scan task.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '838152F9-F725-5A52-A344-8972D65AC045',
- ],
+ 'schema' => ['description' => 'The digest of the image.'."\n", 'type' => 'string', 'required' => false, 'example' => '47A3E5A3-6AD4-5F02-93B8-59F778AE25D4', 'title' => ''],
],
[
'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,
- ],
+ 'schema' => ['description' => 'The number of unknown-severity vulnerabilities.'."\n", 'type' => 'string', 'required' => false, 'example' => 'sha256:c9f370a4eb1c00d0b0d7212a0a9fa4a7697756c90f0f680afaf9737a25725f4c', 'title' => ''],
],
],
'responses' => [
@@ -9531,83 +6549,64 @@
'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',
- ],
+ 'UnknownSeverity' => ['description' => 'The ID of the request.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '4', 'title' => ''],
+ 'RequestId' => ['description' => 'The total number of vulnerabilities detected on images.'."\n", 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
+ 'TotalSeverity' => ['description' => 'The return value.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '196', 'title' => ''],
+ 'Code' => ['description' => 'The number of medium-severity vulnerabilities.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'IsSuccess' => ['description' => 'The number of high-severity vulnerabilities.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'HighSeverity' => ['description' => 'The number of low-severity vulnerabilities.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '22', 'title' => ''],
+ 'LowSeverity' => ['description' => 'Number of low-severity vulnerabilities', 'type' => 'integer', 'format' => 'int32', 'example' => '89', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Obtain the number of scan results for an image version',
+ 'summary' => 'Obtain the number of scan results for an image version.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScanCount',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
],
],
],
- '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.',
+ '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"}]',
+ 'translator' => 'machine',
],
- 'GetRepoTagScanSummary' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
+ 'abilityTreeCode' => '33750',
+ 'abilityTreeNodes' => ['FEATUREacr0GH77N'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -9615,55 +6614,22 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-2j88dtld8yel****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
'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',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crr-03cuozrsqhkw****'],
],
[
- 'name' => 'ScanTaskId',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The digest of the image.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '47A3E5A3-6AD4-5F02-93B8-59F778AE25D4',
- ],
+ 'schema' => ['title' => '', 'description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test'],
],
[
- 'name' => 'Digest',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of unknown-severity vulnerabilities.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sha256:c9f370a4eb1c00d0b0d7212a0a9fa4a7697756c90f0f680afaf9737a25725f4c',
- ],
+ 'schema' => ['title' => '', 'description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test'],
],
],
'responses' => [
@@ -9671,86 +6637,72 @@
'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',
- ],
+ 'Summary' => ['description' => 'The summary of the repository.'."\n", 'type' => 'string', 'example' => 'Automatically created repository', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the repository was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1570759546000', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'RepoStatus' => ['description' => 'The status of the repository.'."\n", 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'RepoType' => ['description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`: public repository.'."\n"
+ .'* `PRIVATE`: private repository.'."\n", 'type' => 'string', 'example' => 'PRIVATE', 'title' => ''],
+ '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', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the repository was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1570759546100', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '915E6734-3E50-4640-8DBA-126D2D94DE29', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crr-l5eoubonp0l****', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ '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', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'Detail' => ['description' => 'The details of the repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group.'."\n", 'type' => 'string', 'example' => 'rg-acfmv36i4is****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'GetRepository',
+ 'summary' => 'Queries details about an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
],
],
- '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.',
+ '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":""}]',
],
- 'ListRepoTagScanResult' => [
- 'summary' => 'Queries the results of a security scan that is created for an image tag.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'GetScanRule' => [
+ 'summary' => 'Retrieves a scan rule.',
+ 'path' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['https'],
'security' => [
[
'AK' => [],
@@ -9762,136 +6714,218 @@
'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
- 'FEATUREacrKJDAEQ',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'abilityTreeNodes' => ['FEATUREacrLBBNHS'],
+ '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-2j88dtld8yel****',
- ],
+ 'schema' => ['title' => '', 'description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****'],
],
[
- 'name' => 'RepoId',
+ 'name' => 'ScanRuleId',
'in' => 'query',
+ 'schema' => ['description' => 'The scan rule ID.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'crscnr-2sdveqjhpzdcafyq', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'crr-uf082u9dg8do****',
+ 'title' => '',
+ 'description' => 'Schema of Response',
+ 'type' => 'object',
+ 'properties' => [
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API call is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The API call is successful.'."\n"
+ ."\n"
+ .'- `false`: The API call failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'C87993B5-7D61-5CAC-8D64-1AC732DD69FF', 'title' => ''],
+ 'ScanRule' => [
+ 'description' => 'The scan rule.',
+ 'type' => 'object',
+ 'properties' => [
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-szw6f6bhrky0c8jk', 'title' => ''],
+ 'ScanRuleId' => ['description' => 'The scan rule ID.', 'type' => 'string', 'example' => 'crscnr-aemytkwad2h7fyhb', 'title' => ''],
+ 'RuleName' => ['description' => 'The name of the event rule.', 'type' => 'string', 'example' => 'protection', 'title' => ''],
+ 'ScanScope' => ['description' => 'The scan scope.', 'type' => 'string', 'example' => 'REPO', 'title' => ''],
+ 'TriggerType' => ['description' => 'The trigger type. Valid values:'."\n"
+ ."\n"
+ .'- `ALL`: all triggers'."\n"
+ ."\n"
+ .'- `TAG_LISTTAG`: tag trigger'."\n"
+ ."\n"
+ .'- `TAG_REG_EXP`: expression trigger', 'type' => 'string', 'example' => 'AUTO', 'title' => ''],
+ 'Namespaces' => [
+ 'description' => 'The namespace names for which the event takes effect.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The namespace names for which the event takes effect.', 'type' => 'string', 'example' => '[\\"lwc-app-group\\"]', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RepoNames' => [
+ 'description' => 'The repository names for which the event takes effect.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The repository names for which the event takes effect.', 'type' => 'string', 'example' => '[\\"lesson-kit-api\\",\\"lesson-kit-consumer-gen\\"]', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'RepoTagFilterPattern' => ['description' => 'The tag filtering rule that triggers the event.', 'type' => 'string', 'example' => '.*', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2018-03-15T17:08Z', 'title' => ''],
+ 'UpdateTime' => ['description' => 'The update time.', 'type' => 'integer', 'format' => 'int64', 'example' => '2025-08-28T20:07:33.164', 'title' => ''],
+ 'ScanType' => ['description' => 'The vulnerability type. Valid values:'."\n"
+ ."\n"
+ .'- `cve`: system vulnerability'."\n"
+ ."\n"
+ .'- `sca`: application vulnerability', 'type' => 'string', 'example' => 'SBOM', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'example' => '',
],
],
+ ],
+ 'staticInfo' => ['returnType' => 'synchronous'],
+ 'title' => 'Retrieve a scan rule',
+ 'description' => 'Retrieves a scan rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'name' => 'Tag',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image tag.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => '1',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ],
],
],
+ ],
+ '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"}]',
+ 'translator' => 'machine',
+ ],
+ 'GetStorageDomainRoutingRule' => [
+ 'summary' => 'Retrieves the instance storage domain name routing list.',
+ 'methods' => ['get', 'post'],
+ 'schemes' => ['https'],
+ 'security' => [
[
- 'name' => 'ScanTaskId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the security scan task.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '6b0b094f-8a90-4f8f-b660-2427aed0****',
- ],
+ 'AK' => [],
],
+ ],
+ 'consumes' => ['application/json'],
+ 'produces' => ['application/json'],
+ 'operationType' => 'read',
+ 'systemTags' => [
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrFQBFTD'],
+ ],
+ 'parameters' => [
[
- 'name' => 'PageNo',
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'RuleId',
'in' => 'query',
+ 'schema' => ['description' => 'The rule ID.', 'type' => 'string', 'required' => false, 'example' => 'crasr-mdbpung4i1rm****'."\n", 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'D4978DCC-ECBD-40B0-A714-EE695******', 'title' => ''],
+ 'Routes' => [
+ 'description' => 'The routing list.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The route entry.', '$ref' => '#/components/schemas/RouteItem', 'example' => '[{\'Status\': \'Published\', \'DestinationCidrBlock\': \'10.192.0.0/14\', \'NextHopId\': \'eni-bp1gfdoy3r4f8bpc1nfq\', \'Description\': \'full cidr block route\', \'NextHopType\': \'NetworkInterface\'}]', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'Success' => ['description' => 'The request status identifier.', 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'ModifyTime' => ['description' => 'The modification time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1571926439000', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1571926439000', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'crsdr-luq6qiegzvx****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 200 => [
+ ['errorCode' => 'INSTANCE_NOT_EXIST', 'errorMessage' => 'Instance does not exist.', 'description' => 'The specified instance does not exist.'],
+ ],
+ 403 => [
+ ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'Authentication failed.', 'description' => 'Authentication failed.'],
+ ],
[
- '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',
+ ['errorCode' => 'InvalidInstanceStorageDomainRoutingRule.NotFound', 'errorMessage' => 'The specified InstanceStorageDomainRoutingRule does not exist.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Get instance storage domain name routing list',
+ 'description' => 'This API is available through whitelist access. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket) to obtain support.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ],
],
],
+ ],
+ 'translator' => 'machine',
+ '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"}]',
+ ],
+ 'ListArtifactBuildTaskLog' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Digest',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The digest of the image.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'sha256:6b0b094f8a904f8fb6602427aed0d1fa',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
],
[
- 'name' => 'ScanType',
+ 'name' => 'BuildTaskId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the artifact build task.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'i2a-1yu****', 'title' => ''],
],
[
- 'name' => 'VulQueryKey',
+ 'name' => 'Page',
'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',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => true, 'docRequired' => true, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'FilterValue',
+ 'name' => 'PageSize',
'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',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -9899,153 +6933,62 @@
'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",
+ 'Code' => ['description' => 'The response code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'C4C7DD0C-C9D6-437A-A7EE-121EFD70D002', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of log entries.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '200', 'title' => ''],
+ 'BuildTaskLogs' => [
+ 'description' => 'The log entries of the artifact build task.'."\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,
- ],
+ 'Message' => ['description' => 'The log data.'."\n", 'type' => 'string', 'example' => 'Start Build', 'title' => ''],
+ 'LineNumber' => ['description' => 'The row number of the log entry.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [],
+ 'title' => 'ListArtifactBuildTaskLog',
+ 'summary' => 'Queries the log entries of an artifact building task.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListScanBaselineByTask' => [
- 'summary' => 'Queries the baseline risks of a scan task by page.',
- 'methods' => [
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactBuildTaskLog',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListArtifactLifecycleRule' => [
+ 'summary' => 'Lists artifact lifecycle management rules.',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -10055,6 +6998,9 @@
'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrQD2ZKV'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -10062,241 +7008,138 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-***********',
- ],
+ 'schema' => ['description' => 'The ID of the Enterprise Edition instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-eztul9ucz76q****', 'title' => ''],
],
[
'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The number of entries to return per page. The maximum value is 100. If you specify a value greater than 100, the system may return a parameter error or use a page size of 100.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
],
[
- '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',
+ 'name' => 'EnableDeleteTag',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image scan task.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '3e526d7e-4b45-4703-b046-***********',
- ],
+ 'schema' => ['description' => 'Indicates whether automatic tag deletion is enabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
],
'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",
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'F92D82F9-A4C4-5A4A-97B9-E495BF1B****', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request succeeded. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request succeeded.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned on each page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'example' => '39', 'title' => ''],
+ 'Rules' => [
+ 'description' => 'The list of lifecycle management rules.',
'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',
+ 'NextTime' => ['description' => 'The next execution time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1638187989000', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time of the rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '1638187989000', 'title' => ''],
+ 'TagRegexp' => ['description' => 'The regular expression that matches image tags to retain.', 'type' => 'string', 'example' => '.*-alpine'."\n", 'title' => ''],
+ 'EnableDeleteTag' => ['description' => 'Indicates whether the rule is configured to delete tags.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-brlg4cbj2yl****', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The namespace name.', 'type' => 'string', 'example' => 'test-ns', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'cralr-yqx1q5sir6d****', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The last modification time of the rule.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678341923385', 'title' => ''],
+ 'RetentionTagCount' => ['description' => 'The number of image tags to retain.', 'type' => 'integer', 'format' => 'int64', 'example' => '30', 'title' => ''],
+ 'Auto' => ['description' => 'Indicates whether the rule runs automatically.', 'type' => 'boolean', 'example' => 'false', 'title' => ''],
+ 'ScheduleTime' => ['description' => 'The execution schedule.', 'type' => 'string', 'example' => 'WEEK', 'title' => ''],
+ 'RepoName' => ['description' => 'The repository name.', 'type' => 'string', 'example' => 'test_1', 'title' => ''],
+ 'Scope' => ['description' => 'The scope of the rule.', 'type' => 'string', 'example' => 'INSTANCE', 'title' => ''],
+ 'Policies' => [
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Type' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ 'Filter' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'TagWildcard' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'Condition' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'LatestTagCount' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'LastPullOlderThanDays' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ 'LastPushOlderThanDays' => ['type' => 'integer', 'format' => 'int32', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'description' => '',
+ 'title' => '',
'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',
- ],
],
+ 'description' => 'The queried lifecycle management rules.',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'ListArtifactLifecycleRule',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ '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"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListArtifactSubscriptionRule' => [
+ 'summary' => 'List artifact subscription rules.',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -10305,7 +7148,11 @@
'operationType' => 'read',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '141842',
+ 'abilityTreeNodes' => ['FEATUREacr5ED6LF'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -10313,244 +7160,140 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-gu94qynvpwk*****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-c0o11woew0k****', 'title' => ''],
],
[
'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The current page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'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-**********',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page. The maximum value is 100. If you specify a value greater than 100, the system either caps the page size at 100 or returns a parameter error.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'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",
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '07FC5654-C82A-59FA-A9D1-78B4EE443F86', 'title' => ''],
+ 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request was successful.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '13', 'title' => ''],
+ 'Rules' => [
+ 'description' => 'The subscription rules.',
'type' => 'array',
'items' => [
- 'description' => '',
+ 'description' => 'The subscription rules.',
'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",
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-brlg4cbj2yl****', 'title' => ''],
+ 'RuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'crasr-mdbpung4i1rm****'."\n", 'title' => ''],
+ 'SourceProvider' => [
+ 'description' => 'The source of the artifact. Valid values:',
+ 'enumValueTitles' => ['DOCKER_HUB' => 'Docker Hub', 'GCR' => 'GCR', 'QUAY' => 'Quay.io'],
'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",
+ 'example' => 'DOCKER_HUB',
+ 'title' => '',
+ ],
+ 'SourceNamespaceName' => ['description' => 'The source namespace.', 'type' => 'string', 'example' => 'library', 'title' => ''],
+ 'SourceRepoName' => ['description' => 'The source repository.', 'type' => 'string', 'example' => 'nginx', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.', 'type' => 'string', 'example' => 'test-ns', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.', 'type' => 'string', 'example' => 'test-repo', 'title' => ''],
+ 'TagRegexp' => ['description' => 'The regular expression that is used to subscribe to the source repository.', 'type' => 'string', 'example' => 'release.*', 'title' => ''],
+ 'TagCount' => ['description' => 'The number of subscribed images.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ 'Override' => ['description' => 'Indicates whether to overwrite the image.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Accelerate' => ['description' => 'Indicates whether to enable the accelerated subscription channel. This feature is in public preview. Based on an optimized scheduling policy and network link, the speed of image subscription is improved.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the rule was created.', 'type' => 'integer', 'format' => 'int64', 'example' => '1638187989000', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the rule was last modified.', 'type' => 'integer', 'format' => 'int64', 'example' => '1678341923385', 'title' => ''],
+ 'Platform' => [
+ 'description' => 'The operating system and architecture. If the source repository contains a multi-architecture image, only images that have a specified operating system and architecture are subscribed to the destination repository of the Enterprise Edition instance.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The operating system and architecture. Valid values:',
+ 'enumValueTitles' => ['linux/arm' => 'linux/arm', 'windows/x86' => 'windows/x86', '*/*' => '*\\*/\\**', 'linux/arm64' => 'linux/arm64', 'windows/x86-64' => 'windows/x86-64', 'linux/amd64' => 'linux/amd64'],
+ 'type' => 'string',
+ 'example' => '*/*',
+ 'title' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
+ 'SourceDomain' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => 'The data returned.',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'ListArtifactSubscriptionRule',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ '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"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListArtifactSubscriptionTask' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-asd6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-m9ob8792vm****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-8dz3aedjqlmk****',
- ],
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'BuildRuleId',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image building rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crbr-1j95g4bu2s1i****',
- ],
+ 'schema' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -10558,69 +7301,93 @@
'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****',
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '81E7A039-A4EF-57D9-A100-88E5DCEF9D56', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''],
+ '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****', 'title' => ''],
+ 'TaskId' => ['description' => 'The task ID.'."\n", 'type' => 'string', 'example' => 'crast-40le4es9yh0p****', 'title' => ''],
+ 'TaskStatus' => ['description' => 'The status of the task.'."\n", 'type' => 'string', 'example' => 'RUNNING', 'title' => ''],
+ 'TaskResult' => ['description' => 'The task result.'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'TaskType' => ['description' => 'The type of the task.'."\n", 'type' => 'string', 'example' => 'AUTO', 'title' => ''],
+ 'StartTime' => ['description' => 'The start time of the artifact subscription task.'."\n", 'type' => 'string', 'example' => '1695348301000', 'title' => ''],
+ 'EndTime' => ['description' => 'The end time of the artifact subscription task.'."\n", 'type' => 'string', 'example' => '1692756630000', 'title' => ''],
+ 'ArtifactType' => ['description' => 'The type of the artifact.'."\n", 'type' => 'string', 'example' => 'IMAGE', 'title' => ''],
+ 'SourceProvider' => ['description' => 'The artifact source.'."\n", 'type' => 'string', 'example' => 'DOCKER_HUB', 'title' => ''],
+ 'SourceRepoType' => ['description' => 'The type of the source artifact.'."\n", 'type' => 'string', 'example' => 'PUBLIC', 'title' => ''],
+ 'SourceNamespaceName' => ['description' => 'The name of the source namespace.'."\n", 'type' => 'string', 'example' => 'library', 'title' => ''],
+ 'SourceRepoName' => ['description' => 'The name of the source repository.'."\n", 'type' => 'string', 'example' => 'nginx', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test-ns', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'test-repo', 'title' => ''],
+ 'TagTotalCount' => ['description' => 'The total number of tags.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '311', 'title' => ''],
+ 'TagSubscriptionCount' => ['description' => 'The total number of subscribed tags.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '3', 'title' => ''],
+ 'Message' => ['description' => 'The returned message.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access is denied for the user.', 'description' => 'The user is not authorized.'],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred.', 'description' => 'An unknown error occurred.'],
+ ],
+ ],
+ 'title' => 'ListArtifactSubscriptionTask',
+ 'summary' => 'Lists artifact subscription tasks.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
],
- 'CreateBuildRecordByRecord' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListChain' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrPRPOYY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -10628,35 +7395,27 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-hpdfkc6utbaq****'."\n",
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-hnoq7j93or3k****'."\n",
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'BuildRecordId',
+ 'name' => 'PageSize',
'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",
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'repo1', 'title' => ''],
],
],
'responses' => [
@@ -10664,210 +7423,112 @@
'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",
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '85A99B10-3926-5201-958E-C06FA47F****', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of delivery chains.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'ScopeId' => ['description' => 'The ID of the delivery chain scope.'."\n", 'type' => 'string', 'example' => 'crr-nyrh2oko32xb****', 'title' => ''],
+ 'Description' => ['description' => 'The description of the delivery chain.'."\n", 'type' => 'string', 'example' => 'description', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the delivery chain was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1638255427000', 'title' => ''],
+ 'ScopeType' => ['description' => 'The type of the delivery chain scope.'."\n", 'type' => 'string', 'example' => 'REPOSITORY', 'title' => ''],
+ 'ChainId' => ['description' => 'The ID of the delivery chain.'."\n", 'type' => 'string', 'example' => 'chi-0ops0gsmw5x2****', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
+ 'Name' => ['description' => 'The name of the delivery chain.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ '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', 'title' => ''],
+ 'minItems' => 0,
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'ListChain',
+ 'summary' => 'Queries delivery chains.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
],
- '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.',
+ '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":""}]',
],
- 'CreateRepoBuildRule' => [
- 'summary' => 'Creates an image building rule for a repository.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListChainInstance' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'create',
+ 'operationType' => 'get',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrYWOHWY',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
+ '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-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',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'PushName',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the push that triggers the building rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'master',
- ],
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'ImageTag',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The tag of the image.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'v0.9.5',
- ],
+ 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
- 'name' => 'BuildArgs',
+ 'name' => 'RepoNamespaceName',
'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,
- ],
+ 'schema' => ['description' => 'The namespace name.', 'type' => 'string', 'required' => false, 'example' => 'test-namespace', 'title' => ''],
],
[
- 'name' => 'Platforms',
+ 'name' => 'RepoName',
'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,
- ],
+ 'schema' => ['description' => 'The image repository name.', 'type' => 'string', 'required' => false, 'example' => 'test-repo', 'title' => ''],
],
],
'responses' => [
@@ -10875,165 +7536,121 @@
'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****',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '838D1602-6D8F-47FB-B60A-656645D2****', 'title' => ''],
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'PageSize' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ChainInstances' => [
+ 'description' => 'The list of delivery chain execution records.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'EndTime' => ['description' => 'The end time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1636685856000', 'title' => ''],
+ 'Status' => ['description' => 'The execution status of the delivery chain. Valid values:'."\n"
+ ."\n"
+ .'- `RUNNING`: Running.'."\n"
+ .'- `COMPLETE`: Complete.'."\n"
+ .'- `CANCELING`: Canceling.'."\n"
+ .'- `CANCELED`: Canceled.', 'type' => 'string', 'example' => 'COMPLETE', 'title' => ''],
+ 'StartTime' => ['description' => 'The start time.', 'type' => 'integer', 'format' => 'int64', 'example' => '1636685776000', 'title' => ''],
+ 'Result' => ['description' => 'The execution result of the delivery chain. Valid values:'."\n"
+ ."\n"
+ .'- `SUCCESS`: Succeeded.'."\n"
+ .'- `FAILED`: Failed.'."\n"
+ .'- `CANCELED`: Canceled.'."\n"
+ .'- `DENIED`: Denied.', 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'ChainInstanceId' => ['description' => 'The delivery chain instance ID.', 'type' => 'string', 'example' => 'F4CF4DDB-BEF2-5575-****-*******', 'title' => ''],
+ 'RepoNamespaceName' => ['description' => 'The namespace.', 'type' => 'string', 'example' => 'test-ns', 'title' => ''],
+ 'RepoName' => ['description' => 'The repository name.', 'type' => 'string', 'example' => 'test-repo', 'title' => ''],
+ 'Chain' => [
+ 'description' => 'The delivery chain execution record.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ChainId' => ['description' => 'The delivery chain ID.', 'type' => 'string', 'example' => 'chi-m42gbku0****', 'title' => ''],
+ 'ChainName' => ['description' => 'The delivery chain name.', 'type' => 'string', 'example' => 'test-chain', 'title' => ''],
+ 'Version' => ['description' => 'The delivery chain version.', 'type' => 'integer', 'format' => 'int64', 'example' => '1', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'Query delivery chain execution records',
+ 'summary' => 'Queries the execution records of a delivery chain.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListChainInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
],
- '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',
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
],
- 'CreateRepoSourceCodeRepo' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListChartNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-shac42yvqzvq****',
- ],
- ],
- [
- 'name' => 'RepoId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-gzsrlevmvoaq****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- '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',
+ 'name' => 'NamespaceStatus',
'in' => 'query',
- 'schema' => [
- 'description' => 'The namespace to which the source code repository belongs.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'namespace',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'CodeRepoName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the source code repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo',
- ],
- ],
- [
- 'name' => 'AutoBuild',
+ 'name' => 'NamespaceName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'OverseaBuild',
+ 'name' => 'PageNo',
'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',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'DisableCacheBuild',
+ 'name' => 'PageSize',
'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',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -11041,99 +7658,115 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'F56D589D-AF7F-4900-BA46-62C780AC2C10', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'NamespaceId' => ['description' => 'The ID of the namespace.'."\n", 'type' => 'string', 'example' => 'null', 'title' => ''],
+ 'AutoCreateRepo' => ['description' => 'Indicates whether a repository was automatically created when a chart is pushed to the namespace.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group to which the instance belongs.'."\n", 'type' => 'string', 'example' => 'rg-acfm4n5kzyf****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListChartNamespace',
+ 'summary' => 'Queries the chart namespaces of a Container Registry instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'DeleteRepoBuildRule' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/*'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListChartRelease' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-xwvi3osiy4ff****',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo1', 'title' => ''],
],
[
- 'name' => 'BuildRuleId',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image building rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crbr-36tffn0kouvi****',
- ],
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '20', 'title' => ''],
+ ],
+ [
+ 'name' => 'Chart',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The chart whose versions you want to query.'."\n", 'type' => 'string', 'required' => false, 'example' => 'null', 'title' => ''],
],
],
'responses' => [
@@ -11141,99 +7774,113 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'F68823F6-F1B5-4A4E-8421-A83CAB8F2963', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the chart was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1571930323000', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the chart repository.'."\n", 'type' => 'string', 'example' => 'crcr-gpsu7b8chmxk****', 'title' => ''],
+ 'Release' => ['description' => 'The version number of the chart.'."\n", 'type' => 'string', 'example' => '0.1.0', 'title' => ''],
+ 'Size' => ['description' => 'The size of the chart of the version. Unit: bytes.'."\n", 'type' => 'string', 'example' => '2826', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ 'Chart' => ['description' => 'The name of the chart version.'."\n", 'type' => 'string', 'example' => 'chart1', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListChartRelease',
+ 'summary' => 'Queries the versions of a chart in a chart repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CancelRepoBuildRecord' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListChartRelease',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListChartRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'RepoStatus',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8p****',
- ],
+ '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' => 'NORMAL', 'title' => ''],
],
[
- 'name' => 'BuildRecordId',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image building record.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '74FDBA62-30C0-4F22-BE7B-F1D36FD1****',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'ns1', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoNamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'repo1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -11241,270 +7888,274 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '0AB62FB8-6873-4032-8515-4578D27523B7', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'Repositories' => [
+ 'description' => 'The queried repositories.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Summary' => ['description' => 'The summary about the repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the repository was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1571930329000', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crcr-gpsu7b8chmxk****', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the repository was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1571926644000', 'title' => ''],
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'ns1', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-xkx6vujuhay0****', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'repo1', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'rg-aek2ikd5rxxxxxx', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListChartRepository',
+ 'summary' => 'Queries the chart repositories of a Container Registry instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'UpdateRepoBuildRule' => [
- 'summary' => 'Updates an image building rule for a repository.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListEventCenterRecord' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrYWOHWY',
- ],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'EventType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8p****',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'DockerfileLocation',
+ 'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The path of the Dockerfile.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '/',
- ],
+ 'schema' => ['description' => 'The ID of the event notification rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crecr-n6pbhgjxtla***', 'title' => ''],
],
[
- 'name' => 'DockerfileName',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the Dockerfile.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'Dockerfile',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'PushType',
+ 'name' => 'RepoName',
'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',
- ],
+ 'allowEmptyValue' => true,
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'PushName',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the push that triggers the building rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'master',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'ImageTag',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The tag of the image.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'v0.9.5',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
- [
- 'name' => 'BuildRuleId',
- 'in' => 'query',
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The ID of the building rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crbr-ly77w5i3t31f****',
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['title' => '', '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', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total entries of historical events.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '50', 'title' => ''],
+ '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*****', 'title' => ''],
+ 'RuleId' => ['description' => 'The ID of the event notification rule.'."\n", 'type' => 'string', 'example' => 'crecr-n6pbhgjxtla*****', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'example' => 'cri-gl34plsa****', 'title' => ''],
+ 'RuleName' => ['description' => 'The name of the event notification rule.'."\n", 'type' => 'string', 'example' => 'chain-demo', 'title' => ''],
+ 'Namespace' => ['description' => 'The namespace.'."\n", 'type' => 'string', 'example' => 'mychain', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'example' => 'ruby-2.4.0', 'title' => ''],
+ 'Tag' => ['description' => 'The tags.'."\n", 'type' => 'string', 'example' => 'ruby-2.4.0', 'title' => ''],
+ 'EventChannel' => ['description' => 'The event notification channel.'."\n", 'type' => 'string', 'example' => 'EVENT_BRIDGE', 'title' => ''],
+ 'EventType' => ['description' => 'The type of the event.'."\n", 'type' => 'string', 'example' => 'cr:Artifact:DeliveryChainCompleted', 'title' => ''],
+ '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', 'title' => ''],
+ 'EventNotifyId' => ['description' => 'The ID of the event notification.'."\n", 'type' => 'string', 'example' => '7d478419-61df-49e5-b92b-30ce730c2127', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the event was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1638188622000', 'title' => ''],
+ 'UpdateTime' => ['description' => 'The time when the event was last updated.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1638188622000', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'example' => '[]',
+ 'title' => '',
+ ],
+ ],
+ 'example' => '',
],
],
+ ],
+ 'title' => 'ListEventCenterRecord',
+ 'summary' => 'Queries the historical events of an event rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListEventCenterRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
- 'required' => false,
- 'maxItems' => 20,
],
],
+ ],
+ '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":""}]',
+ 'translator' => 'machine',
+ ],
+ 'ListEventCenterRuleName' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'Platforms',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'get', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
'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****',
+ 'RequestId' => ['title' => '', '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', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ '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*****', 'title' => ''],
+ 'RuleName' => ['description' => 'The name of the event notification rule.'."\n", 'type' => 'string', 'example' => 'test-chain', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'example' => '[{\'RuleName\': \'mlf\', \'RuleId\': \'crecr-73q93pgljm1pc2fp\'}]',
+ 'title' => '',
],
],
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'ListEventCenterRuleName',
+ 'summary' => 'Queries the name of an event rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListEventCenterRuleName',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- 'UpdateRepoSourceCodeRepo' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListInstance' => [
+ 'summary' => 'Queries a list of instances.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -11513,114 +8164,179 @@
'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'list',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33773',
+ 'abilityTreeNodes' => ['FEATUREacr9J9LGC'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'InstanceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry Enterprise Edition instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-shac42yvqzvq****',
- ],
+ 'schema' => ['description' => 'The instance name.', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'InstanceStatus',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-gzsrlevmvoa****',
- ],
+ 'schema' => ['description' => 'The instance status. Valid values:'."\n"
+ ."\n"
+ .'- `PENDING`: Initializing.'."\n"
+ ."\n"
+ .'- `INIT_ERROR`: Initialization failed.'."\n"
+ ."\n"
+ .'- `STARTING`: Starting.'."\n"
+ ."\n"
+ .'- `RUNNING`: Running.'."\n"
+ ."\n"
+ .'- `STOPPING`: Stopping.'."\n"
+ ."\n"
+ .'- `STOPPED`: Stopped.'."\n"
+ ."\n"
+ .'- `DELETING`: Deleting.'."\n"
+ ."\n"
+ .'- `DELETED`: Deleted.', 'type' => 'string', 'required' => false, 'example' => 'RUNNING', 'title' => ''],
],
[
- 'name' => 'CodeRepoType',
+ 'name' => 'PageNo',
'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',
- ],
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'CodeRepoNamespaceName',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The namespace to which the source code repository belongs.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'namespace',
- ],
+ 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
- 'name' => 'CodeRepoName',
+ 'name' => 'ResourceGroupId',
'in' => 'query',
+ 'schema' => ['description' => 'The resource group ID.', 'type' => 'string', 'required' => false, 'example' => 'rg-acfmv36i4is****', 'title' => ''],
+ ],
+ ],
+ 'responses' => [
+ 200 => [
'schema' => [
- 'description' => 'The name of the source code repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo',
+ 'type' => 'object',
+ 'properties' => [
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'A2A9BA68-B264-4953-9154-CE61B1C03BA6', 'title' => ''],
+ 'Code' => ['description' => 'The return value.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the operation is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The page size. Default value: 30.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned results.', 'type' => 'integer', 'format' => 'int32', 'example' => '12121', 'title' => ''],
+ 'Instances' => [
+ 'description' => 'The instance information.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance information.',
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifiedTime' => ['description' => 'The last modification time.', 'type' => 'string', 'example' => '1562849760000', 'title' => ''],
+ 'InstanceName' => ['description' => 'The instance name.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.', 'type' => 'string', 'example' => '1562849679000', 'title' => ''],
+ 'InstanceSpecification' => ['description' => 'The Enterprise Edition specification.', 'type' => 'string', 'example' => 'Enterprise_Basic', 'title' => ''],
+ 'InstanceStatus' => ['description' => 'The instance status.', 'type' => 'string', 'example' => 'RUNNING', 'title' => ''],
+ 'InstanceId' => ['description' => 'The instance ID.', 'type' => 'string', 'example' => 'cri-sgedpenzw80e****', 'title' => ''],
+ 'RegionId' => ['description' => 'The region ID.', 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The resource group ID.', 'type' => 'string', 'example' => 'rg-aek2h3aexpy****', 'title' => ''],
+ 'InstanceIssue' => ['description' => 'The instance issue.', 'type' => 'string', 'example' => '实例问题,取值:'."\n"
+ .'OSS_TOO_MANY_BUCKETS:OSS Bucket 数量超限'."\n"
+ ."\n"
+ .'OSS_BUCKET_ALREADY_EXISTS:同名 OSS Bucket 已存在'."\n"
+ ."\n"
+ .'OSS_SERVICE_ROLE_UNAUTHORIZED:OSS 权限未授权'."\n"
+ ."\n"
+ .'USER_NOT_REGISTERED_BY_REAL_NAME:国际站账号在购买中国站 OSS Bucket 时未进行实名认证', 'title' => ''],
+ 'Tags' => [
+ 'description' => 'The tags of the instance.',
+ 'type' => 'array',
+ 'items' => [
+ 'description' => 'The instance tag.',
+ 'type' => 'object',
+ 'properties' => [
+ 'TagKey' => ['title' => '', 'description' => 'The tag key.', 'type' => 'string', 'example' => 'test_key'],
+ 'TagValue' => ['title' => '', 'description' => 'The tag value.', 'type' => 'string', 'example' => 'test_value'],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
+ ],
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Query instance list',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- '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',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
+ ],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListInstanceEndpoint' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
+ 'security' => [
[
- 'name' => 'OverseaBuild',
+ 'AK' => [],
+ ],
+ ],
+ 'operationType' => 'read',
+ 'systemTags' => ['operationType' => 'get', 'autoTest' => false, 'notSupportAutoTestReason' => '返回 http code不符合测试要求'],
+ 'parameters' => [
+ [
+ 'name' => 'InstanceId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'DisableCacheBuild',
+ 'name' => 'ModuleName',
'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',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'CodeRepoId',
+ 'name' => 'Summary',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the source code repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crr-cp7d6sget5r****',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -11628,111 +8344,133 @@
'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',
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '1B21A877-66A2-4095-90EB-20A7781A4A67', 'title' => ''],
+ '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', 'title' => ''],
+ 'EndpointType' => ['description' => 'The type of the endpoint.'."\n", 'type' => 'string', 'example' => 'internet', 'title' => ''],
+ 'AclEnable' => ['description' => 'Indicates whether the endpoint is added to an access control list (ACL).'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Enable' => ['description' => 'Indicates whether the endpoint is added to an ACL.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ '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', 'title' => ''],
+ 'Domain' => ['description' => 'The domain name of the Container Registry instance.'."\n", 'type' => 'string', 'example' => 't****-registry.cn-shanghai.cr.aliyuncs.com', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'LinkedVpcs' => [
+ 'description' => 'The VPCs associated with the instance.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'VpcId' => ['description' => 'VPC ID'."\n", 'type' => 'string', 'example' => 'vpc-bp1b1xjllp3ve5yze****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ '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' => '127.0.0.1', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListInstanceEndpoint',
+ 'summary' => 'Queries the endpoints of a Container Registry instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListRepoBuildRecordLog' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstanceEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListInstanceRegion' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'list',
+ 'abilityTreeCode' => '33779',
+ 'abilityTreeNodes' => ['FEATUREacrRKSIY1'],
'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',
+ 'name' => 'Lang',
'in' => 'query',
- 'schema' => [
- 'description' => 'The offset of log lines.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '0',
- ],
+ 'schema' => ['description' => 'The language used for response parameters. Set this parameter to `zh-CN`.'."\n", 'type' => 'string', 'required' => false, 'example' => 'zh_CN', 'title' => ''],
],
],
'responses' => [
@@ -11740,159 +8478,99 @@
'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",
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '11F182E1-0F84-4F5B-8D3B-61E991482727', 'title' => ''],
+ 'Regions' => [
+ 'description' => 'The list of regions.'."\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',
- ],
+ 'LocalName' => ['description' => 'The name of the region.'."\n", 'type' => 'string', 'example' => '华南1(深圳)', 'title' => ''],
+ 'RegionId' => ['description' => 'The ID of the region.'."\n", 'type' => 'string', 'example' => 'cn-shenzhen', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListInstanceRegion',
+ 'summary' => 'Queries regions in which you can create Container Registry instances.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ '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":"","errorExample":""}]',
],
- 'ListRepoBuildRule' => [
- 'summary' => 'Queries image building rules of a repository.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListNamespace' => [
+ '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',
+ 'abilityTreeCode' => '33783',
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry (ACR) instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-94klsruryslx****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'NamespaceStatus',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8****',
- ],
+ 'schema' => ['description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'- `NORMAL`: The namespace is normal.'."\n"
+ ."\n"
+ .'- `DELETING`: The namespace is being deleted.', 'type' => 'string', 'required' => false, 'example' => 'NORMAL', 'title' => ''],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.', 'type' => 'string', 'required' => false, 'example' => 'test-namespace', 'title' => ''],
],
[
'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -11900,190 +8578,113 @@
'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",
+ 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'B7E5FCA5-55ED-451C-9649-0BB2B93387D0', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request is successful.'."\n"
+ ."\n"
+ .'- `false`: The request fails.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'Namespaces' => [
+ 'description' => 'The list of namespaces.',
'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',
- ],
+ 'DefaultRepoType' => ['description' => 'The default type of the repository. Valid values:'."\n"
+ ."\n"
+ .'- `PUBLIC`: public'."\n"
+ ."\n"
+ .'- `PRIVATE`: private', 'type' => 'string', 'deprecated' => true, 'example' => 'PUBLIC', 'title' => ''],
+ 'NamespaceStatus' => ['description' => 'The status of the namespace. Valid values:'."\n"
+ ."\n"
+ .'- `NORMAL`: The namespace is normal.'."\n"
+ ."\n"
+ .'- `DELETING`: The namespace is being deleted.', 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'NamespaceId' => ['description' => 'The ID of the namespace.', 'type' => 'string', 'example' => 'crn-tiw8t3f8i5lt****', 'title' => ''],
+ 'AutoCreateRepo' => ['description' => 'Indicates whether a repository is automatically created when an image is pushed to the namespace.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'example' => 'cri-94klsruryslx****', 'title' => ''],
+ 'NamespaceName' => ['description' => 'The name of the namespace.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group.', 'type' => 'string', 'example' => 'rg-acfm4n5kzyf2fbi', 'title' => ''],
+ 'DefaultRepoConfiguration' => ['$ref' => '#/components/schemas/RepoConfiguration', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'title' => 'ListNamespace',
+ 'summary' => 'Lists namespaces.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ ],
+ 'translator' => 'machine',
+ 'responseDemo' => '[{"errorExample":"","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 \\"RepoType\\": \\"\\",\\n \\"TagImmutability\\": true,\\n \\"ArtifactBuildRuleParameters\\": {\\n \\"ImageIndexOnly\\": true\\n }\\n }\\n }\\n ]\\n}","type":"json"}]',
],
'ListRepoBuildRecord' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8****',
- ],
+ 'schema' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8****', 'title' => ''],
],
[
'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -12091,174 +8692,112 @@
'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',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '9D23DEDF-E91D-434B-B7D5-9D12C648D166', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
'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****',
- ],
+ 'EndTime' => ['description' => 'The time when the image building ended.'."\n", 'type' => 'string', 'example' => '1572875610000', 'title' => ''],
+ 'StartTime' => ['description' => 'The time when the image building started.'."\n", 'type' => 'string', 'example' => '1572872207000', 'title' => ''],
+ 'BuildStatus' => ['description' => 'The status of the image building.'."\n", 'type' => 'string', 'example' => 'SUCCESS', 'title' => ''],
+ 'BuildRecordId' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'example' => '537e08ab-735e-415f-b7c2-160eb87f8****', 'title' => ''],
'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',
- ],
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ImageTag' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crr-gzsrlevmvoaq****', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryBuild',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListRepoBuildRecordLog' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-nmbv37dlv5d3****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-jnzm47ihjmgc****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-z4dvahhku9wv4****', 'title' => ''],
],
[
'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****',
- ],
+ 'schema' => ['description' => 'The ID of the image building record.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'C5B4D5D7-A1C6-4E9B-ABD2-401361C4****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Offset',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The offset of log lines.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '0', 'title' => ''],
],
],
'responses' => [
@@ -12266,93 +8805,103 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '4CE1F661-75DD-4EBD-A4AD-057B26834ABB', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '100', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1000', 'title' => ''],
+ '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', 'title' => ''],
+ 'Message' => ['description' => 'The content of the log.'."\n", 'type' => 'string', 'example' => 'fetch stage begin', 'title' => ''],
+ 'BuildStage' => ['description' => 'The stage of the building that is recorded in the log entry.'."\n", 'type' => 'string', 'example' => 'GIT_CLONE', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListRepoBuildRecordLog',
+ 'summary' => 'Queries the log of an image building record.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetRepoBuildRecord' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositoryBuildLog',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListRepoBuildRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'BuildRecordId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image building record.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'a78ec6fb-16ea-4649-93b7-f52afba7d****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8****', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return per page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -12360,108 +8909,108 @@
'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',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '42D782C8-E8F6-4A32-BEA0-6A6AC854C22A', 'title' => ''],
+ 'Code' => ['description' => 'The response code. A value of `success` indicates that the request was successful.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request was successful. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The request was successful.'."\n"
+ ."\n"
+ .'- `false`: The request failed.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of build rules.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'BuildRules' => [
+ 'description' => 'The build rules.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'DockerfileLocation' => ['description' => 'The directory of the Dockerfile.', 'type' => 'string', 'example' => '/', 'title' => ''],
+ 'BuildRuleId' => ['description' => 'The ID of the build rule.', 'type' => 'string', 'example' => 'crbr-khys0nd3asbe****', 'title' => ''],
+ 'PushType' => ['description' => 'The type of the event that triggers the build rule. Valid values:'."\n"
+ ."\n"
+ .'- `GIT_BRANCH`: A code branch is pushed.'."\n"
+ ."\n"
+ .'- GIT\\_TAG: Push source code from a tag.', 'type' => 'string', 'example' => 'GIT_BRANCH', 'title' => ''],
+ 'PushName' => ['description' => 'Code push-triggered build name', 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'ImageTag' => ['description' => 'Image Tag', 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'DockerfileName' => ['description' => 'Dockerfile name', 'type' => 'string', 'example' => 'Dockerfile', 'title' => ''],
+ 'Platforms' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'Image operating system and platform', 'type' => 'string', 'example' => 'linux/amd64', 'title' => ''],
+ 'description' => 'Image operating system and platform',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'BuildArgs' => [
+ 'type' => 'array',
+ 'items' => ['description' => 'Build argument', 'type' => 'string', 'example' => 'http_proxy=127.0.0.1 ', 'title' => ''],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'DestArtifactType' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => 'The response object.',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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' => '****',
+ 'title' => 'Query the list of build rules for an image repository',
+ 'summary' => 'Lists the build rules of an image repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'GetRepoSourceCodeRepo' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListRepoSyncRule' => [
+ 'summary' => 'Returns a list of repository synchronization rules.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33788',
+ 'abilityTreeNodes' => ['FEATUREacrLKRO80'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -12469,24 +9018,37 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-shac42yvqzvq****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-gzsrlevmvoaq****',
- ],
+ 'schema' => ['description' => 'The number of the page to return.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries to return on each page.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.', 'type' => 'string', 'required' => false, 'example' => 'test-namespace', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the image repository.', 'type' => 'string', 'required' => false, 'example' => 'test-repo', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetInstanceId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the target instance.', 'type' => 'string', 'required' => false, 'example' => 'cri-k77rd2eo9ztt****', 'title' => ''],
+ ],
+ [
+ 'name' => 'TargetRegionId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the target region.', 'type' => 'string', 'required' => false, 'example' => 'cn-shenzhen', 'title' => ''],
],
],
'responses' => [
@@ -12494,300 +9056,315 @@
'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',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '838D1602-6D8F-47FB-B60A-656645D2****', 'title' => ''],
+ 'Code' => ['description' => 'The response code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'SyncRules' => [
+ 'description' => 'The list of synchronization rules.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'SyncTrigger' => ['description' => 'The trigger policy. Valid values:'."\n"
+ ."\n"
+ .'- `INITIATIVE`: The synchronization is actively triggered.'."\n"
+ ."\n"
+ .'- `PASSIVE`: The synchronization is passively triggered.', 'type' => 'string', 'example' => 'PASSIVE', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the synchronization rule was created. This value is a UNIX timestamp. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1572604642000', 'title' => ''],
+ 'LocalRegionId' => ['description' => 'The region ID of the source instance.', 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''],
+ 'SyncScope' => ['description' => 'The synchronization scope. Valid values:'."\n"
+ ."\n"
+ .'- `NAMESPACE`: Synchronizes resources by namespace.'."\n"
+ ."\n"
+ .'- `REPO`: Synchronizes resources by repository.', 'type' => 'string', 'example' => 'NAMESPACE', 'title' => ''],
+ 'RepoNameFilter' => ['description' => 'The regular expression that is used to filter repositories.'."\n"
+ ."\n"
+ .'> This parameter is valid only when `SyncScope` is set to `NAMESPACE`.', 'type' => 'string', 'example' => '.*', 'title' => ''],
+ 'TagFilter' => ['description' => 'The regular expression that is used to filter tags.', 'type' => 'string', 'example' => '.*', 'title' => ''],
+ 'TargetNamespaceName' => ['description' => 'The name of the namespace in the target instance.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'TargetInstanceId' => ['description' => 'The ID of the target instance.', 'type' => 'string', 'example' => 'cri-k77rd2eo9ztt****', 'title' => ''],
+ 'TargetRepoName' => ['description' => 'The name of the repository in the target instance.', 'type' => 'string', 'example' => 'test-repo-target', 'title' => ''],
+ 'SyncRuleId' => ['description' => 'The ID of the synchronization rule.', 'type' => 'string', 'example' => 'crsr-7lph66uloi6h****', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the synchronization rule was last modified. This value is a UNIX timestamp. Unit: milliseconds.', 'type' => 'integer', 'format' => 'int64', 'example' => '1572604642000', 'title' => ''],
+ 'SyncRuleName' => ['description' => 'The name of the synchronization rule.', 'type' => 'string', 'example' => 'sync-rule-1', 'title' => ''],
+ 'TargetRegionId' => ['description' => 'The region ID of the target instance.', 'type' => 'string', 'example' => 'cn-shenzhen', 'title' => ''],
+ 'LocalInstanceId' => ['description' => 'The ID of the source instance.', 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'LocalNamespaceName' => ['description' => 'The name of the namespace in the source instance.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'LocalRepoName' => ['description' => 'The name of the repository in the source instance.', 'type' => 'string', 'example' => 'test-repo-local', 'title' => ''],
+ 'SyncDirection' => ['description' => 'The synchronization direction. Valid values:'."\n"
+ ."\n"
+ .'- `FROM`: from the source instance to the target instance.'."\n"
+ ."\n"
+ .'- `TO`: from the target instance to the source instance.', 'type' => 'string', 'example' => 'FROM', 'title' => ''],
+ 'CrossUser' => ['description' => 'Indicates whether images are synchronized across different Alibaba Cloud accounts. Valid values:'."\n"
+ ."\n"
+ .'- `true`'."\n"
+ ."\n"
+ .'- `false`'."\n"
+ ."\n"
+ .'Default value: `false`.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'LinkId' => ['type' => 'string', 'description' => '', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListRepoSyncRule',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateRepoTrigger' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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 \\"LinkId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListRepoSyncTask' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'operationType' => 'read',
'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33789',
+ 'abilityTreeNodes' => ['FEATUREacrLKRO80'],
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoId',
+ 'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'docRequired' => true,
- 'example' => 'crr-xwvi3osiy4ff****',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['description' => 'The name of the repository namespace.', 'type' => 'string', 'required' => false, 'example' => 'ns', 'title' => ''],
],
[
- 'name' => 'TriggerName',
+ 'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the trigger.'."\n",
- 'docRequired' => true,
- 'example' => 'trigger1',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['description' => 'The repository name.', 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'TriggerUrl',
+ 'name' => 'Tag',
'in' => 'query',
- 'schema' => [
- 'description' => 'The URL of the trigger.'."\n",
- 'docRequired' => true,
- 'example' => 'http://www.mysite.com',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['description' => 'The image tag.', 'type' => 'string', 'required' => false, 'example' => 'nginx', 'title' => ''],
],
[
- 'name' => 'TriggerType',
+ 'name' => 'PageNo',
'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',
- ],
+ 'schema' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'TriggerTag',
+ 'name' => 'PageSize',
'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',
- ],
+ 'schema' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
+ ],
+ [
+ 'name' => 'SyncRecordId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the sync task. This ID is also the `SyncBatchTaskId` returned in the response, which identifies the image\'s sync batch task.'."\n"
+ ."\n"
+ .'> An image that matches multiple sync rules generates multiple sync tasks, each with the same `SyncBatchTaskId`.', 'type' => 'string', 'required' => false, 'example' => '9d8ac4f6-8138-4c15-a2e3-60624ad3****', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'type' => 'object',
'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',
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '7640819A-FB5B-4E25-A227-97717F62****', 'title' => ''],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The page size.', 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'SyncTasks' => [
+ 'description' => 'A list of sync tasks.',
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'ModifedTime' => ['description' => 'This parameter is deprecated due to a typo. Use `ModifiedTime` instead.', 'type' => 'integer', 'format' => 'int64', 'deprecated' => true, 'example' => '1572839133000', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The modification time of the task.', 'type' => 'integer', 'format' => 'int64', 'title' => '', 'example' => ''],
+ 'SyncRuleId' => ['description' => 'The ID of the sync rule.', 'type' => 'string', 'example' => 'crsr-7lph66uloi6h****', 'title' => ''],
+ 'SyncTaskId' => ['description' => 'The ID of the sync task.', 'type' => 'string', 'example' => 'rst-4kfd7fk6pohk****', 'title' => ''],
+ 'TaskStatus' => ['description' => 'The task status.', 'type' => 'string', 'example' => 'ERROR', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time of the task.', 'type' => 'integer', 'format' => 'int64', 'example' => '1572839126000', 'title' => ''],
+ 'SyncBatchTaskId' => ['description' => 'The ID of the batch sync task. This ID is the same as the sync record ID (`SyncRecordId`).'."\n"
+ ."\n"
+ .'> If an image matches multiple sync rules, multiple sync tasks are generated. These tasks share the same `SyncBatchTaskId`.', 'type' => 'string', 'example' => '9d8ac4f6-8138-4c15-a2e3-60624ad3****', 'title' => ''],
+ 'CrossUser' => ['description' => 'Whether the image is synchronized across accounts. Valid values:'."\n"
+ ."\n"
+ .'- `true`: The image is synchronized across accounts.'."\n"
+ ."\n"
+ .'- `false`: The image is synchronized within the same account.'."\n"
+ ."\n"
+ .'Default value: `false`', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'SyncTransAccelerate' => ['description' => 'Whether transfer acceleration is enabled for the sync task.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'TaskTrigger' => ['description' => 'The trigger policy. Valid values:'."\n"
+ ."\n"
+ .'- `PASSIVE`: The sync task is automatically triggered.'."\n"
+ ."\n"
+ .'- `INITIATIVE`: The sync task is manually triggered.'."\n"
+ ."\n"
+ .'Default value: `PASSIVE`', 'type' => 'string', 'example' => 'PASSIVE', 'title' => ''],
+ 'ImageFrom' => [
+ 'description' => 'The source image.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => ['description' => 'The repository namespace.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ 'ImageTag' => ['description' => 'The image tag.', 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'RepoName' => ['description' => 'The repository name.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RegionId' => ['description' => 'The ID of the region.', 'type' => 'string', 'example' => 'cn-shanghai', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'ImageTo' => [
+ 'description' => 'The destination image.',
+ 'type' => 'object',
+ 'properties' => [
+ 'RepoNamespaceName' => ['description' => 'The repository namespace.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the instance.', 'type' => 'string', 'example' => 'cri-k77rd2eo9zttneqo', 'title' => ''],
+ 'ImageTag' => ['description' => 'The image tag.', 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'RepoName' => ['description' => 'The repository name.', 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'RegionId' => ['description' => 'The ID of the region.', 'type' => 'string', 'example' => 'cn-shenzhen', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'CustomLink' => ['description' => 'Whether a custom sync link is used.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'TaskIssue' => [
+ 'description' => 'The task failure information.'."\n"
+ ."\n"
+ .'> If the sync task fails, this field returns details about the failure.',
+ 'enumValueTitles' => ['OSS_POLICY_UNAUTHORIZED' => 'The ACR service lacks the required OSS permissions.', 'TAG_CONFLICT' => 'An image with the same tag exists in the destination repository, and image tag immutability is enabled.', 'UNSUPPORTED_FORMAT' => 'The source image uses an unsupported manifest or configuration format.', 'INTERNAL_ERROR' => 'The sync task failed due to an internal server error.', 'NETWORK_ERROR' => 'The sync task failed due to a network error.', 'DATA_LENGTH_EXCEEDED' => 'The image manifest or configuration exceeds the length limit.'],
+ 'type' => 'string',
+ 'example' => 'NETWORK_ERROR',
+ 'title' => '',
+ ],
+ 'LinkId' => ['description' => 'The ID of the custom sync link.', 'type' => 'string', 'title' => '', 'example' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
- 'type' => 'object',
+ 'description' => 'The response parameters.',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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' => ' ',
+ 'eventInfo' => [
+ 'enable' => false,
+ 'eventNames' => [],
+ ],
+ 'title' => 'ListRepoSyncTask',
+ 'summary' => 'Lists repository synchronization tasks.',
'requestParamsDescription' => ' ',
- 'responseParamsDescription' => ' ',
- 'summary' => 'Creates a trigger for a repository.',
- 'title' => 'CreateRepoTrigger',
- ],
- 'DeleteRepoTrigger' => [
- 'methods' => [
- 'post',
- 'get',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'responseDemo' => '[{"errorExample":"","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 \\"ModifiedTime\\": 0,\\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 \\"LinkId\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]',
+ 'gatewayOptions' => [
+ 'gatewayProtocols' => [],
],
+ 'translator' => 'machine',
+ ],
+ 'ListRepoTag' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-xwvi3osiy4ff****',
- ],
+ 'schema' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
[
- 'name' => 'TriggerId',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the trigger.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crw-0z4pf81pgz35****',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page. Maximum value: 100.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
],
'responses' => [
@@ -12795,66 +9372,85 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '031572FA-7D8F-4C05-B790-1071E0E05DE6', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of returned entries.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ 'Images' => [
+ 'description' => 'The images.'."\n",
+ 'type' => 'array',
+ 'items' => [
+ 'type' => 'object',
+ 'properties' => [
+ 'Status' => ['description' => 'The status of the image.'."\n", 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'ImageSize' => ['description' => 'The size of the image.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '27107966', 'title' => ''],
+ 'ImageCreate' => ['description' => 'The time when the image was created.'."\n", 'type' => 'string', 'example' => '1572839125000', 'title' => ''],
+ 'Digest' => ['description' => 'The digest of the image.'."\n", 'type' => 'string', 'example' => '67bfbcc12b67936ec7f867927817cbb071832b873dbcaed312a1930ba5f1****', 'title' => ''],
+ 'ImageUpdate' => ['description' => 'The time when the image was last updated.'."\n", 'type' => 'string', 'example' => '1572875608000', 'title' => ''],
+ 'Tag' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'example' => 'v0.1', 'title' => ''],
+ 'ImageId' => ['description' => 'The ID of the image.'."\n", 'type' => 'string', 'example' => '45023655bf39c382e26a8607d057c27871dee163c1ecf48cc1ebf2a1****', 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListRepoTag',
+ 'summary' => 'Queries image tags in a repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'UpdateRepoTrigger' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ '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' => 'write',
+ 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
+ 'operationType' => 'get',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P', 'FEATUREacrKJDAEQ'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -12862,82 +9458,65 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-2j88dtld8yel****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the image repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8p****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-uf082u9dg8do****', 'title' => ''],
],
[
- 'name' => 'TriggerName',
+ 'name' => 'Tag',
'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',
- ],
+ 'schema' => ['description' => 'The name of the image tag.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'TriggerUrl',
+ 'name' => 'ScanTaskId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The URL of the trigger.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'https://www.test.com',
- ],
+ 'schema' => ['description' => 'The ID of the security scan task.'."\n", 'type' => 'string', 'required' => false, 'example' => '6b0b094f-8a90-4f8f-b660-2427aed0****', 'title' => ''],
],
[
- 'name' => 'TriggerType',
+ 'name' => 'PageNo',
'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',
- ],
+ 'schema' => ['description' => 'The number of the page to return.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'TriggerTag',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The image tag based on which the trigger is set.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'master',
- ],
+ 'schema' => ['description' => 'The number of entries to return on each page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
- 'name' => 'TriggerId',
+ 'name' => 'Severity',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the trigger.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crw-k7bdx4kt52ty****',
- ],
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The digest of the image.'."\n", 'type' => 'string', 'required' => false, 'example' => 'sha256:6b0b094f8a904f8fb6602427aed0d1fa', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -12945,88 +9524,100 @@
'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',
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '56B5C92F-F5D9-46E0-823F-EC71D1892DAA', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The number of the returned page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries returned per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of vulnerabilities detected on images.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '196', 'title' => ''],
+ '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', 'title' => ''],
+ 'AddedBy' => ['description' => 'The ID of the image layer where the vulnerability was detected.'."\n", 'type' => 'string', 'example' => 'sha256:123456717b8e40b6480979b739010d8d549989602bcdd07922119aec6f9dbe57', 'title' => ''],
+ 'CveName' => ['description' => 'The name of the vulnerability.'."\n", 'type' => 'string', 'example' => 'CVE-2009-5155', 'title' => ''],
+ 'Description' => ['description' => 'The description of the vulnerability.'."\n", 'type' => 'string', 'example' => 'description.', 'title' => ''],
+ 'Feature' => ['description' => 'The cause of the vulnerability.'."\n", 'type' => 'string', 'example' => 'eglibc', 'title' => ''],
+ 'Version' => ['description' => 'The version of the vulnerability.'."\n", 'type' => 'string', 'example' => '2.19-6.9', 'title' => ''],
+ 'VersionFormat' => ['description' => 'The format of the vulnerability.'."\n", 'type' => 'string', 'example' => 'dpkg', 'title' => ''],
+ 'CveLink' => ['description' => 'The URL of the vulnerability.'."\n", 'type' => 'string', 'example' => 'https://security-tracker.debian.org/tracker/CVE-2009-5155', 'title' => ''],
+ 'VersionFixed' => ['description' => 'The version where the vulnerability was fixed.'."\n", 'type' => 'string', 'example' => '2.19-18+deb8u5', 'title' => ''],
+ 'FixCmd' => ['description' => 'The command used to fix the vulnerability.'."\n", 'type' => 'string', 'example' => 'yum install -y xxx', 'title' => ''],
+ 'CveLocation' => ['description' => 'The directory of the vulnerability.'."\n", 'type' => 'string', 'example' => '/test.txt', 'title' => ''],
+ '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', 'title' => ''],
+ 'AliasName' => ['description' => 'The name of the vulnerability.'."\n", 'type' => 'string', 'example' => '漏洞', 'deprecated' => true, 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ListRepoTagScanResult',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
+ ],
+ '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":"","errorExample":""}]',
],
'ListRepoTrigger' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'crr-tquyps22md8p****',
- ],
+ 'schema' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
],
'responses' => [
@@ -13034,164 +9625,123 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '2CA76D52-A8F0-4D0B-854E-FBD9F6C99049', 'title' => ''],
'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' => '*',
- ],
+ 'TriggerName' => ['description' => 'The name of the trigger.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ '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', 'title' => ''],
+ 'TriggerId' => ['description' => 'The ID of the trigger.'."\n", 'type' => 'string', 'example' => 'crw-vriyql9eq7ep****', 'title' => ''],
+ 'TriggerUrl' => ['description' => 'The URL of the trigger.'."\n", 'type' => 'string', 'example' => 'https://www.test.com', 'title' => ''],
+ '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', 'title' => ''],
+ 'TriggerTag' => ['description' => 'The image tag based on which the trigger is set.'."\n", 'type' => 'string', 'example' => '*', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'ListRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'RepoStatus',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'namespace01',
- ],
+ 'schema' => ['description' => 'Repository status. Valid values:'."\n"
+ ."\n"
+ .'- `NORMAL`: Normal.'."\n"
+ ."\n"
+ .'- `DELETING`: Deleting.'."\n"
+ ."\n"
+ .'- `DELETED`: Deleted.'."\n"
+ ."\n"
+ .'- `ALL`: All repository statuses.', 'type' => 'string', 'required' => false, 'example' => 'ALL', 'title' => ''],
],
[
- 'name' => 'AutoCreateRepo',
+ 'name' => 'RepoName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'repo-test', 'title' => ''],
],
[
- 'name' => 'DefaultRepoType',
+ 'name' => 'RepoNamespaceName',
'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',
- ],
+ 'schema' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'required' => false, 'example' => 'repo-namespace-test', 'title' => ''],
+ ],
+ [
+ 'name' => 'PageNo',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -13199,730 +9749,613 @@
'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',
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '5241C090-DA69-4B0F-8E3F-2F24FDE1110E', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of the queried image repositories.'."\n", 'type' => 'string', 'example' => '1', 'title' => ''],
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ 'ModifiedTime' => ['description' => 'The time when the repository was last modified.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1564153576000', 'title' => ''],
+ 'RepoId' => ['description' => 'The ID of the repository.'."\n", 'type' => 'string', 'example' => 'crr-03cuozrsqhkw****', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the repository was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1564153576000', 'title' => ''],
+ 'RepoNamespaceName' => ['description' => 'The name of the namespace to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'TagImmutability' => ['description' => 'Indicates whether the feature of image tag immutability is enabled for the repository.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'InstanceId' => ['description' => 'The ID of the Container Registry instance to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'cri-kmsiwlxxdcv****', 'title' => ''],
+ 'RepoType' => ['description' => 'The type of the repository. Valid values:'."\n"
+ ."\n"
+ .'* `PUBLIC`'."\n"
+ .'* `PRIVATE`'."\n", 'type' => 'string', 'example' => 'PRIVATE', 'title' => ''],
+ 'RepoStatus' => ['description' => 'The status of the repository.'."\n", 'type' => 'string', 'example' => 'NORMAL', 'title' => ''],
+ 'RepoName' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'example' => 'test', 'title' => ''],
+ 'ResourceGroupId' => ['description' => 'The ID of the resource group to which the repository belongs.'."\n", 'type' => 'string', 'example' => 'rg-acfm4n5kzyfxxxx'."\n", 'title' => ''],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'Query image repository list',
+ 'summary' => 'Query the image repository list.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'DeleteChartNamespace' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","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}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'ListScanBaselineByTask' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry instance.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cri-***********', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the chart namespace that you want to delete.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns2',
- ],
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
- ],
- '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.',
- ],
+ [
+ 'name' => 'PageSize',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
- ],
- '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' => [],
+ 'name' => 'Level',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The level of the baseline risk.'."\n", 'type' => 'string', 'required' => false, 'example' => 'High', 'title' => ''],
],
- ],
- 'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'update',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
- 'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crr-**************', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'Tag',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The image version.'."\n", 'type' => 'string', 'required' => false, 'example' => '1.1.36', 'title' => ''],
],
[
- 'name' => 'AutoCreateRepo',
+ 'name' => 'Digest',
'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',
- ],
+ 'schema' => ['description' => 'The digest value of the image.'."\n", 'type' => 'string', 'required' => false, 'example' => 'sha256:1c89806cfaf66d2990e2cf1131ebd56ff24b133745a33abf1228*************', 'title' => ''],
],
[
- 'name' => 'DefaultRepoType',
+ 'name' => 'ScanTaskId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the image scan task.'."\n", 'type' => 'string', 'required' => false, 'example' => '3e526d7e-4b45-4703-b046-***********', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
'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',
+ 'RequestId' => ['title' => '', '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', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API request was successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '2', 'title' => ''],
+ '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', 'title' => ''],
+ 'BaselineClassAlias' => ['description' => 'The category to which the baseline risk belongs.'."\n", 'type' => 'string', 'example' => '服务配置', 'title' => ''],
+ 'BaselineNameAlias' => ['description' => 'The name of the baseline risk.'."\n", 'type' => 'string', 'example' => '服务配置', 'title' => ''],
+ 'BaselineNameLevel' => ['description' => 'The severity of the baseline risk.'."\n", 'type' => 'string', 'example' => 'high', 'title' => ''],
+ 'LowRiskItemCount' => ['description' => 'Low risk quantity.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'MiddleRiskItemCount' => ['description' => 'Medium risk quantity.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'HighRiskItemCount' => ['description' => 'High risk quantity.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'BaselineItemCount' => ['description' => 'The number of baseline risks.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'BaselineNameKey' => ['description' => 'The key of the baseline name.'."\n", 'type' => 'string', 'example' => 'ak_leak', 'title' => ''],
+ 'FirstScanTime' => ['description' => 'The time of the first scan.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2024-04-10 15:33:26', 'title' => ''],
+ 'BaselineDetailDescription' => ['description' => 'The description of the baseline risk.'."\n", 'type' => 'string', 'example' => 'Access Key明文存储', 'title' => ''],
+ 'BaselineDetailPrompt' => ['description' => 'The path and content of the baseline risk.'."\n", 'type' => 'string', 'example' => 'usr/local/www/project/environments/dev/common/config/paramsxxx', 'title' => ''],
+ 'BaselineDetailAdvice' => ['description' => 'Suggestions about how to fix the baseline risk.'."\n", 'type' => 'string', 'example' => '建议对ak混淆加密,避免被利用', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1695090008000', 'title' => ''],
+ 'UpdateTime' => ['description' => 'The update time.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1684220824226', 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
- 'description' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'ListScanBaselineByTask',
+ 'summary' => 'Queries the baseline risks of a scan task by page.',
+ 'description' => 'Before you call this operation, use a Security Center scan engine to scan the image.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanBaseline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
+ 'translator' => 'machine',
],
- 'GetChartNamespace' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListScanMaliciousFileByTask' => [
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cri-gu94qynvpwk*****', 'title' => ''],
],
[
- 'name' => 'NamespaceName',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Level',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The severity of the malicious file.'."\n", 'type' => 'string', 'required' => false, 'example' => 'serious、suspicious、remind', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image repository ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crr-h1y4l279wb8*****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Tag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image tag.'."\n", 'type' => 'string', 'required' => false, 'example' => 'V6.11', 'title' => ''],
+ ],
+ [
+ 'name' => 'Digest',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image digest.'."\n", 'type' => 'string', 'required' => false, 'example' => 'sha256:aa4bffff6406785e930dab1f94c9a1297ba22xxxx71d71504a015764*********', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanTaskId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the image scan task.'."\n", 'type' => 'string', 'required' => false, 'example' => '79ee6bc2-3288-4c56-b967-**********', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
'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****',
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '52AE49C8-B91A-5C1A-821F-C34324B42F7C', 'title' => ''],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number. Default value: 1.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '13', 'title' => ''],
+ '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', 'title' => ''],
+ 'MaliciousName' => ['description' => 'The type of the malicious file.'."\n", 'type' => 'string', 'example' => '疑似含有Webshell代码', 'title' => ''],
+ 'MaliciousMd5' => ['description' => 'The MD5 hash value of the malicious file.'."\n", 'type' => 'string', 'example' => 'e76c9759783cbbc9be0ff91ca3xxxxxx', 'title' => ''],
+ 'FirstScanTime' => ['description' => 'The time when the image was first scanned.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2023-04-10 11:42:06'."\n", 'title' => ''],
+ 'Level' => ['description' => 'The severity of the malicious file.'."\n", 'type' => 'string', 'example' => 'remind', 'title' => ''],
+ 'FilePath' => ['description' => 'The path of the file.'."\n", 'type' => 'string', 'example' => 'tenant/0000000000000000/', 'title' => ''],
+ 'CreateTime' => ['description' => 'The time when the image was created.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2023-04-10 11:42:06', 'title' => ''],
+ 'UpdateTime' => ['description' => 'The time when the image was updated.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '2023-04-10 11:42:06'."\n", 'title' => ''],
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'ListScanMaliciousFileByTask',
+ 'summary' => 'Queries the malicious files of a scan task by page.',
+ 'description' => 'Before you call this operation, use a Security Center scan engine to scan the image.'."\n",
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanMaliciousFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
],
- 'ListChartNamespace' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListScanRule' => [
+ 'summary' => 'Lists the scan rules.',
+ 'methods' => ['get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119398',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P', 'FEATUREacrKJDAEQ'],
+ '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****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => false, 'example' => 'cri-upoulewerx*****', 'title' => ''],
],
[
- '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',
+ 'name' => 'PageNo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'PageSize',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '30', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ScanType',
'in' => 'query',
'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ '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",
+ 'enumValueTitles' => ['SBOM' => '', 'VUL' => ''],
+ 'type' => 'string',
'required' => false,
- 'example' => '30',
+ 'example' => 'SBOM',
+ 'title' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'The response struct.'."\n",
'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",
+ 'RequestId' => ['title' => '', 'description' => 'Request Id'."\n", 'type' => 'string', 'example' => '2CB62B5E-605B-5A23-9110-728B8207A25C'],
+ 'Code' => ['description' => 'The HTTP status code'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'PageNo' => ['description' => 'The page number.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'True', 'title' => ''],
+ 'PageSize' => ['description' => 'The number of entries per page.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '30', 'title' => ''],
+ 'TotalCount' => ['description' => 'The total number of entries returned.'."\n", 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''],
+ 'ScanRules' => [
+ 'description' => 'The list of scan rules.'."\n",
'type' => 'array',
'items' => [
+ 'description' => 'The list of scan rules.'."\n",
'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',
+ 'ScanRuleId' => ['description' => 'The scan rule id.'."\n", 'type' => 'string', 'example' => 'crscnr-2sdveqjhpzd****', 'title' => ''],
+ 'RuleName' => ['description' => 'The rule name.'."\n", 'type' => 'string', 'example' => 'cicd-prod', 'title' => ''],
+ 'ScanScope' => ['description' => 'The scan scope.'."\n", 'type' => 'string', 'example' => 'REPO', 'title' => ''],
+ 'TriggerType' => ['description' => 'The trigger type.'."\n", 'type' => 'string', 'example' => 'AUTO', 'title' => ''],
+ 'Namespaces' => [
+ 'description' => 'The list of namespaces.'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The list of namespaces.'."\n", 'type' => 'string', 'example' => 'platform', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
- 'ResourceGroupId' => [
- 'description' => 'The ID of the resource group to which the instance belongs.'."\n",
- 'type' => 'string',
- 'example' => 'rg-acfm4n5kzyf****',
+ 'RepoNames' => [
+ 'description' => 'The repository name.'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The repository name.'."\n", 'type' => 'string', 'example' => 'cloud-function-agent', 'title' => ''],
+ 'title' => '',
+ 'example' => '',
],
+ 'RepoTagFilterPattern' => ['description' => 'The tag that triggers the scan matches the regular expression.'."\n", 'type' => 'string', 'example' => '.*', 'title' => ''],
+ 'CreateTime' => ['description' => 'The creation time.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1702361810000', 'title' => ''],
+ 'UpdateTime' => ['description' => 'The update time.'."\n", 'type' => 'integer', 'format' => 'int64', 'example' => '1764122725000', 'title' => ''],
+ 'ScanType' => ['description' => 'The scan type. Valid values:'."\n"
+ ."\n"
+ .'* `VUL`: Products Cloud Security Scanner'."\n"
+ .'* `SBOM`: Product Content Analysis'."\n", 'type' => 'string', 'example' => 'SBOM', 'title' => ''],
],
+ 'title' => '',
+ 'example' => '',
],
+ 'title' => '',
+ 'example' => '',
],
],
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'ListScanRule',
+ 'description' => '列举扫描规则。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/*'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
+ 'translator' => 'manual',
],
- 'CreateChartRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ListTagResources' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'get',
+ 'abilityTreeCode' => '188659',
+ 'abilityTreeNodes' => ['FEATUREacrRKSIY1'],
],
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'ResourceType',
'in' => 'query',
'schema' => [
- 'description' => 'The ID of the instance.'."\n",
+ 'title' => '',
+ 'description' => 'The type of the resources. Instance resources are supported.'."\n",
'type' => 'string',
'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
+ 'example' => 'Instance',
+ 'enum' => ['Instance'],
],
],
[
- 'name' => 'RepoName',
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo01',
+ '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****', 'title' => ''],
+ 'required' => false,
+ 'maxItems' => 51,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'namespace01',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the region in which the resources are deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
- 'name' => 'RepoType',
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'repeatList',
'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',
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => false,
- 'docRequired' => true,
- 'example' => 'PUBLIC',
+ 'maxItems' => 21,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'Summary',
+ 'name' => 'NextToken',
'in' => 'query',
- 'schema' => [
- 'description' => 'The summary of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'summary',
- ],
+ '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=', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
'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',
+ 'RequestId' => ['title' => '', '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", 'title' => ''],
+ 'TagValue' => ['description' => 'The tag value.', 'type' => 'string', 'example' => 'test-val', 'title' => ''],
+ 'ResourceId' => ['description' => 'The resource ID.', 'type' => 'string', 'example' => 'cri-w19e7qr2wibl****', 'title' => ''],
+ 'ResourceType' => ['description' => 'The resource type.', 'type' => 'string', 'example' => 'Instance', 'title' => ''],
+ ],
+ 'description' => 'The tags that are added to the resource.',
+ 'title' => '',
+ 'example' => '',
+ ],
+ 'title' => '',
+ 'example' => '',
+ ],
+ ],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
+ '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", 'title' => ''],
],
+ 'example' => '',
],
],
+ [],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceIdsOrTags', 'errorMessage' => 'You must specify ResourceId.N or Tags.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.TagKey', 'errorMessage' => 'You must specify Tag.N.Key.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of Tags is exceeded.', 'description' => ''],
+ ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The Tag.N.Key contains duplicate keys.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.NextToken', 'errorMessage' => 'The NextToken parameter is invalid.', 'description' => ''],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPermission ', 'errorMessage' => 'The operator is not permission for this operate', 'description' => ''],
],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ],
+ 'title' => 'ListTagResources',
+ 'summary' => 'Queries the tags that are added to cloud resources. Instance resources are supported.',
+ 'description' => '- 请求中ResourceId.N 及 (Tag.N.Key,Tag.N.Value) 至少存在一个,以确定检索对象。'."\n"
+ ."\n"
+ .'- Tag.N是资源的标签,由一个键值对组成。仅指定Tag.N.Key时,则返回该标签键关联的所有标签值。仅指定Tag.N.Value会报错。'."\n"
+ ."\n"
+ .'- ResourceId.N需满足所有输入的键值对。当输入多个键值对,查询结果为资源中包含指定多个键值对的资源。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
],
],
],
- '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' => ' ',
+ '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"}]',
],
- 'DeleteChartRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'ResetLoginPassword' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -13930,7 +10363,9 @@
],
'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '33801',
+ 'abilityTreeNodes' => ['FEATUREacrBHA1DM'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -13938,35 +10373,12 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- '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',
+ 'name' => 'Password',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo01',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -13974,411 +10386,304 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'ResetLoginPassword',
+ 'summary' => 'Resets the logon password of a Container Registry instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ '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":""}]',
],
- 'UpdateChartRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'TagResources' => [
+ 'summary' => 'Adds tags to resources. Instance resources are supported.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'update',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'create',
+ 'abilityTreeCode' => '188653',
+ 'abilityTreeNodes' => ['FEATUREacrRKSIY1'],
],
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'ResourceType',
'in' => 'query',
'schema' => [
- 'description' => 'The ID of the instance.'."\n",
+ 'title' => '',
+ 'description' => 'The type of the resource. Instance resources are supported.'."\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',
+ 'example' => 'Instance',
+ 'enum' => ['Instance'],
],
],
[
- 'name' => 'Summary',
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The summary of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ '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****', 'title' => ''],
+ 'required' => true,
+ 'maxItems' => 51,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['title' => '', 'description' => 'The region ID of the resources.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
- 'name' => 'RepoName',
+ 'name' => 'Tag',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
+ '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', 'title' => ''],
+ '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', 'title' => ''],
+ ],
+ 'required' => false,
+ 'title' => '',
+ 'example' => '',
+ ],
'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
+ 'maxItems' => 21,
+ 'title' => '',
+ 'example' => '',
],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response',
'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',
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => 'E9A586D0-3977-5C28-A44D-55D3A9CD53CC'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.ResourceId', 'errorMessage' => 'The ResourceId parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The specified ResourceIds are not found in our records.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.RegionId', 'errorMessage' => 'The RegionId parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceIds', 'errorMessage' => 'You must specify ResourceId.N.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.Tags', 'errorMessage' => 'You must specify Tags.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.TagKey', 'errorMessage' => 'You must specify Tag.N.Key.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.TagValue', 'errorMessage' => 'You must specify Tag.N.Value.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagKey', 'errorMessage' => 'The Tag.N.Key parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagValue', 'errorMessage' => 'The Tag.N.Value parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.Tags', 'errorMessage' => 'The maximum number of Tags is exceeded.', 'description' => ''],
+ ['errorCode' => 'QuotaExceed.TagsPerResource', 'errorMessage' => 'The maximum number of tags for each resource is exceeded.', 'description' => ''],
+ ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The Tag.N.Key contains duplicate keys.', 'description' => ''],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'The operator is not permission for this operate', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'InvalidOperation.ConcurrentModification', 'errorMessage' => 'The resource is modified concurrently.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'TagResources',
+ 'description' => '单个实例最多可绑定 20 条标签。绑定标签前,阿里云会校验资源已有标签数量,超过限制值会返回报错信息。',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E9A586D0-3977-5C28-A44D-55D3A9CD53CC\\"\\n}","type":"json"}]',
],
- 'ListChartRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UntagResources' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'delete',
+ 'abilityTreeCode' => '188658',
+ 'abilityTreeNodes' => ['FEATUREacrRKSIY1'],
],
'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'ResourceType',
'in' => 'query',
'schema' => [
- 'description' => 'The ID of the instance.'."\n",
+ 'title' => '',
+ 'description' => 'The type of the resources. Instance resources are supported.'."\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',
+ 'example' => 'Instance',
+ 'enum' => ['Instance'],
],
],
[
- 'name' => 'RepoName',
+ 'name' => 'ResourceId',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
+ '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****', 'title' => ''],
'required' => false,
- 'example' => 'ns1',
+ 'maxItems' => 51,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'RegionId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace to which the repository belongs.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'repo1',
- ],
+ 'schema' => ['title' => '', 'description' => 'The ID of the region in which the resources are deployed.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cn-hangzhou'],
],
[
- 'name' => 'PageNo',
+ 'name' => 'TagKey',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ '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', 'title' => ''],
'required' => false,
- 'example' => '1',
+ 'maxItems' => 21,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'PageSize',
+ 'name' => 'All',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
'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',
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '724402D0-75CD-4794-BC20-7D3720823AE0'],
],
+ 'example' => '',
],
],
],
'errorCodes' => [
+ 400 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'A system error occurred while processing your request', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.ResourceType', 'errorMessage' => 'The ResourceType parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceIds', 'errorMessage' => 'You must specify ResourceId.N.', 'description' => ''],
+ ['errorCode' => 'MissingParameter.ResourceType', 'errorMessage' => 'You must specify ResourceType.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagKey', 'errorMessage' => 'The Tag.N.Key parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'InvalidParameter.TagKeysOrDeleteAll', 'errorMessage' => 'The TagKeys or DeleteAll parameter is invalid.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.ResourceIds', 'errorMessage' => 'The maximum number of ResourceIds is exceeded.', 'description' => ''],
+ ['errorCode' => 'NumberExceed.TagKeys', 'errorMessage' => 'The maximum number of TagKeys is exceeded.', 'description' => ''],
+ ['errorCode' => 'Duplicate.TagKey', 'errorMessage' => 'The Tag.N.Key contains duplicate keys.', 'description' => ''],
+ ['errorCode' => 'InvalidResourceId.NotFound', 'errorMessage' => 'The specified ResourceIds are not found in our records.', 'description' => ''],
+ ],
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPermission', 'errorMessage' => 'The operator is not permission for this operate ', 'description' => ''],
],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ],
+ 'title' => 'UntagResources',
+ 'summary' => 'Removes tags from resources. Instance resources are supported.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"724402D0-75CD-4794-BC20-7D3720823AE0\\"\\n}","type":"json"}]',
],
- 'GetChartRepository' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateArtifactLifecycleRule' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
+ 'riskType' => 'high',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrQD2ZKV'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -14386,35 +10691,52 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-r6ym0lerldp****', 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'Auto',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'Specifies whether to automatically execute the lifecycle management rule.'."\n", 'type' => 'boolean', 'required' => false, 'docRequired' => true, 'example' => 'false', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScheduleTime',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The execution cycle of the lifecycle management rule.'."\n", 'type' => 'string', 'required' => false, 'docRequired' => false, 'example' => 'WEEK', 'title' => ''],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-ns', 'title' => ''],
],
[
'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The name of the image repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test_1', 'title' => ''],
+ ],
+ [
+ '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_.*', 'title' => ''],
+ ],
+ [
+ 'name' => 'RetentionTagCount',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of images that you want to retain.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '30', 'title' => ''],
+ ],
+ [
+ 'name' => 'EnableDeleteTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to enable lifecycle management for the artifact.'."\n", 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ 'name' => 'RuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cralr-luq6qiegzvx****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Scope',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The deletion scope of artifacts.'."\n", 'type' => 'string', 'required' => false, 'example' => 'REPO', 'title' => ''],
],
],
'responses' => [
@@ -14422,125 +10744,51 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => 'BF92FC2E-455F-5600-A276-D2150A59****', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'UpdateArtifactLifecycleRule',
+ 'summary' => 'Updates a lifecycle management rule of an artifact.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"BF92FC2E-455F-5600-A276-D2150A59****\\"\\n}","type":"json"}]',
],
- 'DeleteChartRelease' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateArtifactSubscriptionRule' => [
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
+ 'operationType' => 'update',
+ 'abilityTreeCode' => '141835',
+ 'abilityTreeNodes' => ['FEATUREacr5ED6LF'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -14548,56 +10796,99 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The instance ID.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-c0o11woew0k****'."\n", 'title' => ''],
],
[
- 'name' => 'Chart',
+ 'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the chart.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'chart3',
- ],
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'crasr-mdbpung4i1rm****', 'title' => ''],
],
[
- 'name' => 'Release',
+ 'name' => 'SourceProvider',
'in' => 'query',
'schema' => [
- 'description' => 'The version of the chart that you want to delete.'."\n",
+ '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' => true,
- 'docRequired' => true,
- 'example' => '0.1.0',
+ 'required' => false,
+ 'enumValueTitles' => ['DOCKER_HUB' => 'Docker Hub', 'GCR' => 'GCR', 'QUAY' => 'Quay.io'],
+ 'example' => 'DOCKER_HUB',
+ 'title' => '',
],
],
[
+ 'name' => 'SourceNamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the source namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'library', 'title' => ''],
+ ],
+ [
+ 'name' => 'SourceRepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The source repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'nginx'."\n", 'title' => ''],
+ ],
+ [
+ 'name' => 'NamespaceName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the Container Registry namespace.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-ns'."\n", 'title' => ''],
+ ],
+ [
'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
+ 'schema' => ['description' => 'The name of the Container Registry repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test-repo'."\n", 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ '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", 'title' => ''],
+ ],
+ [
+ 'name' => 'TagCount',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The number of subscribed images.'."\n", 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1', 'title' => ''],
+ ],
+ [
+ 'name' => 'Override',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether to overwrite the original image.'."\n", 'type' => 'string', 'required' => false, 'example' => 'true', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Platform',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns1',
+ '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' => '*/*',
+ 'title' => '',
+ ],
+ 'required' => false,
+ 'maxItems' => 200,
+ 'title' => '',
+ 'example' => '',
],
],
],
@@ -14606,63 +10897,52 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '02B27D80-FD32-5155-931A-93700779BB9E'."\n", 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- 'errorCodes' => [
- 403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
- ],
- 500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ 'title' => 'UpdateArtifactSubscriptionRule',
+ 'summary' => 'Updates an artifact subscription rule.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
],
- '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' => ' ',
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"02B27D80-FD32-5155-931A-93700779BB9E\\\\n\\"\\n}","type":"json"}]',
],
- 'ListChartRelease' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ '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' => 'read',
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacrPRPOYY'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -14670,66 +10950,41 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-4cdrlqmhn4gm****', 'title' => ''],
],
[
- 'name' => 'RepoName',
+ 'name' => 'ChainId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
+ 'schema' => ['description' => 'The ID of the delivery chain.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'chi-02ymhtwl3cq8****', 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'Name',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The name of the delivery chain.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'Description',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The description of the delivery chain.'."\n", 'type' => 'string', 'required' => false, 'example' => 'description', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'ChainConfig',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '20',
- ],
+ 'schema' => ['description' => 'The configuration of the delivery chain in the JSON format.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'chainconfig', 'title' => ''],
],
[
- 'name' => 'Chart',
+ 'name' => 'ScopeExclude',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The chart whose versions you want to query.'."\n",
- 'type' => 'string',
+ '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', 'title' => ''],
'required' => false,
- 'example' => 'null',
+ 'maxItems' => 50,
+ 'minItems' => 0,
+ 'title' => '',
+ 'example' => '',
],
],
],
@@ -14738,139 +10993,77 @@
'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',
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '85A99B10-3926-5201-958E-C06FA47F****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'UpdateChain',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}'],
+ ],
],
],
],
- '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' => ' ',
+ '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":""}]',
],
- 'GetAuthorizationToken' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateChartNamespace' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'operationType' => 'write',
+ 'systemTags' => ['operationType' => 'update', '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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -14878,114 +11071,86 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the API request is successful. Valid values:'."\n"
+ ."\n"
+ .'* `true`: successful'."\n"
+ .'* `false`: failed'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.'."\n", 'type' => 'string', 'example' => '6877B80A-2895-44C4-BC9E-703B157DEE66', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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",
+ 'title' => 'UpdateChartNamespace',
+ 'summary' => 'Updates a chart namespace.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ResetLoginPassword' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'UpdateChartRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'update',
- 'abilityTreeCode' => '33801',
- 'abilityTreeNodes' => [
- 'FEATUREacrBHA1DM',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'Password',
+ 'name' => 'RepoType',
'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',
- ],
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The summary of the repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'test', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'RepoName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
],
'responses' => [
@@ -14993,58 +11158,52 @@
'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',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'EB9C5722-51E2-4497-A573-575B0CA5CE0C', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
- ],
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
],
],
- '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.',
+ 'title' => 'UpdateChartRepository',
+ 'summary' => 'Updates a chart repository of a Container Registry instance.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CancelArtifactBuildTask' => [
- 'methods' => [
- 'post',
- 'put',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'UpdateEventCenterRule' => [
+ 'summary' => 'Updates an event rule.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
@@ -15052,248 +11211,143 @@
],
'operationType' => 'write',
'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-shac42yvqzvq****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'BuildTaskId',
+ 'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the artifact building task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'i2ei-12****',
- ],
+ 'schema' => ['description' => 'The ID of the event notification rule.'."\n", 'type' => 'string', 'required' => true, 'example' => 'crecr-n6pbhgjxt*****', 'title' => ''],
],
- ],
- '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',
- ],
- ],
- ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the event notification rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'chain-demo', 'title' => ''],
],
- ],
- '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' => [],
+ 'name' => 'EventChannel',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The event notification channel.'."\n", 'type' => 'string', 'required' => false, 'example' => 'EVENT_BRIDGE', 'title' => ''],
],
- ],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'get',
- 'abilityTreeCode' => '33715',
- 'abilityTreeNodes' => [
- 'FEATUREacrSEEOQD',
+ [
+ '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', 'title' => ''],
],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
- 'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'EventScope',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-xkx6vujuhay0****'."\n",
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'ScopeType',
+ 'name' => 'Namespaces',
'in' => 'query',
+ 'style' => 'json',
'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',
+ '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"]', 'title' => ''],
'required' => false,
- 'docRequired' => true,
- 'example' => 'REPOSITORY',
+ 'example' => 'ns',
+ 'title' => '',
],
],
[
- 'name' => 'ScopeId',
+ 'name' => 'RepoNames',
'in' => 'query',
+ 'style' => 'json',
'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',
+ '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"]', 'title' => ''],
'required' => false,
- 'docRequired' => true,
- 'example' => 'crr-8dz3aedjqlmk****'."\n",
+ 'example' => 'reponame',
+ 'title' => '',
],
],
[
- 'name' => 'ArtifactType',
+ 'name' => 'RepoTagFilterPattern',
'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',
- ],
+ 'schema' => ['description' => 'The regular expression for image tags.'."\n", 'type' => 'string', 'required' => false, 'example' => '.*', 'title' => ''],
],
[
- 'name' => 'BuildRuleId',
+ 'name' => 'EventConfig',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the artifact building rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'crabr-o2670wqz2n70****',
- ],
+ '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"
+ .' }', 'title' => ''],
],
],
'responses' => [
200 => [
+ 'headers' => [],
'schema' => [
+ 'title' => '',
+ 'description' => 'Schema of Response'."\n",
'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',
- ],
+ 'RequestId' => ['title' => '', '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', 'title' => ''],
+ 'RuleId' => ['description' => 'The ID of the event notification rule.'."\n", 'type' => 'string', 'example' => 'crecr-n6pbhgjxt*****', 'title' => ''],
],
- 'description' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'title' => 'UpdateEventCenterRule',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateEventCenterRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'UpdateInstanceCustomizedDomain' => [
+ 'summary' => '',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeNodes' => ['FEATUREacr9LPARH'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -15301,224 +11355,93 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'docRequired' => true,
- 'example' => 'cri-shac42yvqzvq****',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'cri-h0tvspmnglam5jw5', 'title' => ''],
],
[
- 'name' => 'BuildTaskId',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the artifact building task.'."\n",
- 'docRequired' => true,
- 'example' => 'i2a-1yu****',
- 'required' => true,
- 'type' => 'string',
- ],
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'Registry', 'title' => ''],
+ ],
+ [
+ 'name' => 'Domain',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => 'registry-cn-guangzhou.ack.aliyuncs.com', 'title' => ''],
+ ],
+ [
+ 'name' => 'CertId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'required' => true, 'docRequired' => true, 'description' => '', 'example' => '21118442', 'title' => ''],
+ ],
+ [
+ 'name' => 'CertRegionId',
+ 'in' => 'query',
+ 'schema' => ['type' => 'string', 'default' => 'cn-hangzhou', 'description' => '', 'required' => false, 'example' => 'cn-hangzhou', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'type' => 'object',
'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',
- ],
+ 'Code' => ['type' => 'string', 'description' => '', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['type' => 'boolean', 'description' => '', 'example' => 'True', 'title' => ''],
+ 'RequestId' => ['type' => 'string', 'description' => '', 'example' => '2EFAF75C-1FA7-5254-B044-E97291C170CC', 'title' => ''],
],
- 'type' => 'object',
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
+ 'title' => '',
+ 'changeSet' => [],
+ 'ramActions' => [],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"2EFAF75C-1FA7-5254-B044-E97291C170CC\\"\\n}","type":"json"}]',
+ ],
+ 'UpdateInstanceEndpointStatus' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'systemTags' => ['operationType' => 'update', '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',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'ScopeId',
+ 'name' => 'EndpointType',
'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****',
- ],
+ 'schema' => ['description' => 'The type of the endpoint. Set the value to Internet.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'internet', 'title' => ''],
],
[
- 'name' => 'ArtifactType',
+ 'name' => 'Enable',
'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',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'Parameters',
+ 'name' => 'ModuleName',
'in' => 'query',
- 'style' => 'json',
- 'schema' => [
- 'description' => 'Additional parameters.'."\n",
- 'type' => 'object',
- 'required' => false,
- 'example' => '{}',
- ],
+ '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', 'title' => ''],
],
],
'responses' => [
@@ -15526,56 +11449,64 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '2FC14396-A16A-42BA-AAE4-BB94D956DF09', 'title' => ''],
],
'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ 'title' => 'UpdateInstanceEndpointStatus',
+ 'summary' => 'Updates the status of an instance endpoint.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateInstanceEndpointStatus',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'UpdateNamespace' => [
+ 'summary' => 'Updates a namespace.',
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '33814',
+ 'abilityTreeNodes' => ['FEATUREacr9J9LGC'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -15583,48 +11514,32 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the Container Registry instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-shac42yvqzvq****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'BuildTaskId',
+ 'name' => 'NamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the artifact build task.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'i2a-1yu****',
- ],
+ 'schema' => ['description' => 'The name of the namespace.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'test', 'title' => ''],
],
[
- 'name' => 'Page',
+ 'name' => 'AutoCreateRepo',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => true,
- 'docRequired' => true,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'Whether to automatically create a repository when an image is pushed.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'DefaultRepoType',
'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',
- ],
+ 'schema' => ['description' => 'The default type for automatically created repositories. This parameter applies only if `AutoCreateRepo` is set to `true`. Valid values:'."\n"
+ ."\n"
+ .'- `PUBLIC`: a public repository'."\n"
+ ."\n"
+ .'- `PRIVATE`: a private repository', 'type' => 'string', 'deprecated' => true, 'required' => false, 'example' => 'PRIVATE', 'title' => ''],
+ ],
+ [
+ 'name' => 'DefaultRepoConfiguration',
+ 'in' => 'query',
+ 'style' => 'json',
+ 'schema' => ['description' => 'The default configuration for automatically created repositories.', '$ref' => '#/components/schemas/RepoConfiguration', 'title' => '', 'example' => ''],
],
],
'responses' => [
@@ -15632,164 +11547,149 @@
'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' => '',
- ],
- ],
+ 'Code' => ['description' => 'The response code. The value `success` indicates a successful request.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request succeeded.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => '90B8475C-C066-4B92-946E-4D0DECB514E8', 'title' => ''],
],
- 'description' => '',
+ 'description' => 'The response body.',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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.',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'UpdateNamespace',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'CreateChain' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"90B8475C-C066-4B92-946E-4D0DECB514E8\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'UpdateRepoBuildRule' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'create',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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-4cdrlqmhn4gm****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'RepoName',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'repo1',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'DockerfileLocation',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'docRequired' => true,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The path of the Dockerfile.'."\n", 'type' => 'string', 'required' => false, 'example' => '/', 'title' => ''],
],
[
- 'name' => 'Name',
+ 'name' => 'DockerfileName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the delivery chain.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ 'schema' => ['description' => 'The name of the Dockerfile.'."\n", 'type' => 'string', 'required' => false, 'example' => 'Dockerfile', 'title' => ''],
],
[
- 'name' => 'Description',
+ 'name' => 'PushType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The description of the delivery chain.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'description',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'ChainConfig',
+ 'name' => 'PushName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The name of the push that triggers the building rule.'."\n", 'type' => 'string', 'required' => false, 'example' => 'master', 'title' => ''],
+ ],
+ [
+ 'name' => 'ImageTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The tag of the image.'."\n", 'type' => 'string', 'required' => false, 'example' => 'v0.9.5', 'title' => ''],
+ ],
+ [
+ 'name' => 'BuildRuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the building rule.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crbr-ly77w5i3t31f****', 'title' => ''],
+ ],
+ [
+ 'name' => 'BuildArgs',
'in' => 'query',
+ 'style' => 'repeatList',
'schema' => [
- 'description' => 'The configuration of the delivery chain in the JSON format.'."\n",
- 'type' => 'string',
+ 'description' => 'Building arguments.'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'Building arguments.'."\n", 'type' => 'string', 'required' => false, 'example' => 'UserName=Test', 'title' => ''],
'required' => false,
- 'example' => 'chainconfig',
+ 'maxItems' => 20,
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'ScopeExclude',
+ 'name' => 'Platforms',
'in' => 'query',
'style' => 'repeatList',
'schema' => [
- 'description' => 'Repositories in which the delivery chain does not take effect.'."\n",
+ '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' => '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',
- ],
+ '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', 'title' => ''],
'required' => false,
- 'maxItems' => 50,
+ 'example' => 'linux/amd64',
+ 'maxItems' => 20,
+ 'title' => '',
],
],
],
@@ -15798,224 +11698,111 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ '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', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'BC648259-91A7-4502-BED3-EDF64361FA83', 'title' => ''],
+ 'BuildRuleId' => ['description' => 'The ID of the building rule.'."\n", 'type' => 'string', 'example' => 'crbr-ly77w5i3t31f****', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'UpdateRepoBuildRule',
+ 'summary' => 'Updates an image building rule for a repository.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#RepositoryId}'],
+ ],
],
],
],
- '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' => ' ',
+ '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":""}]',
],
- 'DeleteChain' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
- ],
+ 'UpdateRepoSourceCodeRepo' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
'operationType' => 'write',
- 'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ 'deprecated' => false,
+ 'systemTags' => ['operationType' => 'update', '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',
- ],
+ 'schema' => ['description' => 'The ID of the Container Registry Enterprise Edition instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-shac42yvqzvq****', 'title' => ''],
],
[
- 'name' => 'ChainId',
+ 'name' => 'RepoId',
'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',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-gzsrlevmvoa****', 'title' => ''],
],
- ],
- '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',
+ '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', 'title' => ''],
],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
- 'parameters' => [
[
- 'name' => 'InstanceId',
+ 'name' => 'CodeRepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-4cdrlqmhn4gm****',
- ],
+ 'schema' => ['description' => 'The namespace to which the source code repository belongs.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'namespace', 'title' => ''],
],
[
- 'name' => 'ChainId',
+ 'name' => 'CodeRepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the delivery chain.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'chi-02ymhtwl3cq8****',
- ],
+ 'schema' => ['description' => 'The name of the source code repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'repo', 'title' => ''],
],
[
- 'name' => 'Name',
+ 'name' => 'AutoBuild',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the delivery chain.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'test',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'Description',
+ 'name' => 'OverseaBuild',
'in' => 'query',
- 'schema' => [
- 'description' => 'The description of the delivery chain.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'description',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'ChainConfig',
+ 'name' => 'DisableCacheBuild',
'in' => 'query',
- 'schema' => [
- 'description' => 'The configuration of the delivery chain in the JSON format.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'chainconfig',
- ],
+ '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', 'title' => ''],
],
[
- 'name' => 'ScopeExclude',
+ 'name' => 'CodeRepoId',
'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,
- ],
+ 'schema' => ['description' => 'The ID of the source code repository.'."\n", 'type' => 'string', 'required' => false, 'example' => 'crr-cp7d6sget5r****', 'title' => ''],
],
],
'responses' => [
@@ -16023,90 +11810,96 @@
'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****',
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => '200', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'F56D589D-AF7F-4900-BA46-62C780AC2C10', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
'errorCodes' => [
403 => [
- [
- 'errorCode' => 'NoPrivilege',
- 'errorMessage' => 'Access denied for this user.',
- ],
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
],
500 => [
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'Unknown error.',
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'UpdateRepoSourceCodeRepo',
+ 'summary' => 'Updates the URL of the source code repository that is bound to an image repository.',
+ 'requestParamsDescription' => ' ',
+ 'responseParamsDescription' => ' ',
+ 'extraInfo' => ' ',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
],
],
],
- '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',
+ '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":""}]',
],
- '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',
- ],
+ 'UpdateRepoTrigger' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
- 'systemTags' => [
- 'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrPRPOYY',
- ],
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
- ],
+ '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-4cdrlqmhn4gm****',
- ],
+ 'schema' => ['description' => 'The ID of the instance.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'ChainId',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => '',
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'chi-0ops0gsmw5x2****',
- ],
+ 'schema' => ['description' => 'The ID of the image repository.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
+ ],
+ [
+ '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', 'title' => ''],
+ ],
+ [
+ 'name' => 'TriggerUrl',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The URL of the trigger.'."\n", 'type' => 'string', 'required' => false, 'example' => 'https://www.test.com', 'title' => ''],
+ ],
+ [
+ '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' => 'ALL', 'title' => ''],
+ ],
+ [
+ 'name' => 'TriggerTag',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The image tag based on which the trigger is set.'."\n", 'type' => 'string', 'required' => false, 'example' => 'master', 'title' => ''],
+ ],
+ [
+ 'name' => 'TriggerId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The ID of the trigger.'."\n", 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'crw-k7bdx4kt52ty****', 'title' => ''],
],
],
'responses' => [
@@ -16114,241 +11907,59 @@
'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,
- ],
+ 'Code' => ['description' => 'The return value.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => '32535049-ED91-4589-98C0-7C88766EDF1F', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'UpdateRepoTrigger',
+ 'summary' => 'Updates a trigger of an image repository.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListChain' => [
- 'summary' => 'Queries delivery chains.',
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
+ ],
],
+ '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":""}]',
+ ],
+ 'UpdateRepository' => [
+ 'methods' => ['post', 'get'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
'systemTags' => [
- 'operationType' => 'get',
+ 'operationType' => 'update',
'riskType' => 'none',
'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrPRPOYY',
- ],
+ 'abilityTreeNodes' => ['FEATUREacr9J9LGC'],
'autoTest' => false,
'notSupportAutoTestReason' => '返回 http code不符合测试要求',
],
@@ -16356,55 +11967,50 @@
[
'name' => 'InstanceId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-4cdrlqmhn4gm****',
- ],
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'cri-kmsiwlxxdcva****', 'title' => ''],
],
[
- 'name' => 'PageNo',
+ 'name' => 'RepoId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
- ],
+ 'schema' => ['description' => 'The repository ID.', 'type' => 'string', 'required' => false, 'docRequired' => true, 'example' => 'crr-tquyps22md8p****', 'title' => ''],
],
[
- 'name' => 'PageSize',
+ 'name' => 'RepoType',
'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '10',
- ],
+ 'schema' => ['description' => 'The repository type. Valid values:'."\n"
+ ."\n"
+ .'- `PUBLIC`: public repository'."\n"
+ ."\n"
+ .'- `PRIVATE`: private repository.', 'type' => 'string', 'required' => true, 'docRequired' => true, 'example' => 'PUBLIC', 'title' => ''],
+ ],
+ [
+ 'name' => 'Summary',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The summary.', 'type' => 'string', 'required' => true, 'example' => 'test repo', 'title' => ''],
+ ],
+ [
+ 'name' => 'Detail',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The repository description.', 'type' => 'string', 'required' => false, 'example' => 'repo-for-test', 'title' => ''],
+ ],
+ [
+ 'name' => 'TagImmutability',
+ 'in' => 'query',
+ 'schema' => ['description' => 'Specifies whether image tag immutability is enabled. Valid values:'."\n"
+ ."\n"
+ .'- `true`: enabled'."\n"
+ ."\n"
+ .'- `false`: disabled.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''],
],
[
'name' => 'RepoNamespaceName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the namespace.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'ns1',
- ],
+ 'schema' => ['description' => 'The name of the repository namespace.', 'type' => 'string', 'required' => false, 'example' => 'ejiayou-other', 'title' => ''],
],
[
'name' => 'RepoName',
'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the image repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'repo1',
- ],
+ 'schema' => ['description' => 'The repository name.', 'type' => 'string', 'required' => false, 'example' => 'dsp/domain-microapp', 'title' => ''],
],
],
'responses' => [
@@ -16412,1999 +12018,1873 @@
'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,
- ],
- ],
- ],
- ],
+ 'Code' => ['description' => 'The return code.', 'type' => 'string', 'example' => 'success', 'title' => ''],
+ 'IsSuccess' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'CC43EC6B-0DD4-40AE-8811-B0519617051A', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'NoPrivilege', 'errorMessage' => 'Access denied for this user.', 'description' => ''],
+ ],
+ 500 => [
+ ['errorCode' => 'SystemError', 'errorMessage' => 'Unknown error.', 'description' => ''],
+ ],
+ ],
+ 'title' => 'Update repository information',
+ 'summary' => 'Updates repository information.',
'requestParamsDescription' => ' ',
'responseParamsDescription' => ' ',
'extraInfo' => ' ',
- ],
- 'ListChainInstance' => [
- 'methods' => [
- 'post',
- 'get',
- ],
- 'schemes' => [
- 'http',
- 'https',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Code\\": \\"success\\",\\n \\"IsSuccess\\": true,\\n \\"RequestId\\": \\"CC43EC6B-0DD4-40AE-8811-B0519617051A\\"\\n}","type":"json"}]',
+ 'translator' => 'machine',
+ ],
+ 'UpdateScanRule' => [
+ 'summary' => 'Updates a scan rule.',
+ 'methods' => ['post'],
+ 'schemes' => ['http', 'https'],
'security' => [
[
'AK' => [],
],
],
- 'operationType' => 'read',
+ 'operationType' => 'write',
+ 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'operationType' => 'update',
+ 'riskType' => 'none',
+ 'chargeType' => 'free',
+ 'abilityTreeCode' => '119400',
+ 'abilityTreeNodes' => ['FEATUREacr7W016P'],
+ 'autoTest' => true,
+ 'tenantRelevance' => 'tenant',
],
'parameters' => [
[
'name' => 'InstanceId',
'in' => 'query',
+ 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'example' => 'cri-4abntrj42twd****', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanRuleId',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The rule ID.', 'type' => 'string', 'required' => true, 'example' => 'crscnr-3qmkeiuggfpjkfrq', 'title' => ''],
+ ],
+ [
+ 'name' => 'RuleName',
+ 'in' => 'query',
+ 'schema' => ['description' => 'The rule name.', 'type' => 'string', 'required' => true, 'maxLength' => 256, 'minLength' => 1, 'example' => 'scan-test', 'title' => ''],
+ ],
+ [
+ 'name' => 'ScanScope',
+ 'in' => 'query',
'schema' => [
- 'description' => 'The operation that you want to perform. Set this parameter to **ListChainInstance**.'."\n",
+ 'description' => 'The scan scope. Valid values:'."\n"
+ .'- NAMESPACE: namespace'."\n"
+ .'- REPO: repository.',
+ 'enumValueTitles' => ['NAMESPACE' => 'namespace.', 'REPO' => 'repository.'],
'type' => 'string',
'required' => true,
- 'docRequired' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
+ 'enum' => ['INSTANCE', 'NAMESPACE', 'REPO'],
+ 'example' => 'REPO',
+ 'title' => '',
],
],
[
- 'name' => 'PageNo',
+ 'name' => 'TriggerType',
'in' => 'query',
'schema' => [
- 'description' => 'The time when the delivery chain started.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ 'description' => 'The trigger type. Valid values:'."\n"
+ .'- AUTO: Automatically triggered upon push.'."\n"
+ .'- MANUAL: Manually triggered.',
+ 'enumValueTitles' => ['AUTO' => 'automatically triggered upon push.', 'MANUAL' => 'manually triggered.'],
+ 'type' => 'string',
+ 'required' => true,
+ 'enum' => ['AUTO', 'MANUAL'],
+ 'example' => 'AUTO',
+ 'title' => '',
],
],
[
- 'name' => 'PageSize',
+ 'name' => 'Namespaces',
'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
'schema' => [
- 'description' => 'The name of the image repository.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
+ 'description' => 'The collection of namespaces.'."\n"
+ .'- If the scan scope is set to NAMESPACE, this parameter is required.'."\n"
+ .'- If the scan scope is set to REPO, specify exactly one namespace for this parameter.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The namespace.', 'type' => 'string', 'minLength' => 1, 'required' => false, 'example' => 'prd', 'title' => ''],
'required' => false,
- 'example' => '30',
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'RepoNamespaceName',
+ 'name' => 'RepoNames',
'in' => 'query',
+ 'allowEmptyValue' => false,
+ 'style' => 'json',
'schema' => [
- 'description' => 'The name of the delivery chain.'."\n",
- 'type' => 'string',
+ 'description' => 'The list of repositories.'."\n"
+ .'- If the scan scope is set to NAMESPACE, this parameter must be empty.'."\n"
+ .'- If the scan scope is set to REPO, this parameter is required.',
+ 'type' => 'array',
+ 'items' => ['description' => 'The repository name.', 'type' => 'string', 'minLength' => 1, 'required' => false, 'example' => 'prod', 'title' => ''],
'required' => false,
- 'example' => 'test-namespace',
+ 'title' => '',
+ 'example' => '',
],
],
[
- 'name' => 'RepoName',
+ 'name' => 'RepoTagFilterPattern',
'in' => 'query',
- 'schema' => [
- 'description' => 'The time when the delivery chain is completed.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test-repo',
- ],
+ 'schema' => ['description' => 'The tag filtering rule.', 'type' => 'string', 'required' => true, 'example' => 'prod-.*', 'title' => ''],
],
],
'responses' => [
200 => [
'schema' => [
+ 'title' => '',
+ 'description' => 'The response struct.',
'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',
- ],
- ],
- ],
- ],
- ],
- ],
+ 'RequestId' => ['title' => '', 'description' => 'Request Id', 'type' => 'string', 'example' => '33EF1695-E2B7-5D57-B4E1-3D655FE1EBD8'],
+ 'Code' => ['description' => 'The return code.', 'type' => 'integer', 'format' => 'int64', 'example' => 'success', 'title' => ''],
+ 'ScanRuleId' => ['description' => 'The rule ID.', 'type' => 'string', 'example' => 'crscnr-3qmkeiuggfpjkfrq', 'title' => ''],
],
+ 'example' => '',
],
],
],
- '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',
+ 'title' => 'Update a scan rule',
+ 'description' => 'This API is available through whitelist access. [Submit a ticket](https://smartservice.console.aliyun.com/service/create-ticket) to request access.',
+ 'changeSet' => [],
+ 'ramActions' => [
+ [
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ],
+ ],
+ ],
],
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"33EF1695-E2B7-5D57-B4E1-3D655FE1EBD8\\",\\n \\"Code\\": 0,\\n \\"ScanRuleId\\": \\"crscnr-3qmkeiuggfpjkfrq\\"\\n}","type":"json"}]',
+ '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',
- 'deprecated' => false,
'systemTags' => [
- 'operationType' => 'delete',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ '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****', 'title' => ''],
+ ],
+ [
+ 'name' => 'Routes',
+ 'in' => 'query',
+ 'style' => 'json',
'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-xkx6vujuhay0****',
+ 'description' => 'The route list'."\n",
+ 'type' => 'array',
+ 'items' => ['description' => 'The routing rule entries'."\n", '$ref' => '#/components/schemas/RouteItem', 'required' => false, 'title' => '', 'example' => ''],
+ 'required' => true,
+ 'title' => '',
+ 'example' => '',
],
],
[
'name' => 'RuleId',
'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the event notification rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crecr-n6pbhgjx*****',
- ],
+ 'schema' => ['description' => 'The rule ID.'."\n", 'type' => 'string', 'required' => true, 'example' => 'crsdr-b6thg027zmk1****', 'title' => ''],
],
],
'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',
- ],
+ 'RequestId' => ['description' => 'The ID of the request.'."\n", 'type' => 'string', 'example' => 'D4978DCC-ECBD-40B0-A714-EE6959*****', 'title' => ''],
+ 'Success' => ['description' => 'Request status ID'."\n", 'type' => 'boolean', 'example' => 'true', 'title' => ''],
+ 'Code' => ['description' => 'The returned HTTP status code.'."\n", 'type' => 'string', 'example' => 'success', 'title' => ''],
],
+ 'description' => '',
+ 'title' => '',
+ 'example' => '',
],
],
],
- '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',
+ 'errorCodes' => [
+ 403 => [
+ ['errorCode' => 'AuthenticationFailed', 'errorMessage' => 'Authentication failed.', 'description' => 'Authentication failed.'],
+ ],
],
- 'security' => [
+ 'title' => 'UpdateStorageDomainRoutingRule',
+ 'description' => '此API白名单开放,请[提交工单](https://smartservice.console.aliyun.com/service/create-ticket)获取支持。',
+ 'changeSet' => [],
+ 'ramActions' => [
[
- 'AK' => [],
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"D4978DCC-ECBD-40B0-A714-EE6959*****\\",\\n \\"Success\\": true,\\n \\"Code\\": \\"success\\"\\n}","type":"json"}]',
+ 'translator' => 'manual',
+ ],
+ ],
+ 'endpoints' => [
+ ['regionId' => 'cn-huhehaote', 'regionName' => 'China (Hohhot)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-huhehaote.aliyuncs.com', 'endpoint' => 'cr.cn-huhehaote.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-wulanchabu', 'regionName' => 'China (Ulanqab)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-wulanchabu.aliyuncs.com', 'endpoint' => 'cr.cn-wulanchabu.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-heyuan', 'regionName' => 'China (Heyuan)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-heyuan.aliyuncs.com', 'endpoint' => 'cr.cn-heyuan.aliyuncs.com', 'vpc' => ''],
+ ['regionId' => 'cn-zhongwei', 'regionName' => 'China (Zhongwei)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-zhongwei.aliyuncs.com', 'endpoint' => 'cr.cn-zhongwei.aliyuncs.com', 'vpc' => 'cr-vpc.cn-zhongwei.aliyuncs.com'],
+ ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-beijing.aliyuncs.com', 'endpoint' => 'cr.cn-beijing.aliyuncs.com', 'vpc' => 'cr-vpc.cn-beijing.aliyuncs.com'],
+ ['regionId' => 'cn-zhengzhou-jva', 'regionName' => 'Zhengzhou (China Unicom Joint Venture)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-zhengzhou-jva.aliyuncs.com', 'endpoint' => 'cr.cn-zhengzhou-jva.aliyuncs.com', 'vpc' => 'cr-vpc.cn-zhengzhou-jva.aliyuncs.com'],
+ ['regionId' => 'cn-qingdao', 'regionName' => 'China (Qingdao)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-qingdao.aliyuncs.com', 'endpoint' => 'cr.cn-qingdao.aliyuncs.com', 'vpc' => 'cr-vpc.cn-qingdao.aliyuncs.com'],
+ ['regionId' => 'cn-wuhan-lr', 'regionName' => 'China (Wuhan - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-wuhan-lr.aliyuncs.com', 'endpoint' => 'cr.cn-wuhan-lr.aliyuncs.com', 'vpc' => 'cr-vpc.cn-wuhan-lr.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-shanghai.aliyuncs.com', 'endpoint' => 'cr.cn-shanghai.aliyuncs.com', 'vpc' => 'cr-vpc.cn-shanghai.aliyuncs.com'],
+ ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-hongkong.aliyuncs.com', 'endpoint' => 'cr.cn-hongkong.aliyuncs.com', 'vpc' => 'cr-vpc.cn-hongkong.aliyuncs.com'],
+ ['regionId' => 'cn-zhangjiakou', 'regionName' => 'China (Zhangjiakou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-zhangjiakou.aliyuncs.com', 'endpoint' => 'cr.cn-zhangjiakou.aliyuncs.com', 'vpc' => 'cr-vpc.cn-zhangjiakou.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-shenzhen.aliyuncs.com', 'endpoint' => 'cr.cn-shenzhen.aliyuncs.com', 'vpc' => 'cr-vpc.cn-shenzhen.aliyuncs.com'],
+ ['regionId' => 'cn-nanjing', 'regionName' => 'China (Nanjing - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-nanjing.aliyuncs.com', 'endpoint' => 'cr.cn-nanjing.aliyuncs.com', 'vpc' => 'cr-vpc.cn-nanjing.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-2', 'regionName' => 'South Korea (Seoul)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-northeast-2.aliyuncs.com', 'endpoint' => 'cr.ap-northeast-2.aliyuncs.com', 'vpc' => 'cr-vpc.ap-northeast-2.aliyuncs.com'],
+ ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-northeast-1.aliyuncs.com', 'endpoint' => 'cr.ap-northeast-1.aliyuncs.com', 'vpc' => 'cr-vpc.ap-northeast-1.aliyuncs.com'],
+ ['regionId' => 'cn-fuzhou', 'regionName' => 'China (Fuzhou - Local Region)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-fuzhou.aliyuncs.com', 'endpoint' => 'cr.cn-fuzhou.aliyuncs.com', 'vpc' => 'cr-vpc.cn-fuzhou.aliyuncs.com'],
+ ['regionId' => 'cn-chengdu', 'regionName' => 'China (Chengdu)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-chengdu.aliyuncs.com', 'endpoint' => 'cr.cn-chengdu.aliyuncs.com', 'vpc' => 'cr-vpc.cn-chengdu.aliyuncs.com'],
+ ['regionId' => 'cn-guangzhou', 'regionName' => 'China (Guangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-guangzhou.aliyuncs.com', 'endpoint' => 'cr.cn-guangzhou.aliyuncs.com', 'vpc' => 'cr-vpc.cn-guangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-1.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-1.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-1.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-2.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-2.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-2.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-3', 'regionName' => 'Malaysia (Kuala Lumpur)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-3.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-3.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-3.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-5', 'regionName' => 'Indonesia (Jakarta)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-5.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-5.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-5.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-6', 'regionName' => 'Philippines (Manila)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-6.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-6.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-6.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-7', 'regionName' => 'Thailand (Bangkok)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-7.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-7.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-7.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.cn-hangzhou.aliyuncs.com', 'endpoint' => 'cr.cn-hangzhou.aliyuncs.com', 'vpc' => 'cr-vpc.cn-hangzhou.aliyuncs.com'],
+ ['regionId' => 'ap-southeast-8', 'regionName' => 'Malaysia (Johor)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'cr.ap-southeast-8.aliyuncs.com', 'endpoint' => 'cr.ap-southeast-8.aliyuncs.com', 'vpc' => 'cr-vpc.ap-southeast-8.aliyuncs.com'],
+ ['regionId' => 'us-east-1', 'regionName' => 'US (Virginia)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.us-east-1.aliyuncs.com', 'endpoint' => 'cr.us-east-1.aliyuncs.com', 'vpc' => 'cr-vpc.us-east-1.aliyuncs.com'],
+ ['regionId' => 'us-southeast-1', 'regionName' => 'US(Atlanta)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.us-southeast-1.aliyuncs.com', 'endpoint' => 'cr.us-southeast-1.aliyuncs.com', 'vpc' => 'cr-vpc.us-southeast-1.aliyuncs.com'],
+ ['regionId' => 'eu-west-1', 'regionName' => 'UK (London)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.eu-west-1.aliyuncs.com', 'endpoint' => 'cr.eu-west-1.aliyuncs.com', 'vpc' => 'cr-vpc.eu-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-west-2', 'regionName' => 'France (Paris)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.eu-west-2.aliyuncs.com', 'endpoint' => 'cr.eu-west-2.aliyuncs.com', 'vpc' => 'cr-vpc.eu-west-2.aliyuncs.com'],
+ ['regionId' => 'us-west-1', 'regionName' => 'US (Silicon Valley)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.us-west-1.aliyuncs.com', 'endpoint' => 'cr.us-west-1.aliyuncs.com', 'vpc' => 'cr-vpc.us-west-1.aliyuncs.com'],
+ ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.eu-central-1.aliyuncs.com', 'endpoint' => 'cr.eu-central-1.aliyuncs.com', 'vpc' => 'cr-vpc.eu-central-1.aliyuncs.com'],
+ ['regionId' => 'na-south-1', 'regionName' => 'Mexico', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'cr.na-south-1.aliyuncs.com', 'endpoint' => 'cr.na-south-1.aliyuncs.com', 'vpc' => 'cr-vpc.na-south-1.aliyuncs.com'],
+ ['regionId' => 'me-east-1', 'regionName' => 'UAE (Dubai)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'cr.me-east-1.aliyuncs.com', 'endpoint' => 'cr.me-east-1.aliyuncs.com', 'vpc' => 'cr-vpc.me-east-1.aliyuncs.com'],
+ ['regionId' => 'me-central-1', 'regionName' => 'Saudi Arabia (Riyadh)', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'cr.me-central-1.aliyuncs.com', 'endpoint' => 'cr.me-central-1.aliyuncs.com', 'vpc' => 'cr-vpc.me-central-1.aliyuncs.com'],
+ ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'cr.ap-south-1.aliyuncs.com', 'endpoint' => 'cr.ap-south-1.aliyuncs.com', 'vpc' => 'cr-vpc.ap-south-1.aliyuncs.com'],
+ ['regionId' => 'cn-hangzhou-finance', 'regionName' => 'China East 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-hangzhou-finance.aliyuncs.com', 'endpoint' => 'cr.cn-hangzhou-finance.aliyuncs.com', 'vpc' => 'cr-vpc.cn-hangzhou-finance.aliyuncs.com'],
+ ['regionId' => 'cn-heyuan-acdr-1', 'regionName' => 'Heyuan ACDR Auto', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-heyuan-acdr-1.aliyuncs.com', 'endpoint' => 'cr.cn-heyuan-acdr-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-heyuan-acdr-1.aliyuncs.com'],
+ ['regionId' => 'cn-shenzhen-finance-1', 'regionName' => 'China South 1 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-shenzhen-finance-1.aliyuncs.com', 'endpoint' => 'cr.cn-shenzhen-finance-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-shenzhen-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-beijing-finance-1', 'regionName' => 'China North 2 Finance (Preview)', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-beijing-finance-1.aliyuncs.com', 'endpoint' => 'cr.cn-beijing-finance-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-beijing-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-shanghai-finance-1', 'regionName' => 'China East 2 Finance', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'cr.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-shanghai-finance-1.aliyuncs.com'],
+ ['regionId' => 'cn-wulanchabu-gic-1', 'regionName' => 'China (Ulanqab) GIC', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-wulanchabu-gic-1.aliyuncs.com', 'endpoint' => 'cr.cn-wulanchabu-gic-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-wulanchabu-gic-1.aliyuncs.com'],
+ ['regionId' => 'cn-north-2-gov-1', 'regionName' => 'Beijing Government Cloud', 'areaId' => 'industryCloud', 'areaName' => 'Industry Cloud', 'public' => 'cr.cn-north-2-gov-1.aliyuncs.com', 'endpoint' => 'cr.cn-north-2-gov-1.aliyuncs.com', 'vpc' => 'cr-vpc.cn-north-2-gov-1.aliyuncs.com'],
+ ],
+ 'errorCodes' => [
+ ['code' => 'ARTIFACT_NOT_EXIST', 'message' => 'Repo artifact is not exist.', 'http_code' => 200, 'description' => 'The queried instance\'s repository does not contain the artifact corresponding to the specified Tag.'],
+ ['code' => 'AuthenticationFailed', 'message' => 'Authentication failed.', 'http_code' => 403, 'description' => 'Authentication failed.'],
+ ['code' => 'AUTHENTICATION_FAILED', 'message' => 'The specified action is not allowed.', 'http_code' => 200, 'description' => 'The account you are using does not have permission for this operation.'],
+ ['code' => 'AUTHENTICATION_FAILED', 'message' => 'Authentication failed.', 'http_code' => 403, 'description' => 'Authentication failed.'],
+ ['code' => 'BUILD_RULE_CONFLICT', 'message' => 'Build rule conflict for this repo.', 'http_code' => 200, 'description' => 'Build rule conflict for this repo.'],
+ ['code' => 'BUILD_RULE_ILLEGAL', 'message' => 'Repo build rule is illegal.', 'http_code' => 200, 'description' => 'Repo build rule is illegal.'],
+ ['code' => 'CHART_NAMESPACE_ALREADY_EXIST', 'message' => 'Chart namespace already exist.', 'http_code' => 200, 'description' => 'Chart namespace already exist.'],
+ ['code' => 'ILLEGAL_ARGUMENT', 'message' => 'Illegal argument.', 'http_code' => 200, 'description' => 'There are errors or null values in the parameters passed to the API call.'],
+ ['code' => 'IMAGE_NOT_EXIST', 'message' => 'Image does not exist.', 'http_code' => 200, 'description' => 'The specified image does not exist'],
+ ['code' => 'INSTANCE_ACCESS_ACL_ENTRY_PROCESSING', 'message' => 'Instance access ACL entry is not allowed to be operated concurrently, try again later.', 'http_code' => 200, 'description' => 'Instance access ACL entry is not allowed to be operated concurrently, try again later.'],
+ ['code' => 'INSTANCE_ACCESS_VPC_LIMIT_EXCEED', 'message' => 'Instance VPC access endpoint count exceeds the limit.', 'http_code' => 200, 'description' => 'Instance VPC access endpoint count exceeds the limit.'],
+ ['code' => 'INSTANCE_DELETE_NOT_ALLOWED', 'message' => 'Instance is not allowed for deletion.', 'http_code' => 200, 'description' => 'Instance is not allowed for deletion.'],
+ ['code' => 'INSTANCE_NOT_EXIST', 'message' => 'Instance does not exist.', 'http_code' => 200, 'description' => 'The specified instance does not exist.'],
+ ['code' => 'INSTANCE_STATUS_NOT_SUPPORT', 'message' => 'Invalid operation for current instance status.', 'http_code' => 200, 'description' => 'Invalid operation for current instance status.'],
+ ['code' => 'InvalidEndpointType', 'message' => 'The specified parameter EndpointType value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter EndpointType is invalid.'],
+ ['code' => 'InvalidInstanceId', 'message' => 'The specified parameter InstanceId value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter InstanceId is invalid.'],
+ ['code' => 'InvalidInstanceSpecification', 'message' => 'The specified parameter InstanceSpecification value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter InvalidInstanceSpecification is invalid.'],
+ ['code' => 'InvalidNamespaceName', 'message' => 'The specified parameter NamespaceName value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter NamespaceName is invalid.'],
+ ['code' => 'InvalidPage', 'message' => 'The specified parameter Page value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter Page is invalid.'],
+ ['code' => 'InvalidPageSize', 'message' => 'The specified parameter PageSize value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter PageSize is invalid.'],
+ ['code' => 'InvalidPassword', 'message' => 'The specified parameter Password value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter Password is invalid.'],
+ ['code' => 'InvalidRepo', 'message' => 'The specified parameter Repo value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter Repo is invalid.'],
+ ['code' => 'InvalidRepoId', 'message' => 'The specified parameter RepoId value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter RepoId is invalid.'],
+ ['code' => 'InvalidRepoName', 'message' => 'The specified parameter RepoName value is not valid.', 'http_code' => 200, 'description' => 'The specified parameter RepoName value is not valid.'],
+ ['code' => 'InvalidRepoStatus', 'message' => 'The specified parameter RepoStatus value is not valid.', 'http_code' => 200, 'description' => 'Repo status parameter is illegal'],
+ ['code' => 'InvalidRepoType', 'message' => 'The specified parameter RepoType value is not valid.', 'http_code' => 200, 'description' => 'Illegal value for parameter RepoType'],
+ ['code' => 'InvalidResourceGroup', 'message' => 'The specified ResourceGroupId is invalid', 'http_code' => 400, 'description' => ''],
+ ['code' => 'InvalidResourceGroup', 'message' => 'The specified resource group ID is invalid.', 'http_code' => 400, 'description' => 'The resource group ID is invalid.'],
+ ['code' => 'InvalidSchemaVersion', 'message' => 'The specified parameter SchemaVersion value is not valid.', 'http_code' => 200, 'description' => 'Illegal parameter SchemaVersion'],
+ ['code' => 'InvalidScope', 'message' => 'The specified parameter Scope value is not valid.', 'http_code' => 200, 'description' => 'Illegal value for parameter Scope'],
+ ['code' => 'InvalidTag', 'message' => 'The specified parameter tag value is not valid.', 'http_code' => 200, 'description' => 'Image tag value is invalid'],
+ ['code' => 'MissingParameter.ResourceGroupId', 'message' => 'The ResourceGroupId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => ''],
+ ['code' => 'MissingParameter.ResourceId', 'message' => 'The ResourceId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => ''],
+ ['code' => 'MissingParameter.ResourceRegionId', 'message' => 'The ResourceRegionId parameters that are required for processing this request are missing', 'http_code' => 400, 'description' => ''],
+ ['code' => 'NAMESPACE_ALREADY_EXIST', 'message' => 'Namespace already exists.', 'http_code' => 200, 'description' => 'The namespace already exists.'],
+ ['code' => 'NAMESPACE_ALREADY_EXIST', 'message' => 'Namespace is already existing.', 'http_code' => 200, 'description' => 'The namespace already exists.'],
+ ['code' => 'NAMESPACE_NOT_EXIST', 'message' => 'Namespace does not exist.', 'http_code' => 200, 'description' => 'The specified namespace does not exist'],
+ ['code' => 'NoPermission.ChangeResourceGroup', 'message' => 'You are not authorized to change resourcegroup', 'http_code' => 400, 'description' => ''],
+ ['code' => 'NoPrivilege', 'message' => 'Access is denied for the user.', 'http_code' => 403, 'description' => 'The user is not authorized.'],
+ ['code' => 'REPO_NOT_EXIST', 'message' => 'Repo does not exist.', 'http_code' => 200, 'description' => 'Container image repository does not exist.'],
+ ['code' => 'ResourceNotFound', 'message' => 'The specified resource is not found', 'http_code' => 400, 'description' => ''],
+ ['code' => 'ResourceNotFound', 'message' => 'The specified resource is not found.', 'http_code' => 400, 'description' => 'Specified resource not found'],
+ ['code' => 'SLB_SERVICE_ERROR', 'message' => 'Bad request for this user.', 'http_code' => 400, 'description' => 'An exception occurred while calling the SLB service, the call failed'],
+ ['code' => 'SOURCE_ACCOUNT_INSUFFICIENT_REPOSITORY_SCOPE', 'message' => 'Source account has insufficient repository permission.', 'http_code' => 200, 'description' => 'The account lacks sufficient permissions to operate on the code repository'],
+ ['code' => 'SOURCE_ACCOUNT_NOT_AVAILABLE', 'message' => 'Source account is not available.', 'http_code' => 200, 'description' => 'Source account is not available.'],
+ ['code' => 'SOURCE_REPO_NOT_EXIST', 'message' => 'Source repo not exist.', 'http_code' => 200, 'description' => 'The code source of the repository does not exist.'],
+ ['code' => 'SOURCE_SITE_INACCESSIBLE', 'message' => 'Source site is inaccessible.', 'http_code' => 200, 'description' => 'The code source repository is inaccessible.'],
+ ['code' => 'SOURCE_SITE_NOT_AVAILABLE', 'message' => 'Source site is unavailable.', 'http_code' => 200, 'description' => 'The code source repository site is unavailable.'],
+ ['code' => 'SSL_SERVICE_ERROR', 'message' => 'SSL service is unavailable.', 'http_code' => 200, 'description' => 'Exception accessing certificate management service.'],
+ ['code' => 'STS_NOT_SUPPORT', 'message' => 'STS is not supported.', 'http_code' => 200, 'description' => 'API does not support calling through STS token.'],
+ ['code' => 'STS_SERVICE_UNAUTHORIZED', 'message' => 'Service role is unauthorized.', 'http_code' => 200, 'description' => 'The RAM role is lack of required permissions.'],
+ ['code' => 'SYNC_RULE_CONCURRENT_REFUSE', 'message' => 'Sync rule is not allowed to be operated concurrently, try again later.', 'http_code' => 200, 'description' => 'The current instance has concurrent modifications to the sync rules. Please modify them later.'],
+ ['code' => 'SYNC_RULE_NOT_ALLOW', 'message' => 'The instance has sync conflict or already exist.', 'http_code' => 200, 'description' => 'The newly added sync rule does not comply with the specifications or the synchronization range of the existing sync rule is duplicated.'],
+ ['code' => 'SystemError', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => 'An unknown error occurred.'],
+ ['code' => 'SystemError', 'message' => 'A system error occurred while processing your request', 'http_code' => 400, 'description' => ''],
+ ['code' => 'SystemError', 'message' => 'A system error occurred while processing your request.', 'http_code' => 400, 'description' => 'A system exception caused the request to fail.'],
+ ['code' => 'VPC_SERVICE_ERROR', 'message' => 'VPC service is unavailable.', 'http_code' => 200, 'description' => 'An exception occurred when accessing the virtual private cloud(VPC) service.'],
+ ],
+ 'changeSet' => [],
+ 'ram' => [
+ 'productCode' => 'CR',
+ 'productName' => 'Container Registry',
+ 'ramCodes' => ['cr'],
+ 'ramLevel' => 'RESOURCE',
+ 'ramConditions' => [],
+ 'ramActions' => [
+ [
+ 'apiName' => 'CreateArtifactSubscriptionRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateRepoTrigger',
+ 'description' => '',
'operationType' => 'update',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
+ [
+ 'apiName' => 'CreateChain',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
- [
- 'name' => 'RuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the event notification rule.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crecr-n6pbhgjxt*****',
+ ],
+ [
+ 'apiName' => 'ListArtifactLifecycleRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'RuleName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The name of the event notification rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'chain-demo',
+ ],
+ [
+ 'apiName' => 'DeleteChartNamespace',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
],
],
- [
- 'name' => 'EventChannel',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The event notification channel.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'EVENT_BRIDGE',
+ ],
+ [
+ 'apiName' => 'UpdateArtifactLifecycleRule',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'CreateArtifactSubscriptionTask',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'DeleteInstanceEndpointAclPolicy',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteInstanceEndpointAclPolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'GetChartNamespace',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#NamespaceName}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'ListRepoBuildRecordLog',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositoryBuildLog',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
- [
- 'name' => 'RepoTagFilterPattern',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The regular expression for image tags.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => '.*',
+ ],
+ [
+ 'apiName' => 'DeleteNamespace',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}'],
],
],
- [
- '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"
- .' }',
+ ],
+ [
+ 'apiName' => 'ListChartRepository',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
],
],
],
- '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*****',
- ],
- ],
+ [
+ 'apiName' => 'GetChartRepository',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'CreateArtifactBuildRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'CreateBuildRecordByRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:BuildRepositoryByRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'UpdateInstanceEndpointStatus',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateInstanceEndpointStatus',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'UpdateNamespace',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateRepoBuildRule',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#RepositoryId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CancelRepoBuildRecord',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:CancelBuildRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetStorageDomainRoutingRule',
+ 'description' => '',
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'ramAction' => [
+ 'action' => 'cr:GetStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ],
+ ],
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
+ [
+ 'apiName' => 'UpdateArtifactSubscriptionRule',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'CreateRepoSyncTaskByRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'RuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the event notification rule.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crecr-n6pbhgjxtla***',
+ ],
+ [
+ 'apiName' => 'DeleteChartRelease',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteChartRelease',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'ListChartRelease',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListChartRelease',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}/{#repositoryname}'],
],
],
- [
- 'name' => 'RepoName',
- 'in' => 'query',
- 'allowEmptyValue' => true,
- 'schema' => [
- 'description' => 'The name of the repository.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'test',
+ ],
+ [
+ 'apiName' => 'DeleteChain',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
],
],
- [
- 'name' => 'PageNo',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of the page to return.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ ],
+ [
+ 'apiName' => 'CreateChartNamespace',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
],
],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries to return on each page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
+ ],
+ [
+ 'apiName' => 'DeleteRepoTrigger',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
],
- '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' => '[]',
- ],
- ],
+ [
+ 'apiName' => 'GetRepoSyncTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'ListRepository',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/*'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'ListArtifactSubscriptionTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'TagResources',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:TagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateRepository',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListChain',
+ 'description' => '',
'operationType' => 'get',
- 'autoTest' => false,
- 'notSupportAutoTestReason' => '返回 http code不符合测试要求',
+ 'ramAction' => [
+ 'action' => 'cr:ListChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
+ ],
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The ID of the instance.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-kmsiwlxxdcva****',
+ [
+ 'apiName' => 'CreateRepoSourceCodeRepo',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
],
- '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\'}]',
- ],
- ],
+ [
+ 'apiName' => 'ListRepoBuildRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'CreateRepoBuildRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'GetInstanceUsage',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceUsage',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'GetRepoTagScanStatus',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
],
],
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateScanRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UntagResources',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:UntagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListEventCenterRuleName',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListEventCenterRuleName',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateStorageDomainRoutingRule',
+ 'description' => '',
'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ],
+ ],
],
- 'parameters' => [
- [
- 'name' => 'ResourceId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '资源Id',
- 'description' => 'The ID of the resource.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-8qong6ve5p3mhlgt',
+ [
+ 'apiName' => 'GetRepoBuildRecordStatus',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetBuildRepositoryStatus',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
- [
- 'name' => 'ResourceRegionId',
- 'in' => 'query',
- 'schema' => [
- 'title' => '地域Id',
- 'description' => 'The ID of the region.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cn-shenzhen-finance-1',
+ ],
+ [
+ 'apiName' => 'CreateRepoSyncTask',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'DeleteEventCenterRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteEventCenterRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- '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',
- ],
- ],
+ [
+ 'apiName' => 'ListChainInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListChainInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
],
- 'errorCodes' => [
- 400 => [
- [
- 'errorCode' => 'NoPermission.ChangeResourceGroup',
- 'errorMessage' => 'You are not authorized to change resourcegroup',
+ [
+ 'apiName' => 'UpdateEventCenterRule',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateEventCenterRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
- [
- 'errorCode' => 'MissingParameter.ResourceRegionId',
- 'errorMessage' => 'The ResourceRegionId parameters that are required for processing this request are missing',
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteArtifactSubscriptionRule',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
- [
- 'errorCode' => 'MissingParameter.ResourceId',
- 'errorMessage' => 'The ResourceId parameters that are required for processing this request are missing',
+ ],
+ ],
+ [
+ 'apiName' => 'ListInstanceEndpoint',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstanceEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
- [
- 'errorCode' => 'MissingParameter.ResourceGroupId',
- 'errorMessage' => 'The ResourceGroupId parameters that are required for processing this request are missing',
+ ],
+ ],
+ [
+ 'apiName' => 'GetArtifactSubscriptionRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
- [
- 'errorCode' => 'InvalidResourceGroup',
- 'errorMessage' => 'The specified ResourceGroupId is invalid',
+ ],
+ ],
+ [
+ 'apiName' => 'ListArtifactSubscriptionRule',
+ 'description' => '',
+ 'operationType' => 'list',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactSubscriptionRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
- [
- 'errorCode' => 'SystemError',
- 'errorMessage' => 'A system error occurred while processing your request',
+ ],
+ ],
+ [
+ 'apiName' => 'DeleteInstanceVpcEndpointLinkedVpc',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteInstanceVpcEndpointLinkedVpc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
],
- [
- 'errorCode' => 'ResourceNotFound',
- 'errorMessage' => ' The specified resource is not found',
+ ],
+ ],
+ [
+ 'apiName' => 'GetArtifactBuildTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactBuildTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'GetArtifactLifecycleRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'GetChain',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteRepoSyncRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateBuildRecordByRecord',
+ 'description' => '',
'operationType' => 'create',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '119395',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
- 'FEATUREacrKJDAEQ',
+ 'ramAction' => [
+ 'action' => 'cr:BuildRepositoryByRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-dqwc**********',
+ [
+ 'apiName' => 'DeleteArtifactLifecycleRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'RuleName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The rule name'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'default',
+ ],
+ [
+ 'apiName' => 'ListEventCenterRecord',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListEventCenterRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- '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',
- ],
+ ],
+ [
+ 'apiName' => 'CreateRepoTrigger',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'conditional', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
],
],
- [
- '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',
- ],
+ ],
+ [
+ 'apiName' => 'ListRepoSyncTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositorySync',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
- [
- '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,
+ ],
+ [
+ 'apiName' => 'CreateInstanceVpcEndpointLinkedVpc',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateInstanceVpcEndpointLinkedVpc',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}'],
],
],
- [
- '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,
+ ],
+ [
+ 'apiName' => 'ChangeResourceGroup',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:ChangeResourceGroup',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- 'name' => 'RepoTagFilterPattern',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The tag that triggers the scan matches the regular expression'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => '.*',
+ ],
+ [
+ 'apiName' => 'DeleteChartRepository',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
- [
- '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',
- ],
+ ],
+ [
+ 'apiName' => 'ListChartNamespace',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/*'],
],
],
],
- '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',
- ],
- ],
+ [
+ 'apiName' => 'UpdateChartNamespace',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'GetArtifactBuildRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'CreateRepoTagScanTask',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:PutScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'GetRepoBuildRecord',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepositoryBuildRecord',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteRepository',
+ 'description' => '',
'operationType' => 'delete',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
- 'FEATUREacrKJDAEQ',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-kmsiwlxxdcva****',
+ [
+ 'apiName' => 'GetScanRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
],
],
- [
- 'name' => 'ScanRuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'crscnr-aemytkwad2h7fyhb',
+ ],
+ [
+ 'apiName' => 'GetRepoTagScanSummary',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScanCount',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
],
],
],
- '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',
- ],
- ],
+ [
+ 'apiName' => 'UpdateChain',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateChain',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'ListArtifactBuildTaskLog',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListArtifactBuildTaskLog',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'GetRepository',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'DeleteRepoBuildRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepositoryBuildRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateStorageDomainRoutingRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'GetNamespace',
+ 'description' => '',
'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '119398',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
- 'FEATUREacrKJDAEQ',
+ 'ramAction' => [
+ 'action' => 'cr:GetNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => false,
- 'example' => 'cri-upoulewerx*****',
+ [
+ 'apiName' => 'UpdateRepoSourceCodeRepo',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
],
],
- [
- 'name' => 'PageNo',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The page number.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '1',
+ ],
+ [
+ 'apiName' => 'UpdateChartRepository',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}/{#repositoryname}'],
],
],
- [
- 'name' => 'PageSize',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The number of entries per page.'."\n",
- 'type' => 'integer',
- 'format' => 'int32',
- 'required' => false,
- 'example' => '30',
+ ],
+ [
+ 'apiName' => 'CreateNamespace',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
- [
- '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',
+ ],
+ [
+ 'apiName' => 'ListInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- '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',
- ],
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'UpdateRepository',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
],
- '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',
+ [
+ 'apiName' => 'GetInstanceEndpoint',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'http',
- 'https',
+ [
+ 'apiName' => 'CancelRepoSyncTask',
+ 'description' => '',
+ 'operationType' => 'update',
+ 'ramAction' => [
+ 'action' => 'cr:CancelRepoSyncTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'CreateRepoSyncRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ],
],
],
- 'operationType' => 'write',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'CreateChartRepository',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRepoTagScanResult',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetScan',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRepoSyncRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListSyncRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListRepoTrigger',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListWebHook',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListScanBaselineByTask',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanBaseline',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'UpdateScanRule',
+ 'description' => '',
'operationType' => 'update',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeCode' => '119400',
- 'abilityTreeNodes' => [
- 'FEATUREacr7W016P',
+ 'ramAction' => [
+ 'action' => 'cr:UpdateScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ],
],
- 'autoTest' => true,
- 'tenantRelevance' => 'tenant',
],
- 'parameters' => [
- [
- 'name' => 'InstanceId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The instance ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'cri-4abntrj42twd****',
+ [
+ 'apiName' => 'DeleteStorageDomainRoutingRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteStorageDomainRoutingRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
],
],
- [
- 'name' => 'ScanRuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The rule ID.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crscnr-3qmkeiuggfpjkfrq',
+ ],
+ [
+ 'apiName' => 'GetAuthorizationToken',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetAuthorizationToken',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'RuleName',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The rule name.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'scan-test',
+ ],
+ [
+ 'apiName' => 'GetRepoTag',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
],
],
- [
- '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',
- ],
+ ],
+ [
+ 'apiName' => 'GetRepoSourceCodeRepo',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetSourceRepository',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'RepoSourceCodeRepo', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
],
],
- [
- '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',
- ],
+ ],
+ [
+ 'apiName' => 'GetInstance',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
- [
- '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,
+ ],
+ [
+ 'apiName' => 'ListRepoTag',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
],
],
- [
- '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,
+ ],
+ [
+ 'apiName' => 'ListScanRule',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/*'],
],
],
- [
- 'name' => 'RepoTagFilterPattern',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The tag filtering rules.'."\n",
- 'type' => 'string',
- 'required' => true,
- 'example' => 'prod-.*',
+ ],
+ [
+ 'apiName' => 'CreateArtifactLifecycleRule',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateArtifactLifecycleRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- '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',
- ],
- ],
+ [
+ 'apiName' => 'CancelArtifactBuildTask',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:CancelArtifactBuildTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
],
],
],
- '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',
+ [
+ 'apiName' => 'GetInstanceVpcEndpoint',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetInstanceVpcEndpoint',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
+ ],
],
- 'schemes' => [
- 'https',
+ [
+ 'apiName' => 'ListNamespace',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListNamespace',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
],
- 'security' => [
- [
- 'AK' => [],
+ [
+ 'apiName' => 'GetArtifactSubscriptionTask',
+ 'description' => '',
+ 'operationType' => '',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionTask',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
],
- 'operationType' => 'read',
- 'deprecated' => false,
- 'systemTags' => [
+ [
+ 'apiName' => 'DeleteRepoTag',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteRepositoryTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListScanMaliciousFileByTask',
+ 'description' => '',
'operationType' => 'get',
- 'riskType' => 'none',
- 'chargeType' => 'free',
- 'abilityTreeNodes' => [
- 'FEATUREacrLBBNHS',
+ 'ramAction' => [
+ 'action' => 'cr:ListScanMaliciousFile',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ],
],
- '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****',
+ [
+ 'apiName' => 'GetInstanceCount',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListInstance',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
],
],
- [
- 'name' => 'ScanRuleId',
- 'in' => 'query',
- 'schema' => [
- 'description' => 'The scan rule ID.',
- 'type' => 'string',
- 'required' => true,
- 'example' => 'crscnr-2sdveqjhpzdcafyq',
- 'maxLength' => 100,
- 'minLength' => 1,
+ ],
+ [
+ 'apiName' => 'CreateInstanceEndpointAclPolicy',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateInstanceEndpointAclPolicy',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceid}'],
],
],
],
- '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',
- ],
- ],
- ],
- ],
+ [
+ 'apiName' => 'GetArtifactSubscriptionTaskResult',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:GetArtifactSubscriptionTaskResult',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
],
],
],
- 'staticInfo' => [
- 'returnType' => 'synchronous',
+ [
+ 'apiName' => 'DeleteScanRule',
+ 'description' => '',
+ 'operationType' => 'delete',
+ 'ramAction' => [
+ 'action' => 'cr:DeleteScanRule',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ],
+ ],
],
- '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',
+ [
+ 'apiName' => 'ListRepoBuildRecord',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListRepositoryBuild',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'ListTagResources',
+ 'description' => '',
+ 'operationType' => 'get',
+ 'ramAction' => [
+ 'action' => 'cr:ListTagResources',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'All Resource', 'arn' => '*'],
+ ],
+ ],
+ ],
+ [
+ 'apiName' => 'CreateRepoTag',
+ 'description' => '',
+ 'operationType' => 'create',
+ 'ramAction' => [
+ 'action' => 'cr:CreateRepoTag',
+ 'authLevel' => 'resource',
+ 'actionConditions' => [],
+ 'resources' => [
+ ['validationType' => 'always', 'product' => 'CR', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ],
+ ],
+ ],
+ ],
+ 'resourceTypes' => [
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}'],
+ ['validationType' => 'conditional', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}/{#repositoryname}'],
+ ['validationType' => 'always', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}'],
+ ['validationType' => 'always', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
+ ['validationType' => 'always', 'resourceType' => 'ChartNamespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#NamespaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/{#Namespacename}/{#Repositoryname}'],
+ ['validationType' => 'always', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#instanceid}/{#namespacename}'],
+ ['validationType' => 'always', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#RepositoryId}'],
+ ['validationType' => 'always', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/{#RuleId}'],
+ ['validationType' => 'always', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}'],
+ ['validationType' => 'always', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#Instanceid}/{#Namespacename}/*'],
+ ['validationType' => 'always', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/*'],
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}'],
+ ['validationType' => 'always', 'resourceType' => 'Repository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ['validationType' => 'always', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#Instanceid}/*'],
+ ['validationType' => 'always', 'resourceType' => 'ChartRepository', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#instanceid}/{#namespacename}'],
+ ['validationType' => 'always', 'resourceType' => 'ScanRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#instanceId}/scanrule/{#scanRuleId}'],
+ ['validationType' => 'always', 'resourceType' => 'StorageDomainRoutingRule', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}/storagedomainroutingrule/*'],
+ ['validationType' => 'always', 'resourceType' => 'Namespace', 'arn' => 'acs:cr:{#regionId}:{#accountId}:chart/{#InstanceId}/{#NamespaceName}'],
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/*'],
+ ['validationType' => 'always', 'resourceType' => 'RepoSourceCodeRepo', 'arn' => 'acs:cr:{#regionId}:{#accountId}:repository/{#InstanceId}/{#NamespaceName}/{#RepositoryName}'],
+ ['validationType' => 'always', 'resourceType' => 'Instance', 'arn' => 'acs:cr:{#regionId}:{#accountId}:instance/*'],
],
],
];