云存储相关接口
第三方云存储配置
/api/v1/cloudproviders¶
DELETE¶
Summary:¶
删除设置
Description:¶
删除设置
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | uids | No | dto.CloudProviderDeleteReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
GET¶
Summary:¶
分页设置列表数据
Description:¶
设置列表
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
displayName | query | 设置名称 | No | string |
type | query | 设置类型 | No | string |
page | query | 页条数 | No | integer |
limit | query | 页码 | No | integer |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "data": [...]} | response.Response & object |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
POST¶
Summary:¶
创建设置
Description:¶
创建设置
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | data | Yes | dto.CloudProviderInsertReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
/api/v1/cloudproviders/{uid}¶
GET¶
Summary:¶
查询设置
Description:¶
查询设置
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
uid | path | uid | No | string |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "data": [...]} | response.Response & object |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
PUT¶
Summary:¶
更新设置
Description:¶
更新设置
Parameters¶
Name | Located in | Description | Required | Schema |
---|---|---|---|---|
data | body | body | Yes | dto.CloudProviderUpdateReq |
Responses¶
Code | Description | Schema |
---|---|---|
200 | {"code": 200, "message": "success"} | response.Response |
Security¶
Security Schema | Scopes |
---|---|
Bearer |
dto.CloudProviderDeleteReq¶
Name | Type | Description | Required |
---|---|---|---|
uids | [ string ] | No |
dto.CloudProviderInsertReq¶
Name | Type | Description | Required |
---|---|---|---|
description | string | 云厂商描述 | No |
displayName | string | 云厂商名称 | No |
hostPath | string | 主机挂载地址 | No |
hostPathType | string | 主机挂载类型 | No |
publicThumbnailBucket | string | 缩略图存储桶 | No |
publicThumbnailDomain | string | 缩略图域名 | No |
storageAccessKey | string | 对象存储 AccessKey | No |
storageBucket | string | 对象存储 StorageBucket | No |
storageEndpoint | string | 对象存储 endpoint | No |
storageRegion | string | 对象存储 Region | No |
storageSecretKey | string | 对象存储 AccessKey | No |
type | integer | 设置类型 | No |
volumeType | integer | 存储卷类型 无挂载 | HostPath |
workCluster | string | 工作集群 | No |
dto.CloudProviderUpdateReq¶
Name | Type | Description | Required |
---|---|---|---|
description | string | 云厂商描述 | No |
displayName | string | 云厂商名称 | No |
hostPath | string | No | |
hostPathType | string | 主机挂载类型 | No |
publicThumbnailBucket | string | No | |
publicThumbnailDomain | string | No | |
storageAccessKey | string | 对象存储 AccessKey | No |
storageBucket | string | 对象存储 StorageBucket | No |
storageEndpoint | string | 对象存储 endpoint | No |
storageRegion | string | 对象存储 Region | No |
storageSecretKey | string | 对象存储 AccessKey | No |
type | integer | 设置类型 | No |
uid | string | UID | No |
volumeType | integer | 存储卷类型 无挂载 | HostPath |
workCluster | string | No |
models.CloudProviderRecord¶
Name | Type | Description | Required |
---|---|---|---|
createdAt | models.LocalTime | No | |
description | string | 设置描述 | No |
displayName | string | 设置名称 | No |
hostPath | string | No | |
hostPathType | string | No | |
publicThumbnailBucket | string | No | |
publicThumbnailDomain | string | No | |
storageAccessKey | string | 对象存储 AccessKey | No |
storageBucket | string | 对象存储 StorageBucket | No |
storageEndpoint | string | 对象存储endpoint | No |
storageRegion | string | 对象存储区域 Region | No |
storageSecretKey | string | 对象存储 AccessKey | No |
type | integer | 设置类型 | No |
uid | string | 唯一uuid | No |
updatedAt | models.LocalTime | No | |
volumeType | integer | No | |
workCluster | string | No |