-
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.
Merge pull request #431 from alex-smile/update_esb_apis_0720
更新 ESB 组件
- Loading branch information
Showing
12 changed files
with
398 additions
and
8 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.12.22 | ||
2.12.23 |
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
58 changes: 58 additions & 0 deletions
58
paas2/esb/components/confapis/jobv3/apidocs/zh_hans/create_credential.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,58 @@ | ||
### 功能描述 | ||
|
||
新建凭据。 | ||
|
||
### 请求参数 | ||
|
||
{{ common_args_desc }} | ||
|
||
#### 接口参数 | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|-----------------|------------|--------|------------| | ||
| bk_biz_id | long | 是 | 业务 ID | | ||
| name | string | 是 | 凭据名称 | | ||
| type | string | 是 | 凭据类型,取值可为ACCESS_KEY_SECRET_KEY,PASSWORD,USERNAME_PASSWORD,SECRET_KEY | | ||
| description | string | 否 | 凭据描述 | | ||
| access_key | string | 否 | 凭据类型为ACCESS_KEY_SECRET_KEY时填写 | | ||
| secret_key | string | 否 | 凭据类型为ACCESS_KEY_SECRET_KEY/SECRET_KEY时填写 | | ||
| username | string | 否 | 凭据类型为USERNAME_PASSWORD时填写 | | ||
| password | string | 否 | 凭据类型为USERNAME_PASSWORD/PASSWORD时填写 | | ||
|
||
|
||
### 请求参数示例 | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_biz_id": 1, | ||
"name": "testCredential", | ||
"type": "USERNAME_PASSWORD", | ||
"description": "This is a test credential", | ||
"username": "admin", | ||
"password": "password" | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"data": { | ||
"id": "06644309e10e4068b3c7b32799668210" | ||
} | ||
} | ||
``` | ||
|
||
### 返回结果参数说明 | ||
|
||
#### data | ||
|
||
| 字段 | 类型 |字段是否一定存在 | 描述 | | ||
|-----------|-------|---------------|---------| | ||
| id | string |是 | 凭据ID | |
75 changes: 75 additions & 0 deletions
75
paas2/esb/components/confapis/jobv3/apidocs/zh_hans/create_file_source.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,75 @@ | ||
### 功能描述 | ||
|
||
新建文件源,当前仅支持创建关联自动选择公共接入点的蓝鲸制品库文件源。 | ||
创建的文件源具备以下默认特性: | ||
|
||
| 特性 | 取值 | | ||
|-----------------|------------| | ||
|存储类型|对象存储| | ||
|文件源类型|蓝鲸制品库| | ||
|是否为公共文件源|否| | ||
|接入点选择范围|公共接入点| | ||
|接入点选择模式|自动| | ||
|
||
### 请求参数 | ||
|
||
{{ common_args_desc }} | ||
|
||
#### 接口参数 | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|-----------------|------------|--------|------------| | ||
| bk_biz_id | long | 是 | 业务 ID | | ||
| code | string | 是 | 文件源标识,英文字符开头,1-32位英文字符、下划线、数字组成,创建后不可更改 | | ||
| alias | string | 是 | 文件源别名 | | ||
| type | string | 是 | 文件源类型,当前仅支持蓝鲸制品库,BLUEKING_ARTIFACTORY | | ||
| access_params | object | 是 | 文件源接入参数,根据type传入不同的对象,见后续说明 | | ||
| credential_id | string | 否 | 文件源使用的凭据Id | | ||
| file_prefix | string | 否 | Job对从该文件源分发的文件加上的前缀,不传默认不加前缀 | | ||
|
||
### access_params | ||
**type为BLUEKING_ARTIFACTORY** | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|-----------------|------------|--------|------------| | ||
| base_url | string | 是 | 对接的制品库实例根地址,例如:https://bkrepo.com | | ||
|
||
### 请求参数示例 | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_biz_id": 1, | ||
"code": "sopsArtifactory", | ||
"alias": "标准运维制品库文件源", | ||
"type": "BLUEKING_ARTIFACTORY", | ||
"access_params": { | ||
"base_url": "https://bkrepo.com" | ||
}, | ||
"credential_id": "06644309e10e4068b3c7b32799668210", | ||
"file_prefix": "" | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"data": { | ||
"id": 1 | ||
} | ||
} | ||
``` | ||
|
||
### 返回结果参数说明 | ||
|
||
#### data | ||
|
||
| 字段 | 类型 |字段是否一定存在 | 描述 | | ||
|-----------|-------|---------------|---------| | ||
| id | int |是 | 文件源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
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
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
60 changes: 60 additions & 0 deletions
60
paas2/esb/components/confapis/jobv3/apidocs/zh_hans/update_credential.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,60 @@ | ||
### 功能描述 | ||
|
||
更新凭据。 | ||
|
||
### 请求参数 | ||
|
||
{{ common_args_desc }} | ||
|
||
#### 接口参数 | ||
|
||
| 字段 | 类型 | 必选 | 描述 | | ||
|-----------------|------------|--------|------------| | ||
| bk_biz_id | long | 是 | 业务 ID | | ||
| id | string | 是 | 凭据 ID | | ||
| name | string | 否 | 凭据名称 | | ||
| type | string | 否 | 凭据类型,取值可为ACCESS_KEY_SECRET_KEY,PASSWORD,USERNAME_PASSWORD,SECRET_KEY | | ||
| description | string | 否 | 凭据描述 | | ||
| access_key | string | 否 | 凭据类型为ACCESS_KEY_SECRET_KEY时填写 | | ||
| secret_key | string | 否 | 凭据类型为ACCESS_KEY_SECRET_KEY/SECRET_KEY时填写 | | ||
| username | string | 否 | 凭据类型为USERNAME_PASSWORD时填写 | | ||
| password | string | 否 | 凭据类型为USERNAME_PASSWORD/PASSWORD时填写 | | ||
|
||
|
||
### 请求参数示例 | ||
|
||
```json | ||
{ | ||
"bk_app_code": "esb_test", | ||
"bk_app_secret": "xxx", | ||
"bk_token": "xxx", | ||
"bk_biz_id": 1, | ||
"id": "06644309e10e4068b3c7b32799668210", | ||
"name": "testCredential", | ||
"type": "USERNAME_PASSWORD", | ||
"description": "This is a new credential", | ||
"username": "admin", | ||
"password": "newPassword" | ||
} | ||
``` | ||
|
||
### 返回结果示例 | ||
|
||
```json | ||
{ | ||
"result": true, | ||
"code": 0, | ||
"message": "success", | ||
"data": { | ||
"id": "06644309e10e4068b3c7b32799668210" | ||
} | ||
} | ||
``` | ||
|
||
### 返回结果参数说明 | ||
|
||
#### data | ||
|
||
| 字段 | 类型 |字段是否一定存在 | 描述 | | ||
|-----------|-------|---------------|---------| | ||
| id | string |是 | 凭据ID | |
Oops, something went wrong.