CreateFunctionDeployment
Creates a function deployment.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mpserverless:CreateFunctionDeployment |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the deployment. |
demoFunction |
| SpaceId |
string |
Yes |
The ID of the space where the function is located. |
dece4ea0-d432-4cfa-8514-xxxx |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| UploadSignedUrl |
string |
The upload URL. |
http://bucket.oss-cn-shanghai.aliyuncs.com/afc0e1c9d446fxxxxx-v2.zip?OSSAccessKeyId=LTAI****************&Expires=1561425220&Signature=xEuiAgUMShQ4v8fYIl3FM8Jp3MA%3D |
| DeploymentId |
string |
The deployment ID. |
dep-5e49fd471c9d4451c33bdd06 |
| RequestId |
string |
The request ID. |
9D653EC3-8F53-4307-9B1C-52F5922384A6 |
Examples
Success response
JSON format
{
"UploadSignedUrl": "http://bucket.oss-cn-shanghai.aliyuncs.com/afc0e1c9d446fxxxxx-v2.zip?OSSAccessKeyId=LTAI****************&Expires=1561425220&Signature=xEuiAgUMShQ4v8fYIl3FM8Jp3MA%3D",
"DeploymentId": "dep-5e49fd471c9d4451c33bdd06",
"RequestId": "9D653EC3-8F53-4307-9B1C-52F5922384A6"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.