GetOwnRequestLog

Updated at:

Retrieves a log to help troubleshoot an OpenAPI call made by the current account. Specify the request ID from the original API response.

Operation description

This API does not support authorization.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request syntax

GET /getOwnRequestLog HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

logRequestId

string

Yes

The request ID of the original API call. Use an uppercase UUID.

123E4567-E89B-12D3-A456-426614174000

Response elements

Element

Type

Description

Example

object

Schema of Response

logInfo

object

The details of the API request log.

basicInfo

object

The basic information about the API request.

api

string

The name of the API in the queried log.

RunInstances

apiDoc

object

The API documentation.

aliyunSite

string

The documentation URL for the China site.

https://api.aliyun.com/document/Ecs/2014-05-26/RunInstances

alibabacloudSite

string

The documentation URL for the international site.

https://api.alibabacloud.com/document/Ecs/2014-05-26/RunInstances

apiVersion

string

The API version.

2014-05-26

product

string

The product code.

Ecs

productName

object

The product names, including the Chinese name and the English name.

cnName

string

The Chinese name of the product.

云服务器 ECS

enName

string

The English name of the product.

Elastic Compute Service

apiStyle

string

The API style, which can be ROA or RPC.

rpc

logRequestId

string

The request ID of the original API call.

123E4567-E89B-12D3-A456-426614174000

httpStatusCode

string

The HTTP status code in the queried log.

400

errorCode

string

The error code in the queried log. If the queried request did not return an error, this field is empty.

IncorrectStatus.TransitRouter

errorMessage

string

The error message in the queried log. If the queried request did not return an error, this field is empty.

The resource is not in a valid state for the operation.

accessDeniedDetail

object

The detailed information about the access denied error.

policyType

string

The type of the policy that caused the access denial.

AccountLevelIdentityBasedPolicy

authPrincipalOwnerId

string

The ID of the Alibaba Cloud account to which the current identity belongs.

1001234561234567

authPrincipalType

string

The identity type of the operator.

SubUser

authPrincipalDisplayName

string

The display name of the identity.

205618123456123456

noPermissionType

string

The reason for the access denial.

ImplicitDeny

authAction

string

The specific action that caused the access denial.

openapiexplorer:GetRequestLog

encodedDiagnosticMessage

string

The encoded message for diagnostics. You can call the DecodeDiagnosticMessage API operation of RAM to obtain more diagnostic information.

-

httpMethod

string

The HTTP method.

GET

requestDuration

string

The time taken by the gateway from receiving the request to returning the response. Unit: milliseconds.

188

sdkRequestTime

string

The time when the request is initiated. The time is displayed in the yyyy-MM-ddTHH:mm:ssZ format based on ISO 8601 and UTC.

2025-01-21T07:43:06Z

gatewayProcessTime

string

The UTC time when the gateway received the request, in ISO 8601 format (yyyy-MM-ddTHH:mm:ssZ).

2025-01-21T07:43:06Z

regionId

string

The region ID of the service.

cn-hangzhou

endpoint

string

The endpoint corresponding to the service region.

ecs.cn-hangzhou.aliyuncs.com

throttlingResult

string

The throttling check result. Valid values:

  • FC.PASS: The request is not blocked by the throttling check.

  • FC.DENY: The request is blocked by the throttling check.

Valid values:

  • FC.PASS :

    The request is not blocked by the throttling check.

  • FC.DENY :

    The request is blocked by the throttling check.

FC.PASS

callerInfo

object

The caller information.

callerType

string

The caller type. Valid values:

  • customer: Alibaba Cloud account.

  • sub: RAM user.

  • AssumedRoleUser: A caller using temporary STS credentials for an assumed RAM role.

Valid values:

  • sub :

    RAM user.

  • AssumedRoleUser :

    A caller using temporary STS credentials for an assumed RAM role.

  • customer :

    Alibaba Cloud account.

sub

callerIp

string

The IP address of the caller.

100.68.xxx.xxx

masterAccountId

string

The ID of the main account.

1973374733454118

callerAccountId

string

The account ID of the caller.

241009849925897811

userAgent

string

The user agent information.

AlibabaCloud API Workbench

vpcId

string

The source VPC ID.

vpc-abcd

authenticationInfo

object

The authentication information.

signatureVersion

string

The signature version.

unknown

signatureMethod

string

The signature method. Valid values:

  • HMAC-SHA1: Uses the HMAC-SHA1 algorithm for signing.

  • HMAC-SHA256: Uses the HMAC-SHA256 algorithm for signing.

HMAC-SHA256

authenticationType

string

The authentication type. Valid values:

  • AK: Includes permanent AccessKey pairs, temporary AccessKey pairs, and STS tokens.

  • PRIVATEKEY: An AccessKey that uses asymmetric cryptography.

  • BEARERTOKEN: An identity authentication mechanism widely used in the OAuth 2.0 framework and cloud services.

  • CUSTOM_SPI: An efficient and secure authentication method used for the delivery and management of SaaS products in Alibaba Cloud Marketplace.

  • Anonymous: Anonymous access.

  • DPS: Similar to an AccessKey pair, but uses a signature algorithm different from the official Alibaba Cloud algorithm. This type is exclusive to specific services.

AK

ak

string

The AccessKey ID used to initiate the call corresponding to the request ID.

LTAI1234abcd

parameters

array<object>

The request parameter information.

object

name

string

The name of the request parameter.

InstanceType

value

any

The value of the request parameter.

ecs.g6.large

required

boolean

Specifies whether the request parameter is required.

false

type

string

The type of the request parameter.

string

responses

object

The response information for the request.

responseBody

string

The response body.

{"RequestId":"123E4567-E89B-12D3-A456-426614174000","Code":"IncorrectStatus.TransitRouter","Message":"The resource is not in a valid state for the operation."}

responseBodyFormat

string

The format of the response body. Valid values: JSON, XML, and HTML.

JSON

requestId

string

The ID of this log lookup request.

9BFC4AC1-6BE4-5405-BDEC-CA288D404812

Examples

Success response

JSON format

{
  "logInfo": {
    "basicInfo": {
      "api": "RunInstances\n",
      "apiDoc": {
        "aliyunSite": "https://api.aliyun.com/document/Ecs/2014-05-26/RunInstances",
        "alibabacloudSite": "https://api.alibabacloud.com/document/Ecs/2014-05-26/RunInstances"
      },
      "apiVersion": "2014-05-26",
      "product": "Ecs\n",
      "productName": {
        "cnName": "云服务器 ECS",
        "enName": "\t\nElastic Compute Service\n"
      },
      "apiStyle": "rpc",
      "logRequestId": "123E4567-E89B-12D3-A456-426614174000",
      "httpStatusCode": "400",
      "errorCode": "IncorrectStatus.TransitRouter\n",
      "errorMessage": "The resource is not in a valid state for the operation.\n",
      "accessDeniedDetail": {
        "policyType": "\t\nAccountLevelIdentityBasedPolicy\n",
        "authPrincipalOwnerId": "1001234561234567\n",
        "authPrincipalType": "SubUser\n",
        "authPrincipalDisplayName": "205618123456123456\n",
        "noPermissionType": "ImplicitDeny\n",
        "authAction": "openapiexplorer:GetRequestLog\n",
        "encodedDiagnosticMessage": "-\n"
      },
      "httpMethod": "GET\n",
      "requestDuration": "188",
      "sdkRequestTime": "2025-01-21T07:43:06Z\n",
      "gatewayProcessTime": "2025-01-21T07:43:06Z\n\n",
      "regionId": "cn-hangzhou\n",
      "endpoint": "ecs.cn-hangzhou.aliyuncs.com\n",
      "throttlingResult": "FC.PASS"
    },
    "callerInfo": {
      "callerType": "sub",
      "callerIp": "100.68.xxx.xxx\n",
      "masterAccountId": "1973374733454118\n",
      "callerAccountId": "241009849925897811\n",
      "userAgent": "AlibabaCloud API Workbench\n",
      "vpcId": "vpc-abcd"
    },
    "authenticationInfo": {
      "signatureVersion": "unknown\n",
      "signatureMethod": "HMAC-SHA256",
      "authenticationType": "AK",
      "ak": "LTAI1234abcd"
    },
    "parameters": [
      {
        "name": "InstanceType\n",
        "value": "ecs.g6.large\n",
        "required": true,
        "type": "string\n"
      }
    ],
    "responses": {
      "responseBody": "{\"RequestId\":\"123E4567-E89B-12D3-A456-426614174000\",\"Code\":\"IncorrectStatus.TransitRouter\",\"Message\":\"The resource is not in a valid state for the operation.\"}",
      "responseBodyFormat": "JSON\n"
    }
  },
  "requestId": "\t\n9BFC4AC1-6BE4-5405-BDEC-CA288D404812\n"
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParam.LogRequestId Please ensure that the request ID you provided originates from a request you made to a certain OpenAPI. The parameter logRequestId is invalid. Make sure that the request ID you provide originates from a request you made to a OpenAPI.
404 NotFound.RequestLog The log related to this logRequestId does not exist, has expired, or you do not have permission to view it. The log associated with this logRequestId does not exist, has expired, or you do not have permission to view it.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.