-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1098 from alex-smile/ft_esb_update_apis_20230727
update cc confapis
- Loading branch information
Showing
13 changed files
with
868 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.14.55 | ||
2.14.56 |
86 changes: 86 additions & 0 deletions
86
paas2/esb/components/confapis/cc/apidocs/en/batch_create_quoted_inst.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
### Function description | ||
|
||
batch create quoted model instance (version: v3.10.30+, permission: update permission of the source model instance) | ||
|
||
### Request parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### Interface parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------|--------------|----------|------------------------------------------------------| | ||
| bk_obj_id | string | yes | source model id | | ||
| bk_property_id | string | yes | source model quoted property id | | ||
| data | object array | yes | instance data to be created, the maximum limit is 50 | | ||
|
||
#### data[n] | ||
|
||
| Field | Type | Required | Description | | ||
|-------------|--------|----------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------| | ||
| bk_inst_id | int64 | no | source model instance id, if not set, the created instance should be associated with source model instance using create_inst | | ||
| name | string | depends on the "isrequired" config of the property | name, this is only an example, actual fields is defined by quoted model properties | | ||
| operator | string | depends on the "isrequired" config of the property | operator, this is only an example, actual fields is defined by quoted model properties | | ||
| description | string | depends on the "isrequired" config of the property | description, this is only an example, actual fields is defined by quoted model properties | | ||
|
||
### Request parameter examples | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_username": "xxx", | ||
"bk_token": "xxx", | ||
"bk_obj_id": "host", | ||
"bk_property_id": "disk", | ||
"data": [ | ||
{ | ||
"bk_inst_id": 123, | ||
"name": "test", | ||
"operator": "user", | ||
"description": "test instance" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"permission": null, | ||
"data": { | ||
"ids": [ | ||
1, | ||
2 | ||
] | ||
}, | ||
"request_id": "dsda1122adasadadada2222" | ||
} | ||
``` | ||
|
||
**Note:** | ||
|
||
- The order of the array of ids in the returned data remains the same as the order of the array data in the parameters. | ||
|
||
### Return result parameter description | ||
|
||
#### response | ||
|
||
| Name | Type | Description | | ||
|------------|--------|-----------------------------------------------------------------------------------------------------| | ||
| result | bool | The success or failure of the request. true: the request was successful; false: the request failed. | | ||
| code | int | The error code. 0 means success, >0 means failure error. | | ||
| message | string | The error message returned by the failed request. | | ||
| permission | object | Permission information | | ||
| request_id | string | request_chain_id | | ||
| data | object | data returned by the request | | ||
|
||
#### data | ||
|
||
| Name | Type | Description | | ||
|------|-------|----------------------------------------------------| | ||
| ids | array | unique identifier array of created instances in cc | |
56 changes: 56 additions & 0 deletions
56
paas2/esb/components/confapis/cc/apidocs/en/batch_delete_quoted_inst.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
### Function description | ||
|
||
batch delete quoted model instance (version: v3.10.30+, permission: update permission of the source model instance) | ||
|
||
### Request parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### Interface parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------|-------------|----------|--------------------------------------------------------------------| | ||
| bk_obj_id | string | yes | source model id | | ||
| bk_property_id | string | yes | source model quoted property id | | ||
| ids | int64 array | yes | id list of quoted instance to be deleted, the maximum limit is 500 | | ||
|
||
### Request parameter examples | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_username": "xxx", | ||
"bk_token": "xxx", | ||
"bk_obj_id": "host", | ||
"bk_property_id": "disk", | ||
"ids": [ | ||
1, | ||
2 | ||
] | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"permission": null, | ||
"request_id": "dsda1122adasadadada2222" | ||
} | ||
``` | ||
|
||
### Return result parameter description | ||
|
||
#### response | ||
|
||
| Name | Type | Description | | ||
|------------|--------|-----------------------------------------------------------------------------------------------------| | ||
| result | bool | The success or failure of the request. true: the request was successful; false: the request failed. | | ||
| code | int | The error code. 0 means success, >0 means failure error. | | ||
| message | string | The error message returned by the failed request. | | ||
| permission | object | Permission information | | ||
| request_id | string | request_chain_id | |
70 changes: 70 additions & 0 deletions
70
paas2/esb/components/confapis/cc/apidocs/en/batch_update_quoted_inst.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
### Function description | ||
|
||
batch update quoted model instance (version: v3.10.30+, permission: update permission of the source model instance) | ||
|
||
### Request parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### Interface parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------|-------------|----------|--------------------------------------------------------------------| | ||
| bk_obj_id | string | yes | source model id | | ||
| bk_property_id | string | yes | source model quoted property id | | ||
| ids | int64 array | yes | id list of quoted instance to be updated, the maximum limit is 500 | | ||
| data | object | yes | the quoted instance data to be updated | | ||
|
||
#### data | ||
|
||
| Field | Type | Required | Description | | ||
|-------------|--------|--------------------------------------------------|-------------------------------------------------------------------------------------------| | ||
| name | string | at least one of the fields in "data" is required | name, this is only an example, actual fields is defined by quoted model properties | | ||
| operator | string | at least one of the fields in "data" is required | operator, this is only an example, actual fields is defined by quoted model properties | | ||
| description | string | at least one of the fields in "data" is required | description, this is only an example, actual fields is defined by quoted model properties | | ||
|
||
### Request parameter examples | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_username": "xxx", | ||
"bk_token": "xxx", | ||
"bk_obj_id": "host", | ||
"bk_property_id": "disk", | ||
"ids": [ | ||
1, | ||
2 | ||
], | ||
"data": { | ||
"name": "test", | ||
"operator": "user", | ||
"description": "test instance" | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"permission": null, | ||
"request_id": "dsda1122adasadadada2222" | ||
} | ||
``` | ||
|
||
### Return result parameter description | ||
|
||
#### response | ||
|
||
| Name | Type | Description | | ||
|------------|--------|-----------------------------------------------------------------------------------------------------| | ||
| result | bool | The success or failure of the request. true: the request was successful; false: the request failed. | | ||
| code | int | The error code. 0 means success, >0 means failure error. | | ||
| message | string | The error message returned by the failed request. | | ||
| permission | object | Permission information | | ||
| request_id | string | request_chain_id | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.