-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update esb cc confapis; fix paas esb rate-limit
- Loading branch information
1 parent
a73dd2b
commit 0ddf9f6
Showing
35 changed files
with
911 additions
and
1,140 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
paas2/esb/components/confapis/cc/apidocs/en/count_instance_associations.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,81 @@ | ||
### Functional description | ||
|
||
count instance associations num (v3.10.1+) | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### Interface Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|------------|--------|----------|----------------------------------------------------------------------------------------------| | ||
| bk_obj_id | string | Yes | object id | | ||
| conditions | object | Yes | conditions, support AND/OR types,max conditions deep 3, max OR conditions rules count is 20 | | ||
|
||
#### conditions | ||
|
||
| Field | Type | Required | Description | | ||
|----------|--------|----------|-----------------------------------------------------------------------------------------------------------------------| | ||
| field | string | Yes | condition field | | ||
| operator | string | Yes | condition operator, support equal,not_equal,in,not_in,less,less_or_equal,greater,greater_or_equal,between,not_between | | ||
| value | - | No | condition value, max slice(array) elements count is 500 | | ||
|
||
condition rules: https://github.com/Tencent/bk-cmdb/blob/master/src/common/querybuilder/README.md | ||
|
||
### Request Parameters Example | ||
|
||
```json | ||
{ | ||
"bk_app_code":"code", | ||
"bk_app_secret":"secret", | ||
"bk_token":"xxxx", | ||
"bk_obj_id":"bk_switch", | ||
"conditions":{ | ||
"condition": "AND", | ||
"rules": [ | ||
{ | ||
"field": "bk_inst_name", | ||
"operator": "begins_with", | ||
"value": "switch" | ||
}, | ||
{ | ||
"condition": "OR", | ||
"rules": [ | ||
{ | ||
"field": "bk_inst_id", | ||
"operator": "not_in", | ||
"value": [2,4,6] | ||
}, | ||
{ | ||
"field": "bk_obj_name", | ||
"operator": "equal", | ||
"value": "switch" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": { | ||
"count": 1 | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Parameters Description | ||
|
||
#### data | ||
|
||
| Field | Type | Description | | ||
|--------|---------|-------------------| | ||
| count | integer | the num of record | |
81 changes: 81 additions & 0 deletions
81
paas2/esb/components/confapis/cc/apidocs/en/count_object_instances.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,81 @@ | ||
### Functional description | ||
|
||
count object instances num (v3.10.1+) | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### Interface Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|------------|--------|----------|----------------------------------------------------------------------------------------------| | ||
| bk_obj_id | string | Yes | object id | | ||
| conditions | object | Yes | conditions, support AND/OR types,max conditions deep 3, max OR conditions rules count is 20 | | ||
|
||
#### conditions | ||
|
||
| Field | Type | Required | Description | | ||
|----------|--------|----------|-----------------------------------------------------------------------------------------------------------------------| | ||
| field | string | Yes | condition field | | ||
| operator | string | Yes | condition operator, support equal,not_equal,in,not_in,less,less_or_equal,greater,greater_or_equal,between,not_between | | ||
| value | - | No | condition value, max slice(array) elements count is 500 | | ||
|
||
condition rules: https://github.com/Tencent/bk-cmdb/blob/master/src/common/querybuilder/README.md | ||
|
||
### Request Parameters Example | ||
|
||
```json | ||
{ | ||
"bk_app_code":"code", | ||
"bk_app_secret":"secret", | ||
"bk_token":"xxxx", | ||
"bk_obj_id":"bk_switch", | ||
"conditions":{ | ||
"condition": "AND", | ||
"rules": [ | ||
{ | ||
"field": "bk_inst_name", | ||
"operator": "begins_with", | ||
"value": "switch" | ||
}, | ||
{ | ||
"condition": "OR", | ||
"rules": [ | ||
{ | ||
"field": "bk_inst_id", | ||
"operator": "not_in", | ||
"value": [2,4,6] | ||
}, | ||
{ | ||
"field": "bk_obj_name", | ||
"operator": "equal", | ||
"value": "switch" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": { | ||
"count": 1 | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Parameters Description | ||
|
||
#### data | ||
|
||
| Field | Type | Description | | ||
|--------|---------|-------------------| | ||
| count | integer | the num of record | |
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
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
93 changes: 0 additions & 93 deletions
93
paas2/esb/components/confapis/cc/apidocs/en/find_host_snapshot_batch.md
This file was deleted.
Oops, something went wrong.
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.