Creates an O&M task.

Description

O&M tasks include only enabling or disabling the core dump feature for elastic container instances. For more information, see Enable the core dump feature.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateInstanceOpsTask

The operation that you want to perform. Set the value to CreateInstanceOpsTask.

RegionId String Yes cn-hangzhou

The region ID of the O&M task.

ContainerGroupId String Yes eci-bp1dvysdafbh00t7****

The ID of the container group.

OpsType String Yes coredump

The type of the O&M task. Set the value to coredump.

OpsValue String Yes enable

The value of the O&M task. O&M tasks support only the core dump feature. Valid values:

  • enable: enables the core dump feature.
  • disable: disables the core dump feature.

Response parameters

Parameter Type Example Description
RequestId String 89945DD3-9072-47D0-A318-353284CFC7B

The ID of the request.

Result String Coredump settings has been configured successfully.

The execution result of the O&M task.

Examples

Sample requests

ttps://eci.aliyuncs.com/?Action=CreateInstanceOpsTask
&RegionId=cn-hangzhou
&ContainerGroupId=eci-bp1dvysdafbh00t7****
&OpsType=coredump
&OpsValue=enable
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateInstanceOpsTaskResponse>
    <RequestId>89945DD3-9072-47D0-A318-353284CFC7B</RequestId>
    <Result>Coredump settings has been configured successfully.</Result>
</CreateInstanceOpsTaskResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "89945DD3-9072-47D0-A318-353284CFC7B",
  "Result" : "Coredump settings has been configured successfully."
}

Error codes

For a list of error codes, visit the API Error Center.