'1.0', 'info' => ['style' => 'ROA', 'product' => 'BDRC', 'version' => '2023-08-08'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'CheckRules' => [ 'path' => '/api/v1/rules/check', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceArn', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'RuleId', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'CloseBdrcService' => [ 'path' => '/api/v1/service/close', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], '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' => 'ClientToken', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => false], ], [ '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' => 'SubProtectionPolicies', 'in' => 'formData', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => true, 'items' => [ 'type' => 'object', 'required' => true, 'properties' => [ 'SubProtectionPolicyType' => ['type' => 'string', 'required' => true], 'Config' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], 'CreateResourceCategory' => [ 'path' => '/api/v1/resource-categories/create', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], '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', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DeleteProtectionPolicy' => [ 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', 'methods' => ['delete'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProtectionPolicyId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DeleteResourceCategory' => [ 'path' => '/api/v1/resource-categories/delete', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceCategoryId', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DescribeCheckDetails' => [ 'path' => '/api/v1/check-details', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceArn', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'RuleId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', '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' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProductType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'enum' => [], ], ], [ 'name' => 'ResourceCategoryId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceOwnerIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], 'DescribeProducts' => [ 'path' => '/api/v1/products', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'deprecated' => false, 'parameters' => [ [ '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' => 'array', 'required' => false, 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], ], 'DescribeResources' => [ 'path' => '/api/v1/resources', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], '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' => 'ResourceId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'FailedRuleTemplate', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ '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' => 'SortBy', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'SortOrder', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => ['ASC', 'DESC'], ], ], [ 'name' => 'StorageClass', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => ['STANDARD', 'ARCHIVE', 'IA', 'COLD_ARCHIVE'], ], ], [ 'name' => 'DataRedundancyType', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => ['LRS', 'ZRS'], ], ], [ 'name' => 'ResourceCategoryId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceRegionId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceArn', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceOwnerIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], ], ], ], 'DescribeRules' => [ 'path' => '/api/v1/rules', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], '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' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ 'name' => 'ResourceCategoryId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceRegionId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceOwnerIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], 'DescribeTask' => [ 'path' => '/api/v1/tasks/{TaskId}', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'DescribeTasks' => [ 'path' => '/api/v1/tasks', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'TaskStatus', 'in' => 'query', 'schema' => [ 'type' => 'string', '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'], ], ], ], 'DescribeTopRiskyResources' => [ 'path' => '/api/v1/resources/top-risky', 'methods' => ['get'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], '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' => 'ResourceCategoryId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceOwnerIds', 'in' => 'query', 'style' => 'json', 'schema' => [ 'type' => 'array', 'items' => ['type' => 'integer', 'format' => 'int64'], ], ], ], ], 'DisableCheckProduct' => [ 'path' => '/api/v1/products/disable-check', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProductType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'enum' => ['ecs', 'oss', 'nas', 'ots'], ], ], ], ], 'DisableCheckResource' => [ 'path' => '/api/v1/resources/disable-check', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceArn', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'EnableCheckProduct' => [ 'path' => '/api/v1/products/enable-check', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProductType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'enum' => ['ecs', 'oss', 'nas', 'ots'], ], ], ], ], 'EnableCheckResource' => [ 'path' => '/api/v1/resources/enable-check', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceArn', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], ], ], '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' => 'MessageId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetProtectionPolicy' => [ 'path' => '/api/v1/protection-policies/{ProtectionPolicyId}', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProtectionPolicyId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], ], ], 'GetResourceCategory' => [ 'path' => '/api/v1/resource-categories/get', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceCategoryId', 'in' => 'query', '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], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'MessageTimeLaterThan', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int64', 'required' => false], ], [ 'name' => 'MessageTimeEarlierThan', 'in' => 'query', '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], ], ], ], 'ListProtectionPolicies' => [ 'path' => '/api/v1/protection-policies', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ProtectionPolicyRegionId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ProtectionPolicyId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], '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' => 'ProtectionPolicyId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'SubProtectionPolicyType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'TaskId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false], ], [ 'name' => 'ResourceType', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ApplyStatus', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => ['SKIPPED', 'SUCCESS', 'FAILED'], ], ], ], ], 'ListResourceCategories' => [ 'path' => '/api/v1/resource-categories/list', 'methods' => ['get'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'MaxResults', 'in' => 'query', 'schema' => ['type' => 'integer', 'format' => 'int32', 'required' => false, 'minimum' => '1', 'maximum' => '100'], ], [ 'name' => 'NextToken', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceCategoryId', 'in' => 'query', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'OpenBdrcService' => [ 'path' => '/api/v1/service/open', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [], ], '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', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ProtectionPolicyId', 'in' => 'path', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ProtectionPolicyName', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'BoundResourceCategoryIds', 'in' => 'formData', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => ['type' => 'string', 'required' => false], ], ], [ 'name' => 'SubProtectionPolicies', 'in' => 'formData', 'style' => 'json', 'schema' => [ 'type' => 'array', 'required' => false, 'items' => [ 'type' => 'object', 'required' => false, 'properties' => [ 'SubProtectionPolicyType' => ['type' => 'string', 'required' => false], 'Config' => ['type' => 'string', 'required' => false], ], ], ], ], ], ], 'UpdateResourceCategory' => [ 'path' => '/api/v1/resource-categories/update', 'methods' => ['post'], 'schemes' => ['https'], 'security' => [ [ 'AK' => [], ], ], 'consumes' => ['multipart/form-data'], 'produces' => ['application/json'], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceCategoryId', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => true], ], [ 'name' => 'ResourceCategoryName', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => false], ], [ 'name' => 'ResourceMatcher', 'in' => 'formData', 'schema' => ['type' => 'string', 'required' => false], ], ], ], 'UpdateResources' => [ 'path' => '/api/v1/resources/update', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'deprecated' => false, 'parameters' => [ [ 'name' => 'ResourceType', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'enum' => [], ], ], ], ], ], 'endpoints' => [ ['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'], ], ];