Get CA pod log
    • PDF

    Get CA pod log

    • PDF

    Article summary

    Available in VPC

    Get the CA pod logs for a blockchain network.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/networks/{networkId}/cas/{caId}/logs

    Request headers

    For headers common to all Blockchain Service APIs, see Common Blockchain Service headers.

    Request path parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    networkIdLongRequiredNetwork ID
    caIdStringRequiredCA ID

    Request query parameters

    The following describes the parameters.

    FieldTypeRequiredDescription
    tailLinesIntegerOptionalNumber of lines in the log
    • 1000 (default)

    Request example

    The following is a sample request.

    curl --location --request GET 'https://blockchainservice.apigw.ntruss.com/api/v1/networks/{networkId}/cas/{caId}/logs?tailLines=1000' \
    --header 'x-ncp-apigw-timestamp: {Timestamp}' \
    --header 'x-ncp-iam-access-key: {Access Key}' \
    --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}' \
    --header 'Content-Type: application/json'
    

    Response

    The following describes the response format.

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    logPlain Text-CA pod log

    Response status codes

    For response status codes common to all Blockchain Service APIs, see Common Blockchain Service response status codes.

    Response example

    The following is a sample example.

    2024/07/30 06:35:08 [INFO] 198.18.0.85:53666 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:08 [INFO] 198.18.0.85:53662 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:18 [INFO] 198.18.0.85:49936 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:18 [INFO] 198.18.0.85:49944 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:28 [INFO] 198.18.0.85:39278 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:28 [INFO] 198.18.0.85:39280 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:38 [INFO] 198.18.0.85:58990 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:38 [INFO] 198.18.0.85:58988 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:48 [INFO] 198.18.0.85:51776 GET /cainfo 200 0 "OK"
    2024/07/30 06:35:48 [INFO] 198.18.0.85:51778 GET /cainfo 200 0 "OK"
    

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.