Updated on 2024-04-15 GMT+08:00

Querying Loading Progress of a Lazyloading Disk

Function

This API is used to query the loading progress of a lazyloading disk.

URI

  • URI format

    GET /v3/{project_id}/os-vendor-volumes/{volume_id}/internal-info

  • Parameter description

    Parameter

    Mandatory

    Description

    project_id

    Yes

    Specifies the project ID.

    For details about how to obtain the project ID, see Obtaining a Project ID.

    volume_id

    Yes

    Specifies the disk ID.

Request

None

Response

  • Parameter description

    Parameter

    Type

    Description

    info

    Object

    Specifies the loading information, in percentage. For details, see Parameter in the info field.

    error

    Object

    Specifies the error message returned when an error occurs. For details, see Parameters in the error field.

  • Parameter in the info field

    Parameter

    Type

    Description

    loading_progress

    Integer

    Specifies the loading progress of the lazyloading disk.

  • Parameters in the error field

    Parameter

    Type

    Description

    message

    String

    The error message returned if an error occurs.

    code

    String

    The error code returned if an error occurs.

    For details about the error code, see Error Codes.

  • Example response
    {
        "info": {
            "loading_progress": 36
            }
    }

    or

    {
        "error": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

    In the preceding example, error indicates a general error, for example, badrequest or itemNotFound. An example is provided as follows:

    {
        "badrequest": {
            "message": "XXXX", 
            "code": "XXX"
        }
    }

Status Codes

  • Normal

    200

Error Codes

For details, see Error Codes.