@huaweicloud/huaweicloud-sdk-csms 3.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +13 -0
- package/README.md +1 -0
- package/huaweicloud-sdk-csms.d.ts +1 -0
- package/huaweicloud-sdk-csms.js +17 -0
- package/package.json +19 -0
- package/v1/CsmsClient.d.ts +606 -0
- package/v1/CsmsClient.js +1205 -0
- package/v1/CsmsRegion.d.ts +18 -0
- package/v1/CsmsRegion.js +51 -0
- package/v1/model/ActionResources.d.ts +19 -0
- package/v1/model/ActionResources.js +55 -0
- package/v1/model/BatchCreateOrDeleteTagsRequest.d.ts +10 -0
- package/v1/model/BatchCreateOrDeleteTagsRequest.js +28 -0
- package/v1/model/BatchCreateOrDeleteTagsRequestBody.d.ts +10 -0
- package/v1/model/BatchCreateOrDeleteTagsRequestBody.js +21 -0
- package/v1/model/BatchCreateOrDeleteTagsResponse.d.ts +4 -0
- package/v1/model/BatchCreateOrDeleteTagsResponse.js +27 -0
- package/v1/model/CreateSecretRequest.d.ts +6 -0
- package/v1/model/CreateSecretRequest.js +13 -0
- package/v1/model/CreateSecretRequestBody.d.ts +19 -0
- package/v1/model/CreateSecretRequestBody.js +60 -0
- package/v1/model/CreateSecretResponse.d.ts +7 -0
- package/v1/model/CreateSecretResponse.js +31 -0
- package/v1/model/CreateSecretTagRequest.d.ts +10 -0
- package/v1/model/CreateSecretTagRequest.js +28 -0
- package/v1/model/CreateSecretTagRequestBody.d.ts +6 -0
- package/v1/model/CreateSecretTagRequestBody.js +13 -0
- package/v1/model/CreateSecretTagResponse.d.ts +4 -0
- package/v1/model/CreateSecretTagResponse.js +27 -0
- package/v1/model/CreateSecretVersionRequest.d.ts +10 -0
- package/v1/model/CreateSecretVersionRequest.js +28 -0
- package/v1/model/CreateSecretVersionRequestBody.d.ts +15 -0
- package/v1/model/CreateSecretVersionRequestBody.js +51 -0
- package/v1/model/CreateSecretVersionResponse.d.ts +9 -0
- package/v1/model/CreateSecretVersionResponse.js +41 -0
- package/v1/model/DeleteSecretForScheduleRequest.d.ts +10 -0
- package/v1/model/DeleteSecretForScheduleRequest.js +28 -0
- package/v1/model/DeleteSecretForScheduleRequestBody.d.ts +7 -0
- package/v1/model/DeleteSecretForScheduleRequestBody.js +24 -0
- package/v1/model/DeleteSecretForScheduleResponse.d.ts +7 -0
- package/v1/model/DeleteSecretForScheduleResponse.js +31 -0
- package/v1/model/DeleteSecretRequest.d.ts +7 -0
- package/v1/model/DeleteSecretRequest.js +24 -0
- package/v1/model/DeleteSecretResponse.d.ts +4 -0
- package/v1/model/DeleteSecretResponse.js +27 -0
- package/v1/model/DeleteSecretStageRequest.d.ts +11 -0
- package/v1/model/DeleteSecretStageRequest.js +39 -0
- package/v1/model/DeleteSecretStageResponse.d.ts +4 -0
- package/v1/model/DeleteSecretStageResponse.js +27 -0
- package/v1/model/DeleteSecretTagRequest.d.ts +9 -0
- package/v1/model/DeleteSecretTagRequest.js +29 -0
- package/v1/model/DeleteSecretTagResponse.d.ts +4 -0
- package/v1/model/DeleteSecretTagResponse.js +27 -0
- package/v1/model/DownloadSecretBlobRequest.d.ts +7 -0
- package/v1/model/DownloadSecretBlobRequest.js +24 -0
- package/v1/model/DownloadSecretBlobResponse.d.ts +8 -0
- package/v1/model/DownloadSecretBlobResponse.js +41 -0
- package/v1/model/ListProjectSecretsTagsRequest.d.ts +3 -0
- package/v1/model/ListProjectSecretsTagsRequest.js +9 -0
- package/v1/model/ListProjectSecretsTagsResponse.d.ts +7 -0
- package/v1/model/ListProjectSecretsTagsResponse.js +31 -0
- package/v1/model/ListResourceInstancesRequest.d.ts +10 -0
- package/v1/model/ListResourceInstancesRequest.js +28 -0
- package/v1/model/ListResourceInstancesRequestBody.d.ts +17 -0
- package/v1/model/ListResourceInstancesRequestBody.js +33 -0
- package/v1/model/ListResourceInstancesResponse.d.ts +11 -0
- package/v1/model/ListResourceInstancesResponse.js +45 -0
- package/v1/model/ListSecretTagsRequest.d.ts +7 -0
- package/v1/model/ListSecretTagsRequest.js +24 -0
- package/v1/model/ListSecretTagsResponse.d.ts +11 -0
- package/v1/model/ListSecretTagsResponse.js +45 -0
- package/v1/model/ListSecretVersionsRequest.d.ts +11 -0
- package/v1/model/ListSecretVersionsRequest.js +32 -0
- package/v1/model/ListSecretVersionsResponse.d.ts +14 -0
- package/v1/model/ListSecretVersionsResponse.js +55 -0
- package/v1/model/ListSecretsRequest.d.ts +7 -0
- package/v1/model/ListSecretsRequest.js +17 -0
- package/v1/model/ListSecretsResponse.d.ts +12 -0
- package/v1/model/ListSecretsResponse.js +45 -0
- package/v1/model/PageInfo.d.ts +15 -0
- package/v1/model/PageInfo.js +51 -0
- package/v1/model/RestoreSecretRequest.d.ts +7 -0
- package/v1/model/RestoreSecretRequest.js +24 -0
- package/v1/model/RestoreSecretResponse.d.ts +7 -0
- package/v1/model/RestoreSecretResponse.js +31 -0
- package/v1/model/Secret.d.ts +27 -0
- package/v1/model/Secret.js +81 -0
- package/v1/model/ShowSecretRequest.d.ts +7 -0
- package/v1/model/ShowSecretRequest.js +24 -0
- package/v1/model/ShowSecretResponse.d.ts +7 -0
- package/v1/model/ShowSecretResponse.js +31 -0
- package/v1/model/ShowSecretStageRequest.d.ts +11 -0
- package/v1/model/ShowSecretStageRequest.js +39 -0
- package/v1/model/ShowSecretStageResponse.d.ts +7 -0
- package/v1/model/ShowSecretStageResponse.js +31 -0
- package/v1/model/ShowSecretVersionRequest.d.ts +11 -0
- package/v1/model/ShowSecretVersionRequest.js +39 -0
- package/v1/model/ShowSecretVersionResponse.d.ts +7 -0
- package/v1/model/ShowSecretVersionResponse.js +31 -0
- package/v1/model/Stage.d.ts +17 -0
- package/v1/model/Stage.js +55 -0
- package/v1/model/Tag.d.ts +7 -0
- package/v1/model/Tag.js +17 -0
- package/v1/model/TagItem.d.ts +7 -0
- package/v1/model/TagItem.js +17 -0
- package/v1/model/UpdateSecretRequest.d.ts +10 -0
- package/v1/model/UpdateSecretRequest.js +28 -0
- package/v1/model/UpdateSecretRequestBody.d.ts +9 -0
- package/v1/model/UpdateSecretRequestBody.js +27 -0
- package/v1/model/UpdateSecretResponse.d.ts +7 -0
- package/v1/model/UpdateSecretResponse.js +31 -0
- package/v1/model/UpdateSecretStageRequest.d.ts +14 -0
- package/v1/model/UpdateSecretStageRequest.js +43 -0
- package/v1/model/UpdateSecretStageRequestBody.d.ts +7 -0
- package/v1/model/UpdateSecretStageRequestBody.js +24 -0
- package/v1/model/UpdateSecretStageResponse.d.ts +7 -0
- package/v1/model/UpdateSecretStageResponse.js +31 -0
- package/v1/model/UploadSecretBlobRequest.d.ts +6 -0
- package/v1/model/UploadSecretBlobRequest.js +13 -0
- package/v1/model/UploadSecretBlobRequestBody.d.ts +7 -0
- package/v1/model/UploadSecretBlobRequestBody.js +24 -0
- package/v1/model/UploadSecretBlobResponse.d.ts +7 -0
- package/v1/model/UploadSecretBlobResponse.js +31 -0
- package/v1/model/Version.d.ts +16 -0
- package/v1/model/Version.js +51 -0
- package/v1/model/VersionMetadata.d.ts +21 -0
- package/v1/model/VersionMetadata.js +69 -0
- package/v1/public-api.d.ts +61 -0
- package/v1/public-api.js +77 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) Huawei Technologies Co., Ltd. 2020-present. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
you may not use this file except in compliance with the License.
|
|
5
|
+
You may obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
See the License for the specific language governing permissions and
|
|
13
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
See detailed information in [huaweicloud-sdk-nodejs-v3](https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './v1/public-api';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./v1/public-api"), exports);
|
package/package.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@huaweicloud/huaweicloud-sdk-csms",
|
|
3
|
+
"version": "3.1.22",
|
|
4
|
+
"description": "Huaweicloud SDK for csms",
|
|
5
|
+
"main": "huaweicloud-sdk-csms.js",
|
|
6
|
+
"typings": "huaweicloud-sdk-csms.d.ts",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
9
|
+
},
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/huaweicloud/huaweicloud-sdk-nodejs-v3"
|
|
13
|
+
},
|
|
14
|
+
"author": "HuaweiCloud_SDK",
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.22"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,606 @@
|
|
|
1
|
+
import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient";
|
|
2
|
+
import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder";
|
|
3
|
+
import { BatchCreateOrDeleteTagsRequest } from './model/BatchCreateOrDeleteTagsRequest';
|
|
4
|
+
import { CreateSecretRequest } from './model/CreateSecretRequest';
|
|
5
|
+
import { CreateSecretResponse } from './model/CreateSecretResponse';
|
|
6
|
+
import { CreateSecretTagRequest } from './model/CreateSecretTagRequest';
|
|
7
|
+
import { CreateSecretVersionRequest } from './model/CreateSecretVersionRequest';
|
|
8
|
+
import { CreateSecretVersionResponse } from './model/CreateSecretVersionResponse';
|
|
9
|
+
import { DeleteSecretForScheduleRequest } from './model/DeleteSecretForScheduleRequest';
|
|
10
|
+
import { DeleteSecretForScheduleResponse } from './model/DeleteSecretForScheduleResponse';
|
|
11
|
+
import { DeleteSecretRequest } from './model/DeleteSecretRequest';
|
|
12
|
+
import { DeleteSecretStageRequest } from './model/DeleteSecretStageRequest';
|
|
13
|
+
import { DeleteSecretTagRequest } from './model/DeleteSecretTagRequest';
|
|
14
|
+
import { DownloadSecretBlobRequest } from './model/DownloadSecretBlobRequest';
|
|
15
|
+
import { DownloadSecretBlobResponse } from './model/DownloadSecretBlobResponse';
|
|
16
|
+
import { ListProjectSecretsTagsResponse } from './model/ListProjectSecretsTagsResponse';
|
|
17
|
+
import { ListResourceInstancesRequest } from './model/ListResourceInstancesRequest';
|
|
18
|
+
import { ListResourceInstancesResponse } from './model/ListResourceInstancesResponse';
|
|
19
|
+
import { ListSecretTagsRequest } from './model/ListSecretTagsRequest';
|
|
20
|
+
import { ListSecretTagsResponse } from './model/ListSecretTagsResponse';
|
|
21
|
+
import { ListSecretVersionsRequest } from './model/ListSecretVersionsRequest';
|
|
22
|
+
import { ListSecretVersionsResponse } from './model/ListSecretVersionsResponse';
|
|
23
|
+
import { ListSecretsRequest } from './model/ListSecretsRequest';
|
|
24
|
+
import { ListSecretsResponse } from './model/ListSecretsResponse';
|
|
25
|
+
import { RestoreSecretRequest } from './model/RestoreSecretRequest';
|
|
26
|
+
import { RestoreSecretResponse } from './model/RestoreSecretResponse';
|
|
27
|
+
import { ShowSecretRequest } from './model/ShowSecretRequest';
|
|
28
|
+
import { ShowSecretResponse } from './model/ShowSecretResponse';
|
|
29
|
+
import { ShowSecretStageRequest } from './model/ShowSecretStageRequest';
|
|
30
|
+
import { ShowSecretStageResponse } from './model/ShowSecretStageResponse';
|
|
31
|
+
import { ShowSecretVersionRequest } from './model/ShowSecretVersionRequest';
|
|
32
|
+
import { ShowSecretVersionResponse } from './model/ShowSecretVersionResponse';
|
|
33
|
+
import { UpdateSecretRequest } from './model/UpdateSecretRequest';
|
|
34
|
+
import { UpdateSecretResponse } from './model/UpdateSecretResponse';
|
|
35
|
+
import { UpdateSecretStageRequest } from './model/UpdateSecretStageRequest';
|
|
36
|
+
import { UpdateSecretStageResponse } from './model/UpdateSecretStageResponse';
|
|
37
|
+
import { UploadSecretBlobRequest } from './model/UploadSecretBlobRequest';
|
|
38
|
+
import { UploadSecretBlobResponse } from './model/UploadSecretBlobResponse';
|
|
39
|
+
export declare class CsmsClient {
|
|
40
|
+
static newBuilder(): ClientBuilder<CsmsClient>;
|
|
41
|
+
private hcClient;
|
|
42
|
+
constructor(client: HcClient);
|
|
43
|
+
getPath(): any;
|
|
44
|
+
/**
|
|
45
|
+
* - 功能介绍:批量添加或删除凭据标签。
|
|
46
|
+
*
|
|
47
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
48
|
+
*
|
|
49
|
+
* @summary 批量添加或删除凭据标签
|
|
50
|
+
* @param {string} secretId 凭据ID
|
|
51
|
+
* @param {BatchCreateOrDeleteTagsRequestBody} batchCreateOrDeleteTagsRequestBody action
|
|
52
|
+
* @param {*} [options] Override http request option.
|
|
53
|
+
* @throws {RequiredError}
|
|
54
|
+
*/
|
|
55
|
+
batchCreateOrDeleteTags(batchCreateOrDeleteTagsRequest?: BatchCreateOrDeleteTagsRequest): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* 创建新的凭据,并将凭据值存入凭据的初始版本。
|
|
58
|
+
*
|
|
59
|
+
* 凭据管理服务将凭据值加密后,存储在凭据对象下的版本中。每个版本可与多个凭据版本状态相关联,凭据版本状态用于标识凭据版本处于的阶段,没有版本状态标记的版本视为已弃用,可用凭据管理服务自动删除。
|
|
60
|
+
*
|
|
61
|
+
* 初始版本的状态被标记为SYSCURRENT。
|
|
62
|
+
*
|
|
63
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
64
|
+
*
|
|
65
|
+
* @summary 创建凭据
|
|
66
|
+
* @param {CreateSecretRequestBody} createSecretRequestBody 创建凭据请求消息体。
|
|
67
|
+
* @param {*} [options] Override http request option.
|
|
68
|
+
* @throws {RequiredError}
|
|
69
|
+
*/
|
|
70
|
+
createSecret(createSecretRequest?: CreateSecretRequest): Promise<CreateSecretResponse>;
|
|
71
|
+
/**
|
|
72
|
+
* - 功能介绍:添加凭据标签。
|
|
73
|
+
*
|
|
74
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
75
|
+
*
|
|
76
|
+
* @summary 添加凭据标签
|
|
77
|
+
* @param {string} secretId 凭据ID
|
|
78
|
+
* @param {CreateSecretTagRequestBody} createSecretTagRequestBody 创建凭据标签消息请求体
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
createSecretTag(createSecretTagRequest?: CreateSecretTagRequest): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* 在指定的凭据中,创建一个新的凭据版本,用于加密保管新的凭据值。默认情况下,新创建的凭据版本被标记为SYSCURRENT状态,而SYSCURRENT标记的前一个凭据版本被标记为SYSPREVIOUS状态。您可以通过指定VersionStage参数来覆盖默认行为。
|
|
85
|
+
*
|
|
86
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
87
|
+
*
|
|
88
|
+
* @summary 创建凭据版本
|
|
89
|
+
* @param {string} secretName 凭据名称。
|
|
90
|
+
* @param {CreateSecretVersionRequestBody} createSecretVersionRequestBody 创建凭据请求消息体。
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
*/
|
|
94
|
+
createSecretVersion(createSecretVersionRequest?: CreateSecretVersionRequest): Promise<CreateSecretVersionResponse>;
|
|
95
|
+
/**
|
|
96
|
+
* 立即删除指定的凭据,且无法恢复。
|
|
97
|
+
*
|
|
98
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
99
|
+
*
|
|
100
|
+
* @summary 立即删除凭据
|
|
101
|
+
* @param {string} secretName 凭据名称。
|
|
102
|
+
* @param {*} [options] Override http request option.
|
|
103
|
+
* @throws {RequiredError}
|
|
104
|
+
*/
|
|
105
|
+
deleteSecret(deleteSecretRequest?: DeleteSecretRequest): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* 指定延迟删除时间,创建删除凭据的定时任务,可设置7~30天的的延迟删除时间。
|
|
108
|
+
*
|
|
109
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
110
|
+
*
|
|
111
|
+
* @summary 创建凭据的定时删除任务
|
|
112
|
+
* @param {string} secretName 凭据名称。
|
|
113
|
+
* @param {DeleteSecretForScheduleRequestBody} deleteSecretForScheduleRequestBody 计划删除凭据请求消息体。
|
|
114
|
+
* @param {*} [options] Override http request option.
|
|
115
|
+
* @throws {RequiredError}
|
|
116
|
+
*/
|
|
117
|
+
deleteSecretForSchedule(deleteSecretForScheduleRequest?: DeleteSecretForScheduleRequest): Promise<DeleteSecretForScheduleResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* 删除指定的凭据版本状态。
|
|
120
|
+
*
|
|
121
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
122
|
+
*
|
|
123
|
+
* @summary 删除凭据的版本状态
|
|
124
|
+
* @param {string} secretName 凭据的资源标识符。
|
|
125
|
+
* @param {string} stageName 凭据版本状态的名称。
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
deleteSecretStage(deleteSecretStageRequest?: DeleteSecretStageRequest): Promise<void>;
|
|
130
|
+
/**
|
|
131
|
+
* - 功能介绍:删除凭据标签。
|
|
132
|
+
*
|
|
133
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
134
|
+
*
|
|
135
|
+
* @summary 删除凭据标签
|
|
136
|
+
* @param {string} secretId 凭据ID
|
|
137
|
+
* @param {string} key 标签键的值
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
deleteSecretTag(deleteSecretTagRequest?: DeleteSecretTagRequest): Promise<void>;
|
|
142
|
+
/**
|
|
143
|
+
* 下载指定凭据的备份文件
|
|
144
|
+
*
|
|
145
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
146
|
+
*
|
|
147
|
+
* @summary 下载凭据备份
|
|
148
|
+
* @param {string} secretName 凭据的名称。
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
downloadSecretBlob(downloadSecretBlobRequest?: DownloadSecretBlobRequest): Promise<DownloadSecretBlobResponse>;
|
|
153
|
+
/**
|
|
154
|
+
* - 功能介绍:查询用户在指定项目下的所有凭据标签集合。
|
|
155
|
+
*
|
|
156
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
157
|
+
*
|
|
158
|
+
* @summary 查询项目标签
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
listProjectSecretsTags(): Promise<ListProjectSecretsTagsResponse>;
|
|
163
|
+
/**
|
|
164
|
+
* - 功能介绍:查询凭据实例。通过标签过滤,筛选用户凭据,返回凭据列表。
|
|
165
|
+
*
|
|
166
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
167
|
+
*
|
|
168
|
+
* @summary 查询凭据实例
|
|
169
|
+
* @param {string} resourceInstances 定值为resource_instances。
|
|
170
|
+
* @param {ListResourceInstancesRequestBody} listResourceInstancesRequestBody action
|
|
171
|
+
* @param {*} [options] Override http request option.
|
|
172
|
+
* @throws {RequiredError}
|
|
173
|
+
*/
|
|
174
|
+
listResourceInstances(listResourceInstancesRequest?: ListResourceInstancesRequest): Promise<ListResourceInstancesResponse>;
|
|
175
|
+
/**
|
|
176
|
+
* - 功能介绍:查询凭据标签。
|
|
177
|
+
*
|
|
178
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
179
|
+
*
|
|
180
|
+
* @summary 查询凭据标签
|
|
181
|
+
* @param {string} secretId 凭据ID
|
|
182
|
+
* @param {*} [options] Override http request option.
|
|
183
|
+
* @throws {RequiredError}
|
|
184
|
+
*/
|
|
185
|
+
listSecretTags(listSecretTagsRequest?: ListSecretTagsRequest): Promise<ListSecretTagsResponse>;
|
|
186
|
+
/**
|
|
187
|
+
* 查询指定凭据下的版本列表信息。
|
|
188
|
+
*
|
|
189
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
190
|
+
*
|
|
191
|
+
* @summary 查询凭据的版本列表
|
|
192
|
+
* @param {string} secretName 凭据名称。
|
|
193
|
+
* @param {string} [marker] 分页参数,取值为上一页数据的最后一条记录的版本号。
|
|
194
|
+
* @param {number} [limit] 每页显示的条目数量。默认值50。
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
listSecretVersions(listSecretVersionsRequest?: ListSecretVersionsRequest): Promise<ListSecretVersionsResponse>;
|
|
199
|
+
/**
|
|
200
|
+
* 查询当前用户在本项目下创建的所有凭据。
|
|
201
|
+
*
|
|
202
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
203
|
+
*
|
|
204
|
+
* @summary 查询凭据列表
|
|
205
|
+
* @param {string} [limit] 每页返回的个数。 默认值:50。
|
|
206
|
+
* @param {string} [marker] 分页查询起始的凭据名称,为空时为查询第一页
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
listSecrets(listSecretsRequest?: ListSecretsRequest): Promise<ListSecretsResponse>;
|
|
211
|
+
/**
|
|
212
|
+
* 取消凭据的定时删除任务,凭据对象恢复可使用状态。
|
|
213
|
+
*
|
|
214
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
215
|
+
*
|
|
216
|
+
* @summary 取消凭据的定时删除任务
|
|
217
|
+
* @param {string} secretName 凭据名称。
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
restoreSecret(restoreSecretRequest?: RestoreSecretRequest): Promise<RestoreSecretResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* 查询指定凭据的信息。
|
|
224
|
+
*
|
|
225
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
226
|
+
*
|
|
227
|
+
* @summary 查询凭据
|
|
228
|
+
* @param {string} secretName 凭据的名称。
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
showSecret(showSecretRequest?: ShowSecretRequest): Promise<ShowSecretResponse>;
|
|
233
|
+
/**
|
|
234
|
+
* 查询指定凭据版本状态标记的版本信息。
|
|
235
|
+
*
|
|
236
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
237
|
+
*
|
|
238
|
+
* @summary 查询凭据的版本状态
|
|
239
|
+
* @param {string} secretName 凭据名称。
|
|
240
|
+
* @param {string} stageName 凭据版本状态的名称。
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
showSecretStage(showSecretStageRequest?: ShowSecretStageRequest): Promise<ShowSecretStageResponse>;
|
|
245
|
+
/**
|
|
246
|
+
* 查询指定凭据版本的信息和版本中的明文凭据值,只能查询ENABLED状态的凭据。
|
|
247
|
+
* 通过/v1/{project_id}/secrets/{secret_name}/versions/latest (即将当前接口URL中的{version_id}赋值为latest)可访问凭据最新版本的凭据值。
|
|
248
|
+
*
|
|
249
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
250
|
+
*
|
|
251
|
+
* @summary 查询凭据的版本与凭据值
|
|
252
|
+
* @param {string} secretName 凭据名称。
|
|
253
|
+
* @param {string} versionId 凭据的版本标识符。
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
showSecretVersion(showSecretVersionRequest?: ShowSecretVersionRequest): Promise<ShowSecretVersionResponse>;
|
|
258
|
+
/**
|
|
259
|
+
* 更新指定凭据的元数据信息。
|
|
260
|
+
*
|
|
261
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
262
|
+
*
|
|
263
|
+
* @summary 更新凭据
|
|
264
|
+
* @param {string} secretName 凭据名称。
|
|
265
|
+
* @param {UpdateSecretRequestBody} updateSecretRequestBody 创建凭据请求消息体。
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
updateSecret(updateSecretRequest?: UpdateSecretRequest): Promise<UpdateSecretResponse>;
|
|
270
|
+
/**
|
|
271
|
+
* 更新凭据的版本状态。
|
|
272
|
+
*
|
|
273
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
274
|
+
*
|
|
275
|
+
* @summary 更新凭据的版本状态
|
|
276
|
+
* @param {string} secretName 凭据名称。
|
|
277
|
+
* @param {string} stageName 凭据版本状态的名称。满足 \'^[a-zA-Z0-9._-]{1,64}$\'
|
|
278
|
+
* @param {UpdateSecretStageRequestBody} updateSecretStageRequestBody 创建凭据版本状态请求消息体。
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
updateSecretStage(updateSecretStageRequest?: UpdateSecretStageRequest): Promise<UpdateSecretStageResponse>;
|
|
283
|
+
/**
|
|
284
|
+
* 通过上传凭据备份文件,恢复凭据对象
|
|
285
|
+
*
|
|
286
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
287
|
+
*
|
|
288
|
+
* @summary 恢复凭据对象
|
|
289
|
+
* @param {UploadSecretBlobRequestBody} uploadSecretBlobRequestBody 恢复凭据请求消息体。
|
|
290
|
+
* @param {*} [options] Override http request option.
|
|
291
|
+
* @throws {RequiredError}
|
|
292
|
+
*/
|
|
293
|
+
uploadSecretBlob(uploadSecretBlobRequest?: UploadSecretBlobRequest): Promise<UploadSecretBlobResponse>;
|
|
294
|
+
}
|
|
295
|
+
export declare const ParamCreater: () => {
|
|
296
|
+
/**
|
|
297
|
+
* - 功能介绍:批量添加或删除凭据标签。
|
|
298
|
+
*
|
|
299
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
300
|
+
*/
|
|
301
|
+
batchCreateOrDeleteTags(batchCreateOrDeleteTagsRequest?: BatchCreateOrDeleteTagsRequest): {
|
|
302
|
+
method: string;
|
|
303
|
+
url: string;
|
|
304
|
+
contentType: string;
|
|
305
|
+
queryParams: {};
|
|
306
|
+
pathParams: {};
|
|
307
|
+
headers: {};
|
|
308
|
+
data: {};
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* 创建新的凭据,并将凭据值存入凭据的初始版本。
|
|
312
|
+
*
|
|
313
|
+
* 凭据管理服务将凭据值加密后,存储在凭据对象下的版本中。每个版本可与多个凭据版本状态相关联,凭据版本状态用于标识凭据版本处于的阶段,没有版本状态标记的版本视为已弃用,可用凭据管理服务自动删除。
|
|
314
|
+
*
|
|
315
|
+
* 初始版本的状态被标记为SYSCURRENT。
|
|
316
|
+
*
|
|
317
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
318
|
+
*/
|
|
319
|
+
createSecret(createSecretRequest?: CreateSecretRequest): {
|
|
320
|
+
method: string;
|
|
321
|
+
url: string;
|
|
322
|
+
contentType: string;
|
|
323
|
+
queryParams: {};
|
|
324
|
+
pathParams: {};
|
|
325
|
+
headers: {};
|
|
326
|
+
data: {};
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* - 功能介绍:添加凭据标签。
|
|
330
|
+
*
|
|
331
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
332
|
+
*/
|
|
333
|
+
createSecretTag(createSecretTagRequest?: CreateSecretTagRequest): {
|
|
334
|
+
method: string;
|
|
335
|
+
url: string;
|
|
336
|
+
contentType: string;
|
|
337
|
+
queryParams: {};
|
|
338
|
+
pathParams: {};
|
|
339
|
+
headers: {};
|
|
340
|
+
data: {};
|
|
341
|
+
};
|
|
342
|
+
/**
|
|
343
|
+
* 在指定的凭据中,创建一个新的凭据版本,用于加密保管新的凭据值。默认情况下,新创建的凭据版本被标记为SYSCURRENT状态,而SYSCURRENT标记的前一个凭据版本被标记为SYSPREVIOUS状态。您可以通过指定VersionStage参数来覆盖默认行为。
|
|
344
|
+
*
|
|
345
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
346
|
+
*/
|
|
347
|
+
createSecretVersion(createSecretVersionRequest?: CreateSecretVersionRequest): {
|
|
348
|
+
method: string;
|
|
349
|
+
url: string;
|
|
350
|
+
contentType: string;
|
|
351
|
+
queryParams: {};
|
|
352
|
+
pathParams: {};
|
|
353
|
+
headers: {};
|
|
354
|
+
data: {};
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* 立即删除指定的凭据,且无法恢复。
|
|
358
|
+
*
|
|
359
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
360
|
+
*/
|
|
361
|
+
deleteSecret(deleteSecretRequest?: DeleteSecretRequest): {
|
|
362
|
+
method: string;
|
|
363
|
+
url: string;
|
|
364
|
+
contentType: string;
|
|
365
|
+
queryParams: {};
|
|
366
|
+
pathParams: {};
|
|
367
|
+
headers: {};
|
|
368
|
+
data: {};
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* 指定延迟删除时间,创建删除凭据的定时任务,可设置7~30天的的延迟删除时间。
|
|
372
|
+
*
|
|
373
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
374
|
+
*/
|
|
375
|
+
deleteSecretForSchedule(deleteSecretForScheduleRequest?: DeleteSecretForScheduleRequest): {
|
|
376
|
+
method: string;
|
|
377
|
+
url: string;
|
|
378
|
+
contentType: string;
|
|
379
|
+
queryParams: {};
|
|
380
|
+
pathParams: {};
|
|
381
|
+
headers: {};
|
|
382
|
+
data: {};
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* 删除指定的凭据版本状态。
|
|
386
|
+
*
|
|
387
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
388
|
+
*/
|
|
389
|
+
deleteSecretStage(deleteSecretStageRequest?: DeleteSecretStageRequest): {
|
|
390
|
+
method: string;
|
|
391
|
+
url: string;
|
|
392
|
+
contentType: string;
|
|
393
|
+
queryParams: {};
|
|
394
|
+
pathParams: {};
|
|
395
|
+
headers: {};
|
|
396
|
+
data: {};
|
|
397
|
+
};
|
|
398
|
+
/**
|
|
399
|
+
* - 功能介绍:删除凭据标签。
|
|
400
|
+
*
|
|
401
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
402
|
+
*/
|
|
403
|
+
deleteSecretTag(deleteSecretTagRequest?: DeleteSecretTagRequest): {
|
|
404
|
+
method: string;
|
|
405
|
+
url: string;
|
|
406
|
+
contentType: string;
|
|
407
|
+
queryParams: {};
|
|
408
|
+
pathParams: {};
|
|
409
|
+
headers: {};
|
|
410
|
+
data: {};
|
|
411
|
+
};
|
|
412
|
+
/**
|
|
413
|
+
* 下载指定凭据的备份文件
|
|
414
|
+
*
|
|
415
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
416
|
+
*/
|
|
417
|
+
downloadSecretBlob(downloadSecretBlobRequest?: DownloadSecretBlobRequest): {
|
|
418
|
+
method: string;
|
|
419
|
+
url: string;
|
|
420
|
+
contentType: string;
|
|
421
|
+
queryParams: {};
|
|
422
|
+
pathParams: {};
|
|
423
|
+
headers: {};
|
|
424
|
+
data: {};
|
|
425
|
+
};
|
|
426
|
+
/**
|
|
427
|
+
* - 功能介绍:查询用户在指定项目下的所有凭据标签集合。
|
|
428
|
+
*
|
|
429
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
430
|
+
*/
|
|
431
|
+
listProjectSecretsTags(): {
|
|
432
|
+
method: string;
|
|
433
|
+
url: string;
|
|
434
|
+
contentType: string;
|
|
435
|
+
queryParams: {};
|
|
436
|
+
pathParams: {};
|
|
437
|
+
headers: {};
|
|
438
|
+
data: {};
|
|
439
|
+
};
|
|
440
|
+
/**
|
|
441
|
+
* - 功能介绍:查询凭据实例。通过标签过滤,筛选用户凭据,返回凭据列表。
|
|
442
|
+
*
|
|
443
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
444
|
+
*/
|
|
445
|
+
listResourceInstances(listResourceInstancesRequest?: ListResourceInstancesRequest): {
|
|
446
|
+
method: string;
|
|
447
|
+
url: string;
|
|
448
|
+
contentType: string;
|
|
449
|
+
queryParams: {};
|
|
450
|
+
pathParams: {};
|
|
451
|
+
headers: {};
|
|
452
|
+
data: {};
|
|
453
|
+
};
|
|
454
|
+
/**
|
|
455
|
+
* - 功能介绍:查询凭据标签。
|
|
456
|
+
*
|
|
457
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
458
|
+
*/
|
|
459
|
+
listSecretTags(listSecretTagsRequest?: ListSecretTagsRequest): {
|
|
460
|
+
method: string;
|
|
461
|
+
url: string;
|
|
462
|
+
contentType: string;
|
|
463
|
+
queryParams: {};
|
|
464
|
+
pathParams: {};
|
|
465
|
+
headers: {};
|
|
466
|
+
data: {};
|
|
467
|
+
};
|
|
468
|
+
/**
|
|
469
|
+
* 查询指定凭据下的版本列表信息。
|
|
470
|
+
*
|
|
471
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
472
|
+
*/
|
|
473
|
+
listSecretVersions(listSecretVersionsRequest?: ListSecretVersionsRequest): {
|
|
474
|
+
method: string;
|
|
475
|
+
url: string;
|
|
476
|
+
contentType: string;
|
|
477
|
+
queryParams: {};
|
|
478
|
+
pathParams: {};
|
|
479
|
+
headers: {};
|
|
480
|
+
data: {};
|
|
481
|
+
};
|
|
482
|
+
/**
|
|
483
|
+
* 查询当前用户在本项目下创建的所有凭据。
|
|
484
|
+
*
|
|
485
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
486
|
+
*/
|
|
487
|
+
listSecrets(listSecretsRequest?: ListSecretsRequest): {
|
|
488
|
+
method: string;
|
|
489
|
+
url: string;
|
|
490
|
+
contentType: string;
|
|
491
|
+
queryParams: {};
|
|
492
|
+
pathParams: {};
|
|
493
|
+
headers: {};
|
|
494
|
+
data: {};
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* 取消凭据的定时删除任务,凭据对象恢复可使用状态。
|
|
498
|
+
*
|
|
499
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
500
|
+
*/
|
|
501
|
+
restoreSecret(restoreSecretRequest?: RestoreSecretRequest): {
|
|
502
|
+
method: string;
|
|
503
|
+
url: string;
|
|
504
|
+
contentType: string;
|
|
505
|
+
queryParams: {};
|
|
506
|
+
pathParams: {};
|
|
507
|
+
headers: {};
|
|
508
|
+
data: {};
|
|
509
|
+
};
|
|
510
|
+
/**
|
|
511
|
+
* 查询指定凭据的信息。
|
|
512
|
+
*
|
|
513
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
514
|
+
*/
|
|
515
|
+
showSecret(showSecretRequest?: ShowSecretRequest): {
|
|
516
|
+
method: string;
|
|
517
|
+
url: string;
|
|
518
|
+
contentType: string;
|
|
519
|
+
queryParams: {};
|
|
520
|
+
pathParams: {};
|
|
521
|
+
headers: {};
|
|
522
|
+
data: {};
|
|
523
|
+
};
|
|
524
|
+
/**
|
|
525
|
+
* 查询指定凭据版本状态标记的版本信息。
|
|
526
|
+
*
|
|
527
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
528
|
+
*/
|
|
529
|
+
showSecretStage(showSecretStageRequest?: ShowSecretStageRequest): {
|
|
530
|
+
method: string;
|
|
531
|
+
url: string;
|
|
532
|
+
contentType: string;
|
|
533
|
+
queryParams: {};
|
|
534
|
+
pathParams: {};
|
|
535
|
+
headers: {};
|
|
536
|
+
data: {};
|
|
537
|
+
};
|
|
538
|
+
/**
|
|
539
|
+
* 查询指定凭据版本的信息和版本中的明文凭据值,只能查询ENABLED状态的凭据。
|
|
540
|
+
* 通过/v1/{project_id}/secrets/{secret_name}/versions/latest (即将当前接口URL中的{version_id}赋值为latest)可访问凭据最新版本的凭据值。
|
|
541
|
+
*
|
|
542
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
543
|
+
*/
|
|
544
|
+
showSecretVersion(showSecretVersionRequest?: ShowSecretVersionRequest): {
|
|
545
|
+
method: string;
|
|
546
|
+
url: string;
|
|
547
|
+
contentType: string;
|
|
548
|
+
queryParams: {};
|
|
549
|
+
pathParams: {};
|
|
550
|
+
headers: {};
|
|
551
|
+
data: {};
|
|
552
|
+
};
|
|
553
|
+
/**
|
|
554
|
+
* 更新指定凭据的元数据信息。
|
|
555
|
+
*
|
|
556
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
557
|
+
*/
|
|
558
|
+
updateSecret(updateSecretRequest?: UpdateSecretRequest): {
|
|
559
|
+
method: string;
|
|
560
|
+
url: string;
|
|
561
|
+
contentType: string;
|
|
562
|
+
queryParams: {};
|
|
563
|
+
pathParams: {};
|
|
564
|
+
headers: {};
|
|
565
|
+
data: {};
|
|
566
|
+
};
|
|
567
|
+
/**
|
|
568
|
+
* 更新凭据的版本状态。
|
|
569
|
+
*
|
|
570
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
571
|
+
*/
|
|
572
|
+
updateSecretStage(updateSecretStageRequest?: UpdateSecretStageRequest): {
|
|
573
|
+
method: string;
|
|
574
|
+
url: string;
|
|
575
|
+
contentType: string;
|
|
576
|
+
queryParams: {};
|
|
577
|
+
pathParams: {};
|
|
578
|
+
headers: {};
|
|
579
|
+
data: {};
|
|
580
|
+
};
|
|
581
|
+
/**
|
|
582
|
+
* 通过上传凭据备份文件,恢复凭据对象
|
|
583
|
+
*
|
|
584
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
585
|
+
*/
|
|
586
|
+
uploadSecretBlob(uploadSecretBlobRequest?: UploadSecretBlobRequest): {
|
|
587
|
+
method: string;
|
|
588
|
+
url: string;
|
|
589
|
+
contentType: string;
|
|
590
|
+
queryParams: {};
|
|
591
|
+
pathParams: {};
|
|
592
|
+
headers: {};
|
|
593
|
+
data: {};
|
|
594
|
+
};
|
|
595
|
+
};
|
|
596
|
+
/**
|
|
597
|
+
*
|
|
598
|
+
* @export
|
|
599
|
+
* @class RequiredError
|
|
600
|
+
* @extends {Error}
|
|
601
|
+
*/
|
|
602
|
+
export declare class RequiredError extends Error {
|
|
603
|
+
field: string;
|
|
604
|
+
name: "RequiredError";
|
|
605
|
+
constructor(field: string, msg?: string);
|
|
606
|
+
}
|