diff options
Diffstat (limited to 'data/bdrc')
| -rw-r--r-- | data/bdrc/2023-08-08/api-docs.php | 1333 |
1 files changed, 463 insertions, 870 deletions
diff --git a/data/bdrc/2023-08-08/api-docs.php b/data/bdrc/2023-08-08/api-docs.php index 34f1136..083c0a2 100644 --- a/data/bdrc/2023-08-08/api-docs.php +++ b/data/bdrc/2023-08-08/api-docs.php @@ -1,711 +1,533 @@ <?php return [ 'version' => '1.0', - 'info' => [ - 'style' => 'ROA', - 'product' => 'BDRC', - 'version' => '2023-08-08', - ], + 'info' => ['style' => 'ROA', 'product' => 'BDRC', 'version' => '2023-08-08'], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'DeleteResourceCategory' => [ - 'path' => '/api/v1/resource-categories/delete', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CheckRules' => [ + 'path' => '/api/v1/rules/check', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceCategoryId', + 'name' => 'ResourceArn', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'RuleId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'UpdateResourceCategory' => [ - 'path' => '/api/v1/resource-categories/update', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'CloseBdrcService' => [ + 'path' => '/api/v1/service/close', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', + 'deprecated' => false, + 'parameters' => [], + ], + 'CreateProtectionPolicy' => [ + 'path' => '/api/v1/protection-policies', + 'methods' => ['post'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceCategoryId', + 'name' => 'ClientToken', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ResourceCategoryName', + 'name' => 'ProtectionPolicyRegionId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'ProtectionPolicyName', 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], + ], + [ + 'name' => 'BoundResourceCategoryIds', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'ResourceMatcher', + 'name' => 'SubProtectionPolicies', 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => false, + 'type' => 'array', + 'required' => true, + 'items' => [ + 'type' => 'object', + 'required' => true, + 'properties' => [ + 'SubProtectionPolicyType' => ['type' => 'string', 'required' => true], + 'Config' => ['type' => 'string', 'required' => false], + ], + ], ], ], ], ], - 'ListResourceCategories' => [ - 'path' => '/api/v1/resource-categories/list', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'CreateResourceCategory' => [ + 'path' => '/api/v1/resource-categories/create', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'MaxResults', - 'in' => 'query', + 'name' => 'ResourceType', + 'in' => 'formData', 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + 'type' => 'string', 'required' => false, - 'minimum' => '1', - 'maximum' => '100', + 'enum' => ['ACS::ECS::Instance', 'ACS::OSS::Bucket', 'ACS::NAS::FileSystem', 'ACS::OTS::Instance'], ], ], [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceCategoryName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ResourceCategoryId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceMatcher', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'GetResourceCategory' => [ - 'path' => '/api/v1/resource-categories/get', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DeleteProtectionPolicy' => [ + 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', + 'methods' => ['delete'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceCategoryId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ProtectionPolicyId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'CreateResourceCategory' => [ - 'path' => '/api/v1/resource-categories/create', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DeleteResourceCategory' => [ + 'path' => '/api/v1/resource-categories/delete', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'ACS::ECS::Instance', - 'ACS::OSS::Bucket', - 'ACS::NAS::FileSystem', - 'ACS::OTS::Instance', - ], - ], - ], - [ - 'name' => 'ResourceCategoryName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'ResourceMatcher', + 'name' => 'ResourceCategoryId', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'ListMessages' => [ - 'path' => '/api/v1/messages', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DescribeCheckDetails' => [ + 'path' => '/api/v1/check-details', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'NextToken', + 'name' => 'ResourceArn', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'MaxResults', + 'name' => 'RuleId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MessageTimeLaterThan', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MessageTimeEarlierThan', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int64', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], + ], + ], + 'DescribeProductDataRedundancyTypeStat' => [ + 'path' => '/api/v1/products/data-redundancy-type-stat', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'MessageType', + 'AK' => [], + ], + ], + 'consumes' => ['multipart/form-data'], + 'deprecated' => false, + 'parameters' => [ + [ + 'name' => 'ProductType', 'in' => 'query', 'schema' => [ 'type' => 'string', - 'required' => false, + 'required' => true, + 'enum' => [], ], ], [ - 'name' => 'MessageLevel', + 'name' => 'ResourceCategoryId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceOwnerIds', 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => false, + 'type' => 'array', + 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], - 'GetMessage' => [ - 'path' => '/api/v1/messages/{MessageId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DescribeProducts' => [ + 'path' => '/api/v1/products', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'MessageId', - 'in' => 'path', + 'name' => 'ResourceCategoryId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceRegionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ProductType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceOwnerIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], ], - 'ListProtectionPolicyApplications' => [ - 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}/list-applications', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DescribeResources' => [ + 'path' => '/api/v1/resources', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ProtectionPolicyId', - 'in' => 'path', + 'name' => 'ResourceType', + 'in' => 'query', 'schema' => [ 'type' => 'string', - 'required' => true, + 'required' => false, + 'enum' => ['ACS::ECS::Instance', 'ACS::OSS::Bucket', 'ACS::NAS::FileSystem', 'ACS::OTS::Instance'], ], ], [ - 'name' => 'SubProtectionPolicyType', + 'name' => 'ResourceId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'TaskId', + 'name' => 'FailedRuleTemplate', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ - 'name' => 'ResourceType', + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'SortOrder', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['ASC', 'DESC'], ], ], [ - 'name' => 'ApplyStatus', + 'name' => 'StorageClass', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'SKIPPED', - 'SUCCESS', - 'FAILED', - ], + 'enum' => ['STANDARD', 'ARCHIVE', 'IA', 'COLD_ARCHIVE'], ], ], - ], - ], - 'UpdateProtectionPolicy' => [ - 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', - 'methods' => [ - 'patch', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], - ], - ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], - 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'ClientToken', - 'in' => 'formData', + 'name' => 'DataRedundancyType', + 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['LRS', 'ZRS'], ], ], [ - 'name' => 'ProtectionPolicyId', - 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'name' => 'ResourceCategoryId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ProtectionPolicyName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceRegionId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'BoundResourceCategoryIds', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'name' => 'ResourceArn', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'SubProtectionPolicies', - 'in' => 'formData', + 'name' => 'ResourceOwnerIds', + 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => false, - 'items' => [ - 'type' => 'object', - 'required' => false, - 'properties' => [ - 'SubProtectionPolicyType' => [ - 'type' => 'string', - 'required' => false, - ], - 'Config' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], ], - 'ListProtectionPolicies' => [ - 'path' => '/api/v1/protection-policies', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DescribeRules' => [ + 'path' => '/api/v1/rules', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ProtectionPolicyRegionId', + 'name' => 'ResourceType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['ACS::ECS::Instance', 'ACS::OSS::Bucket', 'ACS::NAS::FileSystem', 'ACS::OTS::Instance'], ], ], [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ - 'name' => 'NextToken', + 'name' => 'ResourceCategoryId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ProtectionPolicyId', + 'name' => 'ResourceRegionId', 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'ResourceOwnerIds', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => false, + 'type' => 'array', + 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], - 'GetProtectionPolicy' => [ - 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], + 'DescribeTask' => [ + 'path' => '/api/v1/tasks/{TaskId}', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ProtectionPolicyId', + 'name' => 'TaskId', 'in' => 'path', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'DeleteProtectionPolicy' => [ - 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', - 'methods' => [ - 'delete', - ], - 'schemes' => [ - 'https', - ], + 'DescribeTasks' => [ + 'path' => '/api/v1/tasks', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ProtectionPolicyId', - 'in' => 'path', + 'name' => 'TaskStatus', + 'in' => 'query', 'schema' => [ 'type' => 'string', - 'required' => true, + 'required' => false, + 'enum' => ['CREATED', 'RUNNING', 'COMPLETE', 'FAILED'], ], ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], + ], + [ + 'name' => 'TaskType', + 'in' => 'query', + 'schema' => ['type' => 'string'], + ], ], ], - 'CreateProtectionPolicy' => [ - 'path' => '/api/v1/protection-policies', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'DescribeTopRiskyResources' => [ + 'path' => '/api/v1/resources/top-risky', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'consumes' => [ - 'multipart/form-data', - ], - 'produces' => [ - 'application/json', - ], + 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ClientToken', - 'in' => 'formData', + 'name' => 'ResourceType', + 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, + 'enum' => ['ACS::ECS::Instance', 'ACS::OSS::Bucket', 'ACS::NAS::FileSystem', 'ACS::OTS::Instance'], ], ], [ - 'name' => 'ProtectionPolicyRegionId', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'ProtectionPolicyName', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'BoundResourceCategoryIds', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'type' => 'array', - 'required' => false, - 'items' => [ - 'type' => 'string', - 'required' => false, - ], - ], + 'name' => 'ResourceCategoryId', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'SubProtectionPolicies', - 'in' => 'formData', + 'name' => 'ResourceOwnerIds', + 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', - 'required' => true, - 'items' => [ - 'type' => 'object', - 'required' => true, - 'properties' => [ - 'SubProtectionPolicyType' => [ - 'type' => 'string', - 'required' => true, - ], - 'Config' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], - 'UpdateResources' => [ - 'path' => '/api/v1/resources/update', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DisableCheckProduct' => [ + 'path' => '/api/v1/products/disable-check', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -714,25 +536,20 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceType', + 'name' => 'ProductType', 'in' => 'formData', 'schema' => [ 'type' => 'string', - 'required' => false, - 'enum' => [], + 'required' => true, + 'enum' => ['ecs', 'oss', 'nas', 'ots'], ], ], ], ], - 'EnableCheckResource' => [ - 'path' => '/api/v1/resources/enable-check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DisableCheckResource' => [ + 'path' => '/api/v1/resources/disable-check', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -743,22 +560,14 @@ [ 'name' => 'ResourceArn', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'EnableCheckProduct' => [ 'path' => '/api/v1/products/enable-check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -772,25 +581,15 @@ 'schema' => [ 'type' => 'string', 'required' => true, - 'enum' => [ - 'ecs', - 'oss', - 'nas', - 'ots', - ], + 'enum' => ['ecs', 'oss', 'nas', 'ots'], ], ], ], ], - 'DisableCheckResource' => [ - 'path' => '/api/v1/resources/disable-check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'EnableCheckResource' => [ + 'path' => '/api/v1/resources/enable-check', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -801,496 +600,349 @@ [ 'name' => 'ResourceArn', 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'DisableCheckProduct' => [ - 'path' => '/api/v1/products/disable-check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'GetBdrcService' => [ + 'path' => '/api/v1/service', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], ], + 'deprecated' => false, + 'parameters' => [], + ], + 'GetMessage' => [ + 'path' => '/api/v1/messages/{MessageId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ProductType', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - 'enum' => [ - 'ecs', - 'oss', - 'nas', - 'ots', - ], - ], + 'name' => 'MessageId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'CheckRules' => [ - 'path' => '/api/v1/rules/check', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetProtectionPolicy' => [ + 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceArn', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], - ], - [ - 'name' => 'RuleId', - 'in' => 'formData', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ProtectionPolicyId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], ], ], - 'DescribeRules' => [ - 'path' => '/api/v1/rules', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetResourceCategory' => [ + 'path' => '/api/v1/resource-categories/get', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceType', + 'name' => 'ResourceCategoryId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'ACS::ECS::Instance', - 'ACS::OSS::Bucket', - 'ACS::NAS::FileSystem', - 'ACS::OTS::Instance', - ], - ], + 'schema' => ['type' => 'string', 'required' => true], ], + ], + ], + 'ListMessages' => [ + 'path' => '/api/v1/messages', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'ResourceCategoryId', + 'name' => 'MessageTimeLaterThan', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ - 'name' => 'ResourceRegionId', + 'name' => 'MessageTimeEarlierThan', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], + ], + [ + 'name' => 'MessageType', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], + ], + [ + 'name' => 'MessageLevel', + 'in' => 'query', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DescribeCheckDetails' => [ - 'path' => '/api/v1/check-details', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProtectionPolicies' => [ + 'path' => '/api/v1/protection-policies', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceArn', + 'name' => 'ProtectionPolicyRegionId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => true, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'RuleId', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MaxResults', + 'name' => 'ProtectionPolicyId', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DescribeResources' => [ - 'path' => '/api/v1/resources', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProtectionPolicyApplications' => [ + 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}/list-applications', + 'methods' => ['get'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'ACS::ECS::Instance', - 'ACS::OSS::Bucket', - 'ACS::NAS::FileSystem', - 'ACS::OTS::Instance', - ], - ], + 'name' => 'ProtectionPolicyId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'ResourceId', + 'name' => 'SubProtectionPolicyType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'FailedRuleTemplate', + 'name' => 'TaskId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ - 'name' => 'SortOrder', + 'name' => 'ResourceType', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'ASC', - 'DESC', - ], - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'StorageClass', + 'name' => 'ApplyStatus', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, - 'enum' => [ - 'STANDARD', - 'ARCHIVE', - 'IA', - 'COLD_ARCHIVE', - ], + 'enum' => ['SKIPPED', 'SUCCESS', 'FAILED'], ], ], + ], + ], + 'ListResourceCategories' => [ + 'path' => '/api/v1/resource-categories/list', + 'methods' => ['get'], + 'schemes' => ['https'], + 'security' => [ [ - 'name' => 'DataRedundancyType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'LRS', - 'ZRS', - ], - ], + 'AK' => [], ], + ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], + 'deprecated' => false, + 'parameters' => [ [ - 'name' => 'ResourceCategoryId', + 'name' => 'MaxResults', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ - 'name' => 'ResourceRegionId', + 'name' => 'NextToken', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ResourceArn', + 'name' => 'ResourceCategoryId', 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DescribeProducts' => [ - 'path' => '/api/v1/products', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'OpenBdrcService' => [ + 'path' => '/api/v1/service/open', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, - 'parameters' => [ - [ - 'name' => 'ResourceCategoryId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], - ], - ], + 'parameters' => [], ], - 'DescribeTopRiskyResources' => [ - 'path' => '/api/v1/resources/top-risky', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateProtectionPolicy' => [ + 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', + 'methods' => ['patch'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'ACS::ECS::Instance', - 'ACS::OSS::Bucket', - 'ACS::NAS::FileSystem', - 'ACS::OTS::Instance', - ], - ], + 'name' => 'ClientToken', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'ResourceCategoryId', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ProtectionPolicyId', + 'in' => 'path', + 'schema' => ['type' => 'string', 'required' => true], ], - ], - ], - 'DescribeProductDataRedundancyTypeStat' => [ - 'path' => '/api/v1/products/data-redundancy-type-stat', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'ProtectionPolicyName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], - ], - 'deprecated' => false, - 'parameters' => [ [ - 'name' => 'ProductType', - 'in' => 'query', + 'name' => 'BoundResourceCategoryIds', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', - 'required' => true, - 'enum' => [], + 'type' => 'array', + 'required' => false, + 'items' => ['type' => 'string', 'required' => false], ], ], [ - 'name' => 'ResourceCategoryId', - 'in' => 'query', + 'name' => 'SubProtectionPolicies', + 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'type' => 'string', + 'type' => 'array', 'required' => false, + 'items' => [ + 'type' => 'object', + 'required' => false, + 'properties' => [ + 'SubProtectionPolicyType' => ['type' => 'string', 'required' => false], + 'Config' => ['type' => 'string', 'required' => false], + ], + ], ], ], ], ], - 'DescribeTasks' => [ - 'path' => '/api/v1/tasks', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateResourceCategory' => [ + 'path' => '/api/v1/resource-categories/update', + 'methods' => ['post'], + 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], + 'consumes' => ['multipart/form-data'], + 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TaskStatus', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - 'enum' => [ - 'CREATED', - 'RUNNING', - 'COMPLETE', - 'FAILED', - ], - ], + 'name' => 'ResourceCategoryId', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => true], ], [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', - 'required' => false, - ], + 'name' => 'ResourceCategoryName', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], [ - 'name' => 'MaxResults', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'minimum' => '1', - 'maximum' => '100', - ], + 'name' => 'ResourceMatcher', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'required' => false], ], ], ], - 'DescribeTask' => [ - 'path' => '/api/v1/tasks/{TaskId}', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateResources' => [ + 'path' => '/api/v1/resources/update', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -1299,79 +951,20 @@ 'deprecated' => false, 'parameters' => [ [ - 'name' => 'TaskId', - 'in' => 'path', + 'name' => 'ResourceType', + 'in' => 'formData', 'schema' => [ 'type' => 'string', - 'required' => true, + 'required' => false, + 'enum' => [], ], ], ], ], - 'CloseBdrcService' => [ - 'path' => '/api/v1/service/close', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [], - ], - 'GetBdrcService' => [ - 'path' => '/api/v1/service', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [], - ], - 'OpenBdrcService' => [ - 'path' => '/api/v1/service/open', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'deprecated' => false, - 'parameters' => [], - ], ], 'endpoints' => [ - [ - 'regionId' => 'ap-southeast-1', - 'endpoint' => 'bdrc.ap-southeast-1.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai', - 'endpoint' => 'bdrc.cn-shanghai.aliyuncs.com', - ], - [ - 'regionId' => 'cn-shanghai-finance-1', - 'endpoint' => 'bdrc.cn-shanghai-finance-1.aliyuncs.com', - ], + ['regionId' => 'cn-shanghai', 'regionName' => '华东2(上海)', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'bdrc.cn-shanghai.aliyuncs.com', 'endpoint' => 'bdrc.cn-shanghai.aliyuncs.com', 'vpc' => 'bdrc-vpc.cn-shanghai.aliyuncs.com'], + ['regionId' => 'ap-southeast-1', 'regionName' => '新加坡', 'areaId' => 'asiaPacific', 'areaName' => '亚太', 'public' => 'bdrc.ap-southeast-1.aliyuncs.com', 'endpoint' => 'bdrc.ap-southeast-1.aliyuncs.com', 'vpc' => 'bdrc-vpc.ap-southeast-1.aliyuncs.com'], + ['regionId' => 'cn-shanghai-finance-1', 'regionName' => '华东2 金融云', 'areaId' => 'industryCloud', 'areaName' => '行业云', 'public' => 'bdrc.cn-shanghai-finance-1.aliyuncs.com', 'endpoint' => 'bdrc.cn-shanghai-finance-1.aliyuncs.com', 'vpc' => 'bdrc-vpc.cn-shanghai-finance-1.aliyuncs.com'], ], ]; |
