CLI使用
更新時間 2025-07-07 18:25:42
最近更新時間: 2025-07-07 18:25:42
分享文章
可執行的命令
日志項目管理
Usage:
ctlts project [command]
Available Commands:
checkProjectExist Check log project exist by project name and project code
countProject Count the number of log projects
createProject Create a new log project
deleteProject Delete log project
getCodeByName Get project code by project name
getProject Get log project details by project code
getProjectByCode Get log project introduction by project code
getProjectDescription Get a log project's description by project code
listProject List log project all or by project name
pageProject Search log project by page
queryAliasName Query project alias names by original project names
queryNameByCode Query original project names by project codes
renameProject Rename a log project by project code
updateProject Update log project description
updateProjectDescription Update a log project's description by project code
Flags:
-a, --ak string access_id
-c, --config string use config.yaml ,such as: --config=huadong1
-e, --endpoint string endpoint
-h, --help help for project
-i, --region_id string region_id
-s, --sk string access_key日志單元管理
Usage:
ctlts logUnit [command]
Available Commands:
checkLogUnitExist Check if a specified log unit exists
countUnit Get the count of log units
createIndex Create index information for a specified log unit
createLogUnit Create a new log unit
deleteIndex Delete index for a specified log unit
deleteLogUnit Delete a new log unit
getIndex Query index information for a specified log unit
getIndexCount Get index count for a specified log unit by unit code
getLogUnitAliasName Get the alias name of a specified log unit by unit code
getLogUnitNote Get the note (description) of a specified log unit by unit code
getLogUnitOriginName Get the original name of a specified log unit by unit code
getLogUnitTags Get tags for a specified log unit by unit code
getLogUnitTtlDays Get the TTL days of a specified log unit
getUnitByCode Get log unit information by unit code
listLogUnit List log unit all or by unitName
pageLogUnit Search log unit by page
queryLogUnitAliasNames Query alias names of log units in a specified project
queryLogUnitOriginNames Query origin names of log units in a specified project
renameLogUnit Rename the alias of a specified log unit
updateIndex Update index information for a specified log unit
updateLogUnit update a new log unit
updateLogUnitNote Update the description of a specified log unit
updateTtl Update TTL for a specified log unit日志檢索查詢
Usage:
ctlts log [command]
Available Commands:
getLogs Get logs from log service日志下載管理
Usage:
ctlts dataDownload [command]
Available Commands:
create Create download task
delete Delete download task
getSignUrl Get the download link for the specified download task
list List download task
query Get the download message for the specified download task.服務開通管理
Usage:
ctlts instance [command]
Available Commands:
checkLicense Check order instance status
getInstanceInfo Get instance information under tenant resource pool
getInstanceStatus Get instance status
orderLogInstance Order cloud log service instanceCLI命令執行示例
createProject :創建日志項目
Usage:
ctlts project createProject [flags]
Examples:
ctlts project createProject --project_name=<string> [--description=<string>] [--ak=<string> --sk=<string> --endpoint=<string> --region_id=<string> or -
-config=<string>]
Flags:
-d, --description string log project description
-h, --help help for createProject
-n, --project_name string name of the project to create
Global Flags:
-a, --ak string access_id
-c, --config string use config.yaml ,such as: --config=huadong1
-e, --endpoint string endpoint
-i, --region_id string region_id
-s, --sk string access_key說明
Flages 中的 -n, --project_name string 代表可以使用--project 或縮寫-n 來添加string 類型的字符串。
[--description=<string>] 這類方括號的代表是該參數不是openApi 的必須值,是可選的。
[--ak=<string> --sk=<string> --endpoint=<string> --region_id=<string> or --config=<string>] 代表可以使用命令注入四個參數,可以使用config配置文件注入,詳情見全局配置。