All URIs are relative to http://localhost/api/v2.0
Method | HTTP request | Description |
---|---|---|
CreateRobot | Post /robots | Create a robot account |
DeleteRobot | Delete /robots/{robot_id} | Delete a robot account |
GetRobotByID | Get /robots/{robot_id} | Get a robot account |
ListRobot | Get /robots | Get robot account |
RefreshSec | Patch /robots/{robot_id} | Refresh the robot secret |
UpdateRobot | Put /robots/{robot_id} | Update a robot account |
RobotCreated CreateRobot(ctx, robot, optional) Create a robot account
Create a robot account
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
robot | RobotCreate | The JSON object of a robot account. | |
optional | *RobotApiCreateRobotOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiCreateRobotOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteRobot(ctx, robotId, optional) Delete a robot account
This endpoint deletes specific robot account information by robot ID.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
robotId | int32 | Robot ID | |
optional | *RobotApiDeleteRobotOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiDeleteRobotOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Robot GetRobotByID(ctx, robotId, optional) Get a robot account
This endpoint returns specific robot account information by robot ID.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
robotId | int32 | Robot ID | |
optional | *RobotApiGetRobotByIDOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiGetRobotByIDOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Robot ListRobot(ctx, optional) Get robot account
List the robot accounts with the specified level and project.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *RobotApiListRobotOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiListRobotOpts struct
Name | Type | Description | Notes |
---|---|---|---|
xRequestId | optional.String | An unique ID for the request | |
q | optional.String | Query string to query resources. Supported query patterns are "exact match(k=v)", "fuzzy match(k= |
|
sort | optional.String | Sort the resource list in ascending or descending order. e.g. sort by field1 in ascending orderr and field2 in descending order with "sort=field1,-field2" | |
page | optional.Int64 | The page number | [default to 1] |
pageSize | optional.Int64 | The size of per page | [default to 10] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
RobotSec RefreshSec(ctx, robotId, robotSec, optional) Refresh the robot secret
Refresh the robot secret
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
robotId | int32 | Robot ID | |
robotSec | RobotSec | The JSON object of a robot account. | |
optional | *RobotApiRefreshSecOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiRefreshSecOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateRobot(ctx, robotId, robot, optional) Update a robot account
This endpoint updates specific robot account information by robot ID.
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
robotId | int32 | Robot ID | |
robot | Robot | The JSON object of a robot account. | |
optional | *RobotApiUpdateRobotOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a RobotApiUpdateRobotOpts struct
Name | Type | Description | Notes |
---|
xRequestId | optional.String| An unique ID for the request |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]