'1.0', 'info' => [ 'style' => 'RPC', 'product' => 'MPServerless', 'version' => '2019-09-30', ], 'directories' => [ [ 'id' => 77653, 'title' => '云函数', 'type' => 'directory', 'children' => [ 'CreateFunction', 'CreateFunctionDeployment', 'DeleteFunction', 'UpdateFunction', 'ListFunctionDeployments', 'ListFunctions', 'ListFunctionSpecs', 'DescribeFunction', 'DescribeFunctionMetricList', 'DeployFunction', 'RunFunction', ], ], [ 'id' => 0, 'title' => '其它', 'type' => 'directory', 'children' => [ 'CreateMarketCellSpace', 'CreateTaobaoISVMpkCell', 'CreateTaobaoMerchantMpkCell', 'CreateTaobaoSpace', 'DescribeTaobaoSpace', 'EnableExtension', 'ListExtensions', ], ], ], 'components' => [ 'schemas' => [], ], 'apis' => [ 'CreateFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'FunctionName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'FunctionDesc', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Memory', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Runtime', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'Timeout', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'CustomVariables', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'FunctionId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'FunctionName' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'FunctionDesc' => [ 'type' => 'string', ], 'FunctionSpec' => [ 'type' => 'object', 'properties' => [ 'Timeout' => [ 'type' => 'string', ], 'Runtime' => [ 'type' => 'string', ], 'Memory' => [ 'type' => 'string', ], 'CustomVariables' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Name' => [ 'type' => 'string', ], 'Value' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateFunctionDeployment' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'FunctionId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'DeploymentId' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'ArtifactUploadUrl' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeleteFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'FunctionId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'UpdateFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'FunctionId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'FunctionDesc', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Memory', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'Runtime', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'Timeout', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'CustomVariables', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'FunctionId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'FunctionName' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'FunctionDesc' => [ 'type' => 'string', ], 'FunctionSpec' => [ 'type' => 'object', 'properties' => [ 'Timeout' => [ 'type' => 'string', ], 'Runtime' => [ 'type' => 'string', ], 'Memory' => [ 'type' => 'string', ], 'CustomVariables' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Name' => [ 'type' => 'string', ], 'Value' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListFunctionDeployments' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'FunctionId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SpaceId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'DeploymentStatus', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'PageNumber' => [ 'type' => 'integer', 'format' => 'int32', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'TotalCount' => [ 'type' => 'integer', 'format' => 'int32', ], 'Deployments' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'DeploymentId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'ArtifactDownloadUrl' => [ 'type' => 'string', ], 'DeploymentVersion' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'DeploymentStatus' => [ 'type' => 'object', 'properties' => [ 'Status' => [ 'type' => 'string', ], 'Message' => [ 'type' => 'string', ], 'Label' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListFunctions' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'PageNumber', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'PageSize', 'in' => 'query', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'Keyword', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'SortBy', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'SortDir', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'SpaceId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'PageNumber' => [ 'type' => 'integer', 'format' => 'int32', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'TotalCount' => [ 'type' => 'integer', 'format' => 'int32', ], 'Functions' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'FunctionId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'FunctionName' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'FunctionDesc' => [ 'type' => 'string', ], 'FunctionSpec' => [ 'type' => 'object', 'properties' => [ 'Timeout' => [ 'type' => 'string', ], 'Runtime' => [ 'type' => 'string', ], 'Memory' => [ 'type' => 'string', ], 'CustomVariables' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Name' => [ 'type' => 'string', ], 'Value' => [ 'type' => 'string', ], ], ], ], ], ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListFunctionSpecs' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'RuntimeSpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'RuntimeName' => [ 'type' => 'string', ], 'RuntimeId' => [ 'type' => 'string', ], ], ], ], 'MemorySpecs' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'MemoryName' => [ 'type' => 'string', ], 'MemoryId' => [ 'type' => 'string', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DescribeFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'FunctionId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'Function' => [ 'type' => 'object', 'properties' => [ 'FunctionId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'FunctionName' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'FunctionDesc' => [ 'type' => 'string', ], 'FunctionSpec' => [ 'type' => 'object', 'properties' => [ 'Timeout' => [ 'type' => 'string', ], 'Runtime' => [ 'type' => 'string', ], 'Memory' => [ 'type' => 'string', ], 'CustomVariables' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'Name' => [ 'type' => 'string', ], 'Value' => [ 'type' => 'string', ], ], ], ], ], ], ], ], 'LastDeployment' => [ 'type' => 'object', 'properties' => [ 'DeploymentId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'ArtifactDownloadUrl' => [ 'type' => 'string', ], 'DeploymentVersion' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DescribeFunctionMetricList' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'parameters' => [ [ 'name' => 'FunctionName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'MetricName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'StartTime', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, ], ], [ 'name' => 'EndTime', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int64', 'required' => false, ], ], [ 'name' => 'Period', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], [ 'name' => 'NextToken', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'Length', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'NextToken' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'Datapoints' => [ 'type' => 'string', ], 'Period' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DeployFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'DeploymentId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'RunFunction' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'RunParams', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'RunResult' => [ 'type' => 'string', ], 'RuntimeMeta' => [ 'type' => 'object', 'properties' => [ 'InvocationDuration' => [ 'type' => 'string', ], 'LogRequestId' => [ 'type' => 'string', ], 'LogSummary' => [ 'type' => 'string', ], 'BillingDuration' => [ 'type' => 'string', ], 'MaxMemoryUsage' => [ 'type' => 'string', ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateMarketCellSpace' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'readAndWrite', 'parameters' => [ [ 'name' => 'OrderBizId', 'in' => 'query', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'Data' => [ 'type' => 'boolean', ], 'RequestId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateTaobaoISVMpkCell' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'LicenseName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'LicenseNumber', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'CellId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateTaobaoMerchantMpkCell' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'BillAccountId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'LicenseName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'LicenseNumber', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'CellId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'CreateTaobaoSpace' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceName', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'SpaceDesc', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, ], ], [ 'name' => 'CellId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'SpaceId' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'DescribeTaobaoSpace' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'SpaceId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, 'docRequired' => true, ], ], [ 'name' => 'CellId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'SpaceId' => [ 'type' => 'string', ], 'UpdateTime' => [ 'type' => 'string', ], 'RequestId' => [ 'type' => 'string', ], 'CreateTime' => [ 'type' => 'string', ], 'Name' => [ 'type' => 'string', ], 'Desc' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'EnableExtension' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'ExtensionId', 'in' => 'formData', 'schema' => [ 'type' => 'string', 'required' => false, 'docRequired' => true, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], 'ListExtensions' => [ 'methods' => [ 'post', 'get', ], 'schemes' => [ 'http', 'https', ], 'security' => [ [ 'AK' => [], ], ], 'parameters' => [ [ 'name' => 'PageNumber', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, 'docRequired' => true, ], ], [ 'name' => 'PageSize', 'in' => 'formData', 'schema' => [ 'type' => 'integer', 'format' => 'int32', 'required' => false, ], ], ], 'responses' => [ 200 => [ 'schema' => [ 'type' => 'object', 'properties' => [ 'RequestId' => [ 'type' => 'string', ], 'PageNumber' => [ 'type' => 'integer', 'format' => 'int32', ], 'PageSize' => [ 'type' => 'integer', 'format' => 'int32', ], 'TotalCount' => [ 'type' => 'integer', 'format' => 'int32', ], 'Extensions' => [ 'type' => 'array', 'items' => [ 'type' => 'object', 'properties' => [ 'ExtensionDocumentationLink' => [ 'type' => 'string', ], 'ExtensionId' => [ 'type' => 'string', ], 'ExtensionDesc' => [ 'type' => 'string', ], 'Enabled' => [ 'type' => 'string', ], 'ExtensionName' => [ 'type' => 'string', ], ], ], ], ], ], ], ], 'errorCodes' => [], 'responseDemo' => '', ], ], 'endpoints' => [ [ 'regionId' => 'cn-shanghai', 'endpoint' => 'mpserverless.aliyuncs.com', ], ], ];