-
Notifications
You must be signed in to change notification settings - Fork 2
/
errors.go
229 lines (157 loc) · 8.63 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
// Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package v20170312
const (
// error codes for specific actions
// Error with CAM signature/authentication.
AUTHFAILURE = "AuthFailure"
// Number of returned cloud disks has reached the limit and no more cloud disks can be returned.
INSUFFICIENTREFUNDQUOTA = "InsufficientRefundQuota"
// Insufficient snapshot quota.
INSUFFICIENTSNAPSHOTQUOTA = "InsufficientSnapshotQuota"
// Internal error.
INTERNALERROR = "InternalError"
// Dependent component request failed. Please contact customer service.
INTERNALERROR_COMPONENTERROR = "InternalError.ComponentError"
// Resource query failed.
INTERNALERROR_FAILQUERYRESOURCE = "InternalError.FailQueryResource"
// The operation performed on the resource failed. For error message, see the "Message" field in error description. Try again later or contact customer service.
INTERNALERROR_RESOURCEOPFAILED = "InternalError.ResourceOpFailed"
// Insufficient account balance
INVALIDACCOUNT_INSUFFICIENTBALANCE = "InvalidAccount.InsufficientBalance"
// `AutoSnapshotPolicyId` entered does not exist.
INVALIDAUTOSNAPSHOTPOLICYID_NOTFOUND = "InvalidAutoSnapshotPolicyId.NotFound"
// Cloud disk is already bound to scheduled snapshot policy.
INVALIDDISK_ALREADYBOUND = "InvalidDisk.AlreadyBound"
// The cloud disk is busy. Try again later.
INVALIDDISK_BUSY = "InvalidDisk.Busy"
// The cloud disk has expired.
INVALIDDISK_EXPIRE = "InvalidDisk.Expire"
// Non-elastic cloud disks are not supported.
INVALIDDISK_NOTPORTABLE = "InvalidDisk.NotPortable"
// The cloud disk does not support snapshot.
INVALIDDISK_NOTSUPPORTSNAPSHOT = "InvalidDisk.NotSupportSnapshot"
// Indicates that the operation is not supported for the cloud disk.
INVALIDDISK_NOTSUPPORTED = "InvalidDisk.NotSupported"
// A snapshot is being created for the cloud disk. Try again later.
INVALIDDISK_SNAPSHOTCREATING = "InvalidDisk.SnapshotCreating"
// Invalid cloud disk type.
INVALIDDISK_TYPEERROR = "InvalidDisk.TypeError"
// The ‘DiskId’ entered does not exist.
INVALIDDISKID_NOTFOUND = "InvalidDiskId.NotFound"
// The specified Filter is not supported.
INVALIDFILTER = "InvalidFilter"
// Cloud Virtual Machine does not support mounting cloud disk.
INVALIDINSTANCE_NOTSUPPORTED = "InvalidInstance.NotSupported"
// The ‘InstanceId’ entered does not exist.
INVALIDINSTANCEID_NOTFOUND = "InvalidInstanceId.NotFound"
// Incorrect parameter.
INVALIDPARAMETER = "InvalidParameter"
// Currently configured cloud disk not supported in current region.
INVALIDPARAMETER_DISKCONFIGNOTSUPPORTED = "InvalidParameter.DiskConfigNotSupported"
// The size of the cloud disk does not match the snapshot size.
INVALIDPARAMETER_DISKSIZENOTMATCH = "InvalidParameter.DiskSizeNotMatch"
// The project ID does not exist.
INVALIDPARAMETER_PROJECTIDNOTEXIST = "InvalidParameter.ProjectIdNotExist"
// You need to convert the snapshot into an image first.
INVALIDPARAMETER_SHOULDCONVERTSNAPSHOTTOIMAGE = "InvalidParameter.ShouldConvertSnapshotToImage"
// Invalid parameter value.
INVALIDPARAMETERVALUE = "InvalidParameterValue"
// Number of labels bound to cloud disk exceeds the limit.
INVALIDPARAMETERVALUE_BINDDISKLIMITEXCEEDED = "InvalidParameterValue.BindDiskLimitExceeded"
// Number of parameter values exceeds the limit.
INVALIDPARAMETERVALUE_LIMITEXCEEDED = "InvalidParameterValue.LimitExceeded"
// Indicates that the operation is not supported for the snapshot.
INVALIDSNAPSHOT_NOTSUPPORTED = "InvalidSnapshot.NotSupported"
// The ‘SnapshotId’ entered does not exist.
INVALIDSNAPSHOTID_NOTFOUND = "InvalidSnapshotId.NotFound"
// The number of scheduled snapshot policies has reached the upper limit.
LIMITEXCEEDED_AUTOSNAPSHOTPOLICYOUTOFQUOTA = "LimitExceeded.AutoSnapshotPolicyOutOfQuota"
// Number of instances mounted to cloud disk exceeds the limit.
LIMITEXCEEDED_INSTANCEATTACHEDDISK = "LimitExceeded.InstanceAttachedDisk"
// Missing parameter.
MISSINGPARAMETER = "MissingParameter"
// The resource is busy. Try again later.
RESOURCEBUSY = "ResourceBusy"
// The resource is in use.
RESOURCEINUSE = "ResourceInUse"
// The specified snapshot is being replicated to the destination region.
RESOURCEINUSE_COPYSNAPSHOTCONFLICT = "ResourceInUse.CopySnapshotConflict"
// The cloud disk is being migrated. Try again later.
RESOURCEINUSE_DISKMIGRATING = "ResourceInUse.DiskMigrating"
// The cloud disk is being rolled back. Please try again later.
RESOURCEINUSE_DISKROLLBACKING = "ResourceInUse.DiskRollbacking"
// Insufficient resources.
RESOURCEINSUFFICIENT = "ResourceInsufficient"
// Quota insufficient.
RESOURCEINSUFFICIENT_OVERQUOTA = "ResourceInsufficient.OverQuota"
// The number of returned cloud disks has reached the limit and no more cloud disks can be returned.
RESOURCEINSUFFICIENT_OVERREFUNDQUOTA = "ResourceInsufficient.OverRefundQuota"
// The resource does not exist.
RESOURCENOTFOUND = "ResourceNotFound"
// The resource is not found.
RESOURCENOTFOUND_NOTFOUND = "ResourceNotFound.NotFound"
// The resource is unavailable.
RESOURCEUNAVAILABLE = "ResourceUnavailable"
// The cloud disk has been mounted to another CVM.
RESOURCEUNAVAILABLE_ATTACHED = "ResourceUnavailable.Attached"
// The snapshot chain of the cloud disk is too long, so snapshot creation is refused.
RESOURCEUNAVAILABLE_DISKSNAPSHOTCHAINTOOLARGE = "ResourceUnavailable.DiskSnapshotChainTooLarge"
// The cloud disk has expired.
RESOURCEUNAVAILABLE_EXPIRE = "ResourceUnavailable.Expire"
// The non-elastic cloud disk does not support this operation.
RESOURCEUNAVAILABLE_NOTPORTABLE = "ResourceUnavailable.NotPortable"
// Cloud disks cannot be returned.
RESOURCEUNAVAILABLE_NOTSUPPORTREFUND = "ResourceUnavailable.NotSupportRefund"
// The resource does not support this operation.
RESOURCEUNAVAILABLE_NOTSUPPORTED = "ResourceUnavailable.NotSupported"
// The cloud disk has been repossessed.
RESOURCEUNAVAILABLE_REPEATREFUND = "ResourceUnavailable.RepeatRefund"
// Unable to use: the snapshot is being created
RESOURCEUNAVAILABLE_SNAPSHOTCREATING = "ResourceUnavailable.SnapshotCreating"
// Too many snapshots are being created in the entire network.
RESOURCEUNAVAILABLE_TOOMANYCREATINGSNAPSHOT = "ResourceUnavailable.TooManyCreatingSnapshot"
// Incorrect cloud disk type. For example, a system disk cannot be mounted to CVM.
RESOURCEUNAVAILABLE_TYPEERROR = "ResourceUnavailable.TypeError"
//
RESOURCEUNAVAILABLE_ZONENOTMATCH = "ResourceUnavailable.ZoneNotMatch"
// Order conflict.
TRADEDEALCONFLICT = "TradeDealConflict"
// The operation is unauthorized.
UNAUTHORIZEDOPERATION = "UnauthorizedOperation"
// Multi-factor authentication (MFA) has expired. Please try again.
UNAUTHORIZEDOPERATION_MFAEXPIRED = "UnauthorizedOperation.MFAExpired"
// Payment failed as the account has not completed identity verification.
UNAUTHORIZEDOPERATION_NOTCERTIFICATION = "UnauthorizedOperation.NotCertification"
// No payment permission.
UNAUTHORIZEDOPERATION_NOTHAVEPAYMENTRIGHT = "UnauthorizedOperation.NotHavePaymentRight"
// The authorization role does not exist.
UNAUTHORIZEDOPERATION_ROLENOTEXISTS = "UnauthorizedOperation.RoleNotExists"
// Unsupported operation
UNSUPPORTEDOPERATION = "UnsupportedOperation"
//
UNSUPPORTEDOPERATION_DETACHPOD = "UnsupportedOperation.DetachPod"
// The disk is encrypted.
UNSUPPORTEDOPERATION_DISKENCRYPT = "UnsupportedOperation.DiskEncrypt"
// Instance mounted on cloud disk not shut down.
UNSUPPORTEDOPERATION_INSTANCENOTSTOPPED = "UnsupportedOperation.InstanceNotStopped"
// The snapshot is shared with others. Please cancel the sharing first.
UNSUPPORTEDOPERATION_SNAPHASSHARED = "UnsupportedOperation.SnapHasShared"
// A custom snapshot was created for this snapshot. First delete the corresponding image.
UNSUPPORTEDOPERATION_SNAPSHOTHASBINDEDIMAGE = "UnsupportedOperation.SnapshotHasBindedImage"
// The snapshot does not support cross-region replication.
UNSUPPORTEDOPERATION_SNAPSHOTNOTSUPPORTCOPY = "UnsupportedOperation.SnapshotNotSupportCopy"
// The resource does not support this operation in this status.
UNSUPPORTEDOPERATION_STATEERROR = "UnsupportedOperation.StateError"
)