更新脚本信息

接口URL

/api/v1/resource/host/scripts/{scriptID}

请求方式

PUT

Content-Type

application/json

路径变量

参数名 示例值 参数描述
scriptID - -

请求Body参数

{
    "Name": "test.sh",
    "Description": "test.sh",
    "Body": "#!/bin/bash \nls"
}

认证方式

Bearer auth

成功响应示例

{
    "Data": {
        "CreatedAt": "2023-12-22T11:17:01.35+08:00",
        "UpdatedAt": "2023-12-22T11:17:01.35+08:00",
        "DeletedAt": null,
        "Creator": "wuqiang",
        "Description": "test.sh",
        "ID": "shell-3a964fb8b7f8b5bd",
        "Name": "test.sh",
        "Type": "shell",
        "Body": "#!/bin/bash \nls"
    },
    "Success": true
}
参数名 示例值 参数类型 参数描述
Data - Object -
Data.CreatedAt 2023-12-22T11:17:01.35+08:00 String 创建时间
Data.UpdatedAt 2023-12-22T11:17:01.35+08:00 String 更新时间
Data.DeletedAt null Null 删除时间
Data.Creator creator String 创建人
Data.Description test.sh String 脚本描述
Data.ID shell-3a964fb8b7f8b5bd String 脚本 ID
Data.Name test.sh String 脚本名称
Data.Type shell String 脚本类型
Data.Body #!/bin/bash ls String 脚本内容
Success true Boolean -
© 2024 平凯星辰(北京)科技有限公司 all right reserved,powered by GitbookFile Modify: 2024-04-02 15:37:04

results matching ""

    No results matching ""