### Function Description

Query public script version list

### Request Parameters

{{ common_args_desc }}

#### Interface parameters

| Fields |  Type  | Required | Description |
|----------------------|------------|--------|------------|
| script_id              |   string    |  yes  |Script ID|
| return_script_content  |  bool      |  no   | Whether the script content needs to be returned. True: returns script content; False: does not return script content. The default is false. |
| start                  |   int       |  no   | Start position of paging record, default 0|
| length                 |   int       |  no   | The maximum number of records returned in a single time is 1000 at most, default 20|

### Example of request

```json
{
    "bk_app_code": "esb_test",
    "bk_app_secret": "xxx",
    "bk_token": "xxx",
    "script_id": "000dbdddc06c453baf1f2decddf00c69",
    "return_script_content": true,
    "start": 0,
    "length": 10
}
```

### Example of responses

```json
{
    "result": true,
    "code": 0,
    "message": "success",
    "data": {
        "data": [
            {
                "id": 1,
                "script_id": "000dbdddc06c453baf1f2decddf00c69",
                "version": "V1.0",
                "content": "#!/bin/bash***",
                "status": 1,
                "version_desc": "version description",
                "creator": "admin",
                "create_time": 1600746078520,
                "last_modify_user": "admin",
                "last_modify_time": 1600746078520,
                "script_language": 1,
                "description": "script description"
            }
        ],
        "start": 0,
        "length": 10,
        "total": 1
    }
}
```

### Response Description

#### response
| Fields | Type  | Description |
|-----------|-----------|-----------|
| result       |  bool   | Whether the request succeeded or not. True: request succeeded;False: request failed|
| code         |  int    | Error code. 0 indicates success, >0 indicates failure|
| message      |  string |Error message|
| data         |  object |Data returned by request|
| permission   |  object |Permission information|
| request_id   |  string |Request chain id|

#### data

| Fields | Type  | Description |
|-----------|-----------|-----------|
| id                |  long      | Script version ID|
| script_id         |  string    | Script ID to which the script version belongs|
| version           |  string    | Version|
| content           |  string    | Script content|
| status            |  int       | Script version status (0: not online, 1: Online, 2: offline, 3: Disabled)|
| version_desc      |  string    | Version description|
| creator           |  string    | Creator|
| create_time       |  long      | Creation time Unix timestamp (ms)|
| last_modify_user  | string    | Last modify user|
| last_modify_time  | long      | Last modified time Unix timestamp (ms)|
| script_language   | int    | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| description       | string | Description                                                  |
