-
Notifications
You must be signed in to change notification settings - Fork 376
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cc apis, add cmsi send_msg/get_msg_type (#146)
- Loading branch information
1 parent
68fe07d
commit 64e5c18
Showing
23 changed files
with
1,071 additions
and
7 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
76 changes: 76 additions & 0 deletions
76
paas-ce/paas/esb/components/confapis/cc/apidocs/en/add_instance_association.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,76 @@ | ||
### Functional description | ||
|
||
create association between object's instance. | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### General Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------------|------------|--------|-----------------------------| | ||
| metadata | object | Yes | request meta data | | ||
| condition | string map | Yes | query condition | | ||
|
||
|
||
metadata params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| label | string map | Yes |the label data request should with, such as biz info | | ||
|
||
|
||
label params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_biz_id | string | Yes | business's ID | | ||
|
||
|
||
condition params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_obj_asst_id | string | Yes | object's association unique id | | ||
| bk_inst_id | int64 | Yes | association's source object's instance id | | ||
| bk_asst_inst_id | int64 | Yes | association's destination object's instance id | | ||
|
||
|
||
### Request Parameters Example | ||
|
||
``` json | ||
{ | ||
"bk_obj_asst_id": "bk_switch_belong_bk_host", | ||
"bk_inst_id": 11, | ||
"bk_asst_inst_id": 21, | ||
"metadata":{ | ||
"label":{ | ||
"bk_biz_id":"1" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": { | ||
"id": 1038 | ||
} | ||
} | ||
|
||
``` | ||
|
||
### Return Result Parameters Description | ||
|
||
#### data : | ||
|
||
| Field | Type | Description | | ||
|------------|----------|--------------| | ||
|id|int64|the instance association's unique id| | ||
|
39 changes: 39 additions & 0 deletions
39
paas-ce/paas/esb/components/confapis/cc/apidocs/en/delete_instance_association.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,39 @@ | ||
### Functional description | ||
|
||
delete association between object's instance. | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### General Parameters | ||
| Field | Type | Required | Description | | ||
|----------------------|------------|--------|-----------------------------| | ||
| id | int64 | Yes | the instance association's unique id | | ||
|
||
### Request Parameters Example | ||
|
||
``` json | ||
|
||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": "success" | ||
} | ||
|
||
``` | ||
|
||
### Return Result Parameters Description | ||
|
||
#### data : | ||
|
||
| Field | Type | Description | | ||
|------------|----------|--------------| | ||
|
||
|
88 changes: 88 additions & 0 deletions
88
paas-ce/paas/esb/components/confapis/cc/apidocs/en/find_instance_association.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,88 @@ | ||
### Functional description | ||
|
||
find association between object's instance. | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### General Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------------|------------|--------|-----------------------------| | ||
| metadata | object | Yes | request meta data | | ||
| condition | string map | Yes | query condition | | ||
|
||
|
||
metadata params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| label | string map | Yes |the label data request should with, such as biz info | | ||
|
||
|
||
label params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_biz_id | string | Yes | business's ID | | ||
|
||
condition params | ||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_obj_asst_id | string | Yes | object's association unique id| | ||
| bk_asst_id | string | NO | object's association kind unique name| | ||
| bk_obj_id | string | NO | the association's source object's id| | ||
| bk_asst_id | string | NO | the association's destination object's id| | ||
|
||
|
||
### Request Parameters Example | ||
|
||
``` json | ||
{ | ||
"condition": { | ||
"bk_obj_asst_id": "bk_switch_belong_bk_host", | ||
"bk_asst_id": "", | ||
"bk_object_id": "", | ||
"bk_asst_obj_id": "" | ||
}, | ||
"metadata":{ | ||
"label":{ | ||
"bk_biz_id":"3" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": [{ | ||
"bk_obj_asst_id": "bk_switch_belong_bk_host", | ||
"bk_obj_id":"switch", | ||
"bk_asst_obj_id":"host", | ||
"bk_inst_id":12, | ||
"bk_asst_inst_id":13 | ||
}] | ||
} | ||
|
||
``` | ||
|
||
|
||
### Return Result Parameters Description | ||
|
||
#### data : | ||
|
||
| Field | Type | Description | | ||
|------------|----------|--------------| | ||
|id|int64|the association's unique id| | ||
| bk_obj_asst_id| string| auto generated id, which represent this association.| | ||
| bk_obj_id| string| the association source object's id | | ||
| bk_asst_obj_id| string| the association destination object's id| | ||
| bk_inst_id| int64| the association source object's instance id| | ||
| bk_asst_inst_id| int64| the association destination object's instance id| | ||
|
98 changes: 98 additions & 0 deletions
98
paas-ce/paas/esb/components/confapis/cc/apidocs/en/find_object_association.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,98 @@ | ||
### Functional description | ||
|
||
find association between object. | ||
|
||
### Request Parameters | ||
|
||
{{ common_args_desc }} | ||
|
||
#### General Parameters | ||
|
||
| Field | Type | Required | Description | | ||
|----------------------|------------|--------|-----------------------------| | ||
| metadata | object | Yes | request meta data | | ||
| condition | string map | Yes | query condition | | ||
|
||
|
||
metadata params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| label | string map | Yes |the label data request should with, such as biz info | | ||
|
||
|
||
label params | ||
|
||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_biz_id | string | Yes | business's ID | | ||
|
||
condition params | ||
| Field | Type | Required | Description | | ||
|---------------------|------------|--------|-----------------------------| | ||
| bk_asst_id | string | Yes | object's association kind unique name| | ||
| bk_obj_id | string | Yes | the association's source object's id| | ||
| bk_asst_id | string | Yes | the association's destination object's id| | ||
|
||
|
||
### Request Parameters Example | ||
|
||
``` json | ||
{ | ||
"condition": { | ||
"bk_asst_id": "belong", | ||
"bk_obj_id": "bk_switch", | ||
"bk_asst_obj_id": "bk_host" | ||
}, | ||
"metadata":{ | ||
"label":{ | ||
"bk_biz_id":"1" | ||
} | ||
} | ||
} | ||
``` | ||
|
||
### Return Result Example | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "", | ||
"data": [ | ||
{ | ||
"id": 1, | ||
"bk_obj_asst_id": "bk_switch_belong_bk_host", | ||
"bk_obj_asst_name": "", | ||
"bk_asst_id": "belong", | ||
"bk_asst_name": "belong", | ||
"bk_obj_id": "bk_switch", | ||
"bk_obj_name": "switch", | ||
"bk_asst_obj_id": "bk_host", | ||
"bk_asst_obj_name": "host", | ||
"mapping": "1:n", | ||
"on_delete": "none" | ||
} | ||
] | ||
} | ||
|
||
``` | ||
|
||
|
||
### Return Result Parameters Description | ||
|
||
#### data : | ||
|
||
| Field | Type | Description | | ||
|------------|----------|--------------| | ||
|id|int64|the association's unique id| | ||
| bk_obj_asst_id| string| auto generated id, which represent this association.| | ||
| bk_obj_asst_name| string| the alias name for this association. | | ||
| bk_asst_id| string| association kind id | | ||
| bk_asst_name| string| association kind name | | ||
| bk_obj_id| string| the association source object's id | | ||
| bk_obj_name| string| the association source object's name | | ||
| bk_asst_obj_id| string| the association destination object's id| | ||
| bk_asst_obj_name| string| the association destination object's name| | ||
| mapping| string| association between object's instance type, could be one of [1:1, 1:n, n:n] | | ||
| on_delete| string| the action when this association is delete, could be one of [none, delete_src, delete_dest], "none" means do nothing, "delete_src" means delete source object's instance, "delete_dest" means delete destination object's instance.| |
Oops, something went wrong.