From 1c7f908ce09f98fdcbf79ed2a8ae21be60eaa634 Mon Sep 17 00:00:00 2001 From: Zhineng Li Date: Sun, 12 Jul 2026 17:11:17 +0800 Subject: update APIs 20260712 --- data/en_us/servicecatalog/2021-09-01/api-docs.php | 11909 +++++++++----------- 1 file changed, 5348 insertions(+), 6561 deletions(-) (limited to 'data/en_us/servicecatalog') diff --git a/data/en_us/servicecatalog/2021-09-01/api-docs.php b/data/en_us/servicecatalog/2021-09-01/api-docs.php index 7657363..afce172 100644 --- a/data/en_us/servicecatalog/2021-09-01/api-docs.php +++ b/data/en_us/servicecatalog/2021-09-01/api-docs.php @@ -1,929 +1,491 @@ '1.0', - 'info' => [ - 'style' => 'RPC', - 'product' => 'servicecatalog', - 'version' => '2021-09-01', - ], + 'info' => ['style' => 'RPC', 'product' => 'servicecatalog', 'version' => '2021-09-01'], 'directories' => [ [ - 'id' => 156830, - 'title' => 'Service Discovery', - 'type' => 'directory', - 'children' => [ - 'GetProductAsEndUser', - 'ListProductsAsEndUser', - ], - ], - [ - 'id' => 156834, - 'title' => 'Service Request', + 'children' => ['GetProductAsEndUser', 'ListProductsAsEndUser'], 'type' => 'directory', - 'children' => [ - 'ListLaunchOptions', - 'LaunchProduct', - 'TerminateProvisionedProduct', - 'UpdateProvisionedProduct', - ], + 'title' => 'Service discovery', ], [ - 'id' => 168857, - 'title' => 'Plan', + 'children' => ['ListLaunchOptions', 'LaunchProduct', 'TerminateProvisionedProduct', 'UpdateProvisionedProduct'], 'type' => 'directory', - 'children' => [ - 'CreateProvisionedProductPlan', - 'GetProvisionedProductPlan', - 'ListProvisionedProductPlans', - 'CancelProvisionedProductPlan', - 'UpdateProvisionedProductPlan', - 'ApproveProvisionedProductPlan', - 'ListProvisionedProductPlanApprovers', - 'ExecuteProvisionedProductPlan', - 'DeleteProvisionedProductPlan', - ], + 'title' => 'Service requests', ], [ - 'id' => 167563, - 'title' => 'Instance', + 'children' => ['CreateProvisionedProductPlan', 'GetProvisionedProductPlan', 'ListProvisionedProductPlans', 'CancelProvisionedProductPlan', 'UpdateProvisionedProductPlan', 'ApproveProvisionedProductPlan', 'ListProvisionedProductPlanApprovers', 'ExecuteProvisionedProductPlan', 'DeleteProvisionedProductPlan'], 'type' => 'directory', - 'children' => [ - 'GetProvisionedProduct', - 'ListProvisionedProducts', - 'GetTask', - 'ListTasks', - ], + 'title' => 'Plans', ], [ - 'id' => 156842, - 'title' => 'Product', + 'children' => ['GetProvisionedProduct', 'ListProvisionedProducts'], 'type' => 'directory', - 'children' => [ - 'CopyProduct', - 'CreateProduct', - 'DeleteProduct', - 'UpdateProduct', - 'GetProductAsAdmin', - 'ListProductsAsAdmin', - ], + 'title' => 'Instances', ], [ - 'id' => 156848, - 'title' => 'Product Version', + 'children' => ['CopyProduct', 'GetProductAsAdmin', 'ListProductsAsAdmin'], 'type' => 'directory', - 'children' => [ - 'CreateProductVersion', - 'DeleteProductVersion', - 'UpdateProductVersion', - 'GetProductVersion', - 'ListProductVersions', - ], + 'title' => 'Products', ], [ - 'id' => 156854, - 'title' => 'Template', + 'children' => ['CreateProductVersion', 'DeleteProductVersion', 'UpdateProductVersion', 'GetProductVersion', 'ListProductVersions'], 'type' => 'directory', - 'children' => [ - 'CreateTemplate', - 'GetTemplate', - ], + 'title' => 'Product versions', ], [ - 'id' => 156857, - 'title' => 'Product Mix', + 'children' => ['CreatePortfolio', 'AssociateProductWithPortfolio', 'DeletePortfolio', 'DisassociateProductFromPortfolio', 'UpdatePortfolio', 'GetPortfolio', 'ListPortfolios'], 'type' => 'directory', - 'children' => [ - 'CreatePortfolio', - 'AssociateProductWithPortfolio', - 'DeletePortfolio', - 'DisassociateProductFromPortfolio', - 'UpdatePortfolio', - 'GetPortfolio', - 'ListPortfolios', - ], + 'title' => 'Product portfolios', ], [ - 'id' => 156865, - 'title' => 'Constraint', + 'children' => ['CreateConstraint', 'DeleteConstraint', 'UpdateConstraint', 'GetConstraint'], 'type' => 'directory', - 'children' => [ - 'CreateConstraint', - 'DeleteConstraint', - 'UpdateConstraint', - 'GetConstraint', - ], + 'title' => 'Constraints', ], [ - 'id' => 156871, - 'title' => 'Authorize', + 'children' => ['AssociatePrincipalWithPortfolio', 'DisassociatePrincipalFromPortfolio', 'ListPrincipals'], 'type' => 'directory', - 'children' => [ - 'AssociatePrincipalWithPortfolio', - 'DisassociatePrincipalFromPortfolio', - 'ListPrincipals', - ], + 'title' => 'Authorization', ], [ - 'id' => 156875, - 'title' => 'Region', + 'children' => ['GetTagOption', 'DisAssociateTagOptionFromResource', 'ListResourcesForTagOption', 'UpdateTagOption', 'ListTagOptions', 'DeleteTagOption', 'CreateTagOption', 'AssociateTagOptionWithResource'], 'type' => 'directory', - 'children' => [ - 'ListRegions', - ], + 'title' => 'Tag options', ], [ - 'id' => 181704, - 'title' => 'Tag Option', + 'children' => ['CreateProduct', 'CreateTemplate', 'DeleteProduct', 'GetTask', 'GetTemplate', 'ListRegions', 'ListTasks', 'UpdateProduct'], + 'title' => 'Others', 'type' => 'directory', - 'children' => [ - 'GetTagOption', - 'DisAssociateTagOptionFromResource', - 'ListResourcesForTagOption', - 'UpdateTagOption', - 'ListTagOptions', - 'DeleteTagOption', - 'CreateTagOption', - 'AssociateTagOptionWithResource', - ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ - 'GetProductAsEndUser' => [ - 'summary' => 'Queries the information about a product as a user.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ApproveProvisionedProductPlan' => [ + 'summary' => 'Reviews a plan.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'ProductId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'name' => 'PlanId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], + ], + [ + 'name' => 'ApprovalAction', + 'in' => 'formData', + 'schema' => ['description' => 'The review action. Valid values:'."\n" + ."\n" + .'- Approve'."\n" + ."\n" + .'- Reject', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Approve'], + ], + [ + 'name' => 'Comment', + 'in' => 'formData', + 'schema' => ['description' => 'The review description.', 'type' => 'string', 'example' => 'Approved. Resource creation is allowed.', 'title' => '', 'required' => false], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductSummary' => [ - 'title' => '产品详情', - 'description' => 'The information about the product.'."\n", - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '产品描述', - 'description' => 'The description of the product.'."\n", - 'type' => 'string', - 'example' => 'The description of the product.'."\n", - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductArn' => [ - 'title' => '产品ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance.'."\n", - ], - 'ProviderName' => [ - 'title' => '提供者名称', - 'description' => 'The provider of the product.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - 'ProductType' => [ - 'title' => '产品类型', - 'description' => 'The type of the product.'."\n" - ."\n" - .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'HasDefaultLaunchOption' => [ - 'description' => 'Indicates whether the default launch option exists. Valid values:'."\n" - ."\n" - .'* true: The default launch option exists. In this case, the PortfolioId parameter is not required when the product is launched or when the information about the product instance is updated.'."\n" - .'* false: The default launch option does not exist. In this case, the PortfolioId parameter is required when the product is launched or when the information about the product instance is updated. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n" - ."\n" - .'> If the product is added to only one product portfolio, the default launch option exists. If the product is added to multiple product portfolios, multiple launch options exist at the same time. However, no default launch options exist.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TemplateType' => [ - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: The Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: The standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductSummary\\": {\\n \\"Description\\": \\"这是一个产品描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProviderName\\": \\"IT团队\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"HasDefaultLaunchOption\\": true,\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n}","type":"json"}]', - 'title' => 'GetProductAsEndUser', - 'description' => 'Make sure that you are granted the permissions to manage relevant products as a user by an administrator. For more information, see [Manage access permissions](~~405233~~).'."\n", - ], - 'ListProductsAsEndUser' => [ - 'summary' => 'Queries products as a user.', - 'methods' => [ - 'get', - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + 'title' => 'ApproveProvisionedProductPlan', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApproveProvisionedProductPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:ApproveProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'AssociatePrincipalWithPortfolio' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - 'tenantRelevance' => 'publicInformation', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ - 'name' => 'Filters', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '过滤条件', - 'description' => 'The filter conditions.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称', - 'description' => 'The name of the filter condition. Valid values:'."\n" - ."\n" - .'* ProductName: performs exact matches by product name. Product names are not case-sensitive.'."\n" - .'* FullTextSearch: performs full-text searches by product name, product provider, or product description. Fuzzy match is supported.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ProductName', - ], - 'Value' => [ - 'title' => '过滤条件的值', - 'description' => 'The value of the filter condition.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 5, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'description' => 'The field that is used to sort data.'."\n" - ."\n" - .'The default value is CreateTime, which specifies the time when the product was created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', - ], + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['title' => '产品组合ID', 'description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'example' => 'port-bp1yt7582g****'], ], [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'title' => '排序方式', - 'description' => 'The method that is used to sort the returned entries. Valid values:'."\n" - ."\n" - .'* Asc: sorts the entries in ascending order.'."\n" - .'* Desc (default): sorts the entries in descending order.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', - ], + 'name' => 'PrincipalType', + 'in' => 'formData', + 'schema' => ['title' => 'RAM实体类型', 'description' => 'The type of the RAM entity. Valid values:'."\n" + ."\n" + .'- RamUser: A RAM user.'."\n" + ."\n" + .'- RamRole: A RAM role.', 'type' => 'string', 'required' => true, 'example' => 'RamUser'], ], [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'name' => 'PrincipalId', + 'in' => 'formData', + 'schema' => ['title' => 'RAM实体ID', 'description' => 'The ID of the RAM entity.'."\n" + ."\n" + .'For information about how to obtain the ID of a RAM user, see [GetUser](~~28681~~).'."\n" + ."\n" + .'For information about how to obtain the ID of a RAM role, see [GetRole](~~28711~~).', 'type' => 'string', 'required' => false, 'example' => '24477111603637****'], ], [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n" - ."\n" - .'Valid values: 1 to 100. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'name' => 'PrincipalPattern', + 'in' => 'formData', + 'schema' => ['description' => 'The principal identity pattern. The pattern is in the format of `/`.', 'type' => 'string', 'example' => 'user/userName', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductSummaries' => [ - 'title' => '产品列表', - 'description' => 'The products.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the product.'."\n", - 'type' => 'object', - 'properties' => [ - 'Description' => [ - 'title' => '产品描述', - 'description' => 'The description of the product.'."\n", - 'type' => 'string', - 'example' => 'The description of the product.'."\n", - ], - 'CreateTime' => [ - 'title' => '产品创建时间', - 'description' => 'The time when the product was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The product ID.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductArn' => [ - 'title' => '产品ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名字', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProviderName' => [ - 'title' => '产品提供方', - 'description' => 'The provider of the product.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - 'ProductType' => [ - 'title' => '产品类型', - 'description' => 'The type of the product.'."\n" - ."\n" - .'The value is set to Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'HasDefaultLaunchOption' => [ - 'title' => '是否存在默认的启动选项', - 'description' => 'Indicates whether the default launch option exists. Valid values:'."\n" - ."\n" - .'* true: The default launch option exists. In this case, the PortfolioId parameter is not required when the product is launched or when the information about the product instance is updated.'."\n" - .'* false: The default launch option does not exist. In this case, the PortfolioId parameter is required when the product is launched or when the information about the product instance is updated. For more information about the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n" - ."\n" - .'> If the product is added to only one product portfolio, the default launch option exists. If the product is added to multiple product portfolios, multiple launch options exist at the same time. However, no default launch options exist.'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TemplateType' => [ - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], - ], - ], - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '100', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of entries returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'RequestId' => ['title' => '请求ID', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'AssociatePrincipalWithPortfolio', + 'summary' => 'Associates a Resource Access Management (RAM) user or a RAM role with a product portfolio.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociatePrincipalWithPortfolio'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociatePrincipalWithPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductSummaries\\": [\\n {\\n \\"Description\\": \\"这是一个产品描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProviderName\\": \\"IT团队\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"HasDefaultLaunchOption\\": true,\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n ],\\n \\"TotalCount\\": 100,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListProductsAsEndUser', - 'description' => 'Make sure that you are granted the permissions to manage relevant products as a user by an administrator. For more information, see [Manage access permissions](~~405233~~).'."\n", + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', ], - 'ListLaunchOptions' => [ - 'summary' => 'Queries launch options.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'AssociateProductWithPortfolio' => [ + 'summary' => 'Adds a product to a product portfolio.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'list', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ 'name' => 'ProductId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], + [ + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'LaunchOptionSummaries' => [ - 'title' => '启动选项概要', - 'description' => 'The launch options.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'PortfolioName' => [ - 'title' => '产品组合名称', - 'description' => 'The name of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'DEMO-IT services'."\n", - ], - 'ConstraintSummaries' => [ - 'title' => '约束概要', - 'description' => 'The constraints.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ConstraintType' => [ - 'title' => '约束类型', - 'description' => 'The type of the constraint. Valid values:'."\n" - ."\n" - .'1. Launch'."\n" - .'2. Template'."\n" - .'3. Approval'."\n" - .'4. StackRegion'."\n", - 'type' => 'string', - 'example' => 'Launch', - ], - 'Description' => [ - 'title' => '约束描述', - 'description' => 'The description of the constraint.'."\n", - 'type' => 'string', - 'example' => 'Launch as local role TestRole', - ], - 'OperationTypes' => [ - 'title' => '操作类型,当约束类型为审批约束时不为空', - 'description' => 'The types of operations that require approval. If the type of the constraint is Approval, this parameter is not empty.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The type of the operation. If the type of the constraint is Approval, this parameter is not empty.'."\n", - 'type' => 'string', - 'example' => 'All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct', - ], - ], - 'StackRegions' => [ - 'description' => 'The regions in which users can launch the service. If the type of the constraint is StackRegion, this parameter is not empty.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The region in which users can launch the service.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - ], - ], - ], - ], - ], - ], - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'AssociateProductWithPortfolio', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateProductWithPortfolio'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociateProductWithPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"LaunchOptionSummaries\\": [\\n {\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"PortfolioName\\": \\"DEMO-IT服务\\",\\n \\"ConstraintSummaries\\": [\\n {\\n \\"ConstraintType\\": \\"Launch\\",\\n \\"Description\\": \\"Launch as local role TestRole\\",\\n \\"OperationTypes\\": [\\n \\"All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct\\"\\n ],\\n \\"StackRegions\\": [\\n \\"cn-hangzhou\\"\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListLaunchOptions', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', ], - 'LaunchProduct' => [ - 'summary' => 'Launches a product.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'AssociateTagOptionWithResource' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ProvisionedProductName', + 'name' => 'ResourceId', 'in' => 'formData', - 'schema' => [ - 'title' => '实例名称', - 'description' => 'The name of the product instance.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'DEMO-ECS instance'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'The ID of the resource with which the tag option is associated.', 'type' => 'string', 'required' => true, 'example' => 'port-bp15p96922****'], ], [ - 'name' => 'PortfolioId', + 'name' => 'TagOptionId', 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n" - ."\n" - .'> If the PortfolioId parameter is not required, you do not need to specify the PortfolioId parameter. If the PortfolioId parameter is required, you must specify the PortfolioId parameter. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'port-bp1yt7582g****', - ], + 'schema' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1u6mdf3d****', 'title' => ''], ], - [ - 'name' => 'ProductId', - 'in' => 'formData', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => 'DC833558-AFF4-5935-9AB6-8A12EE7D****'], + ], + 'example' => '', ], ], - [ - 'name' => 'ProductVersionId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'AssociateTagOptionWithResource', + 'summary' => 'Associates the tag option with a resource.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateTagOptionWithResource'], ], + ], + 'ramActions' => [ [ - 'name' => 'Parameters', - 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The input parameters of the template.'."\n" - ."\n" - .'You can specify up to 200 parameters.'."\n" - ."\n" - .'> This parameter is optional. If you specify the Parameters parameter, you must specify the ParameterKey and ParameterValue parameters.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'description' => 'The name of the input parameter for the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'description' => 'The value of the input parameter for the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.s6-c1m1.small', - ], - ], - 'required' => false, - 'description' => 'The input parameters of the template.', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociateTagOptionWithResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], - 'required' => false, - 'maxItems' => 200, ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC833558-AFF4-5935-9AB6-8A12EE7D****\\"\\n}","type":"json"}]', + ], + 'CancelProvisionedProductPlan' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'StackRegionId', - 'in' => 'formData', - 'schema' => [ - 'title' => 'ROS资源栈所属的地域ID', - 'description' => 'The ID of the region to which the Resource Orchestration Service (ROS) stack belongs.'."\n" - ."\n" - .'For more information about how to obtain the regions that are supported by ROS, see [DescribeRegions](~~131035~~).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'AK' => [], ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ [ - 'name' => 'Tags', + 'name' => 'PlanId', 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The custom tags that are specified by the end user.'."\n" - ."\n" - .'Maximum value of N: 20.'."\n" - ."\n" - .'> '."\n" - ."\n" - .'* The Tags parameter is optional. If you specify the Tags parameter, you must specify the Tags.N.Key and Tags.N.Value parameters.'."\n" - ."\n" - .'* The tag is propagated to each stack resource that supports the tag feature.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The tag key of the custom tag.'."\n" - ."\n" - .'The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `acs:` or `aliyun`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The tag value of the custom tag.'."\n" - ."\n" - .'The tag value can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'v1', - ], - ], - 'required' => false, - 'description' => 'The custom tags that are specified by the end user.', - ], - 'required' => false, - 'maxItems' => 20, - ], + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the instance'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\"\\n}","type":"json"}]', - 'title' => 'LaunchProduct', - ], - 'TerminateProvisionedProduct' => [ - 'summary' => 'Terminates a product instance.', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CancelProvisionedProductPlan', + 'summary' => 'Cancels a plan.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CancelProvisionedProductPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:CancelProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + ], + 'CopyProduct' => [ + 'summary' => 'Replicates a product.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'ProvisionedProductId', + 'name' => 'SourceProductArn', 'in' => 'formData', - 'schema' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pp-bp1ddg1n2a****', - ], + 'schema' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the source product.'."\n" + ."\n" + .'> The source product can belong to the current account or belong to a product portfolio that is shared by another account.', 'type' => 'string', 'title' => '', 'required' => true, 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'."\n"], + ], + [ + 'name' => 'TargetProductName', + 'in' => 'formData', + 'schema' => ['description' => 'The name of the destination product.', 'type' => 'string', 'required' => false, 'example' => 'DEMO-ECS', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'TerminateProvisionedProduct', - 'description' => 'After a product instance is terminated, the product instance is deleted from the product instance list. End users cannot manage the product instance throughout its lifecycle. Proceed with caution.'."\n", - ], - 'UpdateProvisionedProduct' => [ - 'summary' => 'Updates the information about a product instance.', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CopyProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CopyProduct'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CopyProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\"\\n}","type":"json"}]', + ], + 'CreateConstraint' => [ + 'summary' => 'Creates a constraint.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -931,276 +493,475 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => ['operationType' => 'create'], 'parameters' => [ [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n" - ."\n" - .'> The PortfolioId parameter is not required if the default launch option exists. The PortfolioId parameter is required if the default launch option does not exist. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'ProductId', + 'name' => 'ConstraintType', 'in' => 'formData', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'schema' => ['description' => 'The type of the constraint.'."\n" + ."\n" + .'The value is fixed as Launch, which specifies the launch constraint.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Launch'], ], [ - 'name' => 'ProductVersionId', + 'name' => 'Config', 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n" - ."\n" - .'> If the values of the ProductVersionId and Parameters parameters are not changed, the information about the product instance cannot be updated.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + 'schema' => ['description' => 'The configuration of the constraint.'."\n" + ."\n" + .'Format: { "LocalRoleName": "\\" }.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '{ "LocalRoleName": "TestRole" }'], ], [ - 'name' => 'Parameters', + 'name' => 'Description', 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The input parameters of the template.'."\n" - ."\n" - .'You can specify up to 200 parameters.'."\n" - ."\n" - .'> - This parameter is optional. If you specify the Parameters parameter, you must specify the ParameterKey and ParameterValue parameters.'."\n" - .'> - If the values of the ProductVersionId and Parameters parameters are not changed, you are not allowed to update the information about the product instance.', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'description' => 'The name of the input parameter for the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'description' => 'The value of the input parameter for the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.s6-c1m1.small', - ], - ], - 'required' => false, - 'description' => 'The input parameters of the template.', - ], - 'required' => false, - 'maxItems' => 200, - ], + 'schema' => ['description' => 'The description of the constraint.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Launch as local role TestRole'], ], [ - 'name' => 'ProvisionedProductId', + 'name' => 'PortfolioId', 'in' => 'formData', - 'schema' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pp-bp1ddg1n2a****', - ], + 'schema' => ['description' => 'The ID of the product portfolio to which the constraint belongs.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], [ - 'name' => 'Tags', + 'name' => 'ProductId', 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'description' => 'The input custom tags.'."\n" - ."\n" - .'Maximum value of N: 20.'."\n" - ."\n" - .'> - The Tags parameter is optional. If you need to specify the Tags parameter, you must specify the Tags.N.Key and Tags.N.Value parameters.'."\n" - .'> - The tag is propagated to each stack resource that supports the tag feature.', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The tag key of the custom tag.'."\n" - ."\n" - .'The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `acs:` or `aliyun`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The tag value of the custom tag.'."\n" - ."\n" - .'The tag value can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'v1', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 20, - ], + 'schema' => ['description' => 'The ID of the product for which the constraint is created.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ConstraintId' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'title' => '', 'example' => 'cons-bp1yx7x42v****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'CreateConstraint', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateConstraint'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + 'additionalActions' => [ + ['action' => 'ram:PassRole', 'validationType' => 'always'], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\"\\n}","type":"json"}]', - 'title' => 'UpdateProvisionedProduct', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\"\\n}","type":"json"}]', ], - 'CreateProvisionedProductPlan' => [ - 'summary' => 'Creates a plan.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'CreatePortfolio' => [ + 'summary' => 'Creates a product portfolio.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'PlanName', + 'name' => 'PortfolioName', 'in' => 'formData', - 'schema' => [ - 'title' => '计划名称。'."\n" - ."\n" - .'长度为1~128个字符。', - 'description' => 'The plan name.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'DEMO-ECS instance'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['description' => 'The name of the product portfolio.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'DEMO-IT Service', 'required' => true, 'docRequired' => false, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], ], [ - 'name' => 'PlanType', + 'name' => 'Description', 'in' => 'formData', + 'schema' => ['description' => 'The description of the product portfolio.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a portfolio description.', 'title' => '', 'required' => false], + ], + [ + 'name' => 'ProviderName', + 'in' => 'formData', + 'schema' => ['description' => 'The provider of the product portfolio.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'IT team', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '计划类型。'."\n" - ."\n" - .'取值为Ros,表示阿里云资源编排服务(ROS)。', - 'description' => 'The plan type.'."\n" - ."\n" - .'Set the value to Ros, which specifies Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'Ros', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\"\\n}","type":"json"}]', + 'title' => 'CreatePortfolio', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePortfolio'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreatePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/*'], + ], ], ], + ], + 'translator' => 'manual', + ], + 'CreateProduct' => [ + 'summary' => 'Creates a product.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ProvisionedProductName', + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => [ + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', + ], + 'parameters' => [ + [ + 'name' => 'ProductName', + 'in' => 'formData', + 'schema' => ['description' => 'The name of the product.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], + ], + [ + 'name' => 'ProductType', + 'in' => 'formData', + 'schema' => ['description' => 'The type of the product.'."\n" + ."\n" + .'Set the value to Ros, which specifies Resource Orchestration Service (ROS).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Ros'], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['description' => 'The description of the product.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => '', 'required' => false], + ], + [ + 'name' => 'ProviderName', + 'in' => 'formData', + 'schema' => ['description' => 'The provider of the product.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'IT team', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], + ], + [ + 'name' => 'ProductVersionParameters', 'in' => 'formData', + 'style' => 'json', 'schema' => [ - 'title' => '实例名称。'."\n" - ."\n" - .'长度为1~128个字符。', - 'description' => 'The product instance name.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'DEMO-ECS instance'."\n", - 'maxLength' => 100, - 'minLength' => 1, + 'title' => '', + 'description' => 'The information about the product version.', + 'type' => 'object', + 'properties' => [ + 'ProductVersionName' => ['description' => 'The name of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'required' => false, 'maxLength' => 100, 'minLength' => 1, 'title' => '', 'example' => '1.0'], + 'TemplateType' => ['description' => 'The type of the template.'."\n" + ."\n" + .'Set the value to RosTerraformTemplate, which indicates the Terraform template that is supported by Resource Orchestration Service (ROS).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'RosTerraformTemplate'], + 'TemplateUrl' => ['description' => 'The URL of the template.'."\n" + ."\n" + .'To obtain the URL of a template, you can call the [CreateTemplate](~~CreateTemplate~~) operation.', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + 'Description' => ['description' => 'The description of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => '', 'required' => false], + 'Guidance' => ['description' => 'The recommended product version. Valid values:'."\n" + ."\n" + .'- Default (default): No product version is recommended.'."\n" + ."\n" + .'- Recommended: the stable version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be deprecated.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Default'], + 'Active' => ['description' => 'Specifies whether to enable the product version. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'true'], + ], + 'required' => false, + 'example' => '', ], ], [ - 'name' => 'PortfolioId', + 'name' => 'TemplateType', 'in' => 'formData', + 'schema' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'required' => false, 'example' => 'RosTerraformTemplate', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '产品组合ID。', - 'description' => 'The product portfolio ID.'."\n" - ."\n" - .'> If PortfolioId is not required, you do not need to specify PortfolioId. If PortfolioId is required, you must specify PortfolioId. For more information about how to obtain the value of PortfolioId, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'port-bp1yt7582g****', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'example' => 'pv-bp15e79d26****', 'title' => ''], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', + 'title' => 'CreateProduct', + 'description' => 'Before you call the CreateProduct operation, you must call the [CreateTemplate](~~CreateTemplate~~) operation to create a template.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/*'], + ], ], ], + ], + 'translator' => 'manual', + ], + 'CreateProductVersion' => [ + 'summary' => 'Creates a product version.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create'], + 'parameters' => [ + [ + 'name' => 'ProductVersionName', + 'in' => 'formData', + 'schema' => ['description' => 'The name of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => '', 'example' => '1.0'], + ], + [ + 'name' => 'TemplateType', + 'in' => 'formData', + 'schema' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'RosTerraformTemplate'], + ], + [ + 'name' => 'TemplateUrl', + 'in' => 'formData', + 'schema' => ['description' => 'The URL of the template.'."\n" + ."\n" + .'For more information about how to obtain the URL of a template, see [CreateTemplate](~~CreateTemplate~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['description' => 'The description of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => '', 'required' => false], + ], + [ + 'name' => 'Guidance', + 'in' => 'formData', + 'schema' => ['description' => 'The recommendation information. Valid values:'."\n" + ."\n" + .'- Default: No recommendation information is provided. This is the default value.'."\n" + ."\n" + .'- Recommended: the recommendation version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be discontinued.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Default'], + ], + [ + 'name' => 'Active', + 'in' => 'formData', + 'schema' => ['description' => 'Specifies whether the product version is active. Valid values:'."\n" + ."\n" + .'- true: The product version is active. This is the default value.'."\n" + ."\n" + .'- false: The product version is inactive.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'true'], + ], [ 'name' => 'ProductId', 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product to which the product version belongs.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => 'ProductId', - 'description' => 'The product ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + ], + 'example' => '', + ], + ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', + 'title' => 'CreateProductVersion', + 'description' => 'Before you call the CreateProductVersion operation, you must call the [CreateTemplate](~~CreateTemplate~~) operation to create a template.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], + ], + 'translator' => 'manual', + ], + 'CreateProvisionedProductPlan' => [ + 'summary' => 'Creates a plan.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ + [ + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => ['operationType' => 'create'], + 'parameters' => [ + [ + 'name' => 'PlanName', + 'in' => 'formData', + 'schema' => ['description' => 'The plan name.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], + ], + [ + 'name' => 'PlanType', + 'in' => 'formData', + 'schema' => ['description' => 'The plan type.'."\n" + ."\n" + .'Set the value to Ros, which specifies Resource Orchestration Service (ROS).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'Ros'], + ], + [ + 'name' => 'ProvisionedProductName', + 'in' => 'formData', + 'schema' => ['description' => 'The product instance name.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], + ], + [ + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The product portfolio ID.'."\n" + ."\n" + .'> If PortfolioId is not required, you do not need to specify PortfolioId. If PortfolioId is required, you must specify PortfolioId. For more information about how to obtain the value of PortfolioId, see [ListLaunchOptions](~~ListLaunchOptions~~).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'port-bp1yt7582g****'], + ], + [ + 'name' => 'ProductId', + 'in' => 'formData', + 'schema' => ['title' => 'ProductId', 'description' => 'The product ID.', 'type' => 'string', 'required' => true, 'example' => 'prod-bp18r7q127****'], + ], [ 'name' => 'ProductVersionId', 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本ID。'."\n" - ."\n", - 'description' => 'The product version ID.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + 'schema' => ['description' => 'The product version ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], ], [ 'name' => 'Parameters', 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ - 'title' => '用户输入的模板参数。'."\n" - ."\n" - .'N最大值为200。', + 'title' => '', 'description' => 'An array that consists of the parameters in the template.'."\n" ."\n" .'You can specify up to 200 parameters.'."\n" @@ -1210,117 +971,86 @@ 'items' => [ 'type' => 'object', 'properties' => [ - 'ParameterKey' => [ - 'title' => '模板中定义的参数名称。'."\n" - ."\n", - 'description' => 'The name of the parameter in the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'title' => '用户输入的模板参数值。', - 'description' => 'The value of the parameter in the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.s6-c1m1.small', - ], + 'ParameterKey' => ['description' => 'The name of the parameter in the template.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'instance_type'], + 'ParameterValue' => ['description' => 'The value of the parameter in the template.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ecs.s6-c1m1.small'], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 200, + 'example' => '', ], ], [ 'name' => 'StackRegionId', 'in' => 'formData', - 'schema' => [ - 'title' => '阿里云资源编排服务(ROS)资源栈所属的地域ID。', - 'description' => 'The ID of the region to which the ROS stack belongs.'."\n" - ."\n" - .'For more information about how to obtain the regions that are supported by ROS, see [DescribeRegions](~~131035~~).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cn-hangzhou', - ], + 'schema' => ['description' => 'The ID of the region to which the ROS stack belongs.'."\n" + ."\n" + .'For more information about how to obtain the regions that are supported by ROS, see [DescribeRegions](~~131035~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ 'name' => 'Tags', 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ - 'title' => '用户输入的自定义标签。'."\n" - ."\n" - .'N最大值为20。', + 'title' => '', 'description' => 'An array that consists of custom tags.'."\n" ."\n" .'Maximum value of N: 20.'."\n" ."\n" - .'> '."\n" - .'* If you specify Tags, you must specify Tags.N.Key and Tags.N.Value.'."\n" - .'* The tag of a stack is propagated to each resource that supports the tag feature in the stack.', + .'>'."\n" + ."\n" + .'- If you specify Tags, you must specify Tags.N.Key and Tags.N.Value.'."\n" + ."\n" + .'- The tag of a stack is propagated to each resource that supports the tag feature in the stack.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Key' => [ - 'title' => '用户输入的自定义标签键。'."\n" - ."\n" - .'最多支持128个字符,不能以aliyun和acs:开头,不能包含http://或者https://。', 'description' => 'The key of the custom tag.'."\n" ."\n" - .'The key can be up to 128 characters in length, and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, + .'The key can be up to 128 characters in length, and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.', 'enumValueTitles' => [], - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '用户输入的自定义标签值。'."\n" - ."\n" - .'最多支持128个字符,不能以acs:开头,不能包含http://或者https://。', - 'description' => 'The value of the custom tag.'."\n" - ."\n" - .'The value can be up to 128 characters in length, and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.'."\n", 'type' => 'string', + 'title' => '', 'required' => false, - 'example' => 'v1', + 'example' => 'k1', ], + 'Value' => ['description' => 'The value of the custom tag.'."\n" + ."\n" + .'The value can be up to 128 characters in length, and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'v1'], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 20, + 'example' => '', ], ], [ 'name' => 'OperationType', 'in' => 'formData', - 'schema' => [ - 'title' => '计划操作类型,取值为All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct。', - 'description' => 'The type of the operation that you want the plan to perform. Valid values:'."\n" - ."\n" - .'* LaunchProduct: launches the product. This is the default value.'."\n" - .'* UpdateProvisionedProduct: updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: terminates the product instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'LaunchProduct', - ], + 'schema' => ['description' => 'The type of the operation that you want the plan to perform. Valid values:'."\n" + ."\n" + .'- LaunchProduct: launches the product. This is the default value.'."\n" + ."\n" + .'- UpdateProvisionedProduct: updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: terminates the product instance.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'LaunchProduct'], ], [ 'name' => 'Description', 'in' => 'formData', - 'schema' => [ - 'title' => '计划描述', - 'description' => 'The description of the plan.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Create an ECS instance.'."\n", - ], + 'schema' => ['description' => 'The description of the plan.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'Create ECS', 'title' => '', 'required' => false], ], ], 'responses' => [ @@ -1328,1183 +1058,382 @@ 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The request ID.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PlanId' => [ - 'title' => '计划ID。', - 'description' => 'The plan ID.'."\n", - 'type' => 'string', - 'example' => 'plan-bp1jvmdk2k****', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID。', - 'description' => 'The product instance ID.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PlanId' => ['description' => 'The plan ID.', 'type' => 'string', 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], + 'ProvisionedProductId' => ['description' => 'The product instance ID.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\"\\n}","type":"json"}]', 'title' => 'CreateProvisionedProductPlan', - ], - 'GetProvisionedProductPlan' => [ - 'summary' => 'Queries the details of a plan.', - 'methods' => [ - 'post', - 'get', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProvisionedProductPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'CreateTagOption' => [ + 'summary' => 'Creates a tag option.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'create', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'PlanId', + 'name' => 'Key', 'in' => 'formData', - 'schema' => [ - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'The key of the tag option.'."\n" + ."\n" + .'The key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => true, 'maxLength' => 128, 'minLength' => 1, 'example' => 'k1'], + ], + [ + 'name' => 'Value', + 'in' => 'formData', + 'schema' => ['description' => 'The value of the tag option.'."\n" + ."\n" + .'The value can be up to 128 characters in length. It cannot start with `acs:`and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => true, 'maxLength' => 128, 'minLength' => 1, 'example' => 'v1', 'title' => ''], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PlanDetail' => [ - 'title' => '计划详情。'."\n" - ."\n", - 'description' => 'The details of the plan.'."\n", - 'type' => 'object', - 'properties' => [ - 'PlanId' => [ - 'title' => '计划ID。', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'example' => 'plan-bp1jvmdk2k****', - ], - 'PlanName' => [ - 'title' => '计划名称。'."\n" - ."\n", - 'description' => 'The name of the plan.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS instance'."\n", - ], - 'PlanType' => [ - 'title' => '计划类型。'."\n" - ."\n" - .'取值为Ros,表示阿里云资源编排服务(ROS)。', - 'description' => 'The type of the plan.'."\n" - ."\n" - .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID。'."\n" - ."\n", - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'ProductId' => [ - 'title' => '产品ID。'."\n" - ."\n", - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID。'."\n" - ."\n", - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID。'."\n" - ."\n", - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], - 'ProvisionedProductName' => [ - 'title' => '实例名称。', - 'description' => 'The name of the product instance.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS instance'."\n", - ], - 'Parameters' => [ - 'title' => '用户输入的模板参数。'."\n" - ."\n", - 'description' => 'An array that consists of the parameters in the template.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'title' => '模板中定义的参数名称。'."\n" - ."\n", - 'description' => 'The name of the input parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'title' => '用户输入的模板参数值。'."\n" - ."\n", - 'description' => 'The value of the input parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'ecs.s6-c1m1.small', - ], - ], - ], - ], - 'StackId' => [ - 'title' => '阿里云资源编排服务(ROS)资源栈ID。'."\n" - ."\n", - 'description' => 'The ID of the ROS stack.'."\n", - 'type' => 'string', - 'example' => '137e31df-3754-40b4-be2f-c793ad84****', - ], - 'StackRegionId' => [ - 'title' => '阿里云资源编排服务(ROS)资源栈所属的地域ID。'."\n" - ."\n", - 'description' => 'The ID of the region to which the ROS stack belongs.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'Status' => [ - 'title' => '计划状态。', - 'description' => 'The state of the plan. Valid values:'."\n" - ."\n" - .'* PreviewInProgress: The plan is being prechecked.'."\n" - .'* PreviewSuccess: The precheck is successful.'."\n" - .'* PreviewFailed: The precheck fails.'."\n" - .'* ApplicationInProgress: The plan is being approved.'."\n" - .'* ApplicationApproved: The plan is approved.'."\n" - .'* ApplicationRejected: The approval is rejected.'."\n" - .'* ExecuteInProgress: The plan is being run.'."\n" - .'* ExecuteSuccess: The plan is run.'."\n" - .'* ExecuteFailed: The plan fails to be run.'."\n" - .'* Canceled: The plan is canceled.'."\n", - 'type' => 'string', - 'example' => 'PreviewSuccess', - ], - 'StatusMessage' => [ - 'title' => '计划状态信息。', - 'description' => 'The message returned for the state.'."\n" - ."\n" - .'> This parameter is returned only when PreviewFailed or ExecuteFailed is returned for Status.'."\n", - 'type' => 'string', - 'example' => 'Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '计划创建时间。'."\n" - ."\n" - .'按照ISO8601标准表示,使用UTC时间,格式:YYYY-MM-DDThh:mm:ssZ。', - 'description' => 'The time when the plan was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:46:27Z', - ], - 'UpdateTime' => [ - 'title' => '计划最后更新时间。'."\n" - ."\n" - .'按照ISO8601标准表示,使用UTC时间,格式:YYYY-MM-DDThh:mm:ssZ。', - 'description' => 'The last time when the task was modified.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:47:29Z', - ], - 'Tags' => [ - 'title' => '用户自定义标签列表。'."\n" - ."\n", - 'description' => 'An array that consists of custom tags.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '用户自定义标签键。'."\n" - ."\n", - 'description' => 'The key of the custom tag.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '用户自定义标签值。'."\n" - ."\n", - 'description' => 'The value of the custom tag.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - ], - 'OperationType' => [ - 'title' => '计划操作类型,取值为All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct。', - 'description' => 'The purpose of the plan. Valid values:'."\n" - ."\n" - .'* LaunchProduct: launches the product.'."\n" - .'* UpdateProvisionedProduct: updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'LaunchProduct', - ], - 'Description' => [ - 'title' => '计划描述。', - 'description' => 'The description of the plan.'."\n", - 'type' => 'string', - 'example' => 'Create an ECS instance.'."\n", - ], - 'AssignedApprovers' => [ - 'title' => '计划审批人列表。', - 'description' => 'An array that consists of reviewers.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PrincipalType' => [ - 'title' => '计划审批人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。'."\n", - 'description' => 'The type of the Resource Access Management (RAM) entity of the plan approver. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user.'."\n" - .'* RamRole: a RAM role.'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'PrincipalName' => [ - 'title' => '计划归属人的RAM实体名称。'."\n", - 'description' => 'The name of the RAM entity of the plan approver.'."\n", - 'type' => 'string', - 'example' => 'approver', - ], - ], - ], - ], - 'OwnerPrincipalType' => [ - 'title' => '计划归属人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。'."\n", - 'description' => 'The type of the RAM entity to which the plan belongs. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'OwnerPrincipalId' => [ - 'title' => '计划归属人的RAM实体ID。'."\n" - ."\n", - 'description' => 'The ID of the RAM entity to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => '27740196382623****', - ], - 'ApprovalDetail' => [ - 'title' => '计划审批详情。', - 'description' => 'The approval details of the plan.'."\n", - 'type' => 'object', - 'properties' => [ - 'OperationRecords' => [ - 'title' => '用户操作记录。', - 'description' => 'The operation records.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Operator' => [ - 'title' => '操作人。', - 'description' => 'The RAM entities that have performed operations on the plan.'."\n", - 'type' => 'object', - 'properties' => [ - 'PrincipalType' => [ - 'title' => '操作人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。', - 'description' => 'The type of the RAM entity. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user.'."\n" - .'* RamRole: a RAM role.'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'PrincipalId' => [ - 'title' => '操作人的RAM实体ID。', - 'description' => 'The ID of the RAM entity.'."\n", - 'type' => 'string', - 'example' => '277401963826235***'."\n", - ], - 'PrincipalName' => [ - 'title' => '操作人的RAM实体名称。', - 'description' => 'The name RAM entity that servers as the operator.'."\n", - 'type' => 'string', - 'example' => 'approver', - ], - ], - ], - 'Comment' => [ - 'title' => '操作人的审批附加意见。', - 'description' => 'The approval comment of the operator.'."\n", - 'type' => 'string', - 'example' => 'Agreed.'."\n", - ], - 'CreateTime' => [ - 'title' => '操作时间。', - 'description' => 'The time when the operation was performed.'."\n", - 'type' => 'string', - 'example' => '2022-03-22T05:56:14Z', - ], - 'ApprovalAction' => [ - 'title' => '操作人对计划进行的操作类型。取值:'."\n" - ."\n" - .'Submit:提交计划。'."\n" - .'Cancel:取消计划。'."\n" - .'Approve:审批通过。'."\n" - .'Reject:审批拒绝。', - 'description' => 'The operation that is performed by the operator on the plan. Valid values:'."\n" - ."\n" - .'* Submit: submits the plan.'."\n" - .'* Cancel: cancels the plan.'."\n" - .'* Approve: approves the plan.'."\n" - .'* reject: rejectes the plan.'."\n", - 'type' => 'string', - 'example' => 'Approve', - ], - ], - ], - ], - 'TodoTaskActivities' => [ - 'title' => '计划正在执行的操作。', - 'description' => 'The operations that are being performed by the plan.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ActivityName' => [ - 'title' => '计划正在执行的活动名。', - 'description' => 'The name of the operation that is being performed by the plan.'."\n", - 'type' => 'string', - 'example' => 'ApproverNode-1', - ], - 'Tasks' => [ - 'title' => '委派任务列表。', - 'description' => 'The tasks that are pending for review.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Operator' => [ - 'title' => '操作人。', - 'description' => 'The RAM entities that can perform operations on the plan.'."\n", - 'type' => 'object', - 'properties' => [ - 'PrincipalType' => [ - 'title' => '操作人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。', - 'description' => 'The type of the RAM entity. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user.'."\n" - .'* RamRole: a RAM role.'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'PrincipalName' => [ - 'title' => '操作人的RAM实体名称。', - 'description' => 'The name of the RAM entity.'."\n", - 'type' => 'string', - 'example' => 'approver', - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - ], - 'OwnerPrincipalName' => [ - 'title' => '计划归属人的RAM实体名称。', - 'description' => 'The name of the RAM entity to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => 'endUser', - ], - 'Uid' => [ - 'title' => '计划归属人的云账号ID。', - 'description' => 'The ID of the Alibaba Cloud account to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => '146611588617****', - ], - ], - ], - 'ProductDetail' => [ - 'title' => '计划产品详情。', - 'description' => 'The details of the product.'."\n", - 'type' => 'object', - 'properties' => [ - 'ProductArn' => [ - 'title' => '产品ARN。'."\n" - ."\n", - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****', - ], - 'Description' => [ - 'title' => '产品描述。'."\n" - ."\n", - 'description' => 'The description of the product.'."\n", - 'type' => 'string', - 'example' => 'This is a product description.'."\n", - ], - 'CreateTime' => [ - 'title' => '创建时间。'."\n" - ."\n" - .'按照ISO8601标准表示,使用UTC时间,格式:YYYY-MM-DDThh:mm:ssZ。', - 'description' => 'The creation time.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'ProductId' => [ - 'title' => '产品ID。'."\n" - ."\n", - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称。'."\n" - ."\n", - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProviderName' => [ - 'title' => '产品提供者。'."\n" - ."\n", - 'description' => 'The provider of the product.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - 'ProductType' => [ - 'title' => '产品类型。'."\n" - ."\n" - .'取值为Ros,表示阿里云资源编排服务(ROS)。', - 'description' => 'The type of the product.'."\n" - ."\n" - .'The value is fixed as Ros, which indicates ROS.'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - ], - ], - 'ResourceChanges' => [ - 'title' => '计划资源变更列表。', - 'description' => 'An array that consists of the resources to be changed in the plan.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'LogicalResourceId' => [ - 'title' => '资源逻辑ID。', - 'description' => 'The logical ID of the resource.'."\n", - 'type' => 'string', - 'example' => 'instance', - ], - 'PhysicalResourceId' => [ - 'title' => '资源物理ID。'."\n" - ."\n" - .'当Action为Modify或Remove时,返回本参数。', - 'description' => 'The physical ID of the resource.'."\n" - ."\n" - .'> This parameter is returned if the value of Action is Modify or Remove.'."\n", - 'type' => 'string', - 'example' => 'i-bp13lmam3qd9q6il****', - ], - 'Replacement' => [ - 'title' => '模板是否为替换更新。取值:'."\n" - ."\n" - .'True:替换更新。'."\n" - .'False:修改更新。'."\n" - .'Conditional:可能是替换更新,模板运行时才能确定。', - 'description' => 'Indicates whether a replacement update is performed on the template. Valid values:'."\n" - ."\n" - .'* True: A replacement update is performed on the template.'."\n" - .'* False: A change is made on the template.'."\n" - .'* Conditional: A replacement update may be performed on the template. You can check whether a replacement update is performed when the template is in use.'."\n" - ."\n" - .'> This parameter is returned if the value of Action is Modify.'."\n", - 'type' => 'string', - 'example' => 'True', - ], - 'ResourceType' => [ - 'title' => '资源类型。', - 'description' => 'The resource type.'."\n", - 'type' => 'string', - 'example' => 'alicloud_instance'."\n", - ], - 'Action' => [ - 'title' => '资源行为。取值:'."\n" - ."\n" - .'Add:增加资源。'."\n" - .'Modify:修改资源。'."\n" - .'Remove:删除资源。'."\n" - .'None:无变化。', - 'description' => 'The action that is performed on the resource. Valid values:'."\n" - ."\n" - .'* Add'."\n" - .'* Modify'."\n" - .'* Remove'."\n" - .'* None'."\n", - 'type' => 'string', - 'example' => 'Add', - ], - ], - ], - ], - 'ProductVersionDetail' => [ - 'title' => '产品版本详情', - 'description' => 'The details of the product version.'."\n", + 'TagOptionDetail' => [ + 'description' => 'An array that consists of the details of the tag option.', 'type' => 'object', 'properties' => [ - 'Active' => [ - 'title' => '是否启用', - 'description' => 'Indicates whether the product version is visible to end users. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false', - 'type' => 'boolean', - 'example' => 'true', - ], - 'Description' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.'."\n", - 'type' => 'string', - 'example' => 'The description of the product version.'."\n", - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product version was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'Guidance' => [ - 'title' => '推荐信息', - 'description' => 'The recommendation information. Valid values:'."\n" - ."\n" - .'* Default: No recommendation information is provided. This is the default value.'."\n" - .'* Recommended: the recommendation version.'."\n" - .'* Latest: the latest version.'."\n" - .'* Deprecated: the version that is about to be deprecated.'."\n", - 'type' => 'string', - 'example' => 'Default', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name for the version of the product.'."\n", - 'type' => 'string', - 'example' => '1.0.0', - ], - 'ProductId' => [ - 'title' => '产品版本所属的产品ID', - 'description' => 'The ID of the product to which the product version belongs.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'TemplateUrl' => [ - 'title' => '模板的OSS地址', - 'description' => 'The URL of the template.'."\n", - 'type' => 'string', - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => 'The type of the template.'."\n" - ."\n" - .'The value is fixed as RosTerraformTemplate, which indicates that the Terraform template is supported by ROS.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], + 'Active' => ['description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'example' => 'tag-bp1r3mxq3t****', 'title' => ''], + 'Key' => ['description' => 'The key of the tag option.'."\n" + ."\n" + .'The key must be 1 to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The value of the tag option.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.', 'type' => 'string', 'example' => '133413081827****'."\n", 'title' => ''], ], + 'title' => '', + 'example' => '', ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'A48A5F12-6098-54A1-A389-6834AF27****', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PlanDetail\\": {\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\",\\n \\"PlanName\\": \\"DEMO-ECS实例\\",\\n \\"PlanType\\": \\"Ros\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS实例\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"Status\\": \\"PreviewSuccess\\",\\n \\"StatusMessage\\": \\"Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-23T09:47:29Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"OperationType\\": \\"LaunchProduct\\",\\n \\"Description\\": \\"创建ECS。\\",\\n \\"AssignedApprovers\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"approver\\"\\n }\\n ],\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"27740196382623****\\",\\n \\"ApprovalDetail\\": {\\n \\"OperationRecords\\": [\\n {\\n \\"Operator\\": {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalId\\": \\"277401963826235***\\\\n\\",\\n \\"PrincipalName\\": \\"approver\\"\\n },\\n \\"Comment\\": \\"同意。\\",\\n \\"CreateTime\\": \\"2022-03-22T05:56:14Z\\",\\n \\"ApprovalAction\\": \\"Approve\\"\\n }\\n ],\\n \\"TodoTaskActivities\\": [\\n {\\n \\"ActivityName\\": \\"ApproverNode-1\\",\\n \\"Tasks\\": [\\n {\\n \\"Operator\\": {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"approver\\"\\n }\\n }\\n ]\\n }\\n ]\\n },\\n \\"OwnerPrincipalName\\": \\"endUser\\",\\n \\"Uid\\": \\"146611588617****\\"\\n },\\n \\"ProductDetail\\": {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"这是一个产品描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProviderName\\": \\"IT团队\\",\\n \\"ProductType\\": \\"Ros\\"\\n },\\n \\"ResourceChanges\\": [\\n {\\n \\"LogicalResourceId\\": \\"instance\\",\\n \\"PhysicalResourceId\\": \\"i-bp13lmam3qd9q6il****\\",\\n \\"Replacement\\": \\"True\\",\\n \\"ResourceType\\": \\"alicloud_instance\\\\n\\",\\n \\"Action\\": \\"Add\\"\\n }\\n ],\\n \\"ProductVersionDetail\\": {\\n \\"Active\\": true,\\n \\"Description\\": \\"这是一个产品版本描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0.0\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n}","type":"json"}]', - 'title' => 'GetProvisionedProductPlan', - ], - 'ListProvisionedProductPlans' => [ - 'summary' => 'Queries a list of plans. You can query plans from the end user dimension or from the review dimension.', - 'methods' => [ - 'get', - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'CreateTagOption', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTagOption'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TagOptionDetail\\": {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1r3mxq3t****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n },\\n \\"RequestId\\": \\"A48A5F12-6098-54A1-A389-6834AF27****\\"\\n}","type":"json"}]', + ], + 'CreateTemplate' => [ + 'summary' => 'Creates a template. Service Catalog saves the template based on the parameters that you specify and returns the URL of the template.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'list', + 'operationType' => 'create', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'Filters', - 'in' => 'query', + 'name' => 'TemplateBody', + 'in' => 'formData', + 'schema' => ['description' => 'The content of the template.'."\n" + ."\n" + .'For more information about the template syntax, see [Structure of Terraform templates](~~184397~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '{'."\n" + .' "ROSTemplateFormatVersion": "2015-09-01",'."\n" + .' "Transform": "Aliyun::Terraform-v1.1",'."\n" + .' "Workspace": {'."\n" + .' "main.tf": "variable \\"name\\" { default = \\"auto_provisioning_group\\"}"'."\n" + .' },'."\n" + .' "Outputs": {}'."\n" + .'}'], + ], + [ + 'name' => 'TemplateType', + 'in' => 'formData', + 'schema' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'RosTerraformTemplate'], + ], + [ + 'name' => 'TerraformVariables', + 'in' => 'formData', 'style' => 'repeatList', 'schema' => [ - 'title' => '过滤条件。', - 'description' => 'An array that consists of filter conditions.'."\n", + 'description' => 'The variable settings of the Terraform template. You can configure the variables in a structured manner. Service Catalog applies the variable settings to the template.'."\n" + ."\n" + .'> The variables must be defined in the Terraform template.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称。取值:'."\n" - ."\n" - .'ProvisionedProductPlanName:按计划名称查找,完整匹配(忽略大小写)。'."\n" - .'ProvisionedProductPlanApprover:按审批人精确查找,格式为RamUser/RamRole:审批人名称,可多选。'."\n" - .'ProvisionedProductPlanApproverName:按审批人名称查找,直接输入审批人的RAM实体名称,可多选。'."\n" - .'ProvisionedProductPlanStatus:按计划状态查找,直接输入审批人的RAM实体名称,可多选。'."\n" - .'ProvisionedProductPlanOwnerUid:按计划归属云账号ID精确查找。'."\n" - .'FullTextSearch:全文检索,按计划名称查找,模糊匹配。', - 'description' => 'The name of the filter condition. Valid values:'."\n" - ."\n" - .'* ProvisionedProductPlanName: performs exact matches by plan name. Plan names are not case-sensitive.'."\n" - .'* ProvisionedProductPlanApprover: performs exact matches by reviewer. You must specify a reviewer in the `RamUser/RamRole:` format. You can specify multiple reviewers.'."\n" - .'* ProvisionedProductPlanApproverName: performs matches by reviewer name. You must specify the Resource Access Management (RAM) entity name of the reviewer. You can specify multiple reviewer names.'."\n" - .'* ProvisionedProductPlanStatus: performs matches by plan status. You must specify the state of the plan. You can specify multiple states.'."\n" - .'* ProvisionedProductPlanOwnerUid: performs exact matches by ID of Alibaba Cloud account to which a plan belongs.'."\n" - .'* FullTextSearch: performs fuzzy full-text searches by plan name.'."\n", - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [], - 'example' => 'FullTextSearch', - ], - 'Value' => [ - 'title' => '过滤条件的值。'."\n" - ."\n", - 'description' => 'The value of the filter condition.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ECS', - ], + 'VariableName' => ['description' => 'The name of the variable.', 'type' => 'string', 'required' => false, 'example' => 'instance_type', 'title' => ''], + 'Description' => ['description' => 'The description of the variable.'."\n" + ."\n" + .'For more information about the format of variable descriptions, see [Methods and suggestions for Terraform code development](~~322216~~).', 'type' => 'string', 'required' => false, 'example' => '{'."\n" + .' "Label": { "zh-cn": "实例规格", "en": "Instance Type" },'."\n" + .' "AllowedValues": ['."\n" + .' "ecs.s6-c1m1.small",'."\n" + .' "ecs.s6-c1m2.large",'."\n" + .' "ecs.s6-c1m2.xlarge"'."\n" + .' ]'."\n" + .'}'."\n", 'title' => ''], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, - 'maxItems' => 5, + 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], - [ - 'name' => 'SortBy', - 'in' => 'query', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '排序字段。'."\n" - ."\n" - .'取值为CreateTime,表示实例创建时间。', - 'description' => 'The information based on which you want to sort the query results.'."\n" - ."\n" - .'Set the value to CreateTime, which specifies the creation time of plans.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TemplateUrl' => ['description' => 'The URL of the template.', 'type' => 'string', 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + ], + 'example' => '', ], ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'CreateTemplate', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTemplate'], + ], + ], + 'ramActions' => [ [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'title' => '排序方式。取值:'."\n" - ."\n" - .'Asc:正序。'."\n" - .'Desc:倒序。', - 'description' => 'The order in which you want to sort the query results. Valid values:'."\n" - ."\n" - .'* Asc: the ascending order'."\n" - .'* Desc (default): the descending order.'."\n", - 'type' => 'string', - 'required' => false, - 'enumValueTitles' => [ - 'Asc' => 'Asc', - 'Desc' => 'Desc', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], - 'example' => 'Desc', ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\"\\n}","type":"json"}]', + ], + 'DeleteConstraint' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'title' => '页码。'."\n" - ."\n" - .'起始值:1。默认值:1。', - 'description' => 'The number of the page to return.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ [ - 'name' => 'PageSize', - 'in' => 'query', + 'name' => 'ConstraintId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cons-bp1yx7x42v****'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '分页时每页显示的数据行数。'."\n" - ."\n" - .'取值范围:1~100。起始值:1。默认值:10。', - 'description' => 'The number of entries to return on each page.'."\n" - ."\n" - .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + ], + 'example' => '', ], ], - [ - 'name' => 'AccessLevelFilter', - 'in' => 'query', - 'schema' => [ - 'title' => '访问过滤器。取值:'."\n" - ."\n" - .'User(默认值):用户。'."\n" - .'Account:账号。'."\n" - .'ResourceDirectory:资源目录。', - 'description' => 'The access filter. Valid values:'."\n" - ."\n" - .'* User (default): queries the plans that are created by the current requester.'."\n" - .'* Account: queries the plans that belong to the current Alibaba Cloud account.'."\n" - .'* ResourceDirectory: queries the plans that belong to the current resource directory.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'User', + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'DeleteConstraint', + 'summary' => 'Deletes a constraint.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + ], + 'DeletePortfolio' => [ + 'summary' => 'Deletes a product portfolio.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ApprovalFilter', - 'in' => 'query', - 'schema' => [ - 'title' => '审批维度访问过滤器。取值:'."\n" - ."\n" - .'ReceivedRequests:待审批的。'."\n" - .'ApprovalHistory:审批历史。'."\n" - .'AccountRequests:账号级别全部审批。'."\n" - .'ResourceDirectoryRequests:资源目录级别全部审批。', - 'description' => 'The access filter of the review dimension. Valid values:'."\n" - ."\n" - .'* ReceivedRequests: queries plans that are pending for review.'."\n" - .'* ApprovalHistory: queries review history.'."\n" - .'* AccountRequests: queries all plans that belong to the current Alibaba Cloud account.'."\n" - .'* AccountRequests: queries all plans that belong to the current Alibaba Cloud account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ReceivedRequests', - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ [ - 'name' => 'ProvisionedProductId', - 'in' => 'query', - 'schema' => [ - 'title' => '实例ID。', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'pp-bp1ddg1n2a****', - ], + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', - ], - 'PlanDetails' => [ - 'title' => '计划列表。'."\n", - 'description' => 'An array that consists of plans.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PlanId' => [ - 'title' => '计划ID。', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'example' => 'plan-bp18mmdh2u****', - ], - 'PlanName' => [ - 'title' => '计划名称。'."\n", - 'description' => 'The name of the plan.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance-637\\*\\*\\*\\*'."\n", - ], - 'PlanType' => [ - 'title' => '计划类型。'."\n" - ."\n" - .'取值为Ros,表示阿里云资源编排服务(ROS)。', - 'description' => 'The type of the plan.'."\n" - ."\n" - .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID。'."\n", - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1438kf2j****', - ], - 'ProductId' => [ - 'title' => '产品ID。'."\n", - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp1rtrnh2c****', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID。'."\n", - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp19udk22v****', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID。'."\n", - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1c35162d****', - ], - 'Parameters' => [ - 'title' => '用户输入的模板参数。'."\n", - 'description' => 'An array that consists of the parameters in the template.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'title' => '模板中定义的参数名称。'."\n", - 'description' => 'The name of the parameter in the template.'."\n", - 'type' => 'string', - 'example' => 'role_name', - ], - 'ParameterValue' => [ - 'title' => '用户输入的模板参数值。'."\n", - 'description' => 'The value of the parameter in the template.'."\n", - 'type' => 'string', - 'example' => 'Test-8', - ], - ], - ], - ], - 'ProvisionedProductName' => [ - 'title' => '实例名称。', - 'description' => 'The name of the product instance.'."\n", - 'type' => 'string', - 'example' => 'rds-MYSQL-875****', - ], - 'StackId' => [ - 'title' => '阿里云资源编排服务(ROS)资源栈ID。'."\n", - 'description' => 'The ID of the ROS stack.'."\n", - 'type' => 'string', - 'example' => '2599090a-309e-4306-b989-17ba66a9****', - ], - 'StackRegionId' => [ - 'title' => '阿里云资源编排服务(ROS)资源栈所属的地域ID。'."\n", - 'description' => 'The ID of the region to which the ROS stack belongs.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'Status' => [ - 'title' => '计划状态。', - 'description' => 'The state of the plan. Valid values:'."\n" - ."\n" - .'* PreviewInProgress: The plan is being prechecked.'."\n" - .'* PreviewSuccess: The precheck is successful.'."\n" - .'* PreviewFailed: The precheck fails.'."\n" - .'* ApplicationInProgress: The plan is being reviewed.'."\n" - .'* ApplicationApproved: The plan is approved.'."\n" - .'* ApplicationRejected: The approval is rejected.'."\n" - .'* ExecuteInProgress: The plan is being run.'."\n" - .'* ExecuteSuccess: The plan is run.'."\n" - .'* ExecuteFailed: The plan fails to be run.'."\n" - .'* Canceled: The plan is canceled.'."\n", - 'type' => 'string', - 'example' => 'PreviewSuccess', - ], - 'StatusMessage' => [ - 'title' => '计划状态信息。', - 'description' => 'The message returned for the state.'."\n" - ."\n" - .'> This parameter is returned only when PreviewFailed or ExecuteFailed is returned for the Status parameter.'."\n", - 'type' => 'string', - 'example' => 'Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '计划创建时间。'."\n" - ."\n" - .'按照ISO8601标准表示,使用UTC时间,格式:YYYY-MM-DDThh:mm:ssZ。', - 'description' => 'The time when the plan was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-09-13T02:01:22Z', - ], - 'UpdateTime' => [ - 'title' => '计划最后更新时间。'."\n" - ."\n" - .'按照ISO8601标准表示,使用UTC时间,格式:YYYY-MM-DDThh:mm:ssZ。', - 'description' => 'The last time when the task was modified.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-07-18T06:02:35.075Z', - ], - 'Tags' => [ - 'title' => '用户自定义标签列表。'."\n", - 'description' => 'An array that consists of custom tags.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '用户自定义标签键。'."\n", - 'description' => 'The key of the custom tag.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '用户自定义标签值。'."\n", - 'description' => 'The value of the custom tag.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - ], - 'OperationType' => [ - 'title' => '计划操作类型,取值为All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct。', - 'description' => 'The purpose of the plan. Valid values:'."\n" - ."\n" - .'* LaunchProduct: launches the product. This is the default value.'."\n" - .'* UpdateProvisionedProduct: updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'LaunchProduct', - ], - 'AssignedApprovers' => [ - 'title' => '计划审批人列表。', - 'description' => 'An array that consists of reviewers.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PrincipalType' => [ - 'title' => '计划审批人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。', - 'description' => 'The type of the RAM entity of the reviewer. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'PrincipalName' => [ - 'title' => '计划归属人的RAM实体名称。'."\n", - 'description' => 'The RAM entity name of the reviewer.'."\n", - 'type' => 'string', - 'example' => 'endUser', - ], - ], - ], - ], - 'ProductName' => [ - 'title' => '产品名称。'."\n", - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'Create an ECS instance'."\n", - ], - 'Description' => [ - 'title' => '计划描述。', - 'description' => 'The description of the plan.'."\n", - 'type' => 'string', - 'example' => 'For development team.'."\n", - ], - 'OwnerPrincipalType' => [ - 'title' => '计划归属人的RAM实体类型。取值:'."\n" - ."\n" - .'RamUser:RAM用户。'."\n" - .'RamRole:RAM角色。', - 'description' => 'The type of the RAM entity to which the plan belongs. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'OwnerPrincipalId' => [ - 'title' => '计划归属人的RAM实体ID。'."\n", - 'description' => 'The ID of the RAM entity to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => '24477111603637****'."\n", - ], - 'OwnerPrincipalName' => [ - 'title' => '计划归属人的RAM实体名称。', - 'description' => 'The name of the RAM entity to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => 'enduser', - ], - 'Uid' => [ - 'title' => '计划归属人的云账号ID。', - 'description' => 'The ID of the Alibaba Cloud account to which the plan belongs.'."\n", - 'type' => 'string', - 'example' => '146611588617****', - ], - ], - ], - ], - 'TotalCount' => [ - 'title' => '总记录数。', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '16', - ], - 'PageNumber' => [ - 'title' => '页码。'."\n" - ."\n" - .'起始值:1。默认值:1。', - 'description' => 'The page number of the returned page.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'title' => '分页时每页显示的数据行数。'."\n" - ."\n" - .'取值范围:1~100。起始值:1。默认值:10。', - 'description' => 'The number of entries returned per page.'."\n" - ."\n" - .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\",\\n \\"PlanDetails\\": [\\n {\\n \\"PlanId\\": \\"plan-bp18mmdh2u****\\",\\n \\"PlanName\\": \\"DEMO-创建ECS-637****\\",\\n \\"PlanType\\": \\"Ros\\",\\n \\"PortfolioId\\": \\"port-bp1438kf2j****\\",\\n \\"ProductId\\": \\"prod-bp1rtrnh2c****\\",\\n \\"ProductVersionId\\": \\"pv-bp19udk22v****\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1c35162d****\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"role_name\\",\\n \\"ParameterValue\\": \\"Test-8\\"\\n }\\n ],\\n \\"ProvisionedProductName\\": \\"rds-MYSQL-875****\\",\\n \\"StackId\\": \\"2599090a-309e-4306-b989-17ba66a9****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"Status\\": \\"PreviewSuccess\\",\\n \\"StatusMessage\\": \\"Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-09-13T02:01:22Z\\",\\n \\"UpdateTime\\": \\"2022-07-18T06:02:35.075Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"OperationType\\": \\"LaunchProduct\\",\\n \\"AssignedApprovers\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"endUser\\"\\n }\\n ],\\n \\"ProductName\\": \\"创建ECS\\",\\n \\"Description\\": \\"开发团队使用\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\\\n\\",\\n \\"OwnerPrincipalName\\": \\"enduser\\",\\n \\"Uid\\": \\"146611588617****\\"\\n }\\n ],\\n \\"TotalCount\\": 16,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListProvisionedProductPlans', - ], - 'CancelProvisionedProductPlan' => [ - 'summary' => 'Cancels a plan.', - 'methods' => [ - 'post', + 'title' => 'DeletePortfolio', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePortfolio'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeletePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + ], + 'DeleteProduct' => [ + 'summary' => 'Deletes a product.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2512,64 +1441,55 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ - 'name' => 'PlanId', + 'name' => 'ProductId', 'in' => 'formData', - 'schema' => [ - 'title' => '计划ID', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****', - ], + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'DeleteProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'CancelProvisionedProductPlan', ], - 'UpdateProvisionedProductPlan' => [ - 'summary' => 'Updates a plan.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DeleteProductVersion' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -2577,567 +1497,449 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ - 'name' => 'PlanId', + 'name' => 'ProductVersionId', 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '计划ID。', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****'."\n", + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + ], + 'example' => '', ], ], - [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID。', - 'description' => 'The ID of the product portfolio.'."\n" - ."\n" - .'> If the default launch option exists, you do not need to specify PortfolioId. If the default launch option does not exist, you must specify PortfolioId. For more information about how to obtain the value of PortfolioId, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'port-bp1yt7582g****'."\n", + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'DeleteProductVersion', + 'summary' => 'Deletes a product version.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + ], + 'DeleteProvisionedProductPlan' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'ProductId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品ID。', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****'."\n", - ], + 'AK' => [], ], + ], + 'operationType' => 'write', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'delete'], + 'parameters' => [ [ - 'name' => 'ProductVersionId', + 'name' => 'PlanId', 'in' => 'formData', + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'example' => 'plan-bp1jvmdk2k****', 'title' => ''], + ], + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '产品版本ID。', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****'."\n", + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + ], + 'example' => '', ], ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '计划描述。', - 'description' => 'The description of the plan.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Create an ECS instance.'."\n", - ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'DeleteProvisionedProductPlan', + 'summary' => 'Deletes a plan.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProvisionedProductPlan'], ], + ], + 'ramActions' => [ [ - 'name' => 'Parameters', - 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '用户输入的模板参数。'."\n", - 'description' => 'An array that consists of the parameters in the template.'."\n" - ."\n" - .'Maximum value of N: 200.'."\n" - ."\n" - .'> If you specify Parameters, you must specify ParameterKey and ParameterValue.', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'title' => '模板中定义的参数名称。'."\n", - 'description' => 'The name of the parameter in the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'title' => '用户输入的模板参数值。'."\n", - 'description' => 'The value of the parameter in the template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ecs.s6-c1m1.small'."\n", - ], - ], - 'required' => false, + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], ], - 'required' => false, - 'maxItems' => 200, ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + ], + 'DeleteTagOption' => [ + 'summary' => 'Deletes a tag option.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Tags', + 'AK' => [], + ], + ], + 'deprecated' => false, + 'systemTags' => [], + 'parameters' => [ + [ + 'name' => 'TagOptionId', 'in' => 'formData', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '用户自定义标签列表。'."\n", - 'description' => 'An array that consists of custom tags.'."\n" - ."\n" - .'Maximum value of N: 20.'."\n" - ."\n" - .'> '."\n" - .'* If you specify Tags, you must specify Tags.N.Key and Tags.N.Value.'."\n" - .'* The tag of a stack is propagated to each resource that supports the tag feature in the stack.', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '用户自定义标签键。'."\n", - 'description' => 'The key of the custom tag.'."\n" - ."\n" - .'The key can be up to 128 characters in length, and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'k1', - ], - 'Value' => [ - 'title' => '用户自定义标签值。'."\n", - 'description' => 'The value of the custom tag.'."\n" - ."\n" - .'The value can be up to 128 characters in length, and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'v1', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 20, - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1u6mdf3d****'], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'."\n", - ], - 'PlanId' => [ - 'title' => '计划ID', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'example' => 'plan-bp1jvmdk2k****'."\n", - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****'."\n", - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\\\n\\",\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\\\n\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\\\n\\"\\n}","type":"json"}]', - 'title' => 'UpdateProvisionedProductPlan', - ], - 'ApproveProvisionedProductPlan' => [ - 'summary' => 'Reviews a plan.', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DeleteTagOption', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTagOption'], + ], ], - 'schemes' => [ - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\"\\n}","type":"json"}]', + ], + 'DisAssociateTagOptionFromResource' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'PlanId', - 'in' => 'formData', - 'schema' => [ - 'title' => '计划ID', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****', - ], - ], - [ - 'name' => 'ApprovalAction', + 'name' => 'ResourceId', 'in' => 'formData', - 'schema' => [ - 'title' => '审批动作,取值Approve表示同意,Reject表示拒绝', - 'description' => 'The review action. Valid values:'."\n" - ."\n" - .'* Approve'."\n" - .'* Reject'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'Approve', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'The ID of the resource with which the tag option is associated.', 'type' => 'string', 'required' => true, 'example' => 'prod-bp14katy3d****'], ], [ - 'name' => 'Comment', + 'name' => 'TagOptionId', 'in' => 'formData', - 'schema' => [ - 'title' => '审批意见', - 'description' => 'The review description.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Approved. You can create a resource.'."\n", - ], + 'schema' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1u6mdf3d****', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '7E23D1F3-4333-587B-909C-39EA4626****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'DisAssociateTagOptionFromResource', + 'summary' => 'Disassociates a tag option from a resource.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisAssociateTagOptionFromResource'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:DisAssociateTagOptionFromResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#portfolioId}'], + ['validationType' => 'conditional', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'ApproveProvisionedProductPlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7E23D1F3-4333-587B-909C-39EA4626****\\"\\n}","type":"json"}]', ], - 'ListProvisionedProductPlanApprovers' => [ - 'summary' => 'Queries a list of plan reviewers.', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DisassociatePrincipalFromPortfolio' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'delete', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - 'tenantRelevance' => 'publicInformation', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ - 'name' => 'AccessLevelFilter', - 'in' => 'query', - 'schema' => [ - 'title' => '访问过滤器', - 'description' => 'The access filter. Valid values:'."\n" - ."\n" - .'* User (default): queries the plans that are created by the current requester.'."\n" - .'* Account: queries the plans that belong to the current Alibaba Cloud account.'."\n" - .'* ResourceDirectory: queries the plans that belong to the current resource directory.'."\n" - ."\n" - .'> You must specify one of the `ApprovalFilter` and `AccessLevelFilter` parameters, but not both.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'User', - ], + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The product portfolio ID.', 'type' => 'string', 'required' => true, 'example' => 'port-bp1yt7582g****', 'title' => ''], ], [ - 'name' => 'Filters', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '过滤条件,支持Key值为ProvisionedProductPlanApproverName', - 'description' => 'An array that consists of filter conditions.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称', - 'description' => 'The name of the filter condition. Valid values:'."\n" - ."\n" - .'* ProvisionedProductPlanApproverName: performs fuzzy match by reviewer name.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ProvisionedProductPlanApproverName', - ], - 'Value' => [ - 'title' => '过滤条件的值', - 'description' => 'The value of the filter condition.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'approver', - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 5, - ], + 'name' => 'PrincipalType', + 'in' => 'formData', + 'schema' => ['description' => 'The RAM entity type. Valid values:'."\n" + ."\n" + .'- RamUser: A RAM user.'."\n" + ."\n" + .'- RamRole: A RAM role.', 'type' => 'string', 'required' => true, 'example' => 'RamUser', 'title' => ''], ], [ - 'name' => 'ApprovalFilter', - 'in' => 'query', - 'schema' => [ - 'title' => '审批维度访问过滤器', - 'description' => 'The access filter of the review dimension. Valid values:'."\n" - ."\n" - .'* AccountRequests: queries all reviewed plans that belong to the current Alibaba Cloud account.'."\n" - .'* ResourceDirectoryRequests: queries all plans that belong to the current resource directory.'."\n" - ."\n" - .'> You must specify one of the `ApprovalFilter` and `AccessLevelFilter` parameters, but not both.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'AccountRequests', - ], + 'name' => 'PrincipalId', + 'in' => 'formData', + 'schema' => ['description' => 'The RAM entity ID.'."\n" + ."\n" + .'For more information, see [](t2307907.xdita#)and [](t2307884.xdita#).', 'type' => 'string', 'required' => false, 'example' => '24477111603637****', 'title' => ''], + ], + [ + 'name' => 'PrincipalPattern', + 'in' => 'formData', + 'schema' => ['type' => 'string', 'example' => 'user/userName', 'description' => '', 'title' => ''], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'Response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', - ], - 'Approvers' => [ - 'title' => '审批人列表', - 'description' => 'An array that consists of reviewers.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'PrincipalName' => [ - 'title' => '审批人名称', - 'description' => 'The name of the reviewer.'."\n", - 'type' => 'string', - 'example' => 'approver-1', - ], - 'PrincipalType' => [ - 'title' => 'RAM实体类型', - 'description' => 'The type of the Resource Access Management (RAM) entity of the reviewer. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - ], - ], - ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'title' => 'DisassociatePrincipalFromPortfolio', + 'summary' => 'Removes authorization for a principal to access a product portfolio.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DisassociatePrincipalFromPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\",\\n \\"Approvers\\": [\\n {\\n \\"PrincipalName\\": \\"approver-1\\",\\n \\"PrincipalType\\": \\"RamUser\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListProvisionedProductPlanApprovers', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', ], - 'ExecuteProvisionedProductPlan' => [ - 'summary' => 'Runs a plan.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'DisassociateProductFromPortfolio' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ - 'name' => 'PlanId', + 'name' => 'ProductId', 'in' => 'formData', - 'schema' => [ - 'title' => '计划ID', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****', - ], + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], + [ + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PlanId' => [ - 'title' => '计划ID', - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'example' => 'plan-bp1jvmdk2k****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'DisassociateProductFromPortfolio', + 'summary' => 'Removes a product from the product portfolio.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DisassociateProductFromPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\"\\n}","type":"json"}]', - 'title' => 'ExecuteProvisionedProductPlan', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', ], - 'DeleteProvisionedProductPlan' => [ - 'summary' => 'Deletes a plan.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ExecuteProvisionedProductPlan' => [ + 'summary' => 'Runs a plan.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => [], 'parameters' => [ [ 'name' => 'PlanId', 'in' => 'formData', - 'schema' => [ - 'description' => 'The ID of the plan.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'plan-bp1jvmdk2k****', - ], + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PlanId' => ['description' => 'The ID of the plan.', 'type' => 'string', 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DeleteProvisionedProductPlan', - ], - 'GetProvisionedProduct' => [ - 'summary' => 'Queries the information about a product instance.', - 'methods' => [ - 'get', - 'post', + 'title' => 'ExecuteProvisionedProductPlan', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteProvisionedProductPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:ExecuteProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\"\\n}","type":"json"}]', + ], + 'GetConstraint' => [ + 'summary' => 'Queries the information about a constraint.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3145,205 +1947,79 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ProvisionedProductId', + 'name' => 'ConstraintId', 'in' => 'query', - 'schema' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pp-bp1ddg1n2a****', - ], + 'schema' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cons-bp1yx7x42v****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProvisionedProductDetail' => [ - 'title' => '实例信息', - 'description' => 'The details of the product instance.'."\n", + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ConstraintDetail' => [ + 'title' => '', + 'description' => 'The details of the constraint.', 'type' => 'object', 'properties' => [ - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], - 'ProvisionedProductArn' => [ - 'title' => '实例ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product instance.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****', - ], - 'ProvisionedProductName' => [ - 'title' => '实例名称', - 'description' => 'The name of the product instance.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS instance'."\n", - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n", - 'type' => 'string', - 'example' => '1.0', - ], - 'LastTaskId' => [ - 'title' => '上一次执行的任务ID', - 'description' => 'The ID of the task that was last run.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'LastProvisioningTaskId' => [ - 'title' => '上一次执行的实例操作任务ID', - 'description' => 'The ID of the task that was last run on the product instance.'."\n" - ."\n" - .'The task can be one of the following types:'."\n" - ."\n" - .'* LaunchProduct: a task that launches the product.'."\n" - .'* UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: a task that terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'LastSuccessfulProvisioningTaskId' => [ - 'title' => '上一次成功执行的实例操作任务ID', - 'description' => 'The ID of the last task that was successfully run on the product instance.'."\n" - ."\n" - .'The task can be one of the following types:'."\n" - ."\n" - .'* LaunchProduct: a task that launches the product.'."\n" - .'* UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: a task that terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'OwnerPrincipalType' => [ - 'title' => '归属人的RAM实体类型', - 'description' => 'The type of the Resource Access Management (RAM) entity to which the product instance belongs. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'OwnerPrincipalId' => [ - 'title' => '归属人的RAM实体ID', - 'description' => 'The ID of the RAM entity to which the product instance belongs.'."\n", - 'type' => 'string', - 'example' => '24477111603637****', - ], - 'Status' => [ - 'title' => '实例状态', - 'description' => 'The state of the product instance. Valid values:'."\n" - ."\n" - .'* Available: The product instance was available.'."\n" - .'* UnderChange: The information about the product instance was being changed.'."\n" - .'* Error: An exception occurred on the product instance.'."\n", - 'type' => 'string', - 'example' => 'Available', - ], - 'StatusMessage' => [ - 'title' => '实例状态说明', - 'description' => 'The message that is returned for the status of the product instance.'."\n" - ."\n" - .'> This parameter is returned only when Error is returned for the Status parameter.'."\n", - 'type' => 'string', - 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product instance was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:46:27Z', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'StackId' => [ - 'title' => 'ROS资源栈的ID', - 'description' => 'The ID of the Resource Orchestration Service (ROS) stack.'."\n", - 'type' => 'string', - 'example' => '137e31df-3754-40b4-be2f-c793ad84****', - ], - 'StackRegionId' => [ - 'title' => 'ROS资源栈所属的地域ID', - 'description' => 'The ID of the region to which the ROS stack belongs.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ProvisionedProductType' => [ - 'description' => 'The type of the product instance.'."\n" - ."\n" - .'The value is fixed as RosStack, which indicates an ROS stack.'."\n", - 'type' => 'string', - 'example' => 'RosStack', - ], + 'Config' => ['description' => 'The configuration of the constraint.'."\n" + ."\n" + .'Format: { "LocalRoleName": "\\" }.', 'type' => 'string', 'title' => '', 'example' => '{ "LocalRoleName": "TestRole" }'], + 'Description' => ['description' => 'The description of the constraint.', 'type' => 'string', 'title' => '', 'example' => 'Launch as local role TestRole'], + 'CreateTime' => ['description' => 'The time when the constraint was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:11:26Z'], + 'ConstraintId' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'title' => '', 'example' => 'cons-bp1yx7x42v****'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio to which the constraint belongs.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'ProductId' => ['description' => 'The ID of the product for which the constraint is created.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ConstraintType' => ['description' => 'The type of the constraint.'."\n" + ."\n" + .'The value is fixed as Launch, which indicates the launch constraint.', 'type' => 'string', 'title' => '', 'example' => 'Launch'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintDetail\\": {\\n \\"Config\\": \\"{ \\\\\\"LocalRoleName\\\\\\": \\\\\\"TestRole\\\\\\" }\\",\\n \\"Description\\": \\"Launch as local role TestRole\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:26Z\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ConstraintType\\": \\"Launch\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\"\\n }\\n}","type":"json"}]', + 'title' => 'GetConstraint', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductDetail\\": {\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS实例\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"LastTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastSuccessfulProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\",\\n \\"Status\\": \\"Available\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"ProvisionedProductType\\": \\"RosStack\\"\\n }\\n}","type":"json"}]', - 'title' => 'GetProvisionedProduct', + 'translator' => 'manual', ], - 'ListProvisionedProducts' => [ - 'summary' => 'Queries product instances.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetPortfolio' => [ + 'summary' => 'Queries the information about a product portfolio.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3351,327 +2027,202 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - 'tenantRelevance' => 'publicInformation', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'Filters', + 'name' => 'PortfolioId', 'in' => 'query', - 'style' => 'repeatList', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], + ], + ], + 'responses' => [ + 200 => [ + 'headers' => [], 'schema' => [ - 'title' => '过滤条件', - 'description' => 'The filter conditions.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称', - 'description' => 'The name of the filter condition. Valid values:'."\n" + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PortfolioDetail' => [ + 'title' => '', + 'description' => 'The details of the product portfolio.', + 'type' => 'object', + 'properties' => [ + 'PortfolioArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'Description' => ['description' => 'The description of the product portfolio.', 'type' => 'string', 'example' => 'This is a portfolio description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product portfolio was created.'."\n" ."\n" - .'* ProvisionedProductName: performs exact matches by product instance name. Product instance names are not case-sensitive.'."\n" - .'* FullTextSearch: performs full-text searches by product instance name. Fuzzy match is supported.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ProvisionedProductName', + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:11:12Z'], + 'PortfolioName' => ['description' => 'The name of the product portfolio.', 'type' => 'string', 'example' => 'DEMO-IT Service', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product portfolio.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], ], - 'Value' => [ - 'title' => '过滤条件的值', - 'description' => 'The value of the filter condition.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'DEMO-ECS instance'."\n", + 'example' => '', + ], + 'TagOptions' => [ + 'description' => 'The tag options associated with the service portfolio.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Active' => ['description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'example' => 'tag-bp1q65xd3j****', 'title' => ''], + 'Key' => ['description' => 'The key of the tag option.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The value of the tag option.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'The ID of the owner of the tag option.', 'type' => 'string', 'example' => '133413081827****'."\n", 'title' => ''], + ], + 'description' => 'The tag options associated with the service portfolio.', + 'title' => '', + 'example' => '', ], + 'title' => '', + 'example' => '', ], - 'required' => false, ], - 'required' => false, - 'maxItems' => 5, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'description' => 'The field that is used to sort the queried data.'."\n" - ."\n" - .'Set the value to CreateTime, which specifies the time when the product instance was created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', + 'example' => '', ], ], - [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'title' => '排序方式', - 'description' => 'The sorting method. Valid values:'."\n" - ."\n" - .'* Asc: the ascending order.'."\n" - .'* Desc (default): the descending order.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', - ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioDetail\\": {\\n \\"PortfolioArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"Description\\": \\"This is a portfolio description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:12Z\\",\\n \\"PortfolioName\\": \\"DEMO-IT Service\\",\\n \\"ProviderName\\": \\"IT team\\"\\n },\\n \\"TagOptions\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1q65xd3j****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'GetPortfolio', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], + ], + 'translator' => 'manual', + ], + 'GetProductAsAdmin' => [ + 'summary' => 'Queries the information about a product as the administrator.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n" - ."\n" - .'Valid values: 1 to 100. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'AccessLevelFilter', + 'name' => 'ProductId', 'in' => 'query', - 'schema' => [ - 'title' => '访问过滤器', - 'description' => 'The access filter. Valid values:'."\n" - ."\n" - .'* User: queries the product instances that are created by the current requester. This is the default value.'."\n" - .'* Account: queries the product instances that belong to the current Alibaba Cloud account.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'User', - ], + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'ProvisionedProductDetails' => [ - 'title' => '实例列表', - 'description' => 'The product instances.'."\n", + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductDetail' => [ + 'title' => '', + 'description' => 'The information about the product.', + 'type' => 'object', + 'properties' => [ + 'ProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'], + 'Description' => ['description' => 'The description of the product.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'CreateTime' => ['description' => 'The creation time.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], + 'ProductType' => ['description' => 'The type of the product.'."\n" + ."\n" + .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'title' => '', 'example' => 'RosTerraformTemplate'], + ], + 'example' => '', + ], + 'TagOptions' => [ + 'description' => 'The tag options associated with the product.', 'type' => 'array', 'items' => [ - 'title' => 'PortfolioItemType', - 'description' => 'The details of the product instance.'."\n", 'type' => 'object', 'properties' => [ - 'ProvisionedProductName' => [ - 'title' => '实例名称', - 'description' => 'The name of the product instance.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS instance'."\n", - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], - 'ProvisionedProductArn' => [ - 'title' => '实例ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product instance.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n", - 'type' => 'string', - 'example' => '1.0', - ], - 'LastTaskId' => [ - 'title' => '上一次执行的任务ID', - 'description' => 'The ID of the task that was last run.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'LastProvisioningTaskId' => [ - 'title' => '上一次执行的实例操作任务ID', - 'description' => 'The ID of the task that was last run on the product instance.'."\n" - ."\n" - .'The task can be one of the following types:'."\n" - ."\n" - .'* LaunchProduct: a task that launches the product.'."\n" - .'* UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: a task that terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'LastSuccessfulProvisioningTaskId' => [ - 'title' => '上一次成功执行的实例操作任务ID', - 'description' => 'The ID of the last task that was successfully run on the product instance.'."\n" - ."\n" - .'The task can be one of the following types:'."\n" - ."\n" - .'* LaunchProduct: a task that launches the product.'."\n" - .'* UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: a task that terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'OwnerPrincipalType' => [ - 'title' => '归属人的RAM实体类型', - 'description' => 'The type of the Resource Access Management (RAM) entity to which the product instance belongs. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'OwnerPrincipalId' => [ - 'title' => '归属人的RAM实体ID', - 'description' => 'The ID of the RAM entity to which the product instance belongs.'."\n", - 'type' => 'string', - 'example' => '24477111603637****', - ], - 'Status' => [ - 'title' => '实例状态', - 'description' => 'The state of the product instance. Valid values:'."\n" - ."\n" - .'* Available: The product instance was available.'."\n" - .'* UnderChange: The information about the product instance was being changed.'."\n" - .'* Error: An exception occurred on the product instance.'."\n", - 'type' => 'string', - 'example' => 'Available', - ], - 'StatusMessage' => [ - 'title' => '实例状态说明', - 'description' => 'The message that is returned for the status of the product instance.'."\n" - ."\n" - .'> This parameter is returned only when Error is returned for the Status parameter.'."\n", - 'type' => 'string', - 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product instance was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:46:27Z', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'StackId' => [ - 'title' => 'ROS资源栈的ID', - 'description' => 'The ID of the Resource Orchestration Service (ROS) stack.'."\n", - 'type' => 'string', - 'example' => '137e31df-3754-40b4-be2f-c793ad84****', - ], - 'StackRegionId' => [ - 'title' => 'ROS资源栈所属的地域ID', - 'description' => 'The ID of the region to which the ROS stack belongs.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'ProvisionedProductType' => [ - 'description' => 'The type of the product instance.'."\n" - ."\n" - .'The value is fixed as RosStack, which indicates an ROS stack.'."\n", - 'type' => 'string', - 'example' => 'RosStack', - ], + 'Active' => ['description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'example' => 'tag-bp1q65xd3j****', 'title' => ''], + 'Key' => ['description' => 'The key of the tag option.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The value of the tag option.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'The ID of the owner of the tag option.', 'type' => 'string', 'example' => '133413081827****'."\n", 'title' => ''], ], + 'description' => 'The tag options associated with the product.', + 'title' => '', + 'example' => '', ], - ], - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of entries returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductDetail\\": {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"This is a product description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n },\\n \\"TagOptions\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1q65xd3j****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'GetProductAsAdmin', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductAsAdmin', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ProvisionedProductDetails\\": [\\n {\\n \\"ProvisionedProductName\\": \\"DEMO-ECS实例\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"LastTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastSuccessfulProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\",\\n \\"Status\\": \\"Available\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"ProvisionedProductType\\": \\"RosStack\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListProvisionedProducts', + 'translator' => 'manual', ], - 'GetTask' => [ - 'summary' => 'Queries the information about a task.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetProductAsEndUser' => [ + 'summary' => 'Queries the information about a product as a user.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3681,266 +2232,92 @@ 'deprecated' => false, 'systemTags' => [ 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ - 'name' => 'TaskId', - 'in' => 'formData', - 'schema' => [ - 'title' => '任务ID', - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'task-bp1dmg242c****', - ], + 'name' => 'ProductId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TaskDetail' => [ - 'title' => '任务信息', - 'description' => 'The details of the task.'."\n", + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductSummary' => [ + 'title' => '', + 'description' => 'The information about the product.', 'type' => 'object', 'properties' => [ - 'TaskId' => [ - 'title' => '任务ID', - 'description' => 'The ID of the task.'."\n", - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'TaskType' => [ - 'title' => '任务类型', - 'description' => 'The type of the task. Valid values:'."\n" - ."\n" - .'* LaunchProduct: a task that launches the product.'."\n" - .'* UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" - .'* TerminateProvisionedProduct: a task that terminates the product instance.'."\n", - 'type' => 'string', - 'example' => 'LaunchProduct', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n", - 'type' => 'string', - 'example' => '1.0', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => 'The ID of the product instance.'."\n", - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], - 'ProvisionedProductName' => [ - 'title' => '实例名称', - 'description' => 'The name of the product instance.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS instance'."\n", - ], - 'Parameters' => [ - 'description' => 'The parameters that are specified in the template.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'description' => 'The name of the input parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'description' => 'The value of the input parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'ecs.s6-c1m1.small', - ], - ], - ], - ], - 'Outputs' => [ - 'description' => 'The output parameters of the template.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'OutputKey' => [ - 'description' => 'The name of the output parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'instance_id', - ], - 'OutputValue' => [ - 'description' => 'The value of the output parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'i-xxxxxx', - ], - 'Description' => [ - 'description' => 'The description of the output parameter for the template.'."\n", - 'type' => 'string', - 'example' => 'The ECS instance ID.', - ], - ], - ], - ], - 'Log' => [ - 'description' => 'The logs of the instance.'."\n", - 'type' => 'object', - 'properties' => [ - 'TerraformLogs' => [ - 'description' => 'The Terraform logs.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Command' => [ - 'description' => 'The name of the Terraform command that is run. Valid values:'."\n" - ."\n" - .'* apply'."\n" - .'* plan'."\n" - .'* destroy'."\n" - .'* version'."\n" - ."\n" - .'For more information about Terraform commands, see [Basic CLI Features](https://www.terraform.io/cli/commands).'."\n", - 'type' => 'string', - 'example' => 'apply', - ], - 'Stream' => [ - 'description' => 'The output stream. Valid values:'."\n" - ."\n" - .'* stdout: a standard output stream'."\n" - .'* stderr: a standard error stream'."\n", - 'type' => 'string', - 'example' => 'stdout', - ], - 'Content' => [ - 'description' => 'The content of the output stream that is returned after the command is run.'."\n", - 'type' => 'string', - 'example' => 'Apply complete! Resources: 42 added, 0 changed, 0 destroyed.', - ], - ], - ], - ], - ], - ], - 'Status' => [ - 'title' => '任务状态', - 'description' => 'The state of the task. Valid values:'."\n" - ."\n" - .'* Succeeded: The task was successful.'."\n" - .'* InProgress: The task was in progress.'."\n" - .'* Failed: The task failed.'."\n", - 'type' => 'string', - 'example' => 'Succeeded', - ], - 'StatusMessage' => [ - 'title' => '任务状态说明', - 'description' => 'The message that is returned for the status of the task.'."\n" - ."\n" - .'> This parameter is returned only when Failed is returned for the Status parameter.'."\n", - 'type' => 'string', - 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the task was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:46:27Z', - ], - 'UpdateTime' => [ - 'description' => 'The time when the task was last modified.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-05-23T09:47:29Z', - ], - 'TaskTags' => [ - 'description' => 'The custom tags.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The custom tag key.'."\n" - ."\n" - .'The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The custom tag value.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - ], - ], - ], + 'Description' => ['description' => 'The description of the product.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], + 'ProductType' => ['description' => 'The type of the product.'."\n" + ."\n" + .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'HasDefaultLaunchOption' => ['description' => 'Indicates whether the default launch option exists. Valid values:'."\n" + ."\n" + .'- true: The default launch option exists. In this case, the PortfolioId parameter is not required when the product is launched or when the information about the product instance is updated.'."\n" + ."\n" + .'- false: The default launch option does not exist. In this case, the PortfolioId parameter is required when the product is launched or when the information about the product instance is updated. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n" + ."\n" + .'> If the product is added to only one product portfolio, the default launch option exists. If the product is added to multiple product portfolios, multiple launch options exist at the same time. However, no default launch options exist.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: The Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: The standard ROS template.', 'type' => 'string', 'example' => 'RosTerraformTemplate', 'title' => ''], ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductSummary\\": {\\n \\"Description\\": \\"This is a product description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"HasDefaultLaunchOption\\": true,\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n}","type":"json"}]', + 'title' => 'GetProductAsEndUser', + 'description' => 'Make sure that you are granted the permissions to manage relevant products as a user by an administrator. For more information, see [Manage access permissions](~~405233~~).', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductAsEndUser', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TaskDetail\\": {\\n \\"TaskId\\": \\"task-bp1dmg242c****\\",\\n \\"TaskType\\": \\"LaunchProduct\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS实例\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"Outputs\\": [\\n {\\n \\"OutputKey\\": \\"instance_id\\",\\n \\"OutputValue\\": \\"i-xxxxxx\\",\\n \\"Description\\": \\"The ECS instance ID.\\"\\n }\\n ],\\n \\"Log\\": {\\n \\"TerraformLogs\\": [\\n {\\n \\"Command\\": \\"apply\\",\\n \\"Stream\\": \\"stdout\\",\\n \\"Content\\": \\"Apply complete! Resources: 42 added, 0 changed, 0 destroyed.\\"\\n }\\n ]\\n },\\n \\"Status\\": \\"Succeeded\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-23T09:47:29Z\\",\\n \\"TaskTags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ]\\n }\\n}","type":"json"}]', - 'title' => 'GetTask', + 'translator' => 'manual', ], - 'ListTasks' => [ - 'summary' => 'Queries tasks.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetProductVersion' => [ + 'summary' => 'Queries a product version.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -3948,1358 +2325,925 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', - ], - ], - [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'title' => '排序方式', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], - ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - ], - [ - 'name' => 'ProvisionedProductId', + 'name' => 'ProductVersionId', 'in' => 'query', - 'schema' => [ - 'title' => '实例ID', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'pp-bp1ddg1n2a****', - ], + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'TaskDetails' => [ - 'title' => '实例列表', - 'description' => '', - 'type' => 'array', - 'items' => [ - 'title' => 'PortfolioItemType', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'TaskId' => [ - 'title' => '实例名称', - 'description' => '代表资源名称的资源属性字段', - 'type' => 'string', - 'example' => 'task-bp1dmg242c****', - ], - 'TaskType' => [ - 'title' => '实例ARN', - 'description' => '', - 'type' => 'string', - 'example' => 'LaunchProduct', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => '', - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => '', - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => '', - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => '', - 'type' => 'string', - 'example' => '1.0', - ], - 'ProvisionedProductId' => [ - 'title' => '实例ID', - 'description' => '', - 'type' => 'string', - 'example' => 'pp-bp1ddg1n2a****', - ], - 'ProvisionedProductName' => [ - 'title' => '实例名称', - 'description' => '', - 'type' => 'string', - 'example' => '', - ], - 'Parameters' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ParameterKey' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'instance_type', - ], - 'ParameterValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'ecs.s6-c1m1.small', - ], - ], - ], - ], - 'Outputs' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'OutputKey' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'instance_id', - ], - 'OutputValue' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'i-xxxxxx', - ], - 'Description' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'The ECS instance ID.', - ], - ], - ], - ], - 'Log' => [ - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'TerraformLogs' => [ - 'description' => '', - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Command' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'apply', - ], - 'Stream' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'stdout', - ], - 'Content' => [ - 'description' => '', - 'type' => 'string', - 'example' => 'Apply complete! Resources: 42 added, 0 changed, 0 destroyed.', - ], - ], - ], - ], - ], - ], - 'Status' => [ - 'title' => '实例状态', - 'description' => '', - 'type' => 'string', - 'example' => 'Succeeded', - ], - 'StatusMessage' => [ - 'title' => '实例状态说明', - 'description' => '', - 'type' => 'string', - 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '', - 'type' => 'string', - 'example' => '2022-05-23T09:46:27Z', - ], - 'UpdateTime' => [ - 'description' => '', - 'type' => 'string', - 'example' => '2022-05-26T03:28:45Z', - ], + 'ProductVersionDetail' => [ + 'title' => '', + 'description' => 'The details of the product version.', + 'type' => 'object', + 'properties' => [ + 'Active' => [ + 'description' => 'Indicates whether the product version is visible to end users. Valid values:'."\n" + ."\n" + .'- true: The product version is visible to end users. This is the default value.'."\n" + ."\n" + .'- false: The product version is invisible to end users.', + 'enumValueTitles' => [], + 'type' => 'boolean', + 'title' => '', + 'example' => 'true', ], + 'Description' => ['description' => 'The description of the product version.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product version was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'Guidance' => ['description' => 'The recommendation information. Valid values:'."\n" + ."\n" + .'- Default: No recommendation information is provided. This is the default value.'."\n" + ."\n" + .'- Recommended: the recommendation version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be deprecated.', 'type' => 'string', 'title' => '', 'example' => 'Default'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name of the product version.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'ProductId' => ['description' => 'The ID of the product to which the product version belongs.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'TemplateUrl' => ['description' => 'The URL of the template.', 'type' => 'string', 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: The Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: The standard ROS template.', 'type' => 'string', 'title' => '', 'example' => 'RosTerraformTemplate'], ], + 'example' => '', ], - 'RequestId' => [ - 'title' => '请求ID', - 'description' => '', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'PageNumber' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ProductVersionDetail\\": {\\n \\"Active\\": true,\\n \\"Description\\": \\"This is a product version description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n },\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', + 'title' => 'GetProductVersion', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskDetails\\": [\\n {\\n \\"TaskId\\": \\"task-bp1dmg242c****\\",\\n \\"TaskType\\": \\"LaunchProduct\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"Test-ECS\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"Outputs\\": [\\n {\\n \\"OutputKey\\": \\"instance_id\\",\\n \\"OutputValue\\": \\"i-xxxxxx\\",\\n \\"Description\\": \\"The ECS instance ID.\\"\\n }\\n ],\\n \\"Log\\": {\\n \\"TerraformLogs\\": [\\n {\\n \\"Command\\": \\"apply\\",\\n \\"Stream\\": \\"stdout\\",\\n \\"Content\\": \\"Apply complete! Resources: 42 added, 0 changed, 0 destroyed.\\"\\n }\\n ]\\n },\\n \\"Status\\": \\"Succeeded\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-26T03:28:45Z\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListTasks', + 'translator' => 'manual', ], - 'CopyProduct' => [ - 'summary' => 'Replicates a product.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'https', - ], + 'GetProvisionedProduct' => [ + 'summary' => 'Queries the information about a product instance.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'SourceProductArn', - 'in' => 'formData', - 'schema' => [ - 'title' => '', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the source product.'."\n" - ."\n" - .'> The source product can belong to the current account or belong to a product portfolio that is shared by another account.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'."\n", - ], + 'name' => 'ProvisionedProductId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], ], - [ - 'name' => 'TargetProductName', - 'in' => 'formData', - 'schema' => [ - 'description' => 'The name of the destination product.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'DEMO-ECS', - ], - ], - ], - 'responses' => [ - 200 => [ + ], + 'responses' => [ + 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProvisionedProductDetail' => [ + 'title' => '', + 'description' => 'The details of the product instance.', + 'type' => 'object', + 'properties' => [ + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + 'ProvisionedProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****'], + 'ProvisionedProductName' => ['description' => 'The name of the product instance.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => ''], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name of the product version.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'LastTaskId' => ['description' => 'The ID of the task that was last run.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'LastProvisioningTaskId' => ['description' => 'The ID of the task that was last run on the product instance.'."\n" + ."\n" + .'The task can be one of the following types:'."\n" + ."\n" + .'- LaunchProduct: a task that launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: a task that terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'LastSuccessfulProvisioningTaskId' => ['description' => 'The ID of the last task that was successfully run on the product instance.'."\n" + ."\n" + .'The task can be one of the following types:'."\n" + ."\n" + .'- LaunchProduct: a task that launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: a task that terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'OwnerPrincipalType' => ['description' => 'The type of the Resource Access Management (RAM) entity to which the product instance belongs. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'OwnerPrincipalId' => ['description' => 'The ID of the RAM entity to which the product instance belongs.', 'type' => 'string', 'title' => '', 'example' => '24477111603637****'], + 'Status' => ['description' => 'The state of the product instance. Valid values:'."\n" + ."\n" + .'- Available: The product instance was available.'."\n" + ."\n" + .'- UnderChange: The information about the product instance was being changed.'."\n" + ."\n" + .'- Error: An exception occurred on the product instance.', 'type' => 'string', 'title' => '', 'example' => 'Available'], + 'StatusMessage' => ['description' => 'The message that is returned for the status of the product instance.'."\n" + ."\n" + .'> This parameter is returned only when Error is returned for the Status parameter.', 'type' => 'string', 'title' => '', 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the product instance was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:46:27Z'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'StackId' => ['description' => 'The ID of the Resource Orchestration Service (ROS) stack.', 'type' => 'string', 'title' => '', 'example' => '137e31df-3754-40b4-be2f-c793ad84****'], + 'StackRegionId' => ['description' => 'The ID of the region to which the ROS stack belongs.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'], + 'ProvisionedProductType' => ['description' => 'The type of the product instance.'."\n" + ."\n" + .'The value is fixed as RosStack, which indicates an ROS stack.', 'type' => 'string', 'example' => 'RosStack', 'title' => ''], + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\"\\n}","type":"json"}]', - 'title' => 'CopyProduct', - ], - 'CreateProduct' => [ - 'summary' => 'Creates a product.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductDetail\\": {\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS-Instance\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"LastTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastSuccessfulProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\",\\n \\"Status\\": \\"Available\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"ProvisionedProductType\\": \\"RosStack\\"\\n }\\n}","type":"json"}]', + 'title' => 'GetProvisionedProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionedProduct'], ], - 'tenantRelevance' => 'publicInformation', ], - 'parameters' => [ - [ - 'name' => 'ProductName', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'DEMO-Create an ECS instance'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], - ], - [ - 'name' => 'ProductType', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品类型', - 'description' => 'The type of the product.'."\n" - ."\n" - .'Set the value to Ros, which specifies Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'Ros', - ], - ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品描述', - 'description' => 'The description of the product.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'The description of the product.'."\n", - ], - ], - [ - 'name' => 'ProviderName', - 'in' => 'formData', - 'schema' => [ - 'title' => '提供者名称', - 'description' => 'The provider of the product.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'IT team'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], - ], + 'ramActions' => [ [ - 'name' => 'ProductVersionParameters', - 'in' => 'formData', - 'style' => 'json', - 'schema' => [ - 'title' => '产品版本相关的参数', - 'description' => 'The information about the product version.'."\n", - 'type' => 'object', - 'properties' => [ - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '1.0', - 'maxLength' => 100, - 'minLength' => 1, - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => 'The type of the template.'."\n" - ."\n" - .'Set the value to RosTerraformTemplate, which indicates the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'RosTerraformTemplate', - ], - 'TemplateUrl' => [ - 'title' => '模板的URL地址', - 'description' => 'The URL of the template.'."\n" - ."\n" - .'To obtain the URL of a template, you can call the [CreateTemplate](~~CreateTemplate~~) operation.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], - 'Description' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'The description of the product version.'."\n", - ], - 'Guidance' => [ - 'title' => '推荐信息', - 'description' => 'The recommended product version. Valid values:'."\n" - ."\n" - .'* Default (default): No product version is recommended.'."\n" - .'* Recommended: the stable version.'."\n" - .'* Latest: the latest version.'."\n" - .'* Deprecated: the version that is about to be deprecated.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Default', - ], - 'Active' => [ - 'title' => '是否启用', - 'description' => 'Specifies whether to enable the product version. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], ], - 'required' => false, - ], - ], - [ - 'name' => 'TemplateType', - 'in' => 'formData', - 'schema' => [ - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'RosTerraformTemplate', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductVersionId' => [ - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], ], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', - 'title' => 'CreateProduct', - 'description' => 'Before you call the CreateProduct operation, you must call the [CreateTemplate](~~CreateTemplate~~) operation to create a template.'."\n", + 'translator' => 'manual', ], - 'DeleteProduct' => [ - 'summary' => 'Deletes a product.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'GetProvisionedProductPlan' => [ + 'summary' => 'Queries a provisioned product plan.', + 'methods' => ['post', 'get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ProductId', + 'name' => 'PlanId', 'in' => 'formData', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'example' => 'plan-bp1jvmdk2k****', 'title' => ''], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DeleteProduct', - ], - 'UpdateProduct' => [ - 'summary' => 'Updates the information about a product.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], - 'parameters' => [ - [ - 'name' => 'ProductName', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品名称', - 'description' => '代表资源名称的资源属性字段', - 'type' => 'string', - 'required' => true, - 'example' => '', - 'maxLength' => 100, - 'minLength' => 1, - ], - ], - [ - 'name' => 'ProductId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品ID', - 'description' => '代表资源一级ID的资源属性字段', - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], - ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品描述', - 'description' => '产品描述', - 'type' => 'string', - 'required' => false, - 'example' => '', - ], - ], - [ - 'name' => 'ProviderName', - 'in' => 'formData', - 'schema' => [ - 'title' => '提供者名称', - 'description' => '产品提供方', - 'type' => 'string', - 'required' => true, - 'example' => '', - 'maxLength' => 100, - 'minLength' => 1, - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => '', - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => '', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => '', - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - ], - ], - ], - ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\"\\n}","type":"json"}]', - 'title' => 'UpdateProduct', - ], - 'GetProductAsAdmin' => [ - 'summary' => 'Queries the information about a product as the administrator.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], - 'parameters' => [ - [ - 'name' => 'ProductId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PlanDetail' => [ + 'title' => '', + 'description' => 'The details of the plan.', + 'type' => 'object', + 'properties' => [ + 'PlanId' => ['description' => 'The ID of the plan.', 'type' => 'string', 'title' => '', 'example' => 'plan-bp1jvmdk2k****'], + 'PlanName' => ['description' => 'The name of the plan.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => ''], + 'PlanType' => ['description' => 'The type of the plan.'."\n" + ."\n" + .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + 'ProvisionedProductName' => ['description' => 'The name of the product instance.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => ''], + 'Parameters' => [ + 'title' => '', + 'description' => 'An array that consists of the parameters in the template.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the input parameter for the template.', 'type' => 'string', 'title' => '', 'example' => 'instance_type'], + 'ParameterValue' => ['description' => 'The value of the input parameter for the template.', 'type' => 'string', 'title' => '', 'example' => 'ecs.s6-c1m1.small'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'StackId' => ['description' => 'The ID of the ROS stack.', 'type' => 'string', 'title' => '', 'example' => '137e31df-3754-40b4-be2f-c793ad84****'], + 'StackRegionId' => ['description' => 'The ID of the region to which the ROS stack belongs.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'], + 'Status' => ['description' => 'The state of the plan. Valid values:'."\n" + ."\n" + .'- PreviewInProgress: The plan is being prechecked.'."\n" + ."\n" + .'- PreviewSuccess: The precheck is successful.'."\n" + ."\n" + .'- PreviewFailed: The precheck fails.'."\n" + ."\n" + .'- ApplicationInProgress: The plan is being approved.'."\n" + ."\n" + .'- ApplicationApproved: The plan is approved.'."\n" + ."\n" + .'- ApplicationRejected: The approval is rejected.'."\n" + ."\n" + .'- ExecuteInProgress: The plan is being run.'."\n" + ."\n" + .'- ExecuteSuccess: The plan is run.'."\n" + ."\n" + .'- ExecuteFailed: The plan fails to be run.'."\n" + ."\n" + .'- Canceled: The plan is canceled.', 'type' => 'string', 'title' => '', 'example' => 'PreviewSuccess'], + 'StatusMessage' => ['description' => 'The message returned for the state.'."\n" + ."\n" + .'> This parameter is returned only when PreviewFailed or ExecuteFailed is returned for Status.', 'type' => 'string', 'title' => '', 'example' => 'Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the plan was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:46:27Z'], + 'UpdateTime' => ['description' => 'The last time when the task was modified.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:47:29Z'], + 'Tags' => [ + 'title' => '', + 'description' => 'An array that consists of custom tags.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the custom tag.', 'type' => 'string', 'title' => '', 'example' => 'k1'], + 'Value' => ['description' => 'The value of the custom tag.', 'type' => 'string', 'title' => '', 'example' => 'v1'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'OperationType' => ['description' => 'The purpose of the plan. Valid values:'."\n" + ."\n" + .'- LaunchProduct: launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'LaunchProduct'], + 'Description' => ['description' => 'The description of the plan.', 'type' => 'string', 'example' => 'Create ECS', 'title' => ''], + 'AssignedApprovers' => [ + 'title' => '', + 'description' => 'An array that consists of reviewers.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'PrincipalType' => ['description' => 'The type of the Resource Access Management (RAM) entity of the plan approver. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user.'."\n" + ."\n" + .'- RamRole: a RAM role.', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'PrincipalName' => ['description' => 'The name of the RAM entity of the plan approver.', 'type' => 'string', 'title' => '', 'example' => 'approver'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'OwnerPrincipalType' => ['description' => 'The type of the RAM entity to which the plan belongs. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'OwnerPrincipalId' => ['description' => 'The ID of the RAM entity to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => '27740196382623****'], + 'ApprovalDetail' => [ + 'title' => '', + 'description' => 'The approval details of the plan.', + 'type' => 'object', + 'properties' => [ + 'OperationRecords' => [ + 'title' => '', + 'description' => 'The operation records.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Operator' => [ + 'title' => '', + 'description' => 'The RAM entities that have performed operations on the plan.', + 'type' => 'object', + 'properties' => [ + 'PrincipalType' => ['description' => 'The type of the RAM entity. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user.'."\n" + ."\n" + .'- RamRole: a RAM role.', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'PrincipalId' => ['description' => 'The ID of the RAM entity.', 'type' => 'string', 'title' => '', 'example' => '277401963826235***'."\n"], + 'PrincipalName' => ['description' => 'The name RAM entity that servers as the operator.', 'type' => 'string', 'title' => '', 'example' => 'approver'], + ], + 'example' => '', + ], + 'Comment' => ['description' => 'The approval comment of the operator.', 'type' => 'string', 'example' => 'Agree', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the operation was performed.', 'type' => 'string', 'title' => '', 'example' => '2022-03-22T05:56:14Z'], + 'ApprovalAction' => ['description' => 'The operation that is performed by the operator on the plan. Valid values:'."\n" + ."\n" + .'- Submit: submits the plan.'."\n" + ."\n" + .'- Cancel: cancels the plan.'."\n" + ."\n" + .'- Approve: approves the plan.'."\n" + ."\n" + .'- reject: rejectes the plan.', 'type' => 'string', 'title' => '', 'example' => 'Approve'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + 'TodoTaskActivities' => [ + 'title' => '', + 'description' => 'The operations that are being performed by the plan.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ActivityName' => ['description' => 'The name of the operation that is being performed by the plan.', 'type' => 'string', 'title' => '', 'example' => 'ApproverNode-1'], + 'Tasks' => [ + 'title' => '', + 'description' => 'The tasks that are pending for review.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Operator' => [ + 'title' => '', + 'description' => 'The RAM entities that can perform operations on the plan.', + 'type' => 'object', + 'properties' => [ + 'PrincipalType' => ['description' => 'The type of the RAM entity. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user.'."\n" + ."\n" + .'- RamRole: a RAM role.', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'PrincipalName' => ['description' => 'The name of the RAM entity.', 'type' => 'string', 'title' => '', 'example' => 'approver'], + ], + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', + ], + ], + 'example' => '', + ], + 'OwnerPrincipalName' => ['description' => 'The name of the RAM entity to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => 'endUser'], + 'Uid' => ['description' => 'The ID of the Alibaba Cloud account to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => '146611588617****'], + ], + 'example' => '', ], 'ProductDetail' => [ - 'title' => '产品详情', - 'description' => 'The information about the product.'."\n", + 'title' => '', + 'description' => 'The details of the product.', 'type' => 'object', 'properties' => [ - 'ProductArn' => [ - 'title' => '产品ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****', - ], - 'Description' => [ - 'title' => '产品描述', - 'description' => 'The description of the product.'."\n", - 'type' => 'string', - 'example' => 'This is a product description.'."\n", - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The creation time.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名称', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProviderName' => [ - 'title' => '提供者名称', - 'description' => 'The provider of the product.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - 'ProductType' => [ - 'title' => '产品类型', - 'description' => 'The type of the product.'."\n" - ."\n" - .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'TemplateType' => [ - 'title' => '产品模板类型', - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], + 'ProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'], + 'Description' => ['description' => 'The description of the product.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'CreateTime' => ['description' => 'The creation time.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], + 'ProductType' => ['description' => 'The type of the product.'."\n" + ."\n" + .'The value is fixed as Ros, which indicates ROS.', 'type' => 'string', 'title' => '', 'example' => 'Ros'], ], + 'example' => '', ], - 'TagOptions' => [ - 'description' => 'The tag options associated with the product.', + 'ResourceChanges' => [ + 'title' => '', + 'description' => 'An array that consists of the resources to be changed in the plan.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'example' => 'tag-bp1q65xd3j****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - 'Owner' => [ - 'description' => 'The ID of the owner of the tag option.'."\n", - 'type' => 'string', - 'example' => '133413081827****'."\n", - ], + 'LogicalResourceId' => ['description' => 'The logical ID of the resource.', 'type' => 'string', 'title' => '', 'example' => 'instance'], + 'PhysicalResourceId' => ['description' => 'The physical ID of the resource.'."\n" + ."\n" + .'> This parameter is returned if the value of Action is Modify or Remove.', 'type' => 'string', 'title' => '', 'example' => 'i-bp13lmam3qd9q6il****'], + 'Replacement' => ['description' => 'Indicates whether a replacement update is performed on the template. Valid values:'."\n" + ."\n" + .'- True: A replacement update is performed on the template.'."\n" + ."\n" + .'- False: A change is made on the template.'."\n" + ."\n" + .'- Conditional: A replacement update may be performed on the template. You can check whether a replacement update is performed when the template is in use.'."\n" + ."\n" + .'> This parameter is returned if the value of Action is Modify.', 'type' => 'string', 'title' => '', 'example' => 'True'], + 'ResourceType' => ['description' => 'The resource type.', 'type' => 'string', 'title' => '', 'example' => 'alicloud_instance'."\n"], + 'Action' => ['description' => 'The action that is performed on the resource. Valid values:'."\n" + ."\n" + .'- Add'."\n" + ."\n" + .'- Modify'."\n" + ."\n" + .'- Remove'."\n" + ."\n" + .'- None', 'type' => 'string', 'title' => '', 'example' => 'Add'], ], - 'description' => 'The tag options associated with the product.', + 'description' => '', + 'title' => '', + 'example' => '', ], + 'example' => '', ], - ], - ], - ], - ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductDetail\\": {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"这是一个产品描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProviderName\\": \\"IT团队\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n },\\n \\"TagOptions\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1q65xd3j****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'GetProductAsAdmin', - ], - 'ListProductsAsAdmin' => [ - 'summary' => 'Queries products as an administrator.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], - ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - 'tenantRelevance' => 'publicInformation', - ], - 'parameters' => [ - [ - 'name' => 'PortfolioId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'Filters', - 'in' => 'query', - 'style' => 'repeatList', - 'schema' => [ - 'title' => '过滤条件', - 'description' => 'The filter conditions.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称', - 'description' => 'The name of the filter condition. Valid values:'."\n" + 'ProductVersionDetail' => [ + 'title' => '', + 'description' => 'The details of the product version.', + 'type' => 'object', + 'properties' => [ + 'Active' => ['description' => 'Indicates whether the product version is visible to end users. Valid values:'."\n" ."\n" - .'* ProductName: performs exact matches by product name. Product names are not case-sensitive.'."\n" - .'* FullTextSearch: performs full-text searches by product name, product provider, or product description. Fuzzy match is supported.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'ProductName', - ], - 'Value' => [ - 'title' => '过滤条件的值', - 'description' => 'The value of the filter condition.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - ], - 'required' => false, - ], - 'required' => false, - 'maxItems' => 5, - ], - ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'description' => 'The field that is used to sort the queried data.'."\n" - ."\n" - .'Set the value to CreateTime, which specifies the time when the product was created.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', - ], - ], - [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'title' => '排序方式', - 'description' => 'The order in which you want to sort the queried data. Valid values:'."\n" - ."\n" - .'* Asc: the ascending order'."\n" - .'* Desc: the descending order'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', - ], - ], - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\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" - ."\n" - .'Valid values: 1 to 100. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], - ], - [ - 'name' => 'Scope', - 'in' => 'query', - 'schema' => [ - 'description' => 'The query scope. Valid values:'."\n" - ."\n" - .'* Local: the products that are created by using the current account. This is the default value.'."\n" - .'* Import: the products that are imported from other accounts.'."\n" - .'* All: all available products.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Local', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductDetails' => [ - 'title' => '产品列表', - 'description' => 'The products.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the product.'."\n", - 'type' => 'object', - 'properties' => [ - 'ProductArn' => [ - 'title' => '产品ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****', - ], - 'Description' => [ - 'title' => '产品描述', - 'description' => 'The description of the product.'."\n", - 'type' => 'string', - 'example' => 'The description of the product.'."\n", - ], - 'CreateTime' => [ - 'title' => '产品创建时间', - 'description' => 'The time when the product was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'ProductId' => [ - 'title' => '产品ID', - 'description' => 'The product ID.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ProductName' => [ - 'title' => '产品名字', - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance'."\n", - ], - 'ProviderName' => [ - 'title' => '产品提供方', - 'description' => 'The provider of the product.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - 'ProductType' => [ - 'title' => '产品类型', - 'description' => 'The type of the product.'."\n" - ."\n" - .'The value is set to Ros, which indicates Resource Orchestration Service (ROS).'."\n", - 'type' => 'string', - 'example' => 'Ros', - ], - 'TemplateType' => [ - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], - ], + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'Description' => ['description' => 'The description of the product version.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product version was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'Guidance' => ['description' => 'The recommendation information. Valid values:'."\n" + ."\n" + .'- Default: No recommendation information is provided. This is the default value.'."\n" + ."\n" + .'- Recommended: the recommendation version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be deprecated.', 'type' => 'string', 'title' => '', 'example' => 'Default'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name for the version of the product.', 'type' => 'string', 'title' => '', 'example' => '1.0.0'], + 'ProductId' => ['description' => 'The ID of the product to which the product version belongs.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'TemplateUrl' => ['description' => 'The URL of the template.', 'type' => 'string', 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + 'TemplateType' => ['description' => 'The type of the template.'."\n" + ."\n" + .'The value is fixed as RosTerraformTemplate, which indicates that the Terraform template is supported by ROS.', 'type' => 'string', 'title' => '', 'example' => 'RosTerraformTemplate'], ], - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of entries returned per page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductDetails\\": [\\n {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"这是一个产品描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\",\\n \\"ProviderName\\": \\"IT团队\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListProductsAsAdmin', - ], - 'CreateProductVersion' => [ - 'summary' => 'Creates a product version.', - 'methods' => [ - 'post', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PlanDetail\\": {\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\",\\n \\"PlanName\\": \\"DEMO-ECS-Instance\\",\\n \\"PlanType\\": \\"Ros\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS-Instance\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"Status\\": \\"PreviewSuccess\\",\\n \\"StatusMessage\\": \\"Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-23T09:47:29Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"OperationType\\": \\"LaunchProduct\\",\\n \\"Description\\": \\"Create ECS\\",\\n \\"AssignedApprovers\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"approver\\"\\n }\\n ],\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"27740196382623****\\",\\n \\"ApprovalDetail\\": {\\n \\"OperationRecords\\": [\\n {\\n \\"Operator\\": {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalId\\": \\"277401963826235***\\\\n\\",\\n \\"PrincipalName\\": \\"approver\\"\\n },\\n \\"Comment\\": \\"Agree\\",\\n \\"CreateTime\\": \\"2022-03-22T05:56:14Z\\",\\n \\"ApprovalAction\\": \\"Approve\\"\\n }\\n ],\\n \\"TodoTaskActivities\\": [\\n {\\n \\"ActivityName\\": \\"ApproverNode-1\\",\\n \\"Tasks\\": [\\n {\\n \\"Operator\\": {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"approver\\"\\n }\\n }\\n ]\\n }\\n ]\\n },\\n \\"OwnerPrincipalName\\": \\"endUser\\",\\n \\"Uid\\": \\"146611588617****\\"\\n },\\n \\"ProductDetail\\": {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"This is a product description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"ProductType\\": \\"Ros\\"\\n },\\n \\"ResourceChanges\\": [\\n {\\n \\"LogicalResourceId\\": \\"instance\\",\\n \\"PhysicalResourceId\\": \\"i-bp13lmam3qd9q6il****\\",\\n \\"Replacement\\": \\"True\\",\\n \\"ResourceType\\": \\"alicloud_instance\\\\n\\",\\n \\"Action\\": \\"Add\\"\\n }\\n ],\\n \\"ProductVersionDetail\\": {\\n \\"Active\\": true,\\n \\"Description\\": \\"This is a product version description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0.0\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n}","type":"json"}]', + 'title' => 'GetProvisionedProductPlan', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionedProductPlan'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'GetTagOption' => [ + 'summary' => 'Queries the details of a tag option.', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ProductVersionName', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '1.0', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'name' => 'TagOptionId', + 'in' => 'query', + 'schema' => ['title' => 'A short description of struct', 'description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1r3mxq3t****'], ], - [ - 'name' => 'TemplateType', - 'in' => 'formData', + ], + 'responses' => [ + 200 => [ 'schema' => [ - 'title' => '模板类型', - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'RosTerraformTemplate', + 'title' => 'Schema of Response', + 'description' => 'The response parameters.', + 'type' => 'object', + 'properties' => [ + 'TagOptionDetail' => [ + 'description' => 'The details of the tag option.', + 'type' => 'object', + 'properties' => [ + 'Active' => ['description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" + ."\n" + .'- true'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'example' => 'tag-bp15qmwz3r****', 'title' => ''], + 'Key' => ['description' => 'The key of the tag option.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The value of the tag option.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.', 'type' => 'string', 'example' => '133413081827****', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'C1509725-055D-5C7B-9420-8B737DBD****', 'title' => ''], + ], + 'example' => '', ], ], - [ - 'name' => 'TemplateUrl', - 'in' => 'formData', - 'schema' => [ - 'title' => '模板的OSS地址', - 'description' => 'The URL of the template.'."\n" - ."\n" - .'For more information about how to obtain the URL of a template, see [CreateTemplate](~~CreateTemplate~~).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], + ], + 'errorCodes' => [ + 500 => [ + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'The description of the product version.'."\n", - ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'GetTagOption', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTagOption'], ], + ], + 'ramActions' => [ [ - 'name' => 'Guidance', - 'in' => 'formData', - 'schema' => [ - 'title' => '推荐信息', - 'description' => 'The recommendation information. Valid values:'."\n" - ."\n" - .'* Default: No recommendation information is provided. This is the default value.'."\n" - .'* Recommended: the recommendation version.'."\n" - .'* Latest: the latest version.'."\n" - .'* Deprecated: the version that is about to be discontinued.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Default', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TagOptionDetail\\": {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp15qmwz3r****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\"\\n },\\n \\"RequestId\\": \\"C1509725-055D-5C7B-9420-8B737DBD****\\"\\n}","type":"json"}]', + ], + 'GetTask' => [ + 'summary' => 'Queries the information about a task.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], + 'security' => [ [ - 'name' => 'Active', - 'in' => 'formData', - 'schema' => [ - 'title' => '是否启用', - 'description' => 'Specifies whether the product version is active. Valid values:'."\n" - ."\n" - .'* true: The product version is active. This is the default value.'."\n" - .'* false: The product version is inactive.'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'AK' => [], ], + ], + 'operationType' => 'read', + 'deprecated' => false, + 'systemTags' => ['operationType' => 'get'], + 'parameters' => [ [ - 'name' => 'ProductId', + 'name' => 'TaskId', 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本所属的产品ID', - 'description' => 'The ID of the product to which the product version belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'schema' => ['description' => 'The ID of the task.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'task-bp1dmg242c****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TaskDetail' => [ + 'title' => '', + 'description' => 'The details of the task.', + 'type' => 'object', + 'properties' => [ + 'TaskId' => ['description' => 'The ID of the task.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'TaskType' => ['description' => 'The type of the task. Valid values:'."\n" + ."\n" + .'- LaunchProduct: a task that launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: a task that terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'LaunchProduct'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name of the product version.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + 'ProvisionedProductName' => ['description' => 'The name of the product instance.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => ''], + 'Parameters' => [ + 'description' => 'The parameters that are specified in the template.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the input parameter for the template.', 'type' => 'string', 'example' => 'instance_type', 'title' => ''], + 'ParameterValue' => ['description' => 'The value of the input parameter for the template.', 'type' => 'string', 'example' => 'ecs.s6-c1m1.small', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Outputs' => [ + 'description' => 'The output parameters of the template.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'OutputKey' => ['description' => 'The name of the output parameter for the template.', 'type' => 'string', 'example' => 'instance_id', 'title' => ''], + 'OutputValue' => ['description' => 'The value of the output parameter for the template.', 'type' => 'string', 'example' => 'i-xxxxxx', 'title' => ''], + 'Description' => ['description' => 'The description of the output parameter for the template.', 'type' => 'string', 'example' => 'The ECS instance ID.', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Log' => [ + 'description' => 'The logs of the instance.', + 'type' => 'object', + 'properties' => [ + 'TerraformLogs' => [ + 'description' => 'The Terraform logs.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Command' => ['description' => 'The name of the Terraform command that is run. Valid values:'."\n" + ."\n" + .'- apply'."\n" + ."\n" + .'- plan'."\n" + ."\n" + .'- destroy'."\n" + ."\n" + .'- version'."\n" + ."\n" + .'For more information about Terraform commands, see [Basic CLI Features](https://www.terraform.io/cli/commands).', 'type' => 'string', 'example' => 'apply', 'title' => ''], + 'Stream' => ['description' => 'The output stream. Valid values:'."\n" + ."\n" + .'- stdout: a standard output stream'."\n" + ."\n" + .'- stderr: a standard error stream', 'type' => 'string', 'example' => 'stdout', 'title' => ''], + 'Content' => ['description' => 'The content of the output stream that is returned after the command is run.', 'type' => 'string', 'example' => 'Apply complete! Resources: 42 added, 0 changed, 0 destroyed.', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'Status' => ['description' => 'The state of the task. Valid values:'."\n" + ."\n" + .'- Succeeded: The task was successful.'."\n" + ."\n" + .'- InProgress: The task was in progress.'."\n" + ."\n" + .'- Failed: The task failed.', 'type' => 'string', 'title' => '', 'example' => 'Succeeded'], + 'StatusMessage' => ['description' => 'The message that is returned for the status of the task.'."\n" + ."\n" + .'> This parameter is returned only when Failed is returned for the Status parameter.', 'type' => 'string', 'title' => '', 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the task was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:46:27Z'], + 'UpdateTime' => ['description' => 'The time when the task was last modified.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'example' => '2022-05-23T09:47:29Z', 'title' => ''], + 'TaskTags' => [ + 'description' => 'The custom tags.', + 'type' => 'array', + 'items' => [ + 'description' => '', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The custom tag key.'."\n" + ."\n" + .'The tag key can be up to 128 characters in length and cannot contain `http://` or `https://`. The tag key cannot start with `acs:` or `aliyun`.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The custom tag value.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', - 'title' => 'CreateProductVersion', - 'description' => 'Before you call the CreateProductVersion operation, you must call the [CreateTemplate](~~CreateTemplate~~) operation to create a template.'."\n", - ], - 'DeleteProductVersion' => [ - 'summary' => 'Deletes a product version.', - 'methods' => [ - 'post', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TaskDetail\\": {\\n \\"TaskId\\": \\"task-bp1dmg242c****\\",\\n \\"TaskType\\": \\"LaunchProduct\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"DEMO-ECS-Instance\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"Outputs\\": [\\n {\\n \\"OutputKey\\": \\"instance_id\\",\\n \\"OutputValue\\": \\"i-xxxxxx\\",\\n \\"Description\\": \\"The ECS instance ID.\\"\\n }\\n ],\\n \\"Log\\": {\\n \\"TerraformLogs\\": [\\n {\\n \\"Command\\": \\"apply\\",\\n \\"Stream\\": \\"stdout\\",\\n \\"Content\\": \\"Apply complete! Resources: 42 added, 0 changed, 0 destroyed.\\"\\n }\\n ]\\n },\\n \\"Status\\": \\"Succeeded\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-23T09:47:29Z\\",\\n \\"TaskTags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ]\\n }\\n}","type":"json"}]', + 'title' => 'GetTask', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTask'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'GetTemplate' => [ + 'summary' => 'Queries the details of a template.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ + [ + 'name' => 'ProductId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], [ 'name' => 'ProductVersionId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TemplateBody' => ['description' => 'The content of the template.'."\n" + ."\n" + .'For more information about the template syntax, see [Structure of Terraform templates](~~184397~~).', 'type' => 'string', 'title' => '', 'example' => '{'."\n" + .' "ROSTemplateFormatVersion": "2015-09-01",'."\n" + .' "Transform": "Aliyun::Terraform-v1.1",'."\n" + .' "Workspace": {'."\n" + .' "main.tf": "variable \\"name\\" { default = \\"auto_provisioning_group\\"}"'."\n" + .' },'."\n" + .' "Outputs": {}'."\n" + .'}'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DeleteProductVersion', - ], - 'UpdateProductVersion' => [ - 'summary' => 'Updates the information about a product version.', - 'methods' => [ - 'post', + 'title' => 'GetTemplate', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTemplate'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TemplateBody\\": \\"{\\\\n \\\\\\"ROSTemplateFormatVersion\\\\\\": \\\\\\"2015-09-01\\\\\\",\\\\n \\\\\\"Transform\\\\\\": \\\\\\"Aliyun::Terraform-v1.1\\\\\\",\\\\n \\\\\\"Workspace\\\\\\": {\\\\n \\\\\\"main.tf\\\\\\": \\\\\\"variable \\\\\\\\\\\\\\"name\\\\\\\\\\\\\\" { default = \\\\\\\\\\\\\\"auto_provisioning_group\\\\\\\\\\\\\\"}\\\\\\"\\\\n },\\\\n \\\\\\"Outputs\\\\\\": {}\\\\n}\\"\\n}","type":"json"}]', + ], + 'LaunchProduct' => [ + 'summary' => 'Launches a product.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5307,77 +3251,101 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'update', - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'ProductVersionId', + 'name' => 'ProvisionedProductName', 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + 'schema' => ['description' => 'The name of the product instance.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => ''], ], [ - 'name' => 'ProductVersionName', + 'name' => 'PortfolioId', 'in' => 'formData', - 'schema' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '1.0', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'schema' => ['description' => 'The ID of the product portfolio.'."\n" + ."\n" + .'> If the PortfolioId parameter is not required, you do not need to specify the PortfolioId parameter. If the PortfolioId parameter is required, you must specify the PortfolioId parameter. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], [ - 'name' => 'Description', + 'name' => 'ProductId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], + [ + 'name' => 'ProductVersionId', 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], + ], + [ + 'name' => 'Parameters', + 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.'."\n" + 'description' => 'The input parameters of the template.'."\n" ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', + .'You can specify up to 200 parameters.'."\n" + ."\n" + .'> This parameter is optional. If you specify the Parameters parameter, you must specify the ParameterKey and ParameterValue parameters.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the input parameter for the template.', 'type' => 'string', 'required' => false, 'example' => 'instance_type', 'title' => ''], + 'ParameterValue' => ['description' => 'The value of the input parameter for the template.', 'type' => 'string', 'required' => false, 'example' => 'ecs.s6-c1m1.small', 'title' => ''], + ], + 'required' => false, + 'description' => 'The input parameters of the template.', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => 'The description of the product version.'."\n", + 'maxItems' => 200, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'Guidance', + 'name' => 'StackRegionId', 'in' => 'formData', - 'schema' => [ - 'title' => '推荐信息', - 'description' => 'The recommendation information. Valid values:'."\n" - ."\n" - .'* Default: No recommendation information is provided. This is the default value.'."\n" - .'* Recommended: the recommended version.'."\n" - .'* Latest: the latest version.'."\n" - .'* Deprecated: the version that is about to be discontinued.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Default', - ], + 'schema' => ['description' => 'The ID of the region to which the Resource Orchestration Service (ROS) stack belongs.'."\n" + ."\n" + .'For more information about how to obtain the regions that are supported by ROS, see [DescribeRegions](~~131035~~).', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cn-hangzhou'], ], [ - 'name' => 'Active', + 'name' => 'Tags', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => '是否启用', - 'description' => 'Specifies whether to enable the product version. Valid values:'."\n" + 'description' => 'The custom tags that are specified by the end user.'."\n" + ."\n" + .'Maximum value of N: 20.'."\n" + ."\n" + .'>'."\n" ."\n" - .'* true: enables the product version. This is the default value.'."\n" - .'* false: disables the product version.'."\n", - 'type' => 'boolean', + .'- The Tags parameter is optional. If you specify the Tags parameter, you must specify the Tags.N.Key and Tags.N.Value parameters.'."\n" + ."\n" + .'- The tag is propagated to each stack resource that supports the tag feature.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The tag key of the custom tag.'."\n" + ."\n" + .'The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `acs:` or `aliyun`.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The tag value of the custom tag.'."\n" + ."\n" + .'The tag value can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + ], + 'required' => false, + 'description' => 'The custom tags that are specified by the end user.', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => 'true', + 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], ], @@ -5385,181 +3353,48 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProvisionedProductId' => ['description' => 'The ID of the instance', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', - 'title' => 'UpdateProductVersion', - ], - 'GetProductVersion' => [ - 'summary' => 'Queries the details of a product version.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ - [ - 'AK' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\"\\n}","type":"json"}]', + 'title' => 'LaunchProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'LaunchProduct'], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], - 'parameters' => [ + 'ramActions' => [ [ - 'name' => 'ProductVersionId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.', - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], - ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'ProductVersionDetail' => [ - 'title' => '产品版本详情', - 'description' => 'The details of the product version.'."\n", - 'type' => 'object', - 'properties' => [ - 'Active' => [ - 'title' => '是否启用', - 'description' => 'Indicates whether the product version is visible to end users. Valid values:'."\n" - .'- true: The product version is visible to end users. This is the default value.'."\n" - .'- false: The product version is invisible to end users.', - 'type' => 'boolean', - 'enumValueTitles' => [], - 'example' => 'true', - ], - 'Description' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.', - 'type' => 'string', - 'example' => 'The description of the product version.', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product version was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.', - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'Guidance' => [ - 'title' => '推荐信息', - 'description' => 'The recommendation information. Valid values:'."\n" - ."\n" - .'- Default: No recommendation information is provided. This is the default value.'."\n" - .'- Recommended: the recommendation version.'."\n" - .'- Latest: the latest version.'."\n" - .'- Deprecated: the version that is about to be deprecated.', - 'type' => 'string', - 'example' => 'Default', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.', - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.', - 'type' => 'string', - 'example' => '1.0', - ], - 'ProductId' => [ - 'title' => '产品版本所属的产品ID', - 'description' => 'The ID of the product to which the product version belongs.', - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'TemplateUrl' => [ - 'title' => '模板的OSS地址', - 'description' => 'The URL of the template.', - 'type' => 'string', - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: The Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: The standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], - ], - ], - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:LaunchProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/*'], ], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], - ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ProductVersionDetail\\": {\\n \\"Active\\": true,\\n \\"Description\\": \\"这是一个产品版本描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n },\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'GetProductVersion', + 'translator' => 'manual', ], - 'ListProductVersions' => [ - 'summary' => 'Queries the versions of a product.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListLaunchOptions' => [ + 'summary' => 'Queries launch options.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -5568,761 +3403,915 @@ 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ 'name' => 'ProductId', 'in' => 'query', - 'schema' => [ - 'title' => '产品版本所属的产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ProductVersionDetails' => [ - 'title' => '产品版本列表', - 'description' => 'The versions of the product.'."\n", + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'LaunchOptionSummaries' => [ + 'title' => '', + 'description' => 'The launch options.', 'type' => 'array', 'items' => [ - 'description' => 'The details of the product version.'."\n", 'type' => 'object', 'properties' => [ - 'Active' => [ - 'title' => '是否启用', - 'description' => 'Indicates whether the product version is enabled. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'Description' => [ - 'title' => '产品版本描述', - 'description' => 'The description of the product version.'."\n", - 'type' => 'string', - 'example' => 'The description of the product version.'."\n", - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the product version was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:10:37Z', - ], - 'Guidance' => [ - 'title' => '推荐信息', - 'description' => 'The recommended product version. Valid values:'."\n" - ."\n" - .'* Default (default): No product version is recommended.'."\n" - .'* Recommended: the stable version.'."\n" - .'* Latest: the latest version.'."\n" - .'* Deprecated: the version that is about to be deprecated.'."\n", - 'type' => 'string', - 'example' => 'Default', - ], - 'ProductVersionId' => [ - 'title' => '产品版本ID', - 'description' => 'The product version ID.'."\n", - 'type' => 'string', - 'example' => 'pv-bp15e79d26****', - ], - 'ProductVersionName' => [ - 'title' => '产品版本名称', - 'description' => 'The name of the product version.'."\n", - 'type' => 'string', - 'example' => '1.0', - ], - 'TemplateUrl' => [ - 'title' => '模板的OSS地址', - 'description' => 'The URL of the template.'."\n", - 'type' => 'string', - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], - 'TemplateType' => [ - 'title' => '模板类型', - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'example' => 'RosTerraformTemplate', - ], - 'ProductId' => [ - 'description' => 'The ID of the product to which the product version belongs.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'PortfolioName' => ['description' => 'The name of the product portfolio.', 'type' => 'string', 'example' => 'DEMO-IT Service', 'title' => ''], + 'ConstraintSummaries' => [ + 'title' => '', + 'description' => 'The constraints.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ConstraintType' => ['description' => 'The type of the constraint. Valid values:'."\n" + ."\n" + .'1. Launch'."\n" + ."\n" + .'2. Template'."\n" + ."\n" + .'3. Approval'."\n" + ."\n" + .'4. StackRegion', 'type' => 'string', 'title' => '', 'example' => 'Launch'], + 'Description' => ['description' => 'The description of the constraint.', 'type' => 'string', 'title' => '', 'example' => 'Launch as local role TestRole'], + 'OperationTypes' => [ + 'title' => '', + 'description' => 'The types of operations that require approval. If the type of the constraint is Approval, this parameter is not empty.', + 'type' => 'array', + 'items' => ['description' => 'The type of the operation. If the type of the constraint is Approval, this parameter is not empty.', 'type' => 'string', 'example' => 'All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct', 'title' => ''], + 'example' => '', + ], + 'StackRegions' => [ + 'description' => 'The regions in which users can launch the service. If the type of the constraint is StackRegion, this parameter is not empty.', + 'type' => 'array', + 'items' => ['description' => 'The region in which users can launch the service.', 'type' => 'string', 'example' => 'cn-hangzhou', 'title' => ''], + 'title' => '', + 'example' => '', + ], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'description' => '', + 'title' => '', + 'example' => '', ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionDetails\\": [\\n {\\n \\"Active\\": true,\\n \\"Description\\": \\"这是一个产品版本描述。\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListProductVersions', - ], - 'CreateTemplate' => [ - 'summary' => 'Creates a template. Service Catalog saves the template based on the parameters that you specify and returns the URL of the template.', - 'methods' => [ - 'post', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"LaunchOptionSummaries\\": [\\n {\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"PortfolioName\\": \\"DEMO-IT Service\\",\\n \\"ConstraintSummaries\\": [\\n {\\n \\"ConstraintType\\": \\"Launch\\",\\n \\"Description\\": \\"Launch as local role TestRole\\",\\n \\"OperationTypes\\": [\\n \\"All,TerminateProvisionedProduct,UpdateProvisionedProduct,LaunchProduct\\"\\n ],\\n \\"StackRegions\\": [\\n \\"cn-hangzhou\\"\\n ]\\n }\\n ]\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'ListLaunchOptions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLaunchOptions'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListLaunchOptions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListPortfolios' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'TemplateBody', - 'in' => 'formData', - 'schema' => [ - 'title' => '模板内容', - 'description' => 'The content of the template.'."\n" - ."\n" - .'For more information about the template syntax, see [Structure of Terraform templates](~~184397~~).'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '{'."\n" - .' "ROSTemplateFormatVersion": "2015-09-01",'."\n" - .' "Transform": "Aliyun::Terraform-v1.1",'."\n" - .' "Workspace": {'."\n" - .' "main.tf": "variable \\"name\\" { default = \\"auto_provisioning_group\\"}"'."\n" - .' },'."\n" - .' "Outputs": {}'."\n" - .'}', - ], - ], - [ - 'name' => 'TemplateType', - 'in' => 'formData', - 'schema' => [ - 'title' => '模板类型', - 'description' => 'The type of the product template. Valid values:'."\n" - ."\n" - .'* RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" - .'* RosStandardTemplate: the standard ROS template.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'RosTerraformTemplate', - ], + 'name' => 'ProductId', + 'in' => 'query', + 'schema' => ['description' => 'The product ID.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'prod-bp18r7q127****'], ], [ - 'name' => 'TerraformVariables', - 'in' => 'formData', + 'name' => 'Filters', + 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'description' => 'The variable settings of the Terraform template. You can configure the variables in a structured manner. Service Catalog applies the variable settings to the template.'."\n" - ."\n" - .'> The variables must be defined in the Terraform template.'."\n", + 'title' => '', + 'description' => 'The filters.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'VariableName' => [ - 'description' => 'The name of the variable.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'instance_type', - ], - 'Description' => [ - 'description' => 'The description of the variable.'."\n" - ."\n" - .'For more information about the format of variable descriptions, see [Methods and suggestions for Terraform code development](~~322216~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '{ "Label": { "en": "Instance Type" }, "AllowedValues": \\[ "ecs.s6-c1m1.small", "ecs.s6-c1m2.large", "ecs.s6-c1m2.xlarge" ] }'."\n", - ], + 'Key' => ['description' => 'The filter key. Valid values:'."\n" + ."\n" + .'- `PortfolioName`: Searches by portfolio name. An exact, case-insensitive match is performed.'."\n" + ."\n" + .'- `FullTextSearch`: Performs a fuzzy, full-text search on the portfolio name, provider, and description.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'PortfolioName'], + 'Value' => ['description' => 'The filter value.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'DEMO-IT'], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, - 'maxItems' => 20, + 'maxItems' => 5, + 'example' => '', ], ], - ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TemplateUrl' => [ - 'title' => '模板的OSS地址', - 'description' => 'The URL of the template.'."\n", - 'type' => 'string', - 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json', - ], - ], - ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['description' => 'The field to sort by.'."\n" + ."\n" + .'Set the value to `CreateTime` to sort the results by creation time.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], ], - ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + [ + 'name' => 'SortOrder', + 'in' => 'query', + 'schema' => ['description' => 'The ordering. Valid values:'."\n" + ."\n" + .'- `Asc`: in ascending order.'."\n" + ."\n" + .'- `Desc`: in descending order.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Desc'], ], - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\"\\n}","type":"json"}]', - 'title' => 'CreateTemplate', - ], - 'GetTemplate' => [ - 'summary' => 'Queries the details of a template.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], - 'security' => [ [ - 'AK' => [], + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number.'."\n" + ."\n" + .'The page number starts from 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], - ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], - 'parameters' => [ [ - 'name' => 'ProductId', + 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], + 'schema' => ['description' => 'The number of entries to return on each page.'."\n" + ."\n" + .'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ - 'name' => 'ProductVersionId', + 'name' => 'Scope', 'in' => 'query', - 'schema' => [ - 'title' => '产品版本ID', - 'description' => 'The ID of the product version.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'pv-bp15e79d26****', - ], + 'schema' => ['description' => 'The query scope. Valid values:'."\n" + ."\n" + .'- Local (default): queries the portfolios created in the current account.'."\n" + ."\n" + .'- Import: queries the portfolios imported from other accounts.'."\n" + ."\n" + .'- All: queries all available portfolios.', 'type' => 'string', 'required' => false, 'example' => 'Local', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TemplateBody' => [ - 'title' => '模板内容', - 'description' => 'The content of the template.'."\n" - ."\n" - .'For more information about the template syntax, see [Structure of Terraform templates](~~184397~~).'."\n", - 'type' => 'string', - 'example' => '{'."\n" - .' "ROSTemplateFormatVersion": "2015-09-01",'."\n" - .' "Transform": "Aliyun::Terraform-v1.1",'."\n" - .' "Workspace": {'."\n" - .' "main.tf": "variable \\"name\\" { default = \\"auto_provisioning_group\\"}"'."\n" - .' },'."\n" - .' "Outputs": {}'."\n" - .'}', + 'PortfolioDetails' => [ + 'title' => '', + 'description' => 'The list of portfolios.', + 'type' => 'array', + 'items' => [ + 'title' => 'PortfolioItemType', + 'description' => 'The details of the portfolio.', + 'type' => 'object', + 'properties' => [ + 'Description' => ['description' => 'The description of the portfolio.', 'type' => 'string', 'title' => '', 'example' => 'This is a product portfolio description.'], + 'PortfolioName' => ['description' => 'The name of the portfolio.', 'type' => 'string', 'title' => '', 'example' => 'DEMO-IT'], + 'CreateTime' => ['description' => 'The time when the portfolio was created.'."\n" + ."\n" + .'Time is displayed in UTC and formatted as `YYYY-MM-DDThh:mm:ssZ` (ISO 8601).', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:11:12Z'], + 'ProviderName' => ['description' => 'The provider of the portfolio.', 'type' => 'string', 'title' => '', 'example' => 'IT team'], + 'PortfolioId' => ['description' => 'The ID of the portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'PortfolioArn' => ['description' => 'The portfolio ARN.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****'], + ], + 'example' => '', + ], + 'example' => '', ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'ListPortfolios', + 'summary' => 'Queries a list of portfolios.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListPortfolios', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TemplateBody\\": \\"{\\\\n \\\\\\"ROSTemplateFormatVersion\\\\\\": \\\\\\"2015-09-01\\\\\\",\\\\n \\\\\\"Transform\\\\\\": \\\\\\"Aliyun::Terraform-v1.1\\\\\\",\\\\n \\\\\\"Workspace\\\\\\": {\\\\n \\\\\\"main.tf\\\\\\": \\\\\\"variable \\\\\\\\\\\\\\"name\\\\\\\\\\\\\\" { default = \\\\\\\\\\\\\\"auto_provisioning_group\\\\\\\\\\\\\\"}\\\\\\"\\\\n },\\\\n \\\\\\"Outputs\\\\\\": {}\\\\n}\\"\\n}","type":"json"}]', - 'title' => 'GetTemplate', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PortfolioDetails\\": [\\n {\\n \\"Description\\": \\"This is a product portfolio description.\\",\\n \\"PortfolioName\\": \\"DEMO-IT\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:12Z\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"PortfolioArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', ], - 'CreatePortfolio' => [ - 'summary' => 'Creates a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListPrincipals' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', + 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - 'tenantRelevance' => 'publicInformation', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ - 'name' => 'PortfolioName', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合名称', - 'description' => 'The name of the product portfolio.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'docRequired' => false, - 'example' => 'DEMO-IT services'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], - ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合描述', - 'description' => 'The description of the product portfolio.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'The description of the product portfolio.'."\n", - ], - ], - [ - 'name' => 'ProviderName', - 'in' => 'formData', - 'schema' => [ - 'title' => '提供者名称', - 'description' => 'The provider of the product portfolio.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'IT team'."\n", - 'maxLength' => 100, - 'minLength' => 1, - ], + 'name' => 'PortfolioId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'port-bp1yt7582g****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'Principals' => [ + 'title' => '', + 'description' => 'The list of RAM entities.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the RAM entity.', + 'type' => 'object', + 'properties' => [ + 'PrincipalType' => ['description' => 'The type of the RAM entity. Valid values:'."\n" + ."\n" + .'- RamUser: A RAM user.'."\n" + ."\n" + .'- RamRole: A RAM role.', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'PrincipalId' => ['description' => 'The ID of the RAM entity.', 'type' => 'string', 'title' => '', 'example' => '24477111603637****'], + 'PrincipalPattern' => ['description' => 'The principal identity pattern.', 'type' => 'string', 'title' => '', 'example' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'ListPrincipals', + 'summary' => 'Lists the Resource Access Management (RAM) users and RAM roles that are granted permissions on a product portfolio.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListPrincipals', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\"\\n}","type":"json"}]', - 'title' => 'CreatePortfolio', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"Principals\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalId\\": \\"24477111603637****\\",\\n \\"PrincipalPattern\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', ], - 'AssociateProductWithPortfolio' => [ - 'summary' => 'Adds a product to a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProductVersions' => [ + 'summary' => 'Queries the versions of a product.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ 'name' => 'ProductId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], - ], - [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductVersionDetails' => [ + 'title' => '', + 'description' => 'The versions of the product.', + 'type' => 'array', + 'items' => [ + 'description' => 'The details of the product version.', + 'type' => 'object', + 'properties' => [ + 'Active' => ['description' => 'Indicates whether the product version is enabled. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'Description' => ['description' => 'The description of the product version.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product version was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'Guidance' => ['description' => 'The recommended product version. Valid values:'."\n" + ."\n" + .'- Default (default): No product version is recommended.'."\n" + ."\n" + .'- Recommended: the stable version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be deprecated.', 'type' => 'string', 'title' => '', 'example' => 'Default'], + 'ProductVersionId' => ['description' => 'The product version ID.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name of the product version.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'TemplateUrl' => ['description' => 'The URL of the template.', 'type' => 'string', 'title' => '', 'example' => 'oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json'], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by Resource Orchestration Service (ROS).'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'title' => '', 'example' => 'RosTerraformTemplate'], + 'ProductId' => ['description' => 'The ID of the product to which the product version belongs.', 'type' => 'string', 'example' => 'prod-bp18r7q127****', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionDetails\\": [\\n {\\n \\"Active\\": true,\\n \\"Description\\": \\"This is a product version description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"Guidance\\": \\"Default\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"TemplateUrl\\": \\"oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'ListProductVersions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'AssociateProductWithPortfolio', + 'translator' => 'manual', ], - 'DeletePortfolio' => [ - 'summary' => 'Deletes a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProductsAsAdmin' => [ + 'summary' => 'Queries products as an administrator.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ 'name' => 'PortfolioId', - 'in' => 'formData', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'port-bp1yt7582g****'], + ], + [ + 'name' => 'Filters', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', + 'title' => '', + 'description' => 'The filter conditions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the filter condition. Valid values:'."\n" + ."\n" + .'- ProductName: performs exact matches by product name. Product names are not case-sensitive.'."\n" + ."\n" + .'- FullTextSearch: performs full-text searches by product name, product provider, or product description. Fuzzy match is supported.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ProductName'], + 'Value' => ['description' => 'The value of the filter condition.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => '', 'required' => false], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 5, + 'example' => '', ], ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['description' => 'The field that is used to sort the queried data.'."\n" + ."\n" + .'Set the value to CreateTime, which specifies the time when the product was created.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], + ], + [ + 'name' => 'SortOrder', + 'in' => 'query', + 'schema' => ['description' => 'The order in which you want to sort the queried data. Valid values:'."\n" + ."\n" + .'- Asc: the ascending order'."\n" + ."\n" + .'- Desc: the descending order', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Desc'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The number of the page to return.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', '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" + ."\n" + .'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'Scope', + 'in' => 'query', + 'schema' => ['description' => 'The query scope. Valid values:'."\n" + ."\n" + .'- Local: the products that are created by using the current account. This is the default value.'."\n" + ."\n" + .'- Import: the products that are imported from other accounts.'."\n" + ."\n" + .'- All: all available products.', 'type' => 'string', 'required' => false, 'example' => 'Local', 'title' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductDetails' => [ + 'title' => '', + 'description' => 'The products.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the product.', + 'type' => 'object', + 'properties' => [ + 'ProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'], + 'Description' => ['description' => 'The description of the product.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'ProductId' => ['description' => 'The product ID.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], + 'ProductType' => ['description' => 'The type of the product.'."\n" + ."\n" + .'The value is set to Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'example' => 'RosTerraformTemplate', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'], + 'PageNumber' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductDetails\\": [\\n {\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"Description\\": \\"This is a product description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n ],\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', + 'title' => 'ListProductsAsAdmin', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductsAsAdmin', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DeletePortfolio', + 'translator' => 'manual', ], - 'DisassociateProductFromPortfolio' => [ - 'summary' => 'Removes a product from the product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProductsAsEndUser' => [ + 'summary' => 'Queries products as a user.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'delete', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ProductId', - 'in' => 'formData', + 'name' => 'Filters', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '产品ID', - 'description' => 'The ID of the product.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', + 'title' => '', + 'description' => 'The filter conditions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the filter condition. Valid values:'."\n" + ."\n" + .'- ProductName: performs exact matches by product name. Product names are not case-sensitive.'."\n" + ."\n" + .'- FullTextSearch: performs full-text searches by product name, product provider, or product description. Fuzzy match is supported.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ProductName'], + 'Value' => ['description' => 'The value of the filter condition.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => '', 'required' => false], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 5, + 'example' => '', ], ], [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['description' => 'The field that is used to sort data.'."\n" + ."\n" + .'The default value is CreateTime, which specifies the time when the product was created.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], + ], + [ + 'name' => 'SortOrder', + 'in' => 'query', + 'schema' => ['description' => 'The method that is used to sort the returned entries. Valid values:'."\n" + ."\n" + .'- Asc: sorts the entries in ascending order.'."\n" + ."\n" + .'- Desc (default): sorts the entries in descending order.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Desc'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The number of the page to return.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', '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" + ."\n" + .'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductSummaries' => [ + 'title' => '', + 'description' => 'The products.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the product.', + 'type' => 'object', + 'properties' => [ + 'Description' => ['description' => 'The description of the product.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'CreateTime' => ['description' => 'The time when the product was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-04-12T06:10:37Z'], + 'ProductId' => ['description' => 'The product ID.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProviderName' => ['description' => 'The provider of the product.', 'type' => 'string', 'example' => 'IT team', 'title' => ''], + 'ProductType' => ['description' => 'The type of the product.'."\n" + ."\n" + .'The value is set to Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'HasDefaultLaunchOption' => ['description' => 'Indicates whether the default launch option exists. Valid values:'."\n" + ."\n" + .'- true: The default launch option exists. In this case, the PortfolioId parameter is not required when the product is launched or when the information about the product instance is updated.'."\n" + ."\n" + .'- false: The default launch option does not exist. In this case, the PortfolioId parameter is required when the product is launched or when the information about the product instance is updated. For more information about the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).'."\n" + ."\n" + .'> If the product is added to only one product portfolio, the default launch option exists. If the product is added to multiple product portfolios, multiple launch options exist at the same time. However, no default launch options exist.', 'type' => 'boolean', 'title' => '', 'example' => 'true'], + 'TemplateType' => ['description' => 'The type of the product template. Valid values:'."\n" + ."\n" + .'- RosTerraformTemplate: the Terraform template that is supported by ROS.'."\n" + ."\n" + .'- RosStandardTemplate: the standard ROS template.', 'type' => 'string', 'example' => 'RosTerraformTemplate', 'title' => ''], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '100'], + 'PageNumber' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductSummaries\\": [\\n {\\n \\"Description\\": \\"This is a product description.\\",\\n \\"CreateTime\\": \\"2022-04-12T06:10:37Z\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"ProductType\\": \\"Ros\\",\\n \\"HasDefaultLaunchOption\\": true,\\n \\"TemplateType\\": \\"RosTerraformTemplate\\"\\n }\\n ],\\n \\"TotalCount\\": 100,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', + 'title' => 'ListProductsAsEndUser', + 'description' => 'Make sure that you are granted the permissions to manage relevant products as a user by an administrator. For more information, see [Manage access permissions](~~405233~~).', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductsAsEndUser', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DisassociateProductFromPortfolio', + 'translator' => 'manual', ], - 'UpdatePortfolio' => [ - 'summary' => 'Updates the information about a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListProvisionedProductPlanApprovers' => [ + 'summary' => 'Queries a list of plan reviewers.', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => '代表资源一级ID的资源属性字段', - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'PortfolioName', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合名称', - 'description' => '代表资源名称的资源属性字段', - 'type' => 'string', - 'required' => true, - 'example' => '', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'name' => 'AccessLevelFilter', + 'in' => 'query', + 'schema' => ['description' => 'The access filter. Valid values:'."\n" + ."\n" + .'- User (default): queries the plans that are created by the current requester.'."\n" + ."\n" + .'- Account: queries the plans that belong to the current Alibaba Cloud account.'."\n" + ."\n" + .'- ResourceDirectory: queries the plans that belong to the current resource directory.'."\n" + ."\n" + .'> You must specify one of the `ApprovalFilter` and `AccessLevelFilter` parameters, but not both.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'User'], ], [ - 'name' => 'Description', - 'in' => 'formData', + 'name' => 'Filters', + 'in' => 'query', + 'style' => 'repeatList', 'schema' => [ - 'title' => '产品组合描述', - 'description' => '产品组合描述', - 'type' => 'string', + 'title' => '', + 'description' => 'An array that consists of filter conditions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The name of the filter condition. Valid values:'."\n" + ."\n" + .'- ProvisionedProductPlanApproverName: performs fuzzy match by reviewer name.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ProvisionedProductPlanApproverName'], + 'Value' => ['description' => 'The value of the filter condition.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'approver'], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => false, + 'maxItems' => 5, 'example' => '', ], ], [ - 'name' => 'ProviderName', - 'in' => 'formData', - 'schema' => [ - 'title' => '提供者名称', - 'description' => '产品组合提供方', - 'type' => 'string', - 'required' => true, - 'example' => '', - 'maxLength' => 100, - 'minLength' => 1, - ], + 'name' => 'ApprovalFilter', + 'in' => 'query', + 'schema' => ['description' => 'The access filter of the review dimension. Valid values:'."\n" + ."\n" + .'- AccountRequests: queries all reviewed plans that belong to the current Alibaba Cloud account.'."\n" + ."\n" + .'- ResourceDirectoryRequests: queries all plans that belong to the current resource directory.'."\n" + ."\n" + .'> You must specify one of the `ApprovalFilter` and `AccessLevelFilter` parameters, but not both.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'AccountRequests'], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => '', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => '', - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'], + 'Approvers' => [ + 'title' => '', + 'description' => 'An array that consists of reviewers.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'PrincipalName' => ['description' => 'The name of the reviewer.', 'type' => 'string', 'title' => '', 'example' => 'approver-1'], + 'PrincipalType' => ['description' => 'The type of the Resource Access Management (RAM) entity of the reviewer. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\"\\n}","type":"json"}]', - 'title' => 'UpdatePortfolio', - ], - 'GetPortfolio' => [ - 'summary' => 'Queries the information about a product portfolio.', - 'methods' => [ - 'get', - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListProvisionedProductPlanApprovers', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionedProductPlanApprovers'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProductPlanApprovers', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\",\\n \\"Approvers\\": [\\n {\\n \\"PrincipalName\\": \\"approver-1\\",\\n \\"PrincipalType\\": \\"RamUser\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListProvisionedProductPlans' => [ + 'summary' => 'Queries a list of plans. You can query plans from the end user dimension or from the review dimension.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6331,143 +4320,304 @@ 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'list', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'PortfolioId', + 'name' => 'Filters', + 'in' => 'query', + 'style' => 'repeatList', + 'schema' => [ + 'title' => '', + 'description' => 'An array that consists of filter conditions.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => [ + 'description' => 'The name of the filter condition. Valid values:'."\n" + ."\n" + .'- ProvisionedProductPlanName: performs exact matches by plan name. Plan names are not case-sensitive.'."\n" + ."\n" + .'- ProvisionedProductPlanApprover: performs exact matches by reviewer. You must specify a reviewer in the `RamUser/RamRole:` format. You can specify multiple reviewers.'."\n" + ."\n" + .'- ProvisionedProductPlanApproverName: performs matches by reviewer name. You must specify the Resource Access Management (RAM) entity name of the reviewer. You can specify multiple reviewer names.'."\n" + ."\n" + .'- ProvisionedProductPlanStatus: performs matches by plan status. You must specify the state of the plan. You can specify multiple states.'."\n" + ."\n" + .'- ProvisionedProductPlanOwnerUid: performs exact matches by ID of Alibaba Cloud account to which a plan belongs.'."\n" + ."\n" + .'- FullTextSearch: performs fuzzy full-text searches by plan name.', + 'enumValueTitles' => [], + 'type' => 'string', + 'title' => '', + 'required' => false, + 'example' => 'FullTextSearch', + ], + 'Value' => ['description' => 'The value of the filter condition.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ECS'], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 5, + 'example' => '', + ], + ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['description' => 'The information based on which you want to sort the query results.'."\n" + ."\n" + .'Set the value to CreateTime, which specifies the creation time of plans.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], + ], + [ + 'name' => 'SortOrder', 'in' => 'query', 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", + 'description' => 'The order in which you want to sort the query results. Valid values:'."\n" + ."\n" + .'- Asc: the ascending order'."\n" + ."\n" + .'- Desc (default): the descending order.', + 'enumValueTitles' => ['Asc' => 'Asc', 'Desc' => 'Desc'], 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', + 'title' => '', + 'required' => false, + 'example' => 'Desc', ], ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The number of the page to return.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '1'], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries to return on each page.'."\n" + ."\n" + .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'required' => false, 'example' => '10'], + ], + [ + 'name' => 'AccessLevelFilter', + 'in' => 'query', + 'schema' => ['description' => 'The access filter. Valid values:'."\n" + ."\n" + .'- User (default): queries the plans that are created by the current requester.'."\n" + ."\n" + .'- Account: queries the plans that belong to the current Alibaba Cloud account.'."\n" + ."\n" + .'- ResourceDirectory: queries the plans that belong to the current resource directory.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'User'], + ], + [ + 'name' => 'ApprovalFilter', + 'in' => 'query', + 'schema' => ['description' => 'The access filter of the review dimension. Valid values:'."\n" + ."\n" + .'- ReceivedRequests: queries plans that are pending for review.'."\n" + ."\n" + .'- ApprovalHistory: queries review history.'."\n" + ."\n" + .'- AccountRequests: queries all plans that belong to the current Alibaba Cloud account.'."\n" + ."\n" + .'- AccountRequests: queries all plans that belong to the current Alibaba Cloud account.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ReceivedRequests'], + ], + [ + 'name' => 'ProvisionedProductId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'pp-bp1ddg1n2a****'], + ], ], 'responses' => [ 200 => [ - 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'PortfolioDetail' => [ - 'title' => '产品组合详情', - 'description' => 'The details of the product portfolio.'."\n", - 'type' => 'object', - 'properties' => [ - 'PortfolioArn' => [ - 'title' => '产品组合ARN', - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'Description' => [ - 'title' => '产品组合描述', - 'description' => 'The description of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'The description of the product portfolio.'."\n", - ], - 'CreateTime' => [ - 'title' => '产品组合创建时间', - 'description' => 'The time when the product portfolio was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:11:12Z', - ], - 'PortfolioName' => [ - 'title' => '产品组合名称', - 'description' => 'The name of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'DEMO-IT services'."\n", - ], - 'ProviderName' => [ - 'title' => '提供者名称', - 'description' => 'The provider of the product portfolio.'."\n", - 'type' => 'string', - 'example' => 'IT team'."\n", - ], - ], - ], - 'TagOptions' => [ - 'description' => 'The tag options associated with the service portfolio.', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'], + 'PlanDetails' => [ + 'title' => '', + 'description' => 'An array that consists of plans.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'- true (default)'."\n" - .'- false', - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.', - 'type' => 'string', - 'example' => 'tag-bp1q65xd3j****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.', - 'type' => 'string', - 'example' => 'k1', + 'PlanId' => ['description' => 'The ID of the plan.', 'type' => 'string', 'title' => '', 'example' => 'plan-bp18mmdh2u****'], + 'PlanName' => ['description' => 'The name of the plan.', 'type' => 'string', 'example' => 'DEMO- create ECS-637****', 'title' => ''], + 'PlanType' => ['description' => 'The type of the plan.'."\n" + ."\n" + .'The value is fixed as Ros, which indicates Resource Orchestration Service (ROS).', 'type' => 'string', 'title' => '', 'example' => 'Ros'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1438kf2j****'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp1rtrnh2c****'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp19udk22v****'], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1c35162d****'], + 'Parameters' => [ + 'title' => '', + 'description' => 'An array that consists of the parameters in the template.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the parameter in the template.', 'type' => 'string', 'title' => '', 'example' => 'role_name'], + 'ParameterValue' => ['description' => 'The value of the parameter in the template.', 'type' => 'string', 'title' => '', 'example' => 'Test-8'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', ], - 'Value' => [ - 'description' => 'The value of the tag option.', - 'type' => 'string', - 'example' => 'v1', + 'ProvisionedProductName' => ['description' => 'The name of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'rds-MYSQL-875****'], + 'StackId' => ['description' => 'The ID of the ROS stack.', 'type' => 'string', 'title' => '', 'example' => '2599090a-309e-4306-b989-17ba66a9****'], + 'StackRegionId' => ['description' => 'The ID of the region to which the ROS stack belongs.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'], + 'Status' => ['description' => 'The state of the plan. Valid values:'."\n" + ."\n" + .'- PreviewInProgress: The plan is being prechecked.'."\n" + ."\n" + .'- PreviewSuccess: The precheck is successful.'."\n" + ."\n" + .'- PreviewFailed: The precheck fails.'."\n" + ."\n" + .'- ApplicationInProgress: The plan is being reviewed.'."\n" + ."\n" + .'- ApplicationApproved: The plan is approved.'."\n" + ."\n" + .'- ApplicationRejected: The approval is rejected.'."\n" + ."\n" + .'- ExecuteInProgress: The plan is being run.'."\n" + ."\n" + .'- ExecuteSuccess: The plan is run.'."\n" + ."\n" + .'- ExecuteFailed: The plan fails to be run.'."\n" + ."\n" + .'- Canceled: The plan is canceled.', 'type' => 'string', 'title' => '', 'example' => 'PreviewSuccess'], + 'StatusMessage' => ['description' => 'The message returned for the state.'."\n" + ."\n" + .'> This parameter is returned only when PreviewFailed or ExecuteFailed is returned for the Status parameter.', 'type' => 'string', 'title' => '', 'example' => 'Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the plan was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-09-13T02:01:22Z'], + 'UpdateTime' => ['description' => 'The last time when the task was modified.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-07-18T06:02:35.075Z'], + 'Tags' => [ + 'title' => '', + 'description' => 'An array that consists of custom tags.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the custom tag.', 'type' => 'string', 'title' => '', 'example' => 'k1'], + 'Value' => ['description' => 'The value of the custom tag.', 'type' => 'string', 'title' => '', 'example' => 'v1'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', ], - 'Owner' => [ - 'description' => 'The ID of the owner of the tag option.', - 'type' => 'string', - 'example' => '133413081827****'."\n", + 'OperationType' => ['description' => 'The purpose of the plan. Valid values:'."\n" + ."\n" + .'- LaunchProduct: launches the product. This is the default value.'."\n" + ."\n" + .'- UpdateProvisionedProduct: updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'LaunchProduct'], + 'AssignedApprovers' => [ + 'title' => '', + 'description' => 'An array that consists of reviewers.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'PrincipalType' => ['description' => 'The type of the RAM entity of the reviewer. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'PrincipalName' => ['description' => 'The RAM entity name of the reviewer.', 'type' => 'string', 'title' => '', 'example' => 'endUser'], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'example' => '', ], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'Create ECS', 'title' => ''], + 'Description' => ['description' => 'The description of the plan.', 'type' => 'string', 'example' => 'Dev team usage', 'title' => ''], + 'OwnerPrincipalType' => ['description' => 'The type of the RAM entity to which the plan belongs. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'OwnerPrincipalId' => ['description' => 'The ID of the RAM entity to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => '24477111603637****'."\n"], + 'OwnerPrincipalName' => ['description' => 'The name of the RAM entity to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => 'enduser'], + 'Uid' => ['description' => 'The ID of the Alibaba Cloud account to which the plan belongs.', 'type' => 'string', 'title' => '', 'example' => '146611588617****'], ], - 'description' => 'The tag options associated with the service portfolio.', + 'description' => '', + 'title' => '', + 'example' => '', ], - ], + 'example' => '', + ], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '16'], + 'PageNumber' => ['description' => 'The page number of the returned page.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '1'], + 'PageSize' => ['description' => 'The number of entries returned per page.'."\n" + ."\n" + .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioDetail\\": {\\n \\"PortfolioArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"Description\\": \\"这是一个产品组合描述\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:12Z\\",\\n \\"PortfolioName\\": \\"DEMO-IT服务\\",\\n \\"ProviderName\\": \\"IT团队\\"\\n },\\n \\"TagOptions\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1q65xd3j****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'GetPortfolio', - ], - 'ListPortfolios' => [ - 'summary' => 'Queries product portfolios.', - 'methods' => [ - 'get', - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\",\\n \\"PlanDetails\\": [\\n {\\n \\"PlanId\\": \\"plan-bp18mmdh2u****\\",\\n \\"PlanName\\": \\"DEMO- create ECS-637****\\",\\n \\"PlanType\\": \\"Ros\\",\\n \\"PortfolioId\\": \\"port-bp1438kf2j****\\",\\n \\"ProductId\\": \\"prod-bp1rtrnh2c****\\",\\n \\"ProductVersionId\\": \\"pv-bp19udk22v****\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1c35162d****\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"role_name\\",\\n \\"ParameterValue\\": \\"Test-8\\"\\n }\\n ],\\n \\"ProvisionedProductName\\": \\"rds-MYSQL-875****\\",\\n \\"StackId\\": \\"2599090a-309e-4306-b989-17ba66a9****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"Status\\": \\"PreviewSuccess\\",\\n \\"StatusMessage\\": \\"Create stack failed: Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-09-13T02:01:22Z\\",\\n \\"UpdateTime\\": \\"2022-07-18T06:02:35.075Z\\",\\n \\"Tags\\": [\\n {\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\"\\n }\\n ],\\n \\"OperationType\\": \\"LaunchProduct\\",\\n \\"AssignedApprovers\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalName\\": \\"endUser\\"\\n }\\n ],\\n \\"ProductName\\": \\"Create ECS\\",\\n \\"Description\\": \\"Dev team usage\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\\\n\\",\\n \\"OwnerPrincipalName\\": \\"enduser\\",\\n \\"Uid\\": \\"146611588617****\\"\\n }\\n ],\\n \\"TotalCount\\": 16,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', + 'title' => 'ListProvisionedProductPlans', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionedProductPlans'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProductPlans', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListProvisionedProducts' => [ + 'summary' => 'Queries product instances.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6479,483 +4629,520 @@ 'operationType' => 'get', 'riskType' => 'none', 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ - [ - 'name' => 'ProductId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品ID', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'prod-bp18r7q127****', - ], - ], [ 'name' => 'Filters', 'in' => 'query', 'style' => 'repeatList', 'schema' => [ - 'title' => '过滤条件', - 'description' => '', + 'title' => '', + 'description' => 'The filter conditions.', 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ - 'Key' => [ - 'title' => '过滤条件的名称', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'PortfolioName', - ], - 'Value' => [ - 'title' => '过滤条件的值', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '', - ], + 'Key' => ['description' => 'The name of the filter condition. Valid values:'."\n" + ."\n" + .'- ProvisionedProductName: performs exact matches by product instance name. Product instance names are not case-sensitive.'."\n" + ."\n" + .'- FullTextSearch: performs full-text searches by product instance name. Fuzzy match is supported.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ProvisionedProductName'], + 'Value' => ['description' => 'The value of the filter condition.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => '', 'required' => false], ], 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', ], 'required' => false, 'maxItems' => 5, + 'example' => '', ], ], [ 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'title' => '排序字段', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', - ], + 'schema' => ['description' => 'The field that is used to sort the queried data.'."\n" + ."\n" + .'Set the value to CreateTime, which specifies the time when the product instance was created.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], ], [ 'name' => 'SortOrder', 'in' => 'query', - 'schema' => [ - 'title' => '排序方式', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', - ], + 'schema' => ['description' => 'The sorting method. Valid values:'."\n" + ."\n" + .'- Asc: the ascending order.'."\n" + ."\n" + .'- Desc (default): the descending order.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Desc'], ], [ 'name' => 'PageNumber', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', - ], + 'schema' => ['description' => 'The number of the page to return.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ 'name' => 'PageSize', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', - ], + 'schema' => ['description' => 'The number of entries to return on each page.'."\n" + ."\n" + .'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ - 'name' => 'Scope', + 'name' => 'AccessLevelFilter', 'in' => 'query', - 'schema' => [ - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => 'Local', - ], + 'schema' => ['description' => 'The access filter. Valid values:'."\n" + ."\n" + .'- User: queries the product instances that are created by the current requester. This is the default value.'."\n" + ."\n" + .'- Account: queries the product instances that belong to the current Alibaba Cloud account.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'User'], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'PortfolioDetails' => [ - 'title' => '产品组合列表', - 'description' => '', + 'ProvisionedProductDetails' => [ + 'title' => '', + 'description' => 'The product instances.', 'type' => 'array', 'items' => [ 'title' => 'PortfolioItemType', - 'description' => '', + 'description' => 'The details of the product instance.', 'type' => 'object', 'properties' => [ - 'Description' => [ - 'title' => '产品组合描述', - 'description' => '产品组合描述', - 'type' => 'string', - 'example' => '', - ], - 'PortfolioName' => [ - 'title' => '产品组合名称', - 'description' => '代表资源名称的资源属性字段', - 'type' => 'string', - 'example' => '', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => '代表创建时间的资源属性字段', - 'type' => 'string', - 'example' => '2022-04-12T06:11:12Z', - ], - 'ProviderName' => [ - 'title' => '提供者名称', - 'description' => '产品组合提供方', - 'type' => 'string', - 'example' => '', - ], - 'PortfolioId' => [ - 'title' => '产品组合ID', - 'description' => '代表资源一级ID的资源属性字段', - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'PortfolioArn' => [ - 'title' => '产品组合ARN', - 'description' => '', - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****', - ], + 'ProvisionedProductName' => ['description' => 'The name of the product instance.', 'type' => 'string', 'example' => 'DEMO-ECS-Instance', 'title' => ''], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + 'ProvisionedProductArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****'], + 'ProductId' => ['description' => 'The ID of the product.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The name of the product.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The name of the product version.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'LastTaskId' => ['description' => 'The ID of the task that was last run.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'LastProvisioningTaskId' => ['description' => 'The ID of the task that was last run on the product instance.'."\n" + ."\n" + .'The task can be one of the following types:'."\n" + ."\n" + .'- LaunchProduct: a task that launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: a task that terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'LastSuccessfulProvisioningTaskId' => ['description' => 'The ID of the last task that was successfully run on the product instance.'."\n" + ."\n" + .'The task can be one of the following types:'."\n" + ."\n" + .'- LaunchProduct: a task that launches the product.'."\n" + ."\n" + .'- UpdateProvisionedProduct: a task that updates the information about the product instance.'."\n" + ."\n" + .'- TerminateProvisionedProduct: a task that terminates the product instance.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'OwnerPrincipalType' => ['description' => 'The type of the Resource Access Management (RAM) entity to which the product instance belongs. Valid values:'."\n" + ."\n" + .'- RamUser: a RAM user'."\n" + ."\n" + .'- RamRole: a RAM role', 'type' => 'string', 'title' => '', 'example' => 'RamUser'], + 'OwnerPrincipalId' => ['description' => 'The ID of the RAM entity to which the product instance belongs.', 'type' => 'string', 'title' => '', 'example' => '24477111603637****'], + 'Status' => ['description' => 'The state of the product instance. Valid values:'."\n" + ."\n" + .'- Available: The product instance was available.'."\n" + ."\n" + .'- UnderChange: The information about the product instance was being changed.'."\n" + ."\n" + .'- Error: An exception occurred on the product instance.', 'type' => 'string', 'title' => '', 'example' => 'Available'], + 'StatusMessage' => ['description' => 'The message that is returned for the status of the product instance.'."\n" + ."\n" + .'> This parameter is returned only when Error is returned for the Status parameter.', 'type' => 'string', 'title' => '', 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the product instance was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:46:27Z'], + 'PortfolioId' => ['description' => 'The ID of the product portfolio.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'StackId' => ['description' => 'The ID of the Resource Orchestration Service (ROS) stack.', 'type' => 'string', 'title' => '', 'example' => '137e31df-3754-40b4-be2f-c793ad84****'], + 'StackRegionId' => ['description' => 'The ID of the region to which the ROS stack belongs.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'], + 'ProvisionedProductType' => ['description' => 'The type of the product instance.'."\n" + ."\n" + .'The value is fixed as RosStack, which indicates an ROS stack.', 'type' => 'string', 'example' => 'RosStack', 'title' => ''], ], + 'example' => '', ], + 'example' => '', ], - 'RequestId' => [ - 'title' => '请求ID', - 'description' => '', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '2', - ], - 'PageNumber' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => '', - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'], + 'PageNumber' => ['description' => 'The page number of the returned page.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"ProvisionedProductDetails\\": [\\n {\\n \\"ProvisionedProductName\\": \\"DEMO-ECS-Instance\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:provisionedproduct/pp-bp1ddg1n2a****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-Create ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"LastTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"LastSuccessfulProvisioningTaskId\\": \\"task-bp1dmg242c****\\",\\n \\"OwnerPrincipalType\\": \\"RamUser\\",\\n \\"OwnerPrincipalId\\": \\"24477111603637****\\",\\n \\"Status\\": \\"Available\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"StackId\\": \\"137e31df-3754-40b4-be2f-c793ad84****\\",\\n \\"StackRegionId\\": \\"cn-hangzhou\\",\\n \\"ProvisionedProductType\\": \\"RosStack\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', + 'title' => 'ListProvisionedProducts', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProducts', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/*'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"PortfolioDetails\\": [\\n {\\n \\"Description\\": \\"This is a product portfolio description.\\",\\n \\"PortfolioName\\": \\"DEMO-IT\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:12Z\\",\\n \\"ProviderName\\": \\"IT team\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"PortfolioArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', - 'title' => 'ListPortfolios', + 'translator' => 'manual', ], - 'CreateConstraint' => [ - 'summary' => 'Creates a constraint.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'ListRegions' => [ + 'summary' => 'Queries regions.', + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'create', - ], - 'parameters' => [ - [ - 'name' => 'ConstraintType', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束类型', - 'description' => 'The type of the constraint.'."\n" - ."\n" - .'The value is fixed as Launch, which specifies the launch constraint.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'Launch', - ], - ], - [ - 'name' => 'Config', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束配置', - 'description' => 'The configuration of the constraint.'."\n" - ."\n" - .'Format: { "LocalRoleName": "\\" }.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '{ "LocalRoleName": "TestRole" }', - ], - ], - [ - 'name' => 'Description', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束描述', - 'description' => 'The description of the constraint.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Launch as local role TestRole', - ], - ], - [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束所属的产品组合ID', - 'description' => 'The ID of the product portfolio to which the constraint belongs.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'ProductId', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束对应的产品ID', - 'description' => 'The ID of the product for which the constraint is created.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp18r7q127****', - ], - ], + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], + 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ConstraintId' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'example' => 'cons-bp1yx7x42v****', + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'Regions' => [ + 'title' => '', + 'description' => 'The details of regions.', + 'type' => 'array', + 'items' => [ + 'description' => 'The information about the region.', + 'type' => 'object', + 'properties' => [ + 'RegionId' => ['description' => 'The ID of the region.', 'type' => 'string', 'title' => '', 'example' => 'cn-hangzhou'], + 'RegionEndpoint' => ['description' => 'The endpoint of the region.', 'type' => 'string', 'title' => '', 'example' => 'servicecatalog.cn-hangzhou.aliyuncs.com'], + 'LocalName' => ['description' => 'The name of the region.', 'type' => 'string', 'title' => '', 'example' => '华东1(杭州)'], + ], + 'title' => '', + 'example' => '', + ], + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\"\\n}","type":"json"}]', - 'title' => 'CreateConstraint', - ], - 'DeleteConstraint' => [ - 'summary' => 'Deletes a constraint.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', + 'title' => 'ListRegions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRegions'], + ], ], + 'ramActions' => [], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"Regions\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"RegionEndpoint\\": \\"servicecatalog.cn-hangzhou.aliyuncs.com\\",\\n \\"LocalName\\": \\"华东1(杭州)\\"\\n }\\n ]\\n}","type":"json"}]', + ], + 'ListResourcesForTagOption' => [ + 'summary' => 'Queries the resources that are associated with a tag option.', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ConstraintId', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cons-bp1yx7x42v****', - ], + 'name' => 'TagOptionId', + 'in' => 'query', + 'schema' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1u6mdf3d****', 'title' => ''], + ], + [ + 'name' => 'ResourceType', + 'in' => 'query', + 'schema' => ['description' => 'The type of resource that is associated with the tag option. Valid values:'."\n" + ."\n" + .'- product: product'."\n" + ."\n" + .'- Portfolio: product portfolio', 'type' => 'string', 'required' => true, 'example' => 'Product', 'title' => ''], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The number of the page to return.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', '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" + ."\n" + .'Valid values: 1 to 100 Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => 'E465F21C-8712-5794-A754-5E4D9152****', 'title' => ''], + 'TotalCount' => ['description' => 'The total number of entries returned.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'], + 'PageNumber' => ['description' => 'The page number of the returned page.'."\n" + ."\n" + .'Pages start from page 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries returned per page.'."\n" + ."\n" + .'Valid values: 1 to 100 Minimum value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'ResourceDetails' => [ + 'description' => 'An array that consists of the associated resources.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ResourceArn' => ['description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.', 'type' => 'string', 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'."\n", 'title' => ''], + 'CreateTime' => ['description' => 'The time when the resource was created.'."\n" + ."\n" + .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.', 'type' => 'string', 'example' => '2022-11-04T08:07:04.281986714Z', 'title' => ''], + 'Description' => ['description' => 'The description of the resource.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a product description.', 'title' => ''], + 'ResourceId' => ['description' => 'The ID of the resource with which the tag option is associated.', 'type' => 'string', 'example' => 'port-bp15p96922****', 'title' => ''], + 'ResourceName' => ['description' => 'The name of the resource.', 'type' => 'string', 'example' => 'DEMO-Create ECS', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DeleteConstraint', - ], - 'UpdateConstraint' => [ - 'summary' => 'Updates the information about a constraint.', - 'methods' => [ - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E465F21C-8712-5794-A754-5E4D9152****\\",\\n \\"TotalCount\\": 10,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"ResourceDetails\\": [\\n {\\n \\"ResourceArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\\\n\\",\\n \\"CreateTime\\": \\"2022-11-04T08:07:04.281986714Z\\",\\n \\"Description\\": \\"This is a product description.\\",\\n \\"ResourceId\\": \\"port-bp15p96922****\\",\\n \\"ResourceName\\": \\"DEMO-Create ECS\\"\\n }\\n ]\\n}","type":"json"}]', + 'title' => 'ListResourcesForTagOption', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourcesForTagOption'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListResourcesForTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'translator' => 'manual', + ], + 'ListTagOptions' => [ + 'summary' => 'Lists tag options.', + 'methods' => ['get'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'write', + 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'update', + 'operationType' => 'get', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], + 'tenantRelevance' => 'publicInformation', ], 'parameters' => [ [ - 'name' => 'ConstraintId', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cons-bp1yx7x42v****', - ], + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'Page number.'."\n" + ."\n" + .'Start value: 1. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], ], [ - 'name' => 'Config', - 'in' => 'formData', - 'schema' => [ - 'title' => '约束配置', - 'description' => 'The configurations of the constraint.'."\n" - ."\n" - .'Format: { "LocalRoleName": "\\" }.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => '{ "LocalRoleName": "TestRole" }', - ], + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'Number of data rows displayed per page during paging.'."\n" + ."\n" + .'Value range: 1 to 100. Start value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], ], [ - 'name' => 'Description', - 'in' => 'formData', + 'name' => 'Filters', + 'in' => 'query', + 'style' => 'json', 'schema' => [ - 'title' => '约束描述', - 'description' => 'The description of the constraint.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', + 'description' => 'Filter condition.', + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'Tag option key.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'Tag option value.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + 'Active' => ['description' => 'Enable or disable. Values:'."\n" + ."\n" + .'- true (default): Enable.'."\n" + ."\n" + .'- false: Disable.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], + 'FullTextSearch' => ['description' => 'Full text search.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], + ], 'required' => false, - 'example' => 'Launch as local role TestRole', + 'title' => '', + 'example' => '', ], ], + [ + 'name' => 'SortBy', + 'in' => 'query', + 'schema' => ['description' => 'Sorting field.'."\n" + ."\n" + .'Set to CreateTime to indicate the tag option creation time.', 'type' => 'string', 'required' => false, 'example' => 'CreateTime', 'title' => ''], + ], + [ + 'name' => 'SortOrder', + 'in' => 'query', + 'schema' => ['description' => 'Sorting order. Values:'."\n" + ."\n" + .'- Asc: Ascending order.'."\n" + ."\n" + .'- Desc (default): Descending order.', 'type' => 'string', 'required' => false, 'example' => 'Desc', 'title' => ''], + ], + [ + 'name' => 'NextToken', + 'in' => 'query', + 'schema' => ['description' => 'The token that is used to retrieve the next page of results. You do not need to specify this parameter for the first request.', 'type' => 'string', 'title' => '', 'example' => ''], + ], + [ + 'name' => 'MaxResults', + 'in' => 'query', + 'schema' => ['description' => 'The maximum number of results to return.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => ''], + ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'Return parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ConstraintId' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'example' => 'cons-bp1yx7x42v****', + 'RequestId' => ['title' => 'Id of the request', 'description' => 'Request ID.', 'type' => 'string', 'example' => '37C9C1DF-EFFC-5D8A-80D0-8657B1F3****'], + 'TotalCount' => ['description' => 'Total records.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '10'], + 'PageNumber' => ['description' => 'Page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'Number of data rows displayed per page during paging.'."\n" + ."\n" + .'Value range: 1 to 100. Start value: 1. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], + 'TagOptionDetails' => [ + 'description' => 'List of tag option details.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Active' => ['description' => 'Enable or disable. Values:'."\n" + ."\n" + .'- true: Enable.'."\n" + ."\n" + .'- false: Disable.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'Tag option ID.', 'type' => 'string', 'example' => 'tag-bp1r3mxq3t****', 'title' => ''], + 'Key' => ['description' => 'Tag option key.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'Tag option value.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'Alibaba Cloud account ID of the tag option owner.', 'type' => 'string', 'example' => '133413081827****'."\n", 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', ], + 'NextToken' => ['description' => 'The token that is used to retrieve the next page of results.', 'type' => 'string', 'title' => '', 'example' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\"\\n}","type":"json"}]', - 'title' => 'UpdateConstraint', - ], - 'GetConstraint' => [ - 'summary' => 'Queries the information about a constraint.', - 'methods' => [ - 'get', - 'post', + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'ListTagOptions', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagOptions'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListTagOptions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37C9C1DF-EFFC-5D8A-80D0-8657B1F3****\\",\\n \\"TotalCount\\": 10,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TagOptionDetails\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1r3mxq3t****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ],\\n \\"NextToken\\": \\"\\"\\n}","type":"json"}]', + ], + 'ListTasks' => [ + 'methods' => ['get', 'post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -6963,119 +5150,209 @@ ], 'operationType' => 'read', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'get'], 'parameters' => [ [ - 'name' => 'ConstraintId', + 'name' => 'SortBy', 'in' => 'query', - 'schema' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'cons-bp1yx7x42v****', - ], + 'schema' => ['description' => 'The field to sort by.'."\n" + ."\n" + .'Set the value to `CreateTime`, which specifies the time when the task was created.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'CreateTime'], + ], + [ + 'name' => 'SortOrder', + 'in' => 'query', + 'schema' => ['description' => 'The sorting order. Valid values:'."\n" + ."\n" + .'- Asc: in ascending order.'."\n" + ."\n" + .'- Desc: in descending order.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Desc'], + ], + [ + 'name' => 'PageNumber', + 'in' => 'query', + 'schema' => ['description' => 'The page number.'."\n" + ."\n" + .'The value must be a positive integer. Default value: 1.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '1', 'title' => ''], + ], + [ + 'name' => 'PageSize', + 'in' => 'query', + 'schema' => ['description' => 'The number of entries per page.'."\n" + ."\n" + .'Valid values: 1 to 100. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'example' => '10', 'title' => ''], + ], + [ + 'name' => 'ProvisionedProductId', + 'in' => 'query', + 'schema' => ['description' => 'The instance ID.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'ConstraintDetail' => [ - 'title' => '约束详情', - 'description' => 'The details of the constraint.'."\n", - 'type' => 'object', - 'properties' => [ - 'Config' => [ - 'title' => '约束配置', - 'description' => 'The configuration of the constraint.'."\n" + 'TaskDetails' => [ + 'title' => '', + 'description' => 'The list of tasks.', + 'type' => 'array', + 'items' => [ + 'title' => 'PortfolioItemType', + 'description' => 'The details of the task.', + 'type' => 'object', + 'properties' => [ + 'TaskId' => ['description' => 'The task ID.', 'type' => 'string', 'title' => '', 'example' => 'task-bp1dmg242c****'], + 'TaskType' => ['description' => 'The type of the task. Valid values:'."\n" ."\n" - .'Format: { "LocalRoleName": "\\" }.'."\n", - 'type' => 'string', - 'example' => '{ "LocalRoleName": "TestRole" }', - ], - 'Description' => [ - 'title' => '描述', - 'description' => 'The description of the constraint.'."\n", - 'type' => 'string', - 'example' => 'Launch as local role TestRole', - ], - 'CreateTime' => [ - 'title' => '创建时间', - 'description' => 'The time when the constraint was created.'."\n" + .'- `LaunchProduct`: launches the instance.'."\n" ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-04-12T06:11:26Z', - ], - 'ConstraintId' => [ - 'title' => '约束ID', - 'description' => 'The ID of the constraint.'."\n", - 'type' => 'string', - 'example' => 'cons-bp1yx7x42v****', - ], - 'PortfolioId' => [ - 'title' => '约束所属的产品组合ID', - 'description' => 'The ID of the product portfolio to which the constraint belongs.'."\n", - 'type' => 'string', - 'example' => 'port-bp1yt7582g****', - ], - 'ProductId' => [ - 'title' => '约束的产品ID', - 'description' => 'The ID of the product for which the constraint is created.'."\n", - 'type' => 'string', - 'example' => 'prod-bp18r7q127****', - ], - 'ConstraintType' => [ - 'title' => '约束类型', - 'description' => 'The type of the constraint.'."\n" + .'- `UpdateProvisionedProduct`: updates the instance.'."\n" ."\n" - .'The value is fixed as Launch, which indicates the launch constraint.'."\n", - 'type' => 'string', - 'example' => 'Launch', - ], - 'ProductName' => [ - 'description' => 'The name of the product.'."\n", - 'type' => 'string', - 'example' => 'DEMO-Create an ECS instance.'."\n", + .'- `TerminateProvisionedProduct`: terminates the instance.', 'type' => 'string', 'title' => '', 'example' => 'LaunchProduct'], + 'PortfolioId' => ['description' => 'The portfolio ID.', 'type' => 'string', 'title' => '', 'example' => 'port-bp1yt7582g****'], + 'ProductId' => ['description' => 'The product ID.', 'type' => 'string', 'title' => '', 'example' => 'prod-bp18r7q127****'], + 'ProductName' => ['description' => 'The product name.', 'type' => 'string', 'title' => '', 'example' => 'DEMO-ECS'], + 'ProductVersionId' => ['description' => 'The product version ID.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], + 'ProductVersionName' => ['description' => 'The product version name.', 'type' => 'string', 'title' => '', 'example' => '1.0'], + 'ProvisionedProductId' => ['description' => 'The instance ID.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + 'ProvisionedProductName' => ['description' => 'The instance name.', 'type' => 'string', 'title' => '', 'example' => 'Test-ECS'], + 'Parameters' => [ + 'description' => 'The template parameters entered by the user.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the parameter defined in the template.', 'type' => 'string', 'example' => 'instance_type', 'title' => ''], + 'ParameterValue' => ['description' => 'The value of the template parameter entered by the user.', 'type' => 'string', 'example' => 'ecs.s6-c1m1.small', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Outputs' => [ + 'description' => 'The output of the template.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'OutputKey' => ['description' => 'The output key defined in the template.', 'type' => 'string', 'example' => 'instance_id', 'title' => ''], + 'OutputValue' => ['description' => 'The output value defined in the template.', 'type' => 'string', 'example' => 'i-xxxxxx', 'title' => ''], + 'Description' => ['description' => 'The output description defined in the template.', 'type' => 'string', 'example' => 'The ECS instance ID.', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + 'Log' => [ + 'description' => 'The output logs of the instance.', + 'type' => 'object', + 'properties' => [ + 'TerraformLogs' => [ + 'description' => 'The Terraform output logs.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Command' => ['description' => 'The name of the Terraform command that is executed. Valid values:'."\n" + ."\n" + .'- apply'."\n" + ."\n" + .'- plan'."\n" + ."\n" + .'- destroy'."\n" + ."\n" + .'- version'."\n" + ."\n" + .'For more information about the commands, see [Command](https://www.terraform.io/cli/commands).', 'type' => 'string', 'example' => 'apply', 'title' => ''], + 'Stream' => ['description' => 'The output stream. Valid values:'."\n" + ."\n" + .'- stdout: standard output.'."\n" + ."\n" + .'- stderr: standard error output.', 'type' => 'string', 'example' => 'stdout', 'title' => ''], + 'Content' => ['description' => 'The content returned for the command in the output stream.', 'type' => 'string', 'example' => 'Apply complete! Resources: 42 added, 0 changed, 0 destroyed.', 'title' => ''], + ], + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'title' => '', + 'example' => '', + ], + ], + 'title' => '', + 'example' => '', + ], + 'Status' => ['description' => 'The status of the task. Valid values:'."\n" + ."\n" + .'- Succeeded'."\n" + ."\n" + .'- InProgress'."\n" + ."\n" + .'- Failed', 'type' => 'string', 'title' => '', 'example' => 'Succeeded'], + 'StatusMessage' => ['description' => 'The status message of the task.'."\n" + ."\n" + .'> This parameter is returned only when the task fails.', 'type' => 'string', 'title' => '', 'example' => 'Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...'], + 'CreateTime' => ['description' => 'The time when the task was created.'."\n" + ."\n" + .'The time is displayed in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ.', 'type' => 'string', 'title' => '', 'example' => '2022-05-23T09:46:27Z'], + 'UpdateTime' => ['description' => 'The time when the task was last updated.'."\n" + ."\n" + .'The time is displayed in UTC and follows the ISO 8601 standard. The format is YYYY-MM-DDThh:mm:ssZ.', 'type' => 'string', 'example' => '2022-05-26T03:28:45Z', 'title' => ''], ], + 'example' => '', ], + 'example' => '', ], + 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'TotalCount' => ['description' => 'The total number of entries.', 'type' => 'integer', 'format' => 'int32', 'title' => '', 'example' => '2'], + 'PageNumber' => ['description' => 'The page number.', 'type' => 'integer', 'format' => 'int32', 'example' => '1', 'title' => ''], + 'PageSize' => ['description' => 'The number of entries per page.', 'type' => 'integer', 'format' => 'int32', 'example' => '10', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'ListTasks', + 'summary' => 'Queries a list of tasks.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListTasks', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintDetail\\": {\\n \\"Config\\": \\"{ \\\\\\"LocalRoleName\\\\\\": \\\\\\"TestRole\\\\\\" }\\",\\n \\"Description\\": \\"Launch as local role TestRole\\",\\n \\"CreateTime\\": \\"2022-04-12T06:11:26Z\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ConstraintType\\": \\"Launch\\",\\n \\"ProductName\\": \\"DEMO-创建ECS\\"\\n }\\n}","type":"json"}]', - 'title' => 'GetConstraint', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TaskDetails\\": [\\n {\\n \\"TaskId\\": \\"task-bp1dmg242c****\\",\\n \\"TaskType\\": \\"LaunchProduct\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\",\\n \\"ProductName\\": \\"DEMO-ECS\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\",\\n \\"ProductVersionName\\": \\"1.0\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\",\\n \\"ProvisionedProductName\\": \\"Test-ECS\\",\\n \\"Parameters\\": [\\n {\\n \\"ParameterKey\\": \\"instance_type\\",\\n \\"ParameterValue\\": \\"ecs.s6-c1m1.small\\"\\n }\\n ],\\n \\"Outputs\\": [\\n {\\n \\"OutputKey\\": \\"instance_id\\",\\n \\"OutputValue\\": \\"i-xxxxxx\\",\\n \\"Description\\": \\"The ECS instance ID.\\"\\n }\\n ],\\n \\"Log\\": {\\n \\"TerraformLogs\\": [\\n {\\n \\"Command\\": \\"apply\\",\\n \\"Stream\\": \\"stdout\\",\\n \\"Content\\": \\"Apply complete! Resources: 42 added, 0 changed, 0 destroyed.\\"\\n }\\n ]\\n },\\n \\"Status\\": \\"Succeeded\\",\\n \\"StatusMessage\\": \\"Resource CREATE failed: terraform stack sc-146611588617****-pp-bp1ddg1n2a**** failure...\\",\\n \\"CreateTime\\": \\"2022-05-23T09:46:27Z\\",\\n \\"UpdateTime\\": \\"2022-05-26T03:28:45Z\\"\\n }\\n ],\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"TotalCount\\": 2,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10\\n}","type":"json"}]', ], - 'AssociatePrincipalWithPortfolio' => [ - 'summary' => 'Grants a Resource Access Management (RAM) user or RAM role that belongs to the current Alibaba Cloud account the permissions to access a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'TerminateProvisionedProduct' => [ + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7083,95 +5360,62 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => ['operationType' => 'delete'], 'parameters' => [ [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'PrincipalType', - 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体类型,枚举值为RamUser、RamRole、RamPattern。填写RamUser和RamRole时,PrincipalId必填;填写RamPattern时,PrincipPattern必填。', - 'description' => '', - 'type' => 'string', - 'required' => true, - 'example' => 'RamUser', - ], - ], - [ - 'name' => 'PrincipalId', - 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体ID', - 'description' => '', - 'type' => 'string', - 'required' => false, - 'example' => '24477111603637****', - ], - ], - [ - 'name' => 'PrincipalPattern', + 'name' => 'ProvisionedProductId', 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体名称规则,当PrincipalType填写RamPattern时生效。如需配置Ram用户名称规则,格式为user/${userName};如需配置Ram角色名称规则,格式为role/${roleName}。', - 'type' => 'string', - 'example' => 'user/userName', - ], + 'schema' => ['title' => '实例ID', 'description' => 'The ID of the product instance.', 'type' => 'string', 'required' => true, 'example' => 'pp-bp1ddg1n2a****'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => '', + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => '', - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['title' => '请求ID', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'TerminateProvisionedProduct', + 'summary' => 'Terminates a product instance.', + 'description' => 'After a product instance is terminated, the product instance is deleted from the product instance list. End users cannot manage the product instance throughout its lifecycle. Proceed with caution.', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TerminateProvisionedProduct'], + ], + ], + 'ramActions' => [ + [ + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:TerminateProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'AssociatePrincipalWithPortfolio', ], - 'DisassociatePrincipalFromPortfolio' => [ - 'summary' => 'Revokes the permissions to access a product portfolio.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateConstraint' => [ + 'summary' => 'Updates the information about a constraint.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7179,405 +5423,420 @@ ], 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'delete', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ - 'name' => 'PortfolioId', - 'in' => 'formData', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], - ], - [ - 'name' => 'PrincipalType', + 'name' => 'ConstraintId', 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体类型,枚举值为RamUser、RamRole、RamPattern。填写RamUser和RamRole时,PrincipalId必填;填写RamPattern时,PrincipPattern必填。', - 'description' => 'The type of the Resource Access Management (RAM) entity. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'RamUser', - ], + 'schema' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'cons-bp1yx7x42v****'], ], [ - 'name' => 'PrincipalId', + 'name' => 'Config', 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体ID', - 'description' => 'The ID of the RAM entity.'."\n" - ."\n" - .'For more information about how to obtain the ID of a RAM user, see [GetUser](~~28681~~).'."\n" - ."\n" - .'For more information about how to obtain the ID of a RAM role, see [GetRole](~~28711~~).'."\n", - 'type' => 'string', - 'required' => false, - 'example' => '24477111603637****', - ], + 'schema' => ['description' => 'The configurations of the constraint.'."\n" + ."\n" + .'Format: { "LocalRoleName": "\\" }.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => '{ "LocalRoleName": "TestRole" }'], ], [ - 'name' => 'PrincipalPattern', + 'name' => 'Description', 'in' => 'formData', - 'schema' => [ - 'title' => 'RAM实体名称规则,当PrincipalType填写RamPattern时生效。如需配置Ram用户名称规则,格式为user/${userName};如需配置Ram角色名称规则,格式为role/${roleName}。', - 'type' => 'string', - 'example' => 'user/userName', - ], + 'schema' => ['description' => 'The description of the constraint.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Launch as local role TestRole'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ConstraintId' => ['description' => 'The ID of the constraint.', 'type' => 'string', 'title' => '', 'example' => 'cons-bp1yx7x42v****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'title' => 'UpdateConstraint', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\"\\n}","type":"json"}]', - 'title' => 'DisassociatePrincipalFromPortfolio', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ConstraintId\\": \\"cons-bp1yx7x42v****\\"\\n}","type":"json"}]', ], - 'ListPrincipals' => [ - 'summary' => 'Queries the Resource Access Management (RAM) users and RAM roles that are granted the permissions to access a product portfolio.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdatePortfolio' => [ + 'summary' => 'Updates a portfolio.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', - ], - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ 'name' => 'PortfolioId', - 'in' => 'query', - 'schema' => [ - 'title' => '产品组合ID', - 'description' => 'The ID of the product portfolio.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp1yt7582g****', - ], + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The portfolio ID.', 'type' => 'string', 'required' => true, 'example' => 'port-bp1yt7582g****'], + ], + [ + 'name' => 'PortfolioName', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The portfolio name.'."\n" + ."\n" + .'It must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'DEMO-IT'], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The portfolio description.'."\n" + ."\n" + .'It must be 1 to 128 characters in length.', 'type' => 'string', 'required' => false, 'example' => 'This is a product portfolio description.'], + ], + [ + 'name' => 'ProviderName', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The portfolio provider.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'IT team'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'Principals' => [ - 'title' => 'RAM实体列表', - 'description' => 'The RAM entities.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the RAM entity.'."\n", - 'type' => 'object', - 'properties' => [ - 'PrincipalType' => [ - 'title' => 'RAM实体类型', - 'description' => 'The type of the RAM entity. Valid values:'."\n" - ."\n" - .'* RamUser: a RAM user'."\n" - .'* RamRole: a RAM role'."\n", - 'type' => 'string', - 'example' => 'RamUser', - ], - 'PrincipalId' => [ - 'title' => 'RAM实体ID', - 'description' => 'The ID of the RAM entity.'."\n", - 'type' => 'string', - 'example' => '24477111603637****', - ], - 'PrincipalPattern' => [ - 'type' => 'string', - ], - ], - ], - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'PortfolioId' => ['title' => '', 'description' => 'The portfolio ID.', 'type' => 'string', 'example' => 'port-bp1yt7582g****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"PortfolioId\\": \\"port-bp1yt7582g****\\"\\n}","type":"json"}]', + 'title' => 'UpdatePortfolio', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdatePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"Principals\\": [\\n {\\n \\"PrincipalType\\": \\"RamUser\\",\\n \\"PrincipalId\\": \\"24477111603637****\\",\\n \\"PrincipalPattern\\": \\"\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListPrincipals', ], - 'ListRegions' => [ - 'summary' => 'Queries regions.', - 'methods' => [ - 'get', - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateProduct' => [ + 'summary' => 'Updates a product.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], - 'operationType' => 'read', + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', + 'systemTags' => ['operationType' => 'update'], + 'parameters' => [ + [ + 'name' => 'ProductName', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The product name.'."\n" + ."\n" + .'The name must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'Test-ECS'], + ], + [ + 'name' => 'ProductId', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The product ID.', 'type' => 'string', 'required' => true, 'example' => 'prod-bp18r7q127****'], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The product description.'."\n" + ."\n" + .'The description must be 1 to 128 characters in length.', 'type' => 'string', 'required' => false, 'example' => 'This is a product description.'], + ], + [ + 'name' => 'ProviderName', + 'in' => 'formData', + 'schema' => ['title' => '', 'description' => 'The product provider.'."\n" + ."\n" + .'The name must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'example' => 'IT team'], ], - 'tenantRelevance' => 'publicInformation', ], - 'parameters' => [], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => '请求ID', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF', - ], - 'Regions' => [ - 'title' => '地域列表', - 'description' => 'The details of regions.'."\n", - 'type' => 'array', - 'items' => [ - 'description' => 'The information about the region.'."\n", - 'type' => 'object', - 'properties' => [ - 'RegionId' => [ - 'title' => '地域ID', - 'description' => 'The ID of the region.'."\n", - 'type' => 'string', - 'example' => 'cn-hangzhou', - ], - 'RegionEndpoint' => [ - 'title' => '地域接入地址', - 'description' => 'The endpoint of the region.'."\n", - 'type' => 'string', - 'example' => 'servicecatalog.cn-hangzhou.aliyuncs.com', - ], - 'LocalName' => [ - 'title' => '地域名称', - 'description' => 'The name of the region.'."\n", - 'type' => 'string', - 'example' => 'China (Hangzhou)'."\n", - ], - ], - ], - ], + 'RequestId' => ['title' => '', 'description' => 'The request ID.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductId' => ['title' => '', 'description' => 'The product ID.', 'type' => 'string', 'example' => 'prod-bp18r7q127****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductId\\": \\"prod-bp18r7q127****\\"\\n}","type":"json"}]', + 'title' => 'UpdateProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"Regions\\": [\\n {\\n \\"RegionId\\": \\"cn-hangzhou\\",\\n \\"RegionEndpoint\\": \\"servicecatalog.cn-hangzhou.aliyuncs.com\\",\\n \\"LocalName\\": \\"华东1(杭州)\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListRegions', ], - 'GetTagOption' => [ - 'summary' => 'Queries the details of a tag option.', - 'methods' => [ - 'get', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateProductVersion' => [ + 'summary' => 'Updates the information about a product version.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => ['operationType' => 'update'], 'parameters' => [ [ - 'name' => 'TagOptionId', - 'in' => 'query', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1r3mxq3t****', - ], + 'name' => 'ProductVersionId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], + ], + [ + 'name' => 'ProductVersionName', + 'in' => 'formData', + 'schema' => ['description' => 'The name of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'required' => true, 'maxLength' => 100, 'minLength' => 1, 'title' => '', 'example' => '1.0'], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['description' => 'The description of the product version.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length.', 'type' => 'string', 'example' => 'This is a product version description.', 'title' => '', 'required' => false], + ], + [ + 'name' => 'Guidance', + 'in' => 'formData', + 'schema' => ['description' => 'The recommendation information. Valid values:'."\n" + ."\n" + .'- Default: No recommendation information is provided. This is the default value.'."\n" + ."\n" + .'- Recommended: the recommended version.'."\n" + ."\n" + .'- Latest: the latest version.'."\n" + ."\n" + .'- Deprecated: the version that is about to be discontinued.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'Default'], + ], + [ + 'name' => 'Active', + 'in' => 'formData', + 'schema' => ['description' => 'Specifies whether to enable the product version. Valid values:'."\n" + ."\n" + .'- true: enables the product version. This is the default value.'."\n" + ."\n" + .'- false: disables the product version.', 'type' => 'boolean', 'title' => '', 'required' => false, 'example' => 'true'], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'TagOptionDetail' => [ - 'description' => 'The details of the tag option.'."\n", - 'type' => 'object', - 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'* true'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'example' => 'tag-bp15qmwz3r****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - 'Owner' => [ - 'description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.'."\n", - 'type' => 'string', - 'example' => '133413081827****', - ], - ], - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'C1509725-055D-5C7B-9420-8B737DBD****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProductVersionId' => ['description' => 'The ID of the product version.', 'type' => 'string', 'title' => '', 'example' => 'pv-bp15e79d26****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProductVersionId\\": \\"pv-bp15e79d26****\\"\\n}","type":"json"}]', + 'title' => 'UpdateProductVersion', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [], + ], + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TagOptionDetail\\": {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp15qmwz3r****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\"\\n },\\n \\"RequestId\\": \\"C1509725-055D-5C7B-9420-8B737DBD****\\"\\n}","type":"json"}]', - 'title' => 'GetTagOption', + 'translator' => 'manual', ], - 'DisAssociateTagOptionFromResource' => [ - 'summary' => 'Disassociates a tag option from a resource.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'UpdateProvisionedProduct' => [ + 'summary' => 'Updates the information about a product instance.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, - 'systemTags' => [ - 'operationType' => 'get', - ], + 'systemTags' => [], 'parameters' => [ [ - 'name' => 'ResourceId', + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product portfolio.'."\n" + ."\n" + .'> The PortfolioId parameter is not required if the default launch option exists. The PortfolioId parameter is required if the default launch option does not exist. For more information about how to obtain the value of the PortfolioId parameter, see [ListLaunchOptions](~~ListLaunchOptions~~).', 'type' => 'string', 'required' => false, 'title' => '', 'example' => 'port-bp1yt7582g****'], + ], + [ + 'name' => 'ProductId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'], + ], + [ + 'name' => 'ProductVersionId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product version.'."\n" + ."\n" + .'> If the values of the ProductVersionId and Parameters parameters are not changed, the information about the product instance cannot be updated.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'], + ], + [ + 'name' => 'Parameters', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the resource with which the tag option is associated.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'prod-bp14katy3d****', + 'description' => 'The input parameters of the template.'."\n" + ."\n" + .'You can specify up to 200 parameters.'."\n" + ."\n" + .'> - This parameter is optional. If you specify the Parameters parameter, you must specify the ParameterKey and ParameterValue parameters.'."\n" + .'>'."\n" + .'> - If the values of the ProductVersionId and Parameters parameters are not changed, you are not allowed to update the information about the product instance.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the input parameter for the template.', 'type' => 'string', 'required' => false, 'example' => 'instance_type', 'title' => ''], + 'ParameterValue' => ['description' => 'The value of the input parameter for the template.', 'type' => 'string', 'required' => false, 'example' => 'ecs.s6-c1m1.small', 'title' => ''], + ], + 'required' => false, + 'description' => 'The input parameters of the template.', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 200, + 'title' => '', + 'example' => '', ], ], [ - 'name' => 'TagOptionId', + 'name' => 'ProvisionedProductId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], + ], + [ + 'name' => 'Tags', 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1u6mdf3d****', + 'description' => 'The input custom tags.'."\n" + ."\n" + .'Maximum value of N: 20.'."\n" + ."\n" + .'> - The Tags parameter is optional. If you need to specify the Tags parameter, you must specify the Tags.N.Key and Tags.N.Value parameters.'."\n" + .'>'."\n" + .'> - The tag is propagated to each stack resource that supports the tag feature.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The tag key of the custom tag.'."\n" + ."\n" + .'The tag key must be 1 to 128 characters in length and cannot contain `http://` or `https://`. It cannot start with `acs:` or `aliyun`.', 'type' => 'string', 'required' => false, 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The tag value of the custom tag.'."\n" + ."\n" + .'The tag value can be up to 128 characters in length and cannot start with `acs:`. It cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'example' => 'v1', 'title' => ''], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], + 'required' => false, + 'maxItems' => 20, + 'title' => '', + 'example' => '', ], ], ], @@ -7585,202 +5844,206 @@ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '7E23D1F3-4333-587B-909C-39EA4626****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'title' => '', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F81BF'], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', - ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"7E23D1F3-4333-587B-909C-39EA4626****\\"\\n}","type":"json"}]', - 'title' => 'DisAssociateTagOptionFromResource', - ], - 'ListResourcesForTagOption' => [ - 'summary' => 'Queries the resources that are associated with a tag option.', - 'methods' => [ - 'get', + 'title' => 'UpdateProvisionedProduct', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateProvisionedProduct'], + ], ], - 'schemes' => [ - 'http', - 'https', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], ], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F81BF\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\"\\n}","type":"json"}]', + ], + 'UpdateProvisionedProductPlan' => [ + 'summary' => 'Updates a plan.', + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], + 'operationType' => 'write', 'deprecated' => false, 'systemTags' => [ - 'operationType' => 'get', + 'operationType' => 'update', + 'riskType' => 'none', + 'chargeType' => 'free', + 'abilityTreeNodes' => ['FEATUREgovernanceLSR8I4'], ], 'parameters' => [ [ - 'name' => 'TagOptionId', - 'in' => 'query', - 'schema' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1u6mdf3d****', - ], + 'name' => 'PlanId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the plan.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'plan-bp1jvmdk2k****'."\n"], ], [ - 'name' => 'ResourceType', - 'in' => 'query', - 'schema' => [ - 'description' => 'The type of resource that is associated with the tag option. Valid values:'."\n" - ."\n" - .'* product: product'."\n" - .'* Portfolio: product portfolio'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'Product', - ], + 'name' => 'PortfolioId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product portfolio.'."\n" + ."\n" + .'> If the default launch option exists, you do not need to specify PortfolioId. If the default launch option does not exist, you must specify PortfolioId. For more information about how to obtain the value of PortfolioId, see [ListLaunchOptions](~~ListLaunchOptions~~).', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'port-bp1yt7582g****'."\n"], ], [ - 'name' => 'PageNumber', - 'in' => 'query', + 'name' => 'ProductId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'prod-bp18r7q127****'."\n"], + ], + [ + 'name' => 'ProductVersionId', + 'in' => 'formData', + 'schema' => ['description' => 'The ID of the product version.', 'type' => 'string', 'required' => true, 'title' => '', 'example' => 'pv-bp15e79d26****'."\n"], + ], + [ + 'name' => 'Description', + 'in' => 'formData', + 'schema' => ['description' => 'The description of the plan.', 'type' => 'string', 'example' => 'Used for create ECS', 'title' => '', 'required' => false], + ], + [ + 'name' => 'Parameters', + 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The number of the page to return.'."\n" + 'title' => '', + 'description' => 'An array that consists of the parameters in the template.'."\n" + ."\n" + .'Maximum value of N: 200.'."\n" ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', + .'> If you specify Parameters, you must specify ParameterKey and ParameterValue.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'ParameterKey' => ['description' => 'The name of the parameter in the template.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'instance_type'], + 'ParameterValue' => ['description' => 'The value of the parameter in the template.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'ecs.s6-c1m1.small'."\n"], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => '1', + 'maxItems' => 200, + 'example' => '', ], ], [ - 'name' => 'PageSize', - 'in' => 'query', + 'name' => 'Tags', + 'in' => 'formData', + 'style' => 'repeatList', 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n" + 'title' => '', + 'description' => 'An array that consists of custom tags.'."\n" + ."\n" + .'Maximum value of N: 20.'."\n" ."\n" - .'Valid values: 1 to 100 Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', + .'>'."\n" + ."\n" + .'- If you specify Tags, you must specify Tags.N.Key and Tags.N.Value.'."\n" + ."\n" + .'- The tag of a stack is propagated to each resource that supports the tag feature in the stack.', + 'type' => 'array', + 'items' => [ + 'type' => 'object', + 'properties' => [ + 'Key' => ['description' => 'The key of the custom tag.'."\n" + ."\n" + .'The key can be up to 128 characters in length, and cannot start with `acs:` or `aliyun`. The tag key cannot contain `http://` or `https://`.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'k1'], + 'Value' => ['description' => 'The value of the custom tag.'."\n" + ."\n" + .'The value can be up to 128 characters in length, and cannot start with `acs:`. The tag value cannot contain `http://` or `https://`.', 'type' => 'string', 'title' => '', 'required' => false, 'example' => 'v1'], + ], + 'required' => false, + 'description' => '', + 'title' => '', + 'example' => '', + ], 'required' => false, - 'example' => '10', + 'maxItems' => 20, + 'example' => '', ], ], ], 'responses' => [ 200 => [ + 'headers' => [], 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'E465F21C-8712-5794-A754-5E4D9152****', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of entries returned per page.'."\n" - ."\n" - .'Valid values: 1 to 100 Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'ResourceDetails' => [ - 'description' => 'An array that consists of the associated resources.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'ResourceArn' => [ - 'description' => 'The Alibaba Cloud Resource Name (ARN) of the resource.'."\n", - 'type' => 'string', - 'example' => 'acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****'."\n", - ], - 'CreateTime' => [ - 'description' => 'The time when the resource was created.'."\n" - ."\n" - .'The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.'."\n", - 'type' => 'string', - 'example' => '2022-11-04T08:07:04.281986714Z', - ], - 'Description' => [ - 'description' => 'The description of the resource.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length.'."\n", - 'type' => 'string', - 'example' => 'The description of the resource.', - ], - 'ResourceId' => [ - 'description' => 'The ID of the resource with which the tag option is associated.'."\n", - 'type' => 'string', - 'example' => 'port-bp15p96922****', - ], - 'ResourceName' => [ - 'description' => 'The name of the resource.'."\n", - 'type' => 'string', - 'example' => 'DEMO-ECS', - ], - ], - ], - ], + 'RequestId' => ['title' => 'Id of the request', 'description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****'."\n"], + 'PlanId' => ['description' => 'The ID of the plan.', 'type' => 'string', 'title' => '', 'example' => 'plan-bp1jvmdk2k****'."\n"], + 'ProvisionedProductId' => ['description' => 'The ID of the product instance.', 'type' => 'string', 'title' => '', 'example' => 'pp-bp1ddg1n2a****'."\n"], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'staticInfo' => ['returnType' => 'synchronous'], + 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\\\n\\",\\n \\"PlanId\\": \\"plan-bp1jvmdk2k****\\\\n\\",\\n \\"ProvisionedProductId\\": \\"pp-bp1ddg1n2a****\\\\n\\"\\n}","type":"json"}]', + 'title' => 'UpdateProvisionedProductPlan', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateProvisionedProductPlan'], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"E465F21C-8712-5794-A754-5E4D9152****\\",\\n \\"TotalCount\\": 10,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"ResourceDetails\\": [\\n {\\n \\"ResourceArn\\": \\"acs:servicecatalog:cn-hangzhou:146611588617****:product/prod-bp18r7q127****\\\\n\\",\\n \\"CreateTime\\": \\"2022-11-04T08:07:04.281986714Z\\",\\n \\"Description\\": \\"这是一个产品描述。\\\\n\\",\\n \\"ResourceId\\": \\"port-bp15p96922****\\",\\n \\"ResourceName\\": \\"DEMO-创建ECS\\\\n\\"\\n }\\n ]\\n}","type":"json"}]', - 'title' => 'ListResourcesForTagOption', + 'ramActions' => [ + [ + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + ], + 'translator' => 'manual', ], 'UpdateTagOption' => [ 'summary' => 'Updates the tag option.', - 'methods' => [ - 'post', - ], - 'schemes' => [ - 'http', - 'https', - ], + 'methods' => ['post'], + 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], @@ -7792,595 +6055,1119 @@ [ 'name' => 'TagOptionId', 'in' => 'formData', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1u6mdf3d****', - ], + 'schema' => ['title' => 'A short description of struct', 'description' => 'The ID of the tag option.', 'type' => 'string', 'required' => true, 'example' => 'tag-bp1u6mdf3d****'], ], [ 'name' => 'Value', 'in' => 'formData', - 'schema' => [ - 'description' => 'The value of the tag option.'."\n" - ."\n" - .'The value can be up to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'v1', - 'maxLength' => 128, - 'minLength' => 1, - ], + 'schema' => ['description' => 'The value of the tag option.'."\n" + ."\n" + .'The value can be up to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.', 'type' => 'string', 'required' => false, 'maxLength' => 128, 'minLength' => 1, 'example' => 'v1', 'title' => ''], ], [ 'name' => 'Active', 'in' => 'formData', - 'schema' => [ - 'description' => 'Specifies whether to enable the tag option. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], + 'schema' => ['description' => 'Specifies whether to enable the tag option. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", + 'description' => 'The response parameters.', 'type' => 'object', 'properties' => [ 'TagOptionDetail' => [ - 'description' => 'The details of the tag option.'."\n", + 'description' => 'The details of the tag option.', 'type' => 'object', 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'example' => 'tag-bp1u6mdf3d****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.'."\n" - ."\n" - .'The key must be 1 to 128 characters in length. It cannot contain `http://` or `https://` and cannot start with `acs:` or `aliyun`.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length. It cannot contain `http://` or `https://` and cannot start with `acs:` or `aliyun`.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - 'Owner' => [ - 'description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.'."\n", - 'type' => 'string', - 'example' => '133413081827****', - ], + 'Active' => ['description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" + ."\n" + .'- true (default)'."\n" + ."\n" + .'- false', 'type' => 'boolean', 'example' => 'true', 'title' => ''], + 'TagOptionId' => ['description' => 'The ID of the tag option.', 'type' => 'string', 'example' => 'tag-bp1u6mdf3d****', 'title' => ''], + 'Key' => ['description' => 'The key of the tag option.'."\n" + ."\n" + .'The key must be 1 to 128 characters in length. It cannot contain `http://` or `https://` and cannot start with `acs:` or `aliyun`.', 'type' => 'string', 'example' => 'k1', 'title' => ''], + 'Value' => ['description' => 'The value of the tag option.'."\n" + ."\n" + .'The value must be 1 to 128 characters in length. It cannot contain `http://` or `https://` and cannot start with `acs:` or `aliyun`.', 'type' => 'string', 'example' => 'v1', 'title' => ''], + 'Owner' => ['description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.', 'type' => 'string', 'example' => '133413081827****', 'title' => ''], ], + 'title' => '', + 'example' => '', ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', - ], + 'RequestId' => ['description' => 'The ID of the request.', 'type' => 'string', 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', 'title' => ''], ], + 'example' => '', ], ], ], 'errorCodes' => [ 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', - ], + ['errorCode' => 'InternalError', 'errorMessage' => 'A system error occurred.', 'description' => ''], + ], + ], + 'staticInfo' => ['returnType' => 'synchronous'], + 'title' => 'UpdateTagOption', + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTagOption'], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + 'ramActions' => [ + [ + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TagOptionDetail\\": {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1u6mdf3d****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\"\\n },\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\"\\n}","type":"json"}]', - 'title' => 'UpdateTagOption', ], - 'ListTagOptions' => [ - 'summary' => 'Queries a list of tag options.', - 'methods' => [ - 'get', + ], + 'endpoints' => [ + ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'servicecatalog.cn-hangzhou.aliyuncs.com', 'endpoint' => 'servicecatalog.cn-hangzhou.aliyuncs.com', 'vpc' => 'servicecatalog-vpc.cn-hangzhou.aliyuncs.com'], + ], + 'errorCodes' => [ + ['code' => 'CreateStackFailed', 'message' => 'Specified associated properties are not support in the region.', 'http_code' => 400, 'description' => 'The specified related property is not supported for the zone.'], + ['code' => 'InternalError', 'message' => 'A system error occurred.', 'http_code' => 500, 'description' => ''], + ['code' => 'InvalidTemplate.InvalidTemplateBody', 'message' => 'One of the input parameters TemplateBody,TemplateURL should be specified.', 'http_code' => 400, 'description' => 'One of the input parameters TemplateBody,TemplateURL should be specified.'], + ], + 'changeSet' => [], + 'flowControl' => [ + 'flowControlList' => [ + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListLaunchOptions'], + ['threshold' => '-1', 'countWindow' => 1, 'regionId' => '*'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateProductWithPortfolio'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteProvisionedProductPlan'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreatePortfolio'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTagOption'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateProvisionedProductPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'LaunchProduct'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateConstraint'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'TerminateProvisionedProduct'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionedProductPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionedProductPlanApprovers'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeletePortfolio'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociatePrincipalWithPortfolio'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DisAssociateTagOptionFromResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListProvisionedProductPlans'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ApproveProvisionedProductPlan'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CancelProvisionedProductPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTagOption'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CreateTemplate'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetProvisionedProduct'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'CopyProduct'], + ['threshold' => '10', 'countWindow' => 1, 'regionId' => '*', 'api' => 'AssociateTagOptionWithResource'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateTagOption'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListResourcesForTagOption'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateProvisionedProductPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'UpdateProvisionedProduct'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListRegions'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ListTagOptions'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'GetTask'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'ExecuteProvisionedProductPlan'], + ['threshold' => '100', 'countWindow' => 1, 'regionId' => '*', 'api' => 'DeleteTagOption'], + ], + ], + 'ram' => [ + 'productCode' => 'ServiceCatalog', + 'productName' => 'Cloud Governance Center', + 'ramCodes' => ['servicecatalog'], + 'ramLevel' => 'RESOURCE', + 'ramConditions' => [ + [ + 'name' => 'servicecatalog:UserLevel', + 'schema' => [ + 'type' => 'String', + 'description' => '', + 'enums' => ['self'], + ], + ], + [ + 'name' => 'servicecatalog:ApprovalActor', + 'schema' => [ + 'type' => 'String', + 'description' => '', + 'enums' => ['approver'], + ], ], - 'schemes' => [ - 'http', - 'https', + ], + 'ramActions' => [ + [ + 'apiName' => 'UpdateProvisionedProductPlan', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'UpdateConstraint', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], ], ], - 'operationType' => 'read', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetAccountInfo', + 'description' => '', 'operationType' => 'get', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', + 'ramAction' => [ + 'action' => 'servicecatalog:GetAccountInfo', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], - 'tenantRelevance' => 'publicInformation', ], - 'parameters' => [ - [ - 'name' => 'PageNumber', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of the page to return.'."\n" - ."\n" - .'Pages start from page 1. Default value: 1.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '1', + [ + 'apiName' => 'GetProductAsEndUser', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductAsEndUser', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], ], ], - [ - 'name' => 'PageSize', - 'in' => 'query', - 'schema' => [ - 'description' => 'The number of entries to return on each page.'."\n" - ."\n" - .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'required' => false, - 'example' => '10', + ], + [ + 'apiName' => 'GetProvisionedProductPlan', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'ImportTagOptions', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:ImportTagOptions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'BatchAssociateProductWithPortfolio', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:BatchAssociateProductWithPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#portfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateTagOption', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateProvisionedProductPlan', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteProductVersion', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], + [ + 'apiName' => 'UpdateProvisionedProduct', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'ListProductsAsAdmin', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductsAsAdmin', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/*'], + ], + ], + ], + [ + 'apiName' => 'TerminateProvisionedProduct', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:TerminateProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'CancelProvisionedProductPlan', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:CancelProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'InitializeServiceCatalog', + 'description' => '', + 'operationType' => '', + 'additionalActions' => [ + ['action' => 'ram:CreateServiceLinkedRole', 'validationType' => 'always'], + ], + 'ramAction' => [ + 'action' => 'servicecatalog:InitializeServiceCatalog', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'CreateProduct', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/*'], + ], + ], + ], + [ + 'apiName' => 'GetTagOption', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'DeleteProvisionedProductPlan', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'GetConstraint', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'ListConstraints', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListConstraints', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'CreatePortfolio', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreatePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/*'], + ], + ], + ], + [ + 'apiName' => 'LaunchProduct', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:LaunchProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/*'], + ], + ], + ], + [ + 'apiName' => 'GetProvisionedProductParameters', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProductParameters', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], + ], + [ + 'apiName' => 'UpdatePortfolio', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdatePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'GetEnhancedTemplate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetEnhancedTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], + ], + ], + ], + [ + 'apiName' => 'CreateConstraint', + 'description' => '', + 'operationType' => 'create', + 'additionalActions' => [ + ['action' => 'ram:PassRole', 'validationType' => 'always'], + ], + 'ramAction' => [ + 'action' => 'servicecatalog:CreateConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], + [ + 'apiName' => 'ListProductsAsEndUser', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductsAsEndUser', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'ListProductVersions', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProductVersions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], + [ + 'apiName' => 'AssociateTagOptionWithResource', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociateTagOptionWithResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetGeneratedTemplate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetGeneratedTemplate', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], + ], + [ + 'apiName' => 'GetTemplate', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], + [ + 'apiName' => 'GetPrincipalPortfolioAssociationForResourceSpec', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetPrincipalPortfolioAssociationForResourceSpec', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'DisassociateProductFromPortfolio', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DisassociateProductFromPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'DisAssociateTagOptionFromResource', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:DisAssociateTagOptionFromResource', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'conditional', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#portfolioId}'], + ['validationType' => 'conditional', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], + ], + ], + ], + [ + 'apiName' => 'DeletePortfolio', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeletePortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], + ], + [ + 'apiName' => 'DeleteTagOption', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'Filters', - 'in' => 'query', - 'style' => 'json', - 'schema' => [ - 'description' => 'The filter condition.'."\n", - 'type' => 'object', - 'properties' => [ - 'Key' => [ - 'description' => 'The key of the tag option.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'v1', - ], - 'Active' => [ - 'description' => 'Specifies whether to enable the tag option. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'required' => false, - 'example' => 'true', - ], - 'FullTextSearch' => [ - 'description' => 'The full-text search method.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'k1', - ], - ], - 'required' => false, + ], + [ + 'apiName' => 'GetTemplateDefinition', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTemplateDefinition', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], - [ - 'name' => 'SortBy', - 'in' => 'query', - 'schema' => [ - 'description' => 'The information based on which you want to sort the query results.'."\n" - ."\n" - .'Set the value to CreateTime, which specifies the creation time of tag options.'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'CreateTime', + ], + [ + 'apiName' => 'ListPortfolios', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListPortfolios', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/*'], ], ], - [ - 'name' => 'SortOrder', - 'in' => 'query', - 'schema' => [ - 'description' => 'The order in which you want to sort the query results. Valid values:'."\n" - ."\n" - .'* Asc: the ascending order'."\n" - .'* Desc (default): the descending order'."\n", - 'type' => 'string', - 'required' => false, - 'example' => 'Desc', + ], + [ + 'apiName' => 'ListPrincipals', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListPrincipals', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], ], ], - [ - 'name' => 'NextToken', - 'in' => 'query', - 'schema' => [ - 'type' => 'string', + ], + [ + 'apiName' => 'CopyProduct', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CopyProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#productId}'], ], ], - [ - 'name' => 'MaxResults', - 'in' => 'query', - 'schema' => [ - 'type' => 'integer', - 'format' => 'int32', + ], + [ + 'apiName' => 'GetProvisionedProductForResourceSpec', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProductForResourceSpec', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '37C9C1DF-EFFC-5D8A-80D0-8657B1F3****', - ], - 'TotalCount' => [ - 'title' => '总记录数', - 'description' => 'The total number of entries returned.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'PageNumber' => [ - 'description' => 'The page number of the returned page.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '1', - ], - 'PageSize' => [ - 'description' => 'The number of entries returned per page.'."\n" - ."\n" - .'Valid values: 1 to 100. Minimum value: 1. Default value: 10.'."\n", - 'type' => 'integer', - 'format' => 'int32', - 'example' => '10', - ], - 'TagOptionDetails' => [ - 'description' => 'An array that consists of the details of the tag option.'."\n", - 'type' => 'array', - 'items' => [ - 'type' => 'object', - 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'* true'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'example' => 'tag-bp1r3mxq3t****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - 'Owner' => [ - 'description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.'."\n", - 'type' => 'string', - 'example' => '133413081827****'."\n", - ], - ], - ], - ], - 'NextToken' => [ - 'type' => 'string', - ], - ], + [ + 'apiName' => 'CreateTemplate', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateTemplate', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + [ + 'apiName' => 'GetProductPortfolioAssociationForResourceSpec', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductPortfolioAssociationForResourceSpec', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'ListLaunchOptions', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListLaunchOptions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"37C9C1DF-EFFC-5D8A-80D0-8657B1F3****\\",\\n \\"TotalCount\\": 10,\\n \\"PageNumber\\": 1,\\n \\"PageSize\\": 10,\\n \\"TagOptionDetails\\": [\\n {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1r3mxq3t****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n }\\n ],\\n \\"NextToken\\": \\"\\"\\n}","type":"json"}]', - 'title' => 'ListTagOptions', - ], - 'DeleteTagOption' => [ - 'summary' => 'Deletes a tag option.', - 'methods' => [ - 'post', + [ + 'apiName' => 'DeleteProduct', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'BatchDisassociateProductFromPortfolio', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:BatchDisassociateProductFromPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#portfolioId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'GetTask', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetTask', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], ], ], - 'deprecated' => false, - 'systemTags' => [], - 'parameters' => [ - [ - 'name' => 'TagOptionId', - 'in' => 'formData', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1u6mdf3d****', + [ + 'apiName' => 'ExecuteProvisionedProductPlan', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:ExecuteProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => '0FEEF92D-4052-5202-87D0-3D8EC16F****', - ], - ], + [ + 'apiName' => 'ListTasks', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListTasks', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + [ + 'apiName' => 'DeleteConstraint', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DeleteConstraint', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'GetProvisionedProduct', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisionedProduct', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"0FEEF92D-4052-5202-87D0-3D8EC16F****\\"\\n}","type":"json"}]', - 'title' => 'DeleteTagOption', - ], - 'CreateTagOption' => [ - 'summary' => 'Creates a tag option.', - 'methods' => [ - 'post', + [ + 'apiName' => 'ListResourcesForTagOption', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListResourcesForTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'CreateTagOption', + 'description' => '', + 'operationType' => '', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateTagOption', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'ListUserTypes', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListUserTypes', + 'authLevel' => 'operate', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], + ], ], ], - 'operationType' => 'write', - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'AssociatePrincipalWithPortfolio', + 'description' => '', 'operationType' => 'create', - 'riskType' => 'none', - 'chargeType' => 'free', - 'abilityTreeNodes' => [ - 'FEATUREgovernanceLSR8I4', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociatePrincipalWithPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], - 'tenantRelevance' => 'publicInformation', ], - 'parameters' => [ - [ - 'name' => 'Key', - 'in' => 'formData', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The key of the tag option.'."\n" - ."\n" - .'The key can be up to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'k1', - 'maxLength' => 128, - 'minLength' => 1, + [ + 'apiName' => 'ListProvisionedProductPlans', + 'description' => '', + 'operationType' => 'list', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProductPlans', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], ], - ], - [ - 'name' => 'Value', - 'in' => 'formData', - 'schema' => [ - 'description' => 'The value of the tag option.'."\n" - ."\n" - .'The value can be up to 128 characters in length. It cannot start with `acs:`and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'v1', - 'maxLength' => 128, - 'minLength' => 1, + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'TagOptionDetail' => [ - 'description' => 'An array that consists of the details of the tag option.'."\n", - 'type' => 'object', - 'properties' => [ - 'Active' => [ - 'description' => 'Indicates whether the tag option is enabled. Valid values:'."\n" - ."\n" - .'* true (default)'."\n" - .'* false'."\n", - 'type' => 'boolean', - 'example' => 'true', - ], - 'TagOptionId' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'example' => 'tag-bp1r3mxq3t****', - ], - 'Key' => [ - 'description' => 'The key of the tag option.'."\n" - ."\n" - .'The key must be 1 to 128 characters in length. It cannot start with `aliyun` or `acs:` and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'example' => 'k1', - ], - 'Value' => [ - 'description' => 'The value of the tag option.'."\n" - ."\n" - .'The value must be 1 to 128 characters in length. It cannot start with `acs:` and cannot contain `http://` or `https://`.'."\n", - 'type' => 'string', - 'example' => 'v1', - ], - 'Owner' => [ - 'description' => 'The ID of the Alibaba Cloud account to which the tag option belongs.'."\n", - 'type' => 'string', - 'example' => '133413081827****'."\n", - ], - ], - ], - 'RequestId' => [ - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'A48A5F12-6098-54A1-A389-6834AF27****', - ], - ], + [ + 'apiName' => 'ListProvisionedProducts', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProducts', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/*'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + [ + 'apiName' => 'ListProvisionedProductPlanApprovers', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListProvisionedProductPlanApprovers', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:UserLevel', 'validationType' => 'always'], + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'CreateProductVersion', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:CreateProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"TagOptionDetail\\": {\\n \\"Active\\": true,\\n \\"TagOptionId\\": \\"tag-bp1r3mxq3t****\\",\\n \\"Key\\": \\"k1\\",\\n \\"Value\\": \\"v1\\",\\n \\"Owner\\": \\"133413081827****\\\\n\\"\\n },\\n \\"RequestId\\": \\"A48A5F12-6098-54A1-A389-6834AF27****\\"\\n}","type":"json"}]', - 'title' => 'CreateTagOption', - ], - 'AssociateTagOptionWithResource' => [ - 'summary' => 'Associates the tag option with a resource.', - 'methods' => [ - 'post', + [ + 'apiName' => 'UpdateProduct', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProduct', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'schemes' => [ - 'http', - 'https', + [ + 'apiName' => 'DisassociatePrincipalFromPortfolio', + 'description' => '', + 'operationType' => 'delete', + 'ramAction' => [ + 'action' => 'servicecatalog:DisassociatePrincipalFromPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], ], - 'security' => [ - [ - 'AK' => [], + [ + 'apiName' => 'AssociateProductWithPortfolio', + 'description' => '', + 'operationType' => 'create', + 'ramAction' => [ + 'action' => 'servicecatalog:AssociateProductWithPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], ], ], - 'deprecated' => false, - 'systemTags' => [ + [ + 'apiName' => 'GetProvisioningParameters', + 'description' => '', 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProvisioningParameters', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], ], - 'parameters' => [ - [ - 'name' => 'ResourceId', - 'in' => 'formData', - 'schema' => [ - 'title' => 'A short description of struct', - 'description' => 'The ID of the resource with which the tag option is associated.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'port-bp15p96922****', + [ + 'apiName' => 'ApproveProvisionedProductPlan', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:ApproveProvisionedProductPlan', + 'authLevel' => 'resource', + 'actionConditions' => [ + ['conditionKey' => 'servicecatalog:ApprovalActor', 'validationType' => 'always'], + ], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], ], ], - [ - 'name' => 'TagOptionId', - 'in' => 'formData', - 'schema' => [ - 'description' => 'The ID of the tag option.'."\n", - 'type' => 'string', - 'required' => true, - 'example' => 'tag-bp1u6mdf3d****', + ], + [ + 'apiName' => 'GetProductAsAdmin', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductAsAdmin', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], ], ], ], - 'responses' => [ - 200 => [ - 'schema' => [ - 'title' => 'Schema of Response', - 'description' => 'The response parameters.'."\n", - 'type' => 'object', - 'properties' => [ - 'RequestId' => [ - 'title' => 'Id of the request', - 'description' => 'The ID of the request.'."\n", - 'type' => 'string', - 'example' => 'DC833558-AFF4-5935-9AB6-8A12EE7D****', - ], - ], + [ + 'apiName' => 'UpdateProductVersion', + 'description' => '', + 'operationType' => 'update', + 'ramAction' => [ + 'action' => 'servicecatalog:UpdateProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], ], ], ], - 'errorCodes' => [ - 500 => [ - [ - 'errorCode' => 'InternalError', - 'errorMessage' => 'A system error occurred.', + [ + 'apiName' => 'ListTagOptions', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:ListTagOptions', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], - 'staticInfo' => [ - 'returnType' => 'synchronous', + [ + 'apiName' => 'GetProductVersion', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetProductVersion', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ], + ], + ], + [ + 'apiName' => 'GetPortfolio', + 'description' => '', + 'operationType' => 'get', + 'ramAction' => [ + 'action' => 'servicecatalog:GetPortfolio', + 'authLevel' => 'resource', + 'actionConditions' => [], + 'resources' => [ + ['validationType' => 'always', 'product' => 'ServiceCatalog', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ], + ], ], - 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"RequestId\\": \\"DC833558-AFF4-5935-9AB6-8A12EE7D****\\"\\n}","type":"json"}]', - 'title' => 'AssociateTagOptionWithResource', ], - ], - 'endpoints' => [ - [ - 'regionId' => 'cn-hangzhou', - 'endpoint' => 'servicecatalog.cn-hangzhou.aliyuncs.com', + 'resourceTypes' => [ + ['validationType' => 'always', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/{#ProvisionedProductId}'], + ['validationType' => 'always', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/{#ProductId}'], + ['validationType' => 'always', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/{#PortfolioId}'], + ['validationType' => 'always', 'resourceType' => 'ProvisionedProduct', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:provisionedproduct/*'], + ['validationType' => 'always', 'resourceType' => 'Product', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:product/*'], + ['validationType' => 'always', 'resourceType' => 'Portfolio', 'arn' => 'acs:servicecatalog:{#regionId}:{#accountId}:portfolio/*'], ], ], ]; -- cgit v1.2.3