CreateActionPlan
Creates an E-HPC execution plan.
Operation description
Before you call this operation, ensure that you understand the billing methods and pricing of E-HPC Instant.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ehpc:CreateActionPlan |
create |
*All Resource
|
None | None |
Request syntax
POST HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ActionPlanName |
string |
No |
The name of the execution plan. |
TestActionPlan |
| AppId |
string |
No |
The application ID. |
ci-vm-rYfypJKwlN9Y |
| Script |
string |
No |
The script to run the job. The script must be Base64-encoded. |
bHMgLWFsCmxzIC1hbGggfCB3YyAtbA== |
| PrologScript |
string |
No |
The pre-execution script. The script must be Base64-encoded. |
bHMgLWFsCmxzIC1hbGggfCB3YyAtbA== |
| ResourceType |
string |
No |
The type of resource for the execution target. The value can be the vCPU capacity or the number of executor nodes. Valid values:
|
VCpuCapacity |
| DesiredCapacity |
number |
No |
The desired size of the resource for the execution plan. For example, if you set ResourceType to VcpuCapacity, this parameter specifies the number of vCPUs that you want to maintain for the execution plan. |
1000 |
| Resources |
array<object> |
No |
A list of resource configurations for the runtime environment of the execution plan. You can specify 1 to 10 resource configurations. |
1000 |
|
object |
No |
The resource configuration for the runtime environment of the execution plan. |
||
| Cores |
number |
No |
The number of vCPUs for the runtime environment. |
2 |
| Memory |
number |
No |
The memory size of the runtime environment. Unit: GiB. |
4 |
| Regions |
array<object> |
No |
A list of regional resource configurations for the runtime environment of the execution plan. |
|
|
object |
No |
The regional resource configuration for the runtime environment of the execution plan. |
||
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| VSwitchIds |
array |
No |
A list of vSwitches that are available for the execution plan in the region. You can specify 0 to 5 vSwitches. |
|
|
string |
No |
The vSwitch ID. You can call the DescribeVSwitches operation to query information about available vSwitches. |
vsw-8vb4m54nq1hwtxxda**** |
|
| SecurityGroupId |
array |
No |
A list of security groups that are available for the execution plan in the region. You can specify 0 to 5 security groups. |
|
|
string |
No |
The security group ID. You can call the DescribeSecurityGroups operation to query information about available security groups. |
sg-2zeh9711f6c04bkr**** |
|
| SecurityGroupIds |
array |
No |
A list of security group IDs. You can call the DescribeSecurityGroups operation to query information about available security groups. |
|
|
string |
No |
The security group ID. You can call the DescribeSecurityGroups operation to query information about available security groups. |
sg-uf6j4pp39x9k3x05c3vw |
|
| AllocationSpec |
string |
No |
The resource type.
|
Standard |
| Level |
string |
No |
The computing power level. This parameter is valid only when you set AllocationSpec to Economic. The following types are supported:
Default value: General |
General |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| RequestId |
string |
The request ID. |
896D338C-E4F4-41EC-A154-D605E5DE**** |
| ActionPlanId |
string |
The execution plan ID. |
ap-hz036ubmx2qmw93k**** |
Examples
Success response
JSON format
{
"RequestId": "896D338C-E4F4-41EC-A154-D605E5DE****",
"ActionPlanId": "ap-hz036ubmx2qmw93k****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 406 | QuotaExceeded.ActionPlan | The number of action plans in the current account has exceeded quota. | The number of execution plans under the current account exceeds the limit of execution plans under the user account. |
See for a complete list.
Release notes
See Release Notes for a complete list.