View operation log information
Call GetOperation to view operation log information.
You must have a Volcano Engine account and have enabled EMR permissions.
The following table lists only the unique request parameters for this interface and some common parameters. For more information, see common parameters.
Parameter | Type | Required | Example value | Description |
|---|---|---|---|---|
Action | String | Yes | GetOperation | The operation to be performed. Value: GetOperation |
Version | String | Yes | 2023-12-30 | API version. Value: 2023-12-30 |
OperationId | String | Yes | op-xxx | Operation record ID |
The following table lists only the unique response parameters for this interface. For more information, see response structure
const columns = [ { title: 'Parameter', dataIndex: 'Name', }, { title: 'Type', dataIndex: 'DataType', width: '10%', }, { title: 'Example value', dataIndex: 'Example', width: '20%', }, { title: 'Description', dataIndex: 'Description', width: '60%', }, ]; const data = [ { rowKey: "->Items", Name: "Items", DataType: "OperationRecord", Example: <RenderMd content={"[{\n "ClusterId": "xxx",\n "OperationId": "op-xxx",\n "ProductName": "E-MapReduce-VKE",\n "OperationName": "CreateCluster",\n "OperationState": "RUNNING",\n "StateChangeReason": null,\n "AccountId": xxx,\n "UserId": xxx,\n "CreateTime": xxx,\n "UpdateTime": xxx,\n "StartTime": xxx,\n "EndTime": xxx,\n "Content": "",\n "Operator": xxx,\n "Remark": xxx\n }\n ]"} />, Description: <RenderMd content={"Operation record"} />, children: [ { rowKey: "->Items->ClusterId", Name: "ClusterId", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Cluster ID"} />, children: [ ] }, { rowKey: "->Items->OperationId", Name: "OperationId", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation log ID"} />, children: [ ] }, { rowKey: "->Items->OperationName", Name: "OperationName", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation log name"} />, children: [ ] }, { rowKey: "->Items->OperationState", Name: "OperationState", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation state"} />, children: [ ] }, { rowKey: "->Items->StateChangeReason", Name: "StateChangeReason", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Reason for operation state change"} />, children: [ ] }, { rowKey: "->Items->AccountId", Name: "AccountId", DataType: "Long", Example: <RenderMd content={""} />, Description: <RenderMd content={"Primary account ID"} />, children: [ ] }, { rowKey: "->Items->UserId", Name: "UserId", DataType: "Long", Example: <RenderMd content={""} />, Description: <RenderMd content={"Sub-user ID"} />, children: [ ] }, { rowKey: "->Items->CreateTime", Name: "CreateTime", DataType: "Long", Example: <RenderMd content={""} />, Description: <RenderMd content={"Creation time"} />, children: [ ] }, { rowKey: "->Items->StartTime", Name: "StartTime", DataType: "Long", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation start time"} />, children: [ ] }, { rowKey: "->Items->EndTime", Name: "EndTime", DataType: "Long", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation end time"} />, children: [ ] }, { rowKey: "->Items->Content", Name: "Content", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation content"} />, children: [ ] }, { rowKey: "->Items->Operator", Name: "Operator", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operator name"} />, children: [ ] }, { rowKey: "->Items->Remark", Name: "Remark", DataType: "String", Example: <RenderMd content={""} />, Description: <RenderMd content={"Operation remarks"} />, children: [ ] }, ] }, { rowKey: "->TotalCount", Name: "TotalCount", DataType: "Integer", Example: <RenderMd content={"1"} />, Description: <RenderMd content={"Total record count"} />, children: [ ] }, { rowKey: "->NextToken", Name: "NextToken", DataType: "Integer", Example: <RenderMd content={"Token for next page in paginated query"} />, Description: <RenderMd content={"1"} />, children: [ ] }, { rowKey: "->MaxResults", Name: "MaxResults", DataType: "Integer", Example: <RenderMd content={"10"} />, Description: <RenderMd content={"Maximum number of results per page in paginated query"} />, children: [ ] }, ]; return (<Table rowKey="rowKey" className="openapi-doc-parameter-table" columns={columns} data={data} border={ { cell: true, wrapper: true } } pagination={false} />);
{ "OperationId": "op-xxx" }
{ "ResponseMetadata": { "RequestId": "xxx", "Action": "GetOperation", "Version": "2023-12-30", "Service": "emr", "Region": "cn-beijing", "Error": null, "Deprecated": false }, "Result": { "ClusterId": "xxx", "OperationId": "op-xxx", "OperationName": "CreateCluster", "OperationType": "PRODUCT", "OperationState": "RUNNING", "StateChangeReason": null, "AccountId": xxx, "UserId": xxx, "CreateTime": xxx, "StartTime": xxx, "EndTime": null, "Content": "{"ProductName":"E-MapReduce-VKE"}", "Operator": null, "Remark": null } }
You can visit common error codes for more information about error codes.