|
101 | 101 | "key": "ibmcloud_api_key" |
102 | 102 | }, |
103 | 103 | { |
104 | | - "key": "prefix" |
| 104 | + "key": "prefix", |
| 105 | + "value_constraints": [ |
| 106 | + { |
| 107 | + "type": "regex", |
| 108 | + "description": "Prefix must begin with a lowercase letter, may contain only lowercase letters, digits, and hyphens '-', must end with a lowercase letter or digit, and must not exceed 16 characters.", |
| 109 | + "value": "^[a-z]([-a-z0-9]{0,14}[a-z0-9])?$" |
| 110 | + } |
| 111 | + ] |
105 | 112 | }, |
106 | 113 | { |
107 | 114 | "key": "resource_tags", |
|
114 | 121 | } |
115 | 122 | }, |
116 | 123 | { |
117 | | - "key": "ssh_key" |
| 124 | + "key": "ssh_key", |
| 125 | + "value_constraints": [ |
| 126 | + { |
| 127 | + "type": "regex", |
| 128 | + "description": "The value provided for 'ssh_key' is not valid.", |
| 129 | + "value": "^ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ?([^@]+@[^@]+)?" |
| 130 | + } |
| 131 | + ] |
118 | 132 | } |
119 | 133 | ], |
120 | 134 | "iam_permissions": [ |
|
218 | 232 | }, |
219 | 233 | { |
220 | 234 | "key": "ssh_public_key", |
221 | | - "required": true |
| 235 | + "required": true, |
| 236 | + "value_constraints": [ |
| 237 | + { |
| 238 | + "type": "regex", |
| 239 | + "description": "The value provided for 'ssh_public_key' is not valid.", |
| 240 | + "value": "^__NULL__$|^ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ?([^@]+@[^@]+)?" |
| 241 | + } |
| 242 | + ] |
222 | 243 | }, |
223 | 244 | { |
224 | 245 | "key": "ibmcloud_api_key" |
225 | 246 | }, |
226 | 247 | { |
227 | | - "key": "prefix" |
| 248 | + "key": "prefix", |
| 249 | + "value_constraints": [ |
| 250 | + { |
| 251 | + "type": "regex", |
| 252 | + "description": "Prefix must begin with a lowercase letter, may contain only lowercase letters, digits, and hyphens '-', must end with a lowercase letter or digit, and must not exceed 16 characters.", |
| 253 | + "value": "^[a-z]([-a-z0-9]{0,14}[a-z0-9])?$" |
| 254 | + } |
| 255 | + ] |
228 | 256 | }, |
229 | 257 | { |
230 | 258 | "key": "existing_ssh_key_name" |
|
595 | 623 | "configuration": [ |
596 | 624 | { |
597 | 625 | "key": "ssh_public_key", |
598 | | - "required": true |
| 626 | + "required": true, |
| 627 | + "value_constraints": [ |
| 628 | + { |
| 629 | + "type": "regex", |
| 630 | + "description": "The value provided for 'ssh_public_key' is not valid.", |
| 631 | + "value": "^__NULL__$|^ssh-rsa AAAA[0-9A-Za-z+/]+[=]{0,3} ?([^@]+@[^@]+)?" |
| 632 | + } |
| 633 | + ] |
599 | 634 | }, |
600 | 635 | { |
601 | 636 | "custom_config": { |
|
817 | 852 | "key": "ibmcloud_api_key" |
818 | 853 | }, |
819 | 854 | { |
820 | | - "key": "prefix" |
| 855 | + "key": "prefix", |
| 856 | + "value_constraints": [ |
| 857 | + { |
| 858 | + "type": "regex", |
| 859 | + "description": "Prefix must begin with a lowercase letter, may contain only lowercase letters, digits, and hyphens '-', must end with a lowercase letter or digit, and must not exceed 16 characters.", |
| 860 | + "value": "^[a-z]([-a-z0-9]{0,14}[a-z0-9])?$" |
| 861 | + } |
| 862 | + ] |
821 | 863 | }, |
822 | 864 | { |
823 | 865 | "key": "tags", |
|
1218 | 1260 | "key": "ibmcloud_api_key" |
1219 | 1261 | }, |
1220 | 1262 | { |
1221 | | - "key": "prefix" |
| 1263 | + "key": "prefix", |
| 1264 | + "value_constraints": [ |
| 1265 | + { |
| 1266 | + "type": "regex", |
| 1267 | + "description": "Prefix must begin with a lowercase letter, may contain only lowercase letters, digits, and hyphens '-', must end with a lowercase letter or digit, and must not exceed 13 characters.", |
| 1268 | + "value": "^[a-z]([-a-z0-9]{0,11}[a-z0-9])?$" |
| 1269 | + } |
| 1270 | + ] |
1222 | 1271 | }, |
1223 | 1272 | { |
1224 | 1273 | "key": "resource_tags", |
|
1752 | 1801 | "key": "ibmcloud_api_key" |
1753 | 1802 | }, |
1754 | 1803 | { |
1755 | | - "key": "prefix" |
| 1804 | + "key": "prefix", |
| 1805 | + "value_constraints": [ |
| 1806 | + { |
| 1807 | + "type": "regex", |
| 1808 | + "description": "Prefix must begin with a lowercase letter, may contain only lowercase letters, digits, and hyphens '-', must end with a lowercase letter or digit, and must not exceed 13 characters.", |
| 1809 | + "value": "^[a-z]([-a-z0-9]{0,11}[a-z0-9])?$" |
| 1810 | + } |
| 1811 | + ] |
1756 | 1812 | }, |
1757 | 1813 | { |
1758 | 1814 | "key": "tags", |
|
0 commit comments