Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1 | # Errors |
| 2 | errors: |
| 3 | OK: { |
| 4 | code: 200, |
| 5 | message: "OK" |
| 6 | } |
| 7 | CREATED: { |
| 8 | code: 201, |
| 9 | message: "OK" |
| 10 | } |
| 11 | NO_CONTENT: { |
| 12 | code: 204, |
| 13 | message: "No Content" |
| 14 | } |
| 15 | #--------POL4050----------------------------- |
| 16 | NOT_ALLOWED: { |
| 17 | code: 405, |
| 18 | message: "Error: Method not allowed.", |
| 19 | messageId: "POL4050" |
| 20 | } |
| 21 | #--------POL5000----------------------------- |
| 22 | GENERAL_ERROR: { |
| 23 | code: 500, |
| 24 | message: "Error: Internal Server Error. Please try again later.", |
| 25 | messageId: "POL5000" |
| 26 | } |
| 27 | #---------POL5001------------------------------ |
| 28 | MISSING_X_ECOMP_INSTANCE_ID: { |
| 29 | code: 400 , |
| 30 | message: "Error: Missing 'X-ECOMP-InstanceID' HTTP header.", |
| 31 | messageId: "POL5001" |
| 32 | } |
| 33 | #---------POL5002------------------------------ |
| 34 | AUTH_REQUIRED: { |
| 35 | code: 401 , |
| 36 | message: "Error: Authentication is required to use the API.", |
| 37 | messageId: "POL5002" |
| 38 | } |
| 39 | #---------POL5003------------------------------ |
| 40 | AUTH_FAILED: { |
| 41 | code: 403 , |
| 42 | message: "Error: Not authorized to use the API.", |
| 43 | messageId: "POL5003" |
| 44 | } |
| 45 | #---------SVC4000----------------------------- |
| 46 | INVALID_CONTENT: { |
| 47 | code: 400, |
| 48 | message: "Error: Invalid content.", |
| 49 | messageId: "SVC4000" |
| 50 | }#---------SVC4000----------------------------- |
| 51 | INVALID_CONTENT: { |
| 52 | code: 400, |
| 53 | message: "Error: Invalid content.", |
| 54 | messageId: "SVC4000" |
| 55 | } |
| 56 | #---------SVC4002----------------------------- |
| 57 | MISSING_INFORMATION: { |
| 58 | code: 403, |
| 59 | message: "Error: Missing information.", |
| 60 | messageId: "SVC4002" |
| 61 | } |
| 62 | #---------SVC4003------------------------------ |
| 63 | # %1 - Users's USER_ID |
| 64 | USER_NOT_FOUND: { |
| 65 | code: 404, |
| 66 | message: "Error: User '%1' was not found.", |
| 67 | messageId: "SVC4003" |
| 68 | } |
| 69 | #---------SVC4004----------------------------- |
| 70 | # %1 - Users's email address |
| 71 | INVALID_EMAIL_ADDRESS: { |
| 72 | code: 400, |
| 73 | message: "Error: Invalid email address '%1'.", |
| 74 | messageId: "SVC4004" |
| 75 | } |
| 76 | #---------SVC4005------------------------------ |
| 77 | # %1 - role |
| 78 | INVALID_ROLE: { |
| 79 | code: 400, |
| 80 | message: "Error: Invalid role '%1'.", |
| 81 | messageId: "SVC4005" |
| 82 | } |
| 83 | #---------SVC4006------------------------------ |
| 84 | # %1 - Users's USER_ID |
| 85 | USER_ALREADY_EXIST: { |
| 86 | code: 409, |
| 87 | message: "Error: User with '%1' ID already exists.", |
| 88 | messageId: "SVC4006" |
| 89 | } |
| 90 | #---------SVC4007------------------------------ |
| 91 | DELETE_USER_ADMIN_CONFLICT: { |
| 92 | code: 409, |
| 93 | message: "Error: An administrator can only be deleted by another administrator.", |
| 94 | messageId: "SVC4007" |
| 95 | } |
| 96 | #---------SVC4008----------------------------- |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 97 | # %1 - Users's USER_ID |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 98 | INVALID_USER_ID: { |
| 99 | code: 400, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 100 | message: "Error: Invalid USER_ID '%1'.", |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 101 | messageId: "SVC4008" |
| 102 | } |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame^] | 103 | #---------SVC ------------------------------ |
| 104 | INVALID_SERVICE_STATE: { |
| 105 | code: 409, |
| 106 | message: "Error: Invalid service state. Expected state: %1, actual state: %2", |
| 107 | messageId: "" |
| 108 | } |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 109 | #---------SVC4049------------------------------ |
| 110 | # %1 - service/resource |
| 111 | COMPONENT_MISSING_CONTACT: { |
| 112 | code: 400, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 113 | message: "Error: Invalid Content. Missing %1 Contact Id.", |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 114 | messageId: "SVC4049" |
| 115 | } |
| 116 | #---------SVC4050----------------------------- |
| 117 | # %1 - Service/Resource/Additional parameter |
| 118 | # %2 - service/resource/label name |
| 119 | COMPONENT_NAME_ALREADY_EXIST: { |
| 120 | code: 409, |
| 121 | message: "Error: %1 with name '%2' already exists.", |
| 122 | messageId: "SVC4050" |
| 123 | } |
| 124 | #---------SVC4051------------------------------ |
| 125 | # %1 - resource/service |
| 126 | COMPONENT_MISSING_CATEGORY: { |
| 127 | code: 400, |
| 128 | message: "Error: Invalid Content. Missing %1 category.", |
| 129 | messageId: "SVC4051" |
| 130 | } |
| 131 | |
| 132 | #---------SVC4052------------------------------ |
| 133 | COMPONENT_MISSING_TAGS: { |
| 134 | code: 400, |
| 135 | message: "Error: Invalid Content. At least one tag has to be specified.", |
| 136 | messageId: "SVC4052" |
| 137 | } |
| 138 | |
| 139 | #---------SVC4053------------------------------ |
| 140 | # %1 - service/resource |
| 141 | COMPONENT_MISSING_DESCRIPTION: { |
| 142 | code: 400, |
| 143 | message: "Error: Invalid Content. Missing %1 description.", |
| 144 | messageId: "SVC4053" |
| 145 | } |
| 146 | #---------SVC4054------------------------------ |
| 147 | # %1 - resource/service |
| 148 | COMPONENT_INVALID_CATEGORY: { |
| 149 | code: 400, |
| 150 | message: "Error: Invalid Content. Invalid %1 category.", |
| 151 | messageId: "SVC4054" |
| 152 | } |
| 153 | #---------SVC4055------------------------------ |
| 154 | MISSING_VENDOR_NAME: { |
| 155 | code: 400, |
| 156 | message: "Error: Invalid Content. Missing vendor name.", |
| 157 | messageId: "SVC4055" |
| 158 | } |
| 159 | #---------SVC4056------------------------------ |
| 160 | MISSING_VENDOR_RELEASE: { |
| 161 | code: 400, |
| 162 | message: "Error: Invalid Content. Missing vendor release.", |
| 163 | messageId: "SVC4056" |
| 164 | } |
| 165 | |
| 166 | #---------SVC4057------------------------------ |
| 167 | MISSING_DERIVED_FROM_TEMPLATE: { |
| 168 | code: 400, |
| 169 | message: "Error: Invalid Content. Missing derived from template specification.", |
| 170 | messageId: "SVC4057" |
| 171 | } |
| 172 | |
| 173 | #---------SVC4058------------------------------ |
| 174 | # %1 - service/resource |
| 175 | COMPONENT_MISSING_ICON: { |
| 176 | code: 400, |
| 177 | message: "Error: Invalid Content. Missing %1 icon.", |
| 178 | messageId: "SVC4058" |
| 179 | } |
| 180 | #---------SVC4059------------------------------ |
| 181 | # %1 - service/resource |
| 182 | COMPONENT_INVALID_ICON: { |
| 183 | code: 400, |
| 184 | message: "Error: Invalid Content. Invalid %1 icon.", |
| 185 | messageId: "SVC4059" |
| 186 | } |
| 187 | #---------SVC4060------------------------------ |
| 188 | PARENT_RESOURCE_NOT_FOUND: { |
| 189 | code: 400, |
| 190 | message: "Error: Invalid Content. Derived from resource template was not found.", |
| 191 | messageId: "SVC4060" |
| 192 | } |
| 193 | #---------SVC4061------------------------------ |
| 194 | MULTIPLE_PARENT_RESOURCE_FOUND: { |
| 195 | code: 400, |
| 196 | message: "Error: Invalid Content. Multiple derived from resource template is not allowed.", |
| 197 | messageId: "SVC4061" |
| 198 | } |
| 199 | |
| 200 | #---------SVC4062------------------------------ |
| 201 | # %1 - service/resource |
| 202 | MISSING_COMPONENT_NAME: { |
| 203 | code: 400, |
| 204 | message: "Error: Invalid Content. Missing %1 name.", |
| 205 | messageId: "SVC4062" |
| 206 | } |
| 207 | #---------SVC4063------------------------------ |
| 208 | #%1 - resource/service name |
| 209 | RESOURCE_NOT_FOUND: { |
| 210 | code: 404, |
| 211 | message: "Error: Requested '%1' resource was not found.", |
| 212 | messageId: "SVC4063" |
| 213 | } |
| 214 | |
| 215 | #---------SVC4064------------------------------ |
| 216 | # %1 - Service/Resource |
| 217 | COMPONENT_INVALID_DESCRIPTION: { |
| 218 | code: 400, |
| 219 | message: "Error: Invalid Content. %1 description contains non-english characters.", |
| 220 | messageId: "SVC4064" |
| 221 | } |
| 222 | #---------SVC4065------------------------------ |
| 223 | # %1 - Service/Resource |
| 224 | # %2 - max resource/service name length |
| 225 | COMPONENT_DESCRIPTION_EXCEEDS_LIMIT: { |
| 226 | code: 400, |
| 227 | message: "Error: Invalid Content. %1 description exceeds limit of %2 characters.", |
| 228 | messageId: "SVC4065" |
| 229 | } |
| 230 | #---------SVC4066------------------------------ |
| 231 | # %1 - max length |
| 232 | COMPONENT_TAGS_EXCEED_LIMIT: { |
| 233 | code: 400, |
| 234 | message: "Error: Invalid Content. Tags overall length exceeds limit of %1 characters.", |
| 235 | messageId: "SVC4066" |
| 236 | } |
| 237 | #---------SVC4067------------------------------ |
| 238 | # %1 - max length |
| 239 | VENDOR_NAME_EXCEEDS_LIMIT: { |
| 240 | code: 400, |
| 241 | message: "Error: Invalid Content. Vendor name exceeds limit of %1 characters.", |
| 242 | messageId: "SVC4067" |
| 243 | } |
| 244 | #---------SVC4068------------------------------ |
| 245 | # %1 - max length |
| 246 | VENDOR_RELEASE_EXCEEDS_LIMIT: { |
| 247 | code: 400, |
| 248 | message: "Error: Invalid Content. Vendor release exceeds limit of %1 characters.", |
| 249 | messageId: "SVC4068" |
| 250 | } |
| 251 | |
| 252 | #---------SVC4069------------------------------ |
| 253 | # %1 - Service/Resource/Product |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 254 | COMPONENT_INVALID_CONTACT: { |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 255 | code: 400, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 256 | message: "Error: Invalid Content. %1 Contact Id should be in format 'mnnnnnn' or 'aannna' or 'aannnn', where m=m ,a=a-zA-Z and n=0-9", |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 257 | messageId: "SVC4069" |
| 258 | } |
| 259 | #---------SVC4070------------------------------ |
| 260 | # %1 - Service/Resource |
| 261 | INVALID_COMPONENT_NAME: { |
| 262 | code: 400, |
| 263 | message: 'Error: Invalid Content. %1 name is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.', |
| 264 | messageId: "SVC4070" |
| 265 | } |
| 266 | |
| 267 | #---------SVC4071------------------------------ |
| 268 | INVALID_VENDOR_NAME: { |
| 269 | code: 400, |
| 270 | message: 'Error: Invalid Content. Vendor name is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.', |
| 271 | messageId: "SVC4071" |
| 272 | } |
| 273 | #---------SVC4072------------------------------ |
| 274 | INVALID_VENDOR_RELEASE: { |
| 275 | code: 400, |
| 276 | message: 'Error: Invalid Content. Vendor release is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.', |
| 277 | messageId: "SVC4072" |
| 278 | } |
| 279 | #---------SVC4073------------------------------ |
| 280 | # %1 - Service/Resource |
| 281 | # %2 - max resource/service name |
| 282 | COMPONENT_NAME_EXCEEDS_LIMIT: { |
| 283 | code: 400, |
| 284 | message: "Error: Invalid Content. %1 name exceeds limit of %2 characters.", |
| 285 | messageId: "SVC4073" |
| 286 | } |
| 287 | #---------SVC4080------------------------------ |
| 288 | # %1 - resource/service name |
| 289 | # %2 - resource/service |
| 290 | # %3 - First name of last modifier |
| 291 | # %4 - Last name of last modifier |
| 292 | # %5 - USER_ID of last modifier |
| 293 | COMPONENT_IN_CHECKOUT_STATE: { |
| 294 | code: 403, |
| 295 | message: "Error: Requested '%1' %2 is locked for modification by %3 %4(%5).", |
| 296 | messageId: "SVC4080" |
| 297 | } |
| 298 | #---------SVC4081----------------------------- |
| 299 | # %1 - resource/service name |
| 300 | # %2 - resource/service |
| 301 | # %3 - First name of last modifier |
| 302 | # %4 - Last name of last modifier |
| 303 | # %5 - USER_ID of last modifier |
| 304 | COMPONENT_IN_CERT_IN_PROGRESS_STATE: { |
| 305 | code: 403, |
| 306 | message: "Error: Requested '%1' %2 is locked for certification by %3 %4(%5).", |
| 307 | messageId: "SVC4081" |
| 308 | } |
| 309 | |
| 310 | #-----------SVC4082--------------------------- |
| 311 | # %1 - resource/service name |
| 312 | # %2 - resource/service |
| 313 | # %3 - First name of last modifier |
| 314 | # %4 - Last name of last modifier |
| 315 | # %5 - USER_ID of last modifier |
| 316 | COMPONENT_SENT_FOR_CERTIFICATION: { |
| 317 | code: 403, |
| 318 | message: "Error: Requested '%1' %2 is sent for certification by %3 %4(%5).", |
| 319 | messageId: "SVC4082" |
| 320 | } |
| 321 | #-----------SVC4083--------------------------- |
| 322 | COMPONENT_VERSION_ALREADY_EXIST: { |
| 323 | code: 409, |
| 324 | message: "Error: Version of this %1 was already promoted.", |
| 325 | messageId: "SVC4083" |
| 326 | } |
| 327 | #-----------SVC4084--------------------------- |
| 328 | # %1 - resource/service/product name |
| 329 | # %2 - resource/service/product |
| 330 | # %3 - First name of last modifier |
| 331 | # %4 - Last name of last modifier |
| 332 | # %5 - USER_ID of last modifier |
| 333 | COMPONENT_ALREADY_CHECKED_IN: { |
| 334 | code: 409, |
| 335 | message: "Error: The current version of '%1' %2 was already checked-in by %3 %4(%5).", |
| 336 | messageId: "SVC4084" |
| 337 | } |
| 338 | #-----------SVC4085--------------------------- |
| 339 | # %1 - resource/service/product name |
| 340 | # %2 - resource/service/product |
| 341 | # %3 - First name of last modifier |
| 342 | # %4 - Last name of last modifier |
| 343 | # %5 - USER_ID of last modifier |
| 344 | COMPONENT_CHECKOUT_BY_ANOTHER_USER: { |
| 345 | code: 403, |
| 346 | message: "Error: %1 %2 has already been checked out by %3 %4(%5).", |
| 347 | messageId: "SVC4085" |
| 348 | } |
| 349 | #-----------SVC4086--------------------------- |
| 350 | # %1 - resource/service name |
| 351 | # %2 - resource/service |
| 352 | COMPONENT_IN_USE: { |
| 353 | code: 403, |
| 354 | message: "Error: Requested '%1' %2 is in use by another user.", |
| 355 | messageId: "SVC4086" |
| 356 | } |
| 357 | #-----------SVC4087--------------------------- |
| 358 | # %1 - component name |
| 359 | # %2 - resource/service/product |
| 360 | COMPONENT_HAS_NEWER_VERSION: { |
| 361 | code: 409, |
| 362 | message: "Error: Checking out of the requested version of the '%1' %2 is not allowed as a newer version exists.", |
| 363 | messageId: "SVC4087" |
| 364 | } |
| 365 | #-----------SVC4088--------------------------- |
| 366 | # %1 - resource/service name |
| 367 | # %2 - resource/service |
| 368 | # %3 - First name of last modifier |
| 369 | # %4 - Last name of last modifier |
| 370 | # %5 - USER_ID of last modifier |
| 371 | COMPONENT_ALREADY_CERTIFIED: { |
| 372 | code: 403, |
| 373 | message: "Error: Requested %1 %2 has already been certified by %3 %4(%5).", |
| 374 | messageId: "SVC4088" |
| 375 | } |
| 376 | #-----------SVC4089--------------------------- |
| 377 | # %1 - resource/service name |
| 378 | # %2 - resource/service |
| 379 | COMPONENT_NOT_READY_FOR_CERTIFICATION: { |
| 380 | code: 403, |
| 381 | message: "Error: Requested '%1' %2 is not ready for certification.", |
| 382 | messageId: "SVC4089" |
| 383 | } |
| 384 | #-----------SVC4100--------------------------- |
| 385 | #%1 - property name |
| 386 | PROPERTY_NOT_FOUND: { |
| 387 | code: 404, |
| 388 | message: "Error: Requested '%1' property was not found.", |
| 389 | messageId: "SVC4100" |
| 390 | } |
| 391 | #-----------SVC4101--------------------------- |
| 392 | #%1 - property name |
| 393 | PROPERTY_ALREADY_EXIST: { |
| 394 | code: 409, |
| 395 | message: "Error: Property with '%1' name already exists.", |
| 396 | messageId: "SVC4101" |
| 397 | } |
| 398 | |
| 399 | #-----------SVC4102--------------------------- |
| 400 | # %1 - capability type name |
| 401 | CAPABILITY_TYPE_ALREADY_EXIST: { |
| 402 | code: 409, |
| 403 | message: "Error: Capability Type with name '%1' already exists.", |
| 404 | messageId: "SVC4102" |
| 405 | } |
| 406 | #-----------SVC4114--------------------------- |
| 407 | AUTH_FAILED_INVALIDE_HEADER: { |
| 408 | code: 400, |
| 409 | message: "Error: Invalid Authorization header.", |
| 410 | messageId: "SVC4114" |
| 411 | } |
| 412 | #-----------SVC4115--------------------------- |
| 413 | # %1 - capability type name |
| 414 | MISSING_CAPABILITY_TYPE: { |
| 415 | code: 400, |
| 416 | message: "Error: Invalid Content. Missing Capability Type '%1'.", |
| 417 | messageId: "SVC4115" |
| 418 | } |
| 419 | RESOURCE_INSTANCE_BAD_REQUEST: { |
| 420 | code: 400, |
| 421 | message: "Error: Invalid Content.", |
| 422 | messageId: "SVC4116" |
| 423 | } |
| 424 | #-----------SVC4117--------------------------- |
| 425 | # %1 - resource instance name |
| 426 | # %2 - resource instance name |
| 427 | # %3 - requirement name |
| 428 | RESOURCE_INSTANCE_MATCH_NOT_FOUND: { |
| 429 | code: 404, |
| 430 | message: "Error: Match not found between resource instance '%1' and resource instance '%2' for requirement '%3'.", |
| 431 | messageId: "SVC4117" |
| 432 | } |
| 433 | #-----------SVC4118--------------------------- |
| 434 | # %1 - resource instance name |
| 435 | # %2 - resource instance name |
| 436 | # %3 - requirement name |
| 437 | RESOURCE_INSTANCE_ALREADY_EXIST: { |
| 438 | code: 409, |
| 439 | message: "Error: Resource instances '%1' and '%2' are already associated with requirement '%3'.", |
| 440 | messageId: "SVC4118" |
| 441 | } |
| 442 | #-----------SVC4119--------------------------- |
| 443 | # %1 - resource instance name |
| 444 | # %2 - resource instance name |
| 445 | # %3 - requirement name |
| 446 | RESOURCE_INSTANCE_RELATION_NOT_FOUND: { |
| 447 | code: 404, |
| 448 | message: "Error: No relation found between resource instances '%1' and '%2' for requirement '%3'.", |
| 449 | messageId: "SVC4119" |
| 450 | } |
| 451 | #-----------SVC4120--------------------------- |
| 452 | # %1 - User's USER_ID |
| 453 | USER_INACTIVE: { |
| 454 | code: 404, |
| 455 | message: "Error: User %1 was not found.", |
| 456 | messageId: "SVC4120" |
| 457 | } |
| 458 | #-----------SVC4121--------------------------- |
| 459 | # %1 - User's USER_ID |
| 460 | USER_HAS_ACTIVE_ELEMENTS: { |
| 461 | code: 403, |
| 462 | message: "Error: User with %1 ID can not be deleted since it has active elements(resources/services/artifacts).", |
| 463 | messageId: "SVC4121" |
| 464 | } |
| 465 | #-----------SVC4122--------------------------- |
| 466 | # %1 - artifact type |
| 467 | ARTIFACT_TYPE_NOT_SUPPORTED: { |
| 468 | code: 400, |
| 469 | message: "Error: Invalid artifact type '%1'.", |
| 470 | messageId: "SVC4122" |
| 471 | } |
| 472 | #-----------SVC4123--------------------------- |
| 473 | ARTIFACT_LOGICAL_NAME_CANNOT_BE_CHANGED: { |
| 474 | code: 400, |
| 475 | message: "Error: Artifact logical name cannot be changed.", |
| 476 | messageId: "SVC4123" |
| 477 | } |
| 478 | #-----------SVC4124--------------------------- |
| 479 | MISSING_ARTIFACT_TYPE: { |
| 480 | code: 400, |
| 481 | message: "Error: Missing artifact type.", |
| 482 | messageId: "SVC4124" |
| 483 | } |
| 484 | #-----------SVC4125--------------------------- |
| 485 | # %1-artifact name |
| 486 | ARTIFACT_EXIST: { |
| 487 | code: 400, |
| 488 | message: "Error: Artifact '%1' already exists.", |
| 489 | messageId: "SVC4125" |
| 490 | } |
| 491 | #---------SVC4126------------------------------ |
| 492 | # %1 - resource/service/product/... |
| 493 | # %2 - field (tag, vendor name...) |
| 494 | INVALID_FIELD_FORMAT: { |
| 495 | code: 400, |
| 496 | message: "Error: Invalid %1 %2 format.", |
| 497 | messageId: "SVC4126" |
| 498 | } |
| 499 | #-----------SVC4127--------------------------- |
| 500 | ARTIFACT_INVALID_MD5: { |
| 501 | code: 400, |
| 502 | message: "Error: Invalid artifact checksum.", |
| 503 | messageId: "SVC4127" |
| 504 | } |
| 505 | #-----------SVC4128--------------------------- |
| 506 | MISSING_ARTIFACT_NAME: { |
| 507 | code: 400, |
| 508 | message: "Error: Invalid content. Missing artifact name.", |
| 509 | messageId: "SVC4128" |
| 510 | } |
| 511 | #-----------SVC4129--------------------------- |
| 512 | MISSING_PROJECT_CODE: { |
| 513 | code: 400, |
| 514 | message: "Error: Invalid Content. Missing PROJECT_CODE number.", |
| 515 | messageId: "SVC4129" |
| 516 | } |
| 517 | #-----------SVC4130--------------------------- |
| 518 | INVALID_PROJECT_CODE: { |
| 519 | code: 400, |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 520 | message: "Error: Invalid Content. PROJECT_CODE must be from 3 up to 50 characters.", |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 521 | messageId: "SVC4130" |
| 522 | } |
| 523 | #-----------SVC4131--------------------------- |
| 524 | # %1-resource/service |
| 525 | # %2-srtifact/artifacts |
| 526 | # %3-semicolomn separated list of artifact |
| 527 | COMPONENT_MISSING_MANDATORY_ARTIFACTS: { |
| 528 | code: 403, |
| 529 | message: "Error: Missing mandatory informational %1 %2: [%3].", |
| 530 | messageId: "SVC4131" |
| 531 | } |
| 532 | #-----------SVC4132--------------------------- |
| 533 | # %1 - lifecycle type name |
| 534 | LIFECYCLE_TYPE_ALREADY_EXIST: { |
| 535 | code: 409, |
| 536 | message: "Error: Lifecycle Type with name '%1' already exists.", |
| 537 | messageId: "SVC4132" |
| 538 | } |
| 539 | #-----------SVC4133--------------------------- |
| 540 | # %1 - service version |
| 541 | # %2 - service name |
| 542 | SERVICE_NOT_AVAILABLE_FOR_DISTRIBUTION: { |
| 543 | code: 403, |
| 544 | message: "Error: Version %1 of '%2' service is not available for distribution.", |
| 545 | messageId: "SVC4133" |
| 546 | } |
| 547 | #-----------SVC4134--------------------------- |
| 548 | MISSING_LIFECYCLE_TYPE: { |
| 549 | code: 400, |
| 550 | message: "Error: Invalid Content. Missing interface life-cycle type.", |
| 551 | messageId: "SVC4134" |
| 552 | } |
| 553 | #---------SVC4135------------------------------ |
| 554 | SERVICE_CATEGORY_CANNOT_BE_CHANGED: { |
| 555 | code: 400, |
| 556 | message: "Error: Service category cannot be changed once the service is certified.", |
| 557 | messageId: "SVC4135" |
| 558 | } |
| 559 | #---------SVC4136------------------------------ |
| 560 | # %1 - distribution environment name |
| 561 | DISTRIBUTION_ENVIRONMENT_NOT_AVAILABLE: { |
| 562 | code: 500, |
| 563 | message: "Error: Requested distribution environment '%1' is not available.", |
| 564 | messageId: "SVC4136" |
| 565 | } |
| 566 | #---------SVC4137------------------------------ |
| 567 | # %1 - distribution environment name |
| 568 | DISTRIBUTION_ENVIRONMENT_NOT_FOUND: { |
| 569 | code: 400, |
| 570 | message: "Error: Requested distribution environment '%1' was not found.", |
| 571 | messageId: "SVC4137" |
| 572 | } |
| 573 | #---------SVC4138------------------------------ |
| 574 | DISTRIBUTION_ENVIRONMENT_INVALID: { |
| 575 | code: 400, |
| 576 | message: "Error: Invalid distribution environment.", |
| 577 | messageId: "SVC4138" |
| 578 | } |
| 579 | #---------SVC4139------------------------------ |
| 580 | # %1 - service name |
| 581 | DISTRIBUTION_ARTIFACT_NOT_FOUND: { |
| 582 | code: 409, |
| 583 | message: "Error: Service '%1' cannot be distributed due to missing deployment artifacts.", |
| 584 | messageId: "SVC4139" |
| 585 | } |
| 586 | #---------SVC4200------------------------------ |
| 587 | # %1 - Service/Resource |
| 588 | # %2 - max icon name length |
| 589 | COMPONENT_ICON_EXCEEDS_LIMIT: { |
| 590 | code: 400, |
| 591 | message: "Error: Invalid Content. %1 icon name exceeds limit of %2 characters.", |
| 592 | messageId: "SVC4200" |
| 593 | } |
| 594 | #---------SVC4300------------------------------ |
| 595 | RESTRICTED_ACCESS: { |
| 596 | code: 403, |
| 597 | message: "Error: Restricted access.", |
| 598 | messageId: "SVC4300" |
| 599 | } |
| 600 | #---------SVC4301------------------------------ |
| 601 | RESTRICTED_OPERATION: { |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame^] | 602 | code: 403, |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 603 | message: "Error: Restricted operation.", |
| 604 | messageId: "SVC4301" |
| 605 | } |
| 606 | #---------SVC4500------------------------------ |
| 607 | MISSING_BODY: { |
| 608 | code: 400 , |
| 609 | message: "Error: Missing request body.", |
| 610 | messageId: "SVC4500" |
| 611 | } |
| 612 | #---------SVC4501------------------------------ |
| 613 | MISSING_PUBLIC_KEY: { |
| 614 | code: 400 , |
| 615 | message: "Error: Invalid Content. Missing mandatory parameter 'apiPublicKey'." , |
| 616 | messageId: "SVC4501" |
| 617 | } |
| 618 | #---------SVC4502------------------------------ |
| 619 | DISTRIBUTION_ENV_DOES_NOT_EXIST: { |
| 620 | code: 400 , |
| 621 | message: "Error: Invalid Body : Missing mandatory parameter 'distrEnvName'." , |
| 622 | messageId: "SVC4502" |
| 623 | } |
| 624 | #-----------SVC4503--------------------------- |
| 625 | # %1 - service name |
| 626 | SERVICE_NOT_FOUND: { |
| 627 | code: 404, |
| 628 | message: "Error: Requested '%1' service was not found.", |
| 629 | messageId: "SVC4503" |
| 630 | } |
| 631 | |
| 632 | #---------SVC4504------------------------------ |
| 633 | # %1 - Service/Resource |
| 634 | # %2 - service/resource version |
| 635 | COMPONENT_VERSION_NOT_FOUND: { |
| 636 | code: 404, |
| 637 | message: "Error: %1 version %2 was not found.", |
| 638 | messageId: "SVC4504" |
| 639 | } |
| 640 | #-----------SVC4505--------------------------- |
| 641 | #%1-artifact name |
| 642 | |
| 643 | ARTIFACT_NOT_FOUND: { |
| 644 | code: 404, |
| 645 | message: "Error: Artifact '%1' was not found.", |
| 646 | messageId: "SVC4505" |
| 647 | } |
| 648 | #---------SVC4506------------------------------ |
| 649 | MISSING_ENV_NAME: { |
| 650 | code: 400 , |
| 651 | message: "Error: Invalid Content. Missing mandatory parameter 'distrEnvName'.", |
| 652 | messageId: "SVC4506" |
| 653 | } |
| 654 | #---------SVC4507------------------------------ |
| 655 | COMPONENT_INVALID_TAGS_NO_COMP_NAME: { |
| 656 | code: 400, |
| 657 | message: "Error: Invalid Content. One of the tags should be the component name.", |
| 658 | messageId: "SVC4507" |
| 659 | } |
| 660 | |
| 661 | #---------SVC4508------------------------------ |
| 662 | SERVICE_NAME_CANNOT_BE_CHANGED: { |
| 663 | code: 400, |
| 664 | message: "Error: Service name cannot be changed once the service is certified.", |
| 665 | messageId: "SVC4508" |
| 666 | } |
| 667 | |
| 668 | #---------SVC4509------------------------------ |
| 669 | SERVICE_ICON_CANNOT_BE_CHANGED: { |
| 670 | code: 400, |
| 671 | message: "Error: Icon cannot be changed once the service is certified.", |
| 672 | messageId: "SVC4509" |
| 673 | } |
| 674 | #---------SVC4510------------------------------ |
| 675 | # %1 - icon name max length |
| 676 | SERVICE_ICON_EXCEEDS_LIMIT: { |
| 677 | code: 400, |
| 678 | message: "Error: Invalid Content. Icon name exceeds limit of %1 characters.", |
| 679 | messageId: "SVC4510" |
| 680 | } |
| 681 | #---------SVC4511------------------------------ |
| 682 | DISTRIBUTION_REQUESTED_NOT_FOUND: { |
| 683 | code: 404, |
| 684 | message: "Error: Requested distribution was not found.", |
| 685 | messageId: "SVC4511" |
| 686 | } |
| 687 | #---------SVC4512------------------------------ |
| 688 | # %1 - Distribution ID |
| 689 | DISTRIBUTION_REQUESTED_FAILED: { |
| 690 | code: 403, |
| 691 | message: "Error: Requested distribution '%1' failed.", |
| 692 | messageId: "SVC4512" |
| 693 | } |
| 694 | #---------SVC4513------------------------------ |
| 695 | RESOURCE_CATEGORY_CANNOT_BE_CHANGED: { |
| 696 | code: 400, |
| 697 | message: "Error: Resource category cannot be changed once the resource is certified.", |
| 698 | messageId: "SVC4513" |
| 699 | } |
| 700 | #---------SVC4514------------------------------ |
| 701 | RESOURCE_NAME_CANNOT_BE_CHANGED: { |
| 702 | code: 400, |
| 703 | message: "Error: Resource name cannot be changed once the resource is certified.", |
| 704 | messageId: "SVC4514" |
| 705 | } |
| 706 | #---------SVC4515------------------------------ |
| 707 | RESOURCE_ICON_CANNOT_BE_CHANGED: { |
| 708 | code: 400, |
| 709 | message: "Error: Icon cannot be changed once the resource is certified.", |
| 710 | messageId: "SVC4515" |
| 711 | } |
| 712 | #---------SVC4516------------------------------ |
| 713 | RESOURCE_VENDOR_NAME_CANNOT_BE_CHANGED: { |
| 714 | code: 400, |
| 715 | message: "Error: Vendor name cannot be changed once the resource is certified.", |
| 716 | messageId: "SVC4516" |
| 717 | } |
| 718 | #---------SVC4517------------------------------ |
| 719 | RESOURCE_DERIVED_FROM_CANNOT_BE_CHANGED: { |
| 720 | code: 400, |
| 721 | message: "Error: Derived from resource template cannot be changed once the resource is certified.", |
| 722 | messageId: "SVC4517" |
| 723 | } |
| 724 | #---------SVC4518------------------------------ |
| 725 | # %1 - max length |
| 726 | COMPONENT_SINGLE_TAG_EXCEED_LIMIT: { |
| 727 | code: 400, |
| 728 | message: "Error: Invalid Content. Single tag exceeds limit of %1 characters.", |
| 729 | messageId: "SVC4518" |
| 730 | } |
| 731 | #---------SVC4519------------------------------ |
| 732 | INVALID_DEFAULT_VALUE: { |
| 733 | code: 400, |
| 734 | message: "Error: mismatch in data-type occurred for property %1. data type is %2 and default value found is %3.", |
| 735 | messageId: "SVC4519" |
| 736 | } |
| 737 | #---------SVC4520------------------------------ |
| 738 | # %1 - service or resource |
| 739 | ADDITIONAL_INFORMATION_MAX_NUMBER_REACHED: { |
| 740 | code: 409, |
| 741 | message: "Error: Maximal number of additional %1 parameters was reached.", |
| 742 | messageId: "SVC4520" |
| 743 | } |
| 744 | #---------SVC4521------------------------------ |
| 745 | ADDITIONAL_INFORMATION_EMPTY_STRING_NOT_ALLOWED: { |
| 746 | code: 400, |
| 747 | message: "Error: Invalid Content. The Additional information label and value cannot be empty.", |
| 748 | messageId: "SVC4521" |
| 749 | } |
| 750 | #---------SVC4522------------------------------ |
| 751 | # %1 - label/value |
| 752 | # %2 - Maximal length of %1 |
| 753 | ADDITIONAL_INFORMATION_EXCEEDS_LIMIT: { |
| 754 | code: 400, |
| 755 | message: "Error: Invalid Content. Additional information %1 exceeds limit of %2 characters.", |
| 756 | messageId: "SVC4522" |
| 757 | } |
| 758 | #---------SVC4523------------------------------ |
| 759 | ADDITIONAL_INFORMATION_KEY_NOT_ALLOWED_CHARACTERS: { |
| 760 | code: 400, |
| 761 | message: 'Error: Invalid Content. Additional information label is not allowed to contain characters like <>:"\/|?* and space characters other than regular space.', |
| 762 | messageId: "SVC4523" |
| 763 | } |
| 764 | #---------SVC4524------------------------------ |
| 765 | ADDITIONAL_INFORMATION_NOT_FOUND: { |
| 766 | code: 409, |
| 767 | message: "Error: Requested additional information was not found.", |
| 768 | messageId: "SVC4524" |
| 769 | } |
| 770 | #---------SVC4525------------------------------ |
| 771 | ADDITIONAL_INFORMATION_VALUE_NOT_ALLOWED_CHARACTERS: { |
| 772 | code: 400, |
| 773 | message: 'Error: Invalid Content. Additional information contains non-english characters.', |
| 774 | messageId: "SVC4525" |
| 775 | } |
| 776 | #---------SVC4526------------------------------ |
| 777 | RESOURCE_INSTANCE_NOT_FOUND: { |
| 778 | code: 404, |
| 779 | message: "Error: Requested '%1' resource instance was not found.", |
| 780 | messageId: "SVC4526" |
| 781 | } |
| 782 | #---------SVC4527------------------------------ |
| 783 | ASDC_VERSION_NOT_FOUND: { |
| 784 | code: 500, |
| 785 | message: 'Error: ASDC version cannot be displayed.', |
| 786 | messageId: "SVC4527" |
| 787 | } |
| 788 | #---------SVC4528------------------------------ |
| 789 | # %1-artifact url/artifact label/artifact description/VNF Service Indicator |
| 790 | MISSING_DATA: { |
| 791 | code: 400, |
| 792 | message: "Error: Invalid content. Missing %1.", |
| 793 | messageId: "SVC4528" |
| 794 | } |
| 795 | #---------SVC4529------------------------------ |
| 796 | # %1-artifact url/artifact label/artifact description/artifact name |
| 797 | # %2 - Maximal length of %1 |
| 798 | EXCEEDS_LIMIT: { |
| 799 | code: 400, |
| 800 | message: "Error: Invalid Content. %1 exceeds limit of %2 characters.", |
| 801 | messageId: "SVC4529" |
| 802 | } |
| 803 | #---------SVC4530------------------------------ |
| 804 | ARTIFACT_INVALID_TIMEOUT: { |
| 805 | code: 400, |
| 806 | message: "Error: Invalid Content. Artifact Timeout should be set to valid positive non-zero number of minutes.", |
| 807 | messageId: "SVC4530" |
| 808 | } |
| 809 | #---------SVC4531------------------------------ |
| 810 | SERVICE_IS_VNF_CANNOT_BE_CHANGED: { |
| 811 | code: 400, |
| 812 | message: "Error: VNF Indicator cannot be updated for certified service.", |
| 813 | messageId: "SVC4531" |
| 814 | } |
| 815 | #---------SVC4532------------------------------ |
| 816 | RESOURCE_INSTANCE_NOT_FOUND_ON_SERVICE: { |
| 817 | code: 404, |
| 818 | message: "Error: Requested '%1' resource instance was not found on the service '%2.", |
| 819 | messageId: "SVC4532" |
| 820 | } |
| 821 | #---------SVC4533------------------------------ |
| 822 | # %1 - "HEAT"/"HEAT_ENV"/"MURANO_PKG"/"YANG_XML" |
| 823 | WRONG_ARTIFACT_FILE_EXTENSION: { |
| 824 | code: 400, |
| 825 | message: "Error: Invalid file extension for %1 artifact type.", |
| 826 | messageId: "SVC4533" |
| 827 | } |
| 828 | |
| 829 | #---------SVC4534------------------------------ |
| 830 | # %1 - "HEAT"/"HEAT_ENV" |
| 831 | INVALID_YAML: { |
| 832 | code: 400, |
| 833 | message: "Error: Uploaded YAML file for %1 artifact is invalid.", |
| 834 | messageId: "SVC4534" |
| 835 | } |
| 836 | |
| 837 | #---------SVC4535------------------------------ |
| 838 | # %1 - "HEAT" |
| 839 | INVALID_DEPLOYMENT_ARTIFACT_HEAT: { |
| 840 | code: 400, |
| 841 | message: "Error: Invalid %1 artifact.", |
| 842 | messageId: "SVC4535" |
| 843 | } |
| 844 | #---------SVC4536------------------------------ |
| 845 | # %1 - "Resource"/"Service" |
| 846 | # %2 - resource/service name |
| 847 | # %3 - "HEAT"/"HEAT_ENV"/"MURANO_PKG" |
| 848 | # %4 - "HEAT"/"HEAT_ENV"/"MURANO_PKG |
| 849 | DEPLOYMENT_ARTIFACT_OF_TYPE_ALREADY_EXISTS: { |
| 850 | code: 400, |
| 851 | message: "Error: %1 '%2' already has a deployment artifact of %3 type .Please delete or update an existing %4 artifact.", |
| 852 | messageId: "SVC4536" |
| 853 | } |
| 854 | |
| 855 | #---------SVC4537------------------------------ |
| 856 | MISSING_HEAT: { |
| 857 | code: 400, |
| 858 | message: "Error: Missing HEAT artifact. HEAT_ENV artifact cannot be uploaded without corresponding HEAT template.", |
| 859 | messageId: "SVC4537" |
| 860 | } |
| 861 | #---------SVC4538------------------------------ |
| 862 | MISMATCH_HEAT_VS_HEAT_ENV: { |
| 863 | code: 400, |
| 864 | message: "Error: Invalid artifact content. Parameter's set in HEAT_ENV '%1' artifact doesn't match the parameters in HEAT '%2' artifact.", |
| 865 | messageId: "SVC4538" |
| 866 | } |
| 867 | #---------SVC4539------------------------------ |
| 868 | INVALID_RESOURCE_PAYLOAD: { |
| 869 | code: 400, |
| 870 | message: "Error: Invalid resource payload.", |
| 871 | messageId: "SVC4539" |
| 872 | } |
| 873 | #---------SVC4540------------------------------ |
| 874 | INVALID_TOSCA_FILE_EXTENSION: { |
| 875 | code: 400, |
| 876 | message: "Error: Invalid file extension for TOSCA template.", |
| 877 | messageId: "SVC4540" |
| 878 | } |
| 879 | #---------SVC4541------------------------------ |
| 880 | INVALID_YAML_FILE: { |
| 881 | code: 400, |
| 882 | message: "Error: Invalid YAML file.", |
| 883 | messageId: "SVC4541" |
| 884 | } |
| 885 | #---------SVC4542------------------------------ |
| 886 | INVALID_TOSCA_TEMPLATE: { |
| 887 | code: 400, |
| 888 | message: "Error: Invalid TOSCA template.", |
| 889 | messageId: "SVC4542" |
| 890 | } |
| 891 | #---------SVC4543------------------------------ |
| 892 | NOT_RESOURCE_TOSCA_TEMPLATE: { |
| 893 | code: 400, |
| 894 | message: "Error: Imported Service TOSCA template.", |
| 895 | messageId: "SVC4543" |
| 896 | } |
| 897 | #---------SVC4544------------------------------ |
| 898 | NOT_SINGLE_RESOURCE: { |
| 899 | code: 400, |
| 900 | message: "Error: Imported TOSCA template should contain one resource definition.", |
| 901 | messageId: "SVC4544" |
| 902 | } |
| 903 | #---------SVC4545------------------------------ |
| 904 | INVALID_RESOURCE_NAMESPACE: { |
| 905 | code: 400, |
| 906 | message: "Error: Invalid resource namespace.", |
| 907 | messageId: "SVC4545" |
| 908 | } |
| 909 | #---------SVC4546------------------------------ |
| 910 | RESOURCE_ALREADY_EXISTS: { |
| 911 | code: 400, |
| 912 | message: "Error: Imported resource already exists in ASDC Catalog.", |
| 913 | messageId: "SVC4546" |
| 914 | } |
| 915 | #---------SVC4549------------------------------ |
| 916 | INVALID_RESOURCE_CHECKSUM: { |
| 917 | code: 400, |
| 918 | message: "Error: Invalid resource checksum.", |
| 919 | messageId: "SVC4549" |
| 920 | } |
| 921 | #---------SVC4550------------------------------ |
| 922 | #%1 - Consumer salt |
| 923 | INVALID_LENGTH: { |
| 924 | code: 400, |
| 925 | message: "Error: Invalid %1 length.", |
| 926 | messageId: "SVC4550" |
| 927 | } |
| 928 | #---------SVC4551------------------------------ |
| 929 | #%1 - ECOMP User name |
| 930 | ECOMP_USER_NOT_FOUND: { |
| 931 | code: 404, |
| 932 | message: "Error: ECOMP User '%1' was not found.", |
| 933 | messageId: "SVC4551" |
| 934 | } |
| 935 | #---------SVC4552------------------------------ |
| 936 | CONSUMER_ALREADY_EXISTS: { |
| 937 | code: 409, |
| 938 | message: "Error: ECOMP User already exists.", |
| 939 | messageId: "SVC4552" |
| 940 | } |
| 941 | #---------SVC4553----------------------------- |
| 942 | #%1 - Consumer name / Consumer password/ Consumer salt |
| 943 | INVALID_CONTENT_PARAM: { |
| 944 | code: 400, |
| 945 | message: "Error: %1 is invalid.", |
| 946 | messageId: "SVC4553" |
| 947 | } |
| 948 | #---------SVC4554------------------------------ |
| 949 | # %1 - "Resource"/"Service" |
| 950 | COMPONENT_ARTIFACT_NOT_FOUND: { |
| 951 | code: 404, |
| 952 | message: "Error: Requested artifact doesn't belong to specified %1.", |
| 953 | messageId: "SVC4554" |
| 954 | } |
| 955 | #---------SVC4554------------------------------ |
| 956 | # %1 - "Service name" |
| 957 | SERVICE_DEPLOYMENT_ARTIFACT_NOT_FOUND: { |
| 958 | code: 403, |
| 959 | message: "Error: Requested '%1' service is not ready for certification. Service has to have at least one deployment artifact.", |
| 960 | messageId: "SVC4554" |
| 961 | } |
| 962 | #---------SVC4555------------------------------ |
| 963 | #%1 - "Resource"/"Service"/"Product" |
| 964 | #%2 - "category" |
| 965 | COMPONENT_ELEMENT_INVALID_NAME_LENGTH: { |
| 966 | code: 400, |
| 967 | message: "Error: Invalid %1 %2 name length.", |
| 968 | messageId: "SVC4555" |
| 969 | } |
| 970 | #---------SVC4556------------------------------ |
| 971 | #%1 - "Resource"/"Service"/"Product" |
| 972 | #%2 - "category" |
| 973 | COMPONENT_ELEMENT_INVALID_NAME_FORMAT: { |
| 974 | code: 400, |
| 975 | message: "Error: Invalid %1 %2 name format.", |
| 976 | messageId: "SVC4556" |
| 977 | } |
| 978 | #---------SVC4557------------------------------ |
| 979 | #%1 - "Resource"/"Service"/"Product" |
| 980 | #%2 - "category name" |
| 981 | COMPONENT_CATEGORY_ALREADY_EXISTS: { |
| 982 | code: 409, |
| 983 | message: "Error: %1 category name '%2' already exists.", |
| 984 | messageId: "SVC4557" |
| 985 | } |
| 986 | #---------SVC4558------------------------------ |
| 987 | # %1 - "service"/"VF" |
| 988 | # %2 - "Resource name" |
| 989 | VALIDATED_RESOURCE_NOT_FOUND: { |
| 990 | code: 403, |
| 991 | message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource.", |
| 992 | messageId: "SVC4558" |
| 993 | } |
| 994 | #---------SVC4559------------------------------ |
| 995 | # %1 - "service"/"VF" |
| 996 | # %2 - "Resource name" |
| 997 | FOUND_ALREADY_VALIDATED_RESOURCE: { |
| 998 | code: 403, |
| 999 | message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use already available validated resource version.", |
| 1000 | messageId: "SVC4559" |
| 1001 | } |
| 1002 | #---------SVC4560------------------------------ |
| 1003 | # %1 - "service"/"VF" |
| 1004 | # %2 - "Resource name" |
| 1005 | FOUND_LIST_VALIDATED_RESOURCES: { |
| 1006 | code: 403, |
| 1007 | message: "Error: Submit for Testing is not permitted as your '%1' includes non-validated '%2' resource. Please use one of available validated resource versions.", |
| 1008 | messageId: "SVC4560" |
| 1009 | } |
| 1010 | #---------SVC4561------------------------------ |
| 1011 | # %1 - "resource"/"product" |
| 1012 | # %2 - "category" |
| 1013 | # %3 - "category name" |
| 1014 | COMPONENT_CATEGORY_NOT_FOUND: { |
| 1015 | code: 404, |
| 1016 | message: "Error: Requested %1 %2 '%3' was not found.", |
| 1017 | messageId: "SVC4561" |
| 1018 | } |
| 1019 | #---------SVC4562------------------------------ |
| 1020 | # %1 - "Resource"/"Product" |
| 1021 | # %2 - "sub-category name" |
| 1022 | # %3 - "category name" |
| 1023 | COMPONENT_SUB_CATEGORY_EXISTS_FOR_CATEGORY: { |
| 1024 | code: 409, |
| 1025 | message: "Error: %1 sub-category '%2' already exists under '%3' category.", |
| 1026 | messageId: "SVC4562" |
| 1027 | } |
| 1028 | #---------SVC4563------------------------------ |
| 1029 | # %1 - "Product" |
| 1030 | # %2 - "grouping name" |
| 1031 | # %3 - "sub-category name" |
| 1032 | COMPONENT_GROUPING_EXISTS_FOR_SUB_CATEGORY: { |
| 1033 | code: 409, |
| 1034 | message: "Error: %1 grouping '%2' already exists under '%3' sub-category.", |
| 1035 | messageId: "SVC4563" |
| 1036 | } |
| 1037 | #---------SVC4564------------------------------ |
| 1038 | # %1 - product name |
| 1039 | PRODUCT_NOT_FOUND: { |
| 1040 | code: 404, |
| 1041 | message: "Error: Requested '%1' product was not found.", |
| 1042 | messageId: "SVC4564" |
| 1043 | } |
| 1044 | #---------SVC4565------------------------------ |
| 1045 | # %1 - "HEAT" |
| 1046 | # %2 - parameter type ("string" , "boolean" , "number") |
| 1047 | # %3 - parameter name |
| 1048 | INVALID_HEAT_PARAMETER_VALUE: { |
| 1049 | code: 400, |
| 1050 | message: "Error: Invalid %1 artifact. Invalid %2 value set for '%3' parameter.", |
| 1051 | messageId: "SVC4565" |
| 1052 | } |
| 1053 | #---------SVC4566------------------------------ |
| 1054 | # %1 - "HEAT" |
| 1055 | # %2 - parameter type ("string" , "boolean" , "number") |
| 1056 | INVALID_HEAT_PARAMETER_TYPE: { |
| 1057 | code: 400, |
| 1058 | message: "Error: Invalid %1 artifact. Unsupported '%2' parameter type.", |
| 1059 | messageId: "SVC4566" |
| 1060 | } |
| 1061 | #---------SVC4567------------------------------ |
| 1062 | # %1 - "YANG_XML" |
| 1063 | INVALID_XML: { |
| 1064 | code: 400, |
| 1065 | message: "Error: Uploaded XML file for %1 artifact is invalid.", |
| 1066 | messageId: "SVC4567" |
| 1067 | } |
| 1068 | #---------SVC4567------------------------------ |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1069 | # %1 - "User Name and USER_ID" |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1070 | # %2 -"checked-out"/"in-certification" |
| 1071 | CANNOT_DELETE_USER_WITH_ACTIVE_ELEMENTS: { |
| 1072 | code: 409, |
| 1073 | message: "Error: User cannot be deleted. User '%1' has %2 projects.", |
| 1074 | messageId: "SVC4567" |
| 1075 | } |
| 1076 | #---------SVC4568------------------------------ |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1077 | # %1 - "User Name and USER_ID" |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1078 | # %2 -"checked-out"/"in-certification" |
| 1079 | CANNOT_UPDATE_USER_WITH_ACTIVE_ELEMENTS: { |
| 1080 | code: 409, |
| 1081 | message: "Error: Role cannot be changed. User '%1' has %2 projects.", |
| 1082 | messageId: "SVC4568" |
| 1083 | } |
| 1084 | #---------SVC4570------------------------------ |
| 1085 | UPDATE_USER_ADMIN_CONFLICT: { |
| 1086 | code: 409, |
| 1087 | message: "Error: An administrator is not allowed to change his/her role.", |
| 1088 | messageId: "SVC4570" |
| 1089 | } |
| 1090 | #---------SVC4571------------------------------ |
| 1091 | SERVICE_CANNOT_CONTAIN_SUBCATEGORY: { |
| 1092 | code: 400, |
| 1093 | message: "Error: Sub category cannot be defined for service", |
| 1094 | messageId: "SVC4571" |
| 1095 | } |
| 1096 | #---------SVC4572------------------------------ |
| 1097 | # %1 - "Resource"/"Service" |
| 1098 | COMPONENT_TOO_MUCH_CATEGORIES: { |
| 1099 | code: 400, |
| 1100 | message: "Error: %1 must have only 1 category", |
| 1101 | messageId: "SVC4572" |
| 1102 | } |
| 1103 | #---------SVC4574------------------------------ |
| 1104 | RESOURCE_TOO_MUCH_SUBCATEGORIES: { |
| 1105 | code: 400, |
| 1106 | message: "Error: Resource must have only 1 sub category", |
| 1107 | messageId: "SVC4574" |
| 1108 | } |
| 1109 | #---------SVC4575------------------------------ |
| 1110 | COMPONENT_MISSING_SUBCATEGORY: { |
| 1111 | code: 400, |
| 1112 | message: "Error: Missing sub category", |
| 1113 | messageId: "SVC4575" |
| 1114 | } |
| 1115 | #---------SVC4576------------------------------ |
| 1116 | # %1 - "component type" |
| 1117 | UNSUPPORTED_ERROR: { |
| 1118 | code: 400, |
| 1119 | message: "Error : Requested component type %1 is unsupported.", |
| 1120 | messageId: "SVC4576" |
| 1121 | } |
| 1122 | #---------SVC4577------------------------------ |
| 1123 | # %1 - "resource type" |
| 1124 | RESOURCE_CANNOT_CONTAIN_RESOURCE_INSTANCES: { |
| 1125 | code: 409, |
| 1126 | message: "Error : Resource of type %1 cannot contain resource instances.", |
| 1127 | messageId: "SVC4577" |
| 1128 | } |
| 1129 | #---------SVC4578------------------------------ |
| 1130 | # %1 - "Resource"/"Service" |
| 1131 | # %2 - resource/service name |
| 1132 | # %3 - "artifact name" |
| 1133 | DEPLOYMENT_ARTIFACT_NAME_ALREADY_EXISTS: { |
| 1134 | code: 400, |
| 1135 | message: "Error: %1 '%2' already has a deployment artifact named '%3'.", |
| 1136 | messageId: "SVC4578" |
| 1137 | } |
| 1138 | #---------SVC4579------------------------------ |
| 1139 | # %1 - "Category"/"Sub-Category"/"Group" |
| 1140 | # %2 - category/sub-category/grouping name. |
| 1141 | INVALID_GROUP_ASSOCIATION: { |
| 1142 | code: 400, |
| 1143 | message: "Error: Invalid group association. %1 '%2' was not found.", |
| 1144 | messageId: "SVC4579" |
| 1145 | } |
| 1146 | #---------SVC4580------------------------------ |
| 1147 | EMPTY_PRODUCT_CONTACTS_LIST: { |
| 1148 | code: 400, |
| 1149 | message: "Error: Invalid content. At least one Product Contact has to be specified.", |
| 1150 | messageId: "SVC4580" |
| 1151 | } |
| 1152 | #---------SVC4581------------------------------ |
Michael Lando | ed64b5e | 2017-06-09 03:19:04 +0300 | [diff] [blame] | 1153 | # %1 - USER_ID |
Michael Lando | 451a340 | 2017-02-19 10:28:42 +0200 | [diff] [blame] | 1154 | INVALID_PRODUCT_CONTACT: { |
| 1155 | code: 400, |
| 1156 | message: "Error: Invalid content. User '%1' cannot be set as Product Contact.", |
| 1157 | messageId: "SVC4581" |
| 1158 | } |
| 1159 | #---------SVC4582------------------------------ |
| 1160 | # %1 - Product |
| 1161 | # %2 - "abbreviated"/"full" |
| 1162 | MISSING_ONE_OF_COMPONENT_NAMES: { |
| 1163 | code: 400, |
| 1164 | message: "Error: Invalid content. Missing %1 %2 name.", |
| 1165 | messageId: "SVC4582" |
| 1166 | } |
| 1167 | #---------SVC4583------------------------------ |
| 1168 | # %1 - "Icon" |
| 1169 | # %2 - "resource"/"service"/"product" |
| 1170 | COMPONENT_PARAMETER_CANNOT_BE_CHANGED: { |
| 1171 | code: 400, |
| 1172 | message: "Error: %1 cannot be changed once the %2 is certified.", |
| 1173 | messageId: "SVC4583" |
| 1174 | } |
| 1175 | #---------SVC4584------------------------------ |
| 1176 | # %1 - service/VF name |
| 1177 | # %2 - "service" /"VF" |
| 1178 | # %3 - resource instance origin type |
| 1179 | # %4 - resource instance name |
| 1180 | # %5 - requirement/capability |
| 1181 | # %6 - requirement/capability name |
| 1182 | # %7 - "fulfilled" (for req)/"consumed (for cap)" |
| 1183 | REQ_CAP_NOT_SATISFIED_BEFORE_CERTIFICATION: { |
| 1184 | code: 403, |
| 1185 | message: "Error: Requested '%1' %2 is not ready for certification. %3 '%4' has to have %5 '%6' %7.", |
| 1186 | messageId: "SVC4584" |
| 1187 | } |
| 1188 | #---------SVC4585------------------------------ |
| 1189 | INVALID_OCCURRENCES: { |
| 1190 | code: 400, |
| 1191 | message: "Error: Invalid occurrences format.", |
| 1192 | messageId: "SVC4585" |
| 1193 | } |
| 1194 | #---------SVC4586------------------------------ |
| 1195 | #---------SVC4586------------------------------ |
| 1196 | INVALID_SERVICE_API_URL: { |
| 1197 | code: 400, |
| 1198 | message: 'Error: Invalid Service API URL. Please check whether your URL has a valid domain extension and does not contain the following characters - #?&@%+;,=$<>~^`\[]{}|"*!', |
| 1199 | messageId: "SVC4586" |
| 1200 | } |
| 1201 | #---------SVC4587------------------------------ |
| 1202 | # %1 - Data type name |
| 1203 | DATA_TYPE_ALREADY_EXIST: { |
| 1204 | code: 409, |
| 1205 | message: 'Error: Data type %1 already exists.', |
| 1206 | messageId: "SVC4587" |
| 1207 | } |
| 1208 | #---------SVC4588------------------------------ |
| 1209 | # %1 - Data type name |
| 1210 | DATA_TYPE_NOR_PROPERTIES_NEITHER_DERIVED_FROM: { |
| 1211 | code: 400, |
| 1212 | message: 'Error: Invalid Data type %1. Data type must have either a valid derived from declaration or at least one valid property', |
| 1213 | messageId: "SVC4588" |
| 1214 | } |
| 1215 | #---------SVC4589------------------------------ |
| 1216 | # %1 - Data type name |
| 1217 | DATA_TYPE_PROPERTIES_CANNOT_BE_EMPTY: { |
| 1218 | code: 400, |
| 1219 | message: "Error: Invalid Data type %1. 'properties' parameter cannot be empty if provided.", |
| 1220 | messageId: "SVC4589" |
| 1221 | } |
| 1222 | #---------SVC4590------------------------------ |
| 1223 | # %1 - Property type name |
| 1224 | # %2 - Property name |
| 1225 | INVALID_PROPERTY_TYPE: { |
| 1226 | code: 400, |
| 1227 | message: "Error: Invalid Property type %1 in property %2.", |
| 1228 | messageId: "SVC4590" |
| 1229 | } |
| 1230 | #---------SVC4591------------------------------ |
| 1231 | # %1 - Property inner type |
| 1232 | # %2 - Property name |
| 1233 | INVALID_PROPERTY_INNER_TYPE: { |
| 1234 | code: 400, |
| 1235 | message: "Error: Invalid property inner type %1, in property %2", |
| 1236 | messageId: "SVC4591" |
| 1237 | } |
| 1238 | #---------SVC4592------------------------------ |
| 1239 | # %1 - component instance name |
| 1240 | # %2 - "resource instance"/"service instance" |
| 1241 | COMPONENT_INSTANCE_NOT_FOUND: { |
| 1242 | code: 404, |
| 1243 | message: "Error: Requested '%1' %2 was not found.", |
| 1244 | messageId: "SVC4592" |
| 1245 | } |
| 1246 | #---------SVC4593------------------------------ |
| 1247 | # %1 - component instance name |
| 1248 | # %2 - "resource instance"/"service instance" |
| 1249 | # %3 - "resource/"service"/"product" |
| 1250 | # %4 - container name |
| 1251 | COMPONENT_INSTANCE_NOT_FOUND_ON_CONTAINER: { |
| 1252 | code: 404, |
| 1253 | message: "Error: Requested '%1' %2 was not found on the %3 '%4'.", |
| 1254 | messageId: "SVC4593" |
| 1255 | } |
| 1256 | #---------SVC4594------------------------------ |
| 1257 | #%1 - requirement / capability |
| 1258 | #%2 - requirement name |
| 1259 | IMPORT_DUPLICATE_REQ_CAP_NAME: { |
| 1260 | code: 400, |
| 1261 | message: "Error: Imported TOSCA template contains more than one %1 named '%2'.", |
| 1262 | messageId: "SVC4594" |
| 1263 | } |
| 1264 | #---------SVC4595------------------------------ |
| 1265 | #%1 - requirement / capability |
| 1266 | #%2 - requirement name |
| 1267 | #%3 - parent containing the requirement |
| 1268 | IMPORT_REQ_CAP_NAME_EXISTS_IN_DERIVED: { |
| 1269 | code: 400, |
| 1270 | message: "Error: Imported TOSCA template contains %1 '%2' that is already defined by derived template %3.", |
| 1271 | messageId: "SVC4595" |
| 1272 | } |
| 1273 | #---------SVC4596------------------------------ |
| 1274 | # %1 - Data type name |
| 1275 | DATA_TYPE_DERIVED_IS_MISSING: { |
| 1276 | code: 400, |
| 1277 | message: "Error: Invalid Content. The ancestor data type %1 cannot be found in the system.", |
| 1278 | messageId: "SVC4596" |
| 1279 | } |
| 1280 | #---------SVC4597------------------------------ |
| 1281 | # %1 - Data type name |
| 1282 | # %2 - Property names |
| 1283 | DATA_TYPE_PROPERTY_ALREADY_DEFINED_IN_ANCESTOR: { |
| 1284 | code: 400, |
| 1285 | message: "Error: Invalid Content. The data type %1 contains properties named %2 which are already defined in one of its ancestors.", |
| 1286 | messageId: "SVC4597" |
| 1287 | } |
| 1288 | #---------SVC4598------------------------------ |
| 1289 | # %1 - Data type name |
| 1290 | DATA_TYPE_DUPLICATE_PROPERTY: { |
| 1291 | code: 400, |
| 1292 | message: "Error: Invalid Content. The data type %1 contains duplicate property.", |
| 1293 | messageId: "SVC4598" |
| 1294 | } |
| 1295 | #---------SVC4599------------------------------ |
| 1296 | # %1 - Data type name |
| 1297 | # %2 - Property names |
| 1298 | DATA_TYPE_PROEPRTY_CANNOT_HAVE_SAME_TYPE_OF_DATA_TYPE: { |
| 1299 | code: 400, |
| 1300 | message: "Error: Invalid Content. The data type %1 contains properties %2 which their type is this data type.", |
| 1301 | messageId: "SVC4599" |
| 1302 | } |
| 1303 | #---------SVC4600------------------------------ |
| 1304 | # %1 - Data type name |
| 1305 | DATA_TYPE_CANNOT_HAVE_PROPERTIES: { |
| 1306 | code: 400, |
| 1307 | message: "Error: Invalid Content. The data type %1 cannot have properties since it is of type scalar", |
| 1308 | messageId: "SVC4600" |
| 1309 | } |
| 1310 | #---------SVC4601------------------------------ |
| 1311 | NOT_TOPOLOGY_TOSCA_TEMPLATE: { |
| 1312 | code: 400, |
| 1313 | message: "Error: TOSCA yaml file %1 cannot be modeled to VF as it does not contain 'topology_template.", |
| 1314 | messageId: "SVC4601" |
| 1315 | } |
| 1316 | #---------SVC4602-------------------------------- |
| 1317 | # %1 - yaml file name |
| 1318 | # %2 - node_template label |
| 1319 | # %3 - node_template type |
| 1320 | INVALID_NODE_TEMPLATE: { |
| 1321 | code: 400, |
| 1322 | message: "Error: TOSCA yaml file '%1' contains node_template '%2' of type '%3' that does not represent existing VFC/CP/VL", |
| 1323 | messageId: "SVC4602" |
| 1324 | } |
| 1325 | #---------SVC4603------------------------------ |
| 1326 | # %1 - component type |
| 1327 | # %2 - component name |
| 1328 | # %3 - state |
| 1329 | ILLEGAL_COMPONENT_STATE: { |
| 1330 | code: 403, |
| 1331 | message: "Error: Component instance of %1 can not be created because the component '%2' is in an illegal state %3.", |
| 1332 | messageId: "SVC4603" |
| 1333 | } |
| 1334 | #---------SVC4604------------------------------ |
| 1335 | # %1 - csar file name |
| 1336 | CSAR_INVALID: { |
| 1337 | code: 400, |
| 1338 | message: "Error: TOSCA CSAR '%1' is invalid. 'TOSCA-Metadata/Tosca.meta' file must be provided.", |
| 1339 | messageId: "SVC4604" |
| 1340 | } |
| 1341 | #---------SVC4605------------------------------ |
| 1342 | # %1 - csar file name |
| 1343 | CSAR_INVALID_FORMAT: { |
| 1344 | code: 400, |
| 1345 | message: "Error: TOSCA CSAR '%1' is invalid. Invalid 'TOSCA-Metadata/Tosca.meta' file format.", |
| 1346 | messageId: "SVC4605" |
| 1347 | } |
| 1348 | #---------SVC4606------------------------------ |
| 1349 | # %1 - property name |
| 1350 | # %2 - property type |
| 1351 | # %3 - property innerType |
| 1352 | # %4 - default value is |
| 1353 | INVALID_COMPLEX_DEFAULT_VALUE: { |
| 1354 | code: 400, |
| 1355 | message: "Error: Invalid default value of property %1. Data type is %2 with inner type %3 and default value found is %4.", |
| 1356 | messageId: "SVC4606" |
| 1357 | } |
| 1358 | #---------SVC4607------------------------------ |
| 1359 | # %1 - csar file name |
| 1360 | CSAR_NOT_FOUND: { |
| 1361 | code: 400, |
| 1362 | message: "Error: TOSCA CSAR '%1' is not found.", |
| 1363 | messageId: "SVC4607" |
| 1364 | } |
| 1365 | #---------SVC4608------------------------------ |
| 1366 | # %1 - artifact name |
| 1367 | # %2 - component type |
| 1368 | # %3 - actual component type |
| 1369 | MISMATCH_BETWEEN_ARTIFACT_TYPE_AND_COMPONENT_TYPE: { |
| 1370 | code: 400, |
| 1371 | message: "Error: Artifact %1 is only compatible with component of type %2, but component type is %3.", |
| 1372 | messageId: "SVC4608" |
| 1373 | } |
| 1374 | |
| 1375 | #---------SVC4609------------------------------ |
| 1376 | # %1 - "INVALID_JSON" |
| 1377 | INVALID_JSON: { |
| 1378 | code: 400, |
| 1379 | message: "Error: Uploaded JSON file for %1 artifact is invalid.", |
| 1380 | messageId: "SVC4609" |
| 1381 | } |
| 1382 | #---------SVC4610------------------------------ |
| 1383 | # %1 - csar file name |
| 1384 | # %2 - missing file name |
| 1385 | YAML_NOT_FOUND_IN_CSAR: { |
| 1386 | code: 400, |
| 1387 | message: "Error - TOSCA CSAR %1 is invalid. TOSCA-Metadata/Tosca.meta refers to file %2 that is not provided.", |
| 1388 | messageId: "SVC4610" |
| 1389 | } |
| 1390 | #---------SVC4611------------------------------ |
| 1391 | # %1 - group name |
| 1392 | GROUP_MEMBER_EMPTY: { |
| 1393 | code: 400, |
| 1394 | message: "Error: Invalid Content. Group %1 member list was provided but does not have values", |
| 1395 | messageId: "SVC4611" |
| 1396 | } |
| 1397 | #---------SVC4612------------------------------ |
| 1398 | # %1 - group name |
| 1399 | GROUP_TYPE_ALREADY_EXIST: { |
| 1400 | code: 409, |
| 1401 | message: 'Error: Group type %1 already exists.', |
| 1402 | messageId: "SVC4612" |
| 1403 | } |
| 1404 | #---------SVC4613------------------------------ |
| 1405 | # %1 - group name |
| 1406 | # %2 - VF name(component name) |
| 1407 | # %3 - actual component type [VF] |
| 1408 | GROUP_ALREADY_EXIST: { |
| 1409 | code: 409, |
| 1410 | message: "Error: Group with name '%1' already exists in %2 %3.", |
| 1411 | messageId: "SVC4613" |
| 1412 | } |
| 1413 | #---------SVC4614------------------------------ |
| 1414 | # %1 - group type |
| 1415 | GROUP_TYPE_IS_INVALID: { |
| 1416 | code: 400, |
| 1417 | message: "Error: Invalid content. Group type %1 does not exist", |
| 1418 | messageId: "SVC4614" |
| 1419 | } |
| 1420 | #---------SVC4615------------------------------ |
| 1421 | # %1 - group name |
| 1422 | GROUP_MISSING_GROUP_TYPE: { |
| 1423 | code: 400, |
| 1424 | message: "Error: Invalid Content. Missing Group Type for group '%1'", |
| 1425 | messageId: "SVC4615" |
| 1426 | } |
| 1427 | #---------SVC4616------------------------------ |
| 1428 | # %1 - member name |
| 1429 | # %2 - group name |
| 1430 | # %3 - VF name |
| 1431 | # %4 - component type [VF ] |
| 1432 | GROUP_INVALID_COMPONENT_INSTANCE: { |
| 1433 | code: 400, |
| 1434 | message: "Error: member %1 listed in group %2 is not part of %3 %4.", |
| 1435 | messageId: "SVC4616" |
| 1436 | } |
| 1437 | #---------SVC4617------------------------------ |
| 1438 | # %1 - member name |
| 1439 | # %2 - group name |
| 1440 | # %3 - group type |
| 1441 | GROUP_INVALID_TOSCA_NAME_OF_COMPONENT_INSTANCE: { |
| 1442 | code: 400, |
| 1443 | message: "Error: member %1 listed in group %2 is not part of allowed members of group type %3.", |
| 1444 | messageId: "SVC4617" |
| 1445 | } |
| 1446 | #---------SVC4618------------------------------ |
| 1447 | # %1 - missing file name |
| 1448 | # %2 - csar file name |
| 1449 | ARTIFACT_NOT_FOUND_IN_CSAR: { |
| 1450 | code: 400, |
| 1451 | message: "Error: artifact %1 is defined in CSAR %2 manifest but is not provided", |
| 1452 | messageId: "SVC4618" |
| 1453 | } |
| 1454 | #---------SVC4619------------------------------ |
| 1455 | # %1 - artifact name |
| 1456 | # %2 - artifact type |
| 1457 | # %3 - existing artifact type |
| 1458 | ARTIFACT_ALRADY_EXIST_IN_DIFFERENT_TYPE_IN_CSAR: { |
| 1459 | code: 400, |
| 1460 | message: "Error: artifact %1 in type %2 already exists in type %3.", |
| 1461 | messageId: "SVC4619" |
| 1462 | } |
| 1463 | #---------SVC4620------------------------------ |
| 1464 | FAILED_RETRIVE_ARTIFACTS_TYPES: { |
| 1465 | code: 400, |
| 1466 | message: "Error: Failed to retrieve list of suported artifact types.", |
| 1467 | messageId: "SVC4620" |
| 1468 | } |
| 1469 | #---------SVC4621------------------------------ |
| 1470 | # %1 - artifact name |
| 1471 | # %2 - master |
| 1472 | ARTIFACT_ALRADY_EXIST_IN_MASTER_IN_CSAR: { |
| 1473 | code: 400, |
| 1474 | message: "Error: artifact %1 already exists in master %2 .", |
| 1475 | messageId: "SVC4621" |
| 1476 | } |
| 1477 | #---------SVC4622------------------------------ |
| 1478 | # %1 - artifact name |
| 1479 | # %2 - artifact type |
| 1480 | # %3 - master name |
| 1481 | # %4 - master type |
| 1482 | ARTIFACT_NOT_VALID_IN_MASTER: { |
| 1483 | code: 400, |
| 1484 | message: "Error: artifact %1 in type %2 can not be exists under master %3 in type %4.", |
| 1485 | messageId: "SVC4622" |
| 1486 | } |
| 1487 | #---------SVC4623------------------------------ |
| 1488 | # %1 - artifact name |
| 1489 | # %2 - artifact type |
| 1490 | # %3 - env name |
| 1491 | # %4 - existing env |
| 1492 | ARTIFACT_NOT_VALID_ENV: { |
| 1493 | code: 400, |
| 1494 | message: "Error: Artifact %1 in type %2 with env %3 already exists with another env %4", |
| 1495 | messageId: "SVC4623" |
| 1496 | } |
| 1497 | #---------SVC4624------------------------------ |
| 1498 | # %1 - groups names |
| 1499 | # %2 - VF name |
| 1500 | # %3 - component type [VF ] |
| 1501 | GROUP_IS_MISSING: { |
| 1502 | code: 400, |
| 1503 | message: "Error: Invalid Content. The groups '%1' cannot be found under %2 %3.", |
| 1504 | messageId: "SVC4624" |
| 1505 | } |
| 1506 | #---------SVC4625------------------------------ |
| 1507 | # %1 - groups name |
| 1508 | GROUP_ARTIFACT_ALREADY_ASSOCIATED: { |
| 1509 | code: 400, |
| 1510 | message: "Error: Invalid Content. Artifact already associated to group '%1'.", |
| 1511 | messageId: "SVC4625" |
| 1512 | } |
| 1513 | #---------SVC4626------------------------------ |
| 1514 | # %1 - groups name |
| 1515 | GROUP_ARTIFACT_ALREADY_DISSOCIATED: { |
| 1516 | code: 400, |
| 1517 | message: "Error: Invalid Content. Artifact already dissociated from group '%1'.", |
| 1518 | messageId: "SVC4626" |
| 1519 | } |
| 1520 | #---------SVC4627------------------------------ |
| 1521 | # %1 - property name |
| 1522 | # %2 - group name |
| 1523 | # %3 - group type name |
| 1524 | GROUP_PROPERTY_NOT_FOUND: { |
| 1525 | code: 400, |
| 1526 | message: "Error: property %1 listed in group %2 is not exist in group type %3.", |
| 1527 | messageId: "SVC4627" |
| 1528 | } |
| 1529 | #---------SVC4628------------------------------ |
| 1530 | # %1 - csarUUID |
| 1531 | # %2 - VF name |
| 1532 | VSP_ALREADY_EXISTS: { |
| 1533 | code: 400, |
| 1534 | message: "Error: The VSP with UUID %1 was already imported for VF %2. Please select another or update the existing VF.", |
| 1535 | messageId: "SVC4628" |
| 1536 | } |
| 1537 | #---------SVC4629------------------------------ |
| 1538 | # %1 - VF name |
| 1539 | MISSING_CSAR_UUID: { |
| 1540 | code: 400, |
| 1541 | message: "Error: The Csar UUID or payload name is missing for VF %1.", |
| 1542 | messageId: "SVC4629" |
| 1543 | } |
| 1544 | #---------SVC4630------------------------------ |
| 1545 | # %1 - VF name |
| 1546 | # %2 - new csarUUID |
| 1547 | # %3 - old csarUUID |
| 1548 | RESOURCE_LINKED_TO_DIFFERENT_VSP: { |
| 1549 | code: 400, |
| 1550 | message: "Error: Resource %1 cannot be updated using CsarUUID %2 since the resource is linked to a different VSP with csarUUID %3.", |
| 1551 | messageId: "SVC4630" |
| 1552 | } |
| 1553 | #---------SVC4631------------------------------ |
| 1554 | # %1 - policy name |
| 1555 | POLICY_TYPE_ALREADY_EXIST: { |
| 1556 | code: 409, |
| 1557 | message: "Error: Policy type %1 already exists.", |
| 1558 | messageId: "SVC4631" |
| 1559 | } |
| 1560 | #---------SVC4632------------------------------ |
| 1561 | # %1 - target name |
| 1562 | # %2 - policy type name |
| 1563 | TARGETS_NON_VALID: { |
| 1564 | code: 400, |
| 1565 | message: "Error: target %1 listed in policy type %2 is not a group or resource.", |
| 1566 | messageId: "SVC4632" |
| 1567 | } |
| 1568 | #---------SVC4633------------------------------ |
| 1569 | # %1 - policy name |
| 1570 | TARGETS_EMPTY: { |
| 1571 | code: 400, |
| 1572 | message: "Error: Invalid Content. Policy %1 target list was provided but does not have values", |
| 1573 | messageId: "SVC4633" |
| 1574 | } |
| 1575 | #---------SVC4634------------------------------ |
| 1576 | DATA_TYPE_CANNOT_BE_EMPTY: { |
| 1577 | code: 500, |
| 1578 | message: "Error: Data types are empty. Please import the data types.", |
| 1579 | messageId: "SVC4634" |
| 1580 | } |
| 1581 | #---------SVC4635------------------------------ |
| 1582 | # %1 - csar uuid |
| 1583 | RESOURCE_FROM_CSAR_NOT_FOUND: { |
| 1584 | code: 400, |
| 1585 | message: "Error: resource from csar uuid %1 not found", |
| 1586 | messageId: "SVC4635" |
| 1587 | } |
| 1588 | #---------SVC4636------------------------------ |
| 1589 | # %1 - Data type name |
| 1590 | DATA_TYPE_CANNOT_BE_UPDATED_BAD_REQUEST: { |
| 1591 | code: 400, |
| 1592 | message: 'Error: Data type %1 cannot be upgraded. The new data type does not contain old properties or the type of one of the properties has been changed.', |
| 1593 | messageId: "SVC4636" |
| 1594 | } |
| 1595 | #-----------SVC4637--------------------------- |
| 1596 | #%1 - attribute name |
| 1597 | ATTRIBUTE_NOT_FOUND: { |
| 1598 | code: 404, |
| 1599 | message: "Error: Requested '%1' attribute was not found.", |
| 1600 | messageId: "SVC4637" |
| 1601 | } |
| 1602 | #-----------SVC4638--------------------------- |
| 1603 | #%1 - attribute name |
| 1604 | ATTRIBUTE_ALREADY_EXIST: { |
| 1605 | code: 409, |
| 1606 | message: "Error: Attribute with '%1' name already exists.", |
| 1607 | messageId: "SVC4638" |
| 1608 | } |
| 1609 | #-----------SVC4639--------------------------- |
| 1610 | #%1 - property name |
| 1611 | PROPERTY_NAME_ALREADY_EXISTS: { |
| 1612 | code: 409, |
| 1613 | message: "Error: Property with '%1' name and different type already exists.", |
| 1614 | messageId: "SVC4639" |
| 1615 | } |
| 1616 | #-----------SVC4640--------------------------- |
| 1617 | #%1 - property name |
| 1618 | INVALID_PROPERTY: { |
| 1619 | code: 409, |
| 1620 | message: "Error: Invalid property received.", |
| 1621 | messageId: "SVC4640" |
| 1622 | } |
| 1623 | #---------SVC4641----------------------------- |
| 1624 | #%1 - invalid filter |
| 1625 | #%2 - valid filters |
| 1626 | INVALID_FILTER_KEY: { |
| 1627 | code: 400, |
| 1628 | message: "Error: The filter %1 is not applicable. Please use one of the following filters: %2", |
| 1629 | messageId: "SVC4641" |
| 1630 | } |
| 1631 | #---------SVC4642----------------------------- |
| 1632 | #%1 - asset type |
| 1633 | #%2 - filter |
| 1634 | NO_ASSETS_FOUND: { |
| 1635 | code: 404, |
| 1636 | message: "No %1 were found to match criteria %2", |
| 1637 | messageId: "SVC4642" |
| 1638 | } |
| 1639 | #---------SVC4643------------------------------ |
| 1640 | # %1 - "Resource"/"Product" |
| 1641 | # %2 - "sub-category name" |
| 1642 | # %3 - "category name" |
| 1643 | COMPONENT_SUB_CATEGORY_NOT_FOUND_FOR_CATEGORY: { |
| 1644 | code: 404, |
| 1645 | message: "Error: %1 sub-category '%2' not found under category '%3'.", |
| 1646 | messageId: "SVC4643" |
| 1647 | } |
| 1648 | #---------SVC4644------------------------------ |
| 1649 | # %1 - Format |
| 1650 | CORRUPTED_FORMAT: { |
| 1651 | code: 400, |
| 1652 | message: "Error: %1 format is corrupted.", |
| 1653 | messageId: "SVC4644" |
| 1654 | } |
| 1655 | #---------SVC4645------------------------------ |
| 1656 | # %1 - "groupType" |
| 1657 | INVALID_VF_MODULE_TYPE: { |
| 1658 | code: 400, |
| 1659 | message: "Error: Invalid group type '%1' (should be VfModule).", |
| 1660 | messageId: "SVC4645" |
| 1661 | } |
| 1662 | #---------SVC4646------------------------------ |
| 1663 | # %1 - "groupName" |
| 1664 | INVALID_VF_MODULE_NAME: { |
| 1665 | code: 400, |
| 1666 | message: "Error: Invalid Content. VF Module name '%1' contains invalid characters", |
| 1667 | messageId: "SVC4646" |
| 1668 | } |
| 1669 | |
| 1670 | #---------SVC4647------------------------------ |
| 1671 | # %1 - "modifiedName" |
| 1672 | INVALID_VF_MODULE_NAME_MODIFICATION: { |
| 1673 | code: 400, |
| 1674 | message: "Error: Invalid VF Module name modification, can not modify '%1'", |
| 1675 | messageId: "SVC4647" |
| 1676 | } |
| 1677 | |
Michael Lando | a544510 | 2018-03-04 14:53:33 +0200 | [diff] [blame^] | 1678 | |
| 1679 | #---------SVC4673------------------------------ |
| 1680 | INVALID_SERVICE_STATE: { |
| 1681 | code: 409, |
| 1682 | message: "Error: Invalid service state. Expected state: %1, actual state: %2", |
| 1683 | messageId: "SVC4673" |
| 1684 | } |
| 1685 | |
| 1686 | #---------SVC4674------------------------------ |
| 1687 | INVALID_RESPONSE_FROM_PROXY: { |
| 1688 | code: 502, |
| 1689 | message: "Error: The server was acting as a gateway or proxy and received an invalid response from the upstream server", |
| 1690 | messageId: "SVC4674" |
| 1691 | } |
| 1692 | |