查询脚本列表信息

接口URL

/api/v1/resource/host/scripts?CurrentPage=1&PageSize=10

请求方式

GET

Content-Type

application/json

请求Query参数

参数名 示例值 参数类型 是否必填 参数描述
CurrentPage 1 String 页码
PageSize 10 String 页面大小

认证方式

Bearer auth

成功响应示例

{
    "Data": {
        "CurrentPage": 1,
        "Items": [
            {
                "CreatedAt": "2023-12-19T14:54:22.716+08:00",
                "UpdatedAt": "2023-12-19T14:54:22.716+08:00",
                "DeletedAt": null,
                "Creator": "xinyi",
                "Description": "测试1",
                "ID": "shell-bea4a6b399e4175e",
                "Name": "test_script1.sh",
                "Type": "shell",
                "Body": "test1"
            },
            {
                "CreatedAt": "2023-12-19T14:55:37.351+08:00",
                "UpdatedAt": "2023-12-19T14:55:37.351+08:00",
                "DeletedAt": null,
                "Creator": "xinyi",
                "Description": "测试2",
                "ID": "shell-66ea82611182f572",
                "Name": "test_script2.sh",
                "Type": "shell",
                "Body": "test2"
            }
        ],
        "PageSize": 10,
        "Total": 2
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data - Object -
Data.CurrentPage 1 Integer 页码
Data.Items - Array -
Data.Items.CreatedAt 2023-12-19T14:54:22.716+08:00 String 创建时间
Data.Items.UpdatedAt 2023-12-19T14:54:22.716+08:00 String 更新时间
Data.Items.DeletedAt null Null 删除时间
Data.Items.Creator creator String 创建人
Data.Items.Description 测试1 String 脚本描述
Data.Items.ID shell-bea4a6b399e4175e String 脚本 ID
Data.Items.Name test_script1.sh String 脚本名称
Data.Items.Type shell String 脚本类型
Data.Items.Body test1 String 脚本内容,最多显示 100 个字符
Data.PageSize 10 Integer 页面大小
Data.Total 3 Integer 条目总数
Success true Boolean -
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""