|
58 | 58 |
|
59 | 59 | """
|
60 | 60 | RETURN = r"""
|
| 61 | +response: |
| 62 | + description: response for listing all clones |
| 63 | + returned: always |
| 64 | + type: list |
| 65 | + sample: |
| 66 | + [ |
| 67 | + { |
| 68 | + "accessLevel": null, |
| 69 | + "category": "DB_GROUP_IMPLICIT", |
| 70 | + "clone": true, |
| 71 | + "clustered": false, |
| 72 | + "databaseClusterType": null, |
| 73 | + "databaseGroupStateInfo": null, |
| 74 | + "databaseName": "root", |
| 75 | + "databaseNodes": [ |
| 76 | + { |
| 77 | + "accessLevel": null, |
| 78 | + "databaseId": "3bf23402-67f0-yd87-967d-3a80b1d336f9", |
| 79 | + "databaseStatus": "READY", |
| 80 | + "dateCreated": "2022-10-17 17:10:46", |
| 81 | + "dateModified": "2022-10-17 17:10:46", |
| 82 | + "dbserver": null, |
| 83 | + "dbserverId": "eafakzef-5e63-4e93-bfa5-bb79967e3f3c", |
| 84 | + "description": "", |
| 85 | + "id": "e45a4eb7-c32a-4895-a32d-8450fe0b6be3", |
| 86 | + "info": { |
| 87 | + "info": null, |
| 88 | + "secureInfo": null |
| 89 | + }, |
| 90 | + "metadata": null, |
| 91 | + "name": "PRAD_POSTGRESS_2022_Oct_17_22_35_49", |
| 92 | + "ownerId": "eac70dbf-22fb-462b-9498-965796ca1f73", |
| 93 | + "primary": false, |
| 94 | + "properties": [], |
| 95 | + "protectionDomain": null, |
| 96 | + "protectionDomainId": "3e62f008-7739-47a5-b26c-fd6971a110d8", |
| 97 | + "softwareInstallationId": "2ac645c8-988b-4cbf-9dc6-b37d19b4464f", |
| 98 | + "status": "READY", |
| 99 | + "tags": [] |
| 100 | + } |
| 101 | + ], |
| 102 | + "databaseStatus": "UNKNOWN", |
| 103 | + "databases": null, |
| 104 | + "dateCreated": "2022-10-17 17:06:12", |
| 105 | + "dateModified": "2022-10-19 11:07:11", |
| 106 | + "dbserverLogicalClusterId": null, |
| 107 | + "dbserverlogicalCluster": null, |
| 108 | + "description": "", |
| 109 | + "eraCreated": true, |
| 110 | + "groupInfo": null, |
| 111 | + "id": "3bfe2902-67f0-4d87-967d-3a80b1d361f9", |
| 112 | + "info": null, |
| 113 | + "internal": false, |
| 114 | + "lcmConfig": null, |
| 115 | + "linkedDatabases": [ |
| 116 | + { |
| 117 | + "databaseName": "postgres", |
| 118 | + "databaseStatus": "READY", |
| 119 | + "dateCreated": "2022-10-17 17:10:00", |
| 120 | + "dateModified": "2022-10-17 17:10:00", |
| 121 | + "description": null, |
| 122 | + "id": "255e2610-d78a-42f5-8878-80ca01048651", |
| 123 | + "info": { |
| 124 | + "info": { |
| 125 | + "created_by": "system" |
| 126 | + }, |
| 127 | + "secureInfo": null |
| 128 | + }, |
| 129 | + "metadata": null, |
| 130 | + "metric": null, |
| 131 | + "name": "postgres", |
| 132 | + "ownerId": "eac70dbf-22fb-462b-9218-949796ca1f73", |
| 133 | + "parentDatabaseId": "3bfe2902-74f0-4d87-967d-3a80b1d336f9", |
| 134 | + "parentLinkedDatabaseId": "7453a712-c770-456a-b217-0a1c74bf0a50", |
| 135 | + "snapshotId": null, |
| 136 | + "status": "READY", |
| 137 | + "timeZone": null |
| 138 | + }, |
| 139 | + { |
| 140 | + "databaseName": "root", |
| 141 | + "databaseStatus": "READY", |
| 142 | + "dateCreated": "2022-10-17 17:10:00", |
| 143 | + "dateModified": "2022-10-17 17:10:00", |
| 144 | + "description": null, |
| 145 | + "id": "b93c2c70-fc6b-4148-8871-9c2912cea041", |
| 146 | + "info": { |
| 147 | + "info": { |
| 148 | + "created_by": "user" |
| 149 | + }, |
| 150 | + "secureInfo": null |
| 151 | + }, |
| 152 | + "metadata": null, |
| 153 | + "metric": null, |
| 154 | + "name": "root", |
| 155 | + "ownerId": "eac70dbf-22fb-462b-9148-949796ca1f73", |
| 156 | + "parentDatabaseId": "3bfe2907-47f0-4d87-967d-3a80b1d336f9", |
| 157 | + "parentLinkedDatabaseId": "4195a159-0186-4741-8076-bd815269753f", |
| 158 | + "snapshotId": null, |
| 159 | + "status": "READY", |
| 160 | + "timeZone": null |
| 161 | + }, |
| 162 | + { |
| 163 | + "databaseName": "template1", |
| 164 | + "databaseStatus": "READY", |
| 165 | + "dateCreated": "2022-10-17 17:10:00", |
| 166 | + "dateModified": "2022-10-17 17:10:00", |
| 167 | + "description": null, |
| 168 | + "id": "50b6fd43-c5ee-4e85-b1f3-241ce3b16377", |
| 169 | + "info": { |
| 170 | + "info": { |
| 171 | + "created_by": "system" |
| 172 | + }, |
| 173 | + "secureInfo": null |
| 174 | + }, |
| 175 | + "metadata": null, |
| 176 | + "metric": null, |
| 177 | + "name": "template1", |
| 178 | + "ownerId": "eac70dbf-22fb-462b-9498-949796ca1f73", |
| 179 | + "parentDatabaseId": "3bfe2902-78f0-4d87-967d-3a80b1d336f9", |
| 180 | + "parentLinkedDatabaseId": "4115126e-2913-48a2-b7a6-0a94fbefe16b", |
| 181 | + "snapshotId": null, |
| 182 | + "status": "READY", |
| 183 | + "timeZone": null |
| 184 | + }, |
| 185 | + { |
| 186 | + "databaseName": "template0", |
| 187 | + "databaseStatus": "READY", |
| 188 | + "dateCreated": "2022-10-17 17:10:00", |
| 189 | + "dateModified": "2022-10-17 17:10:00", |
| 190 | + "description": null, |
| 191 | + "id": "eb3b9d14-91bb-4735-9479-2366a45b592b", |
| 192 | + "info": { |
| 193 | + "info": { |
| 194 | + "created_by": "system" |
| 195 | + }, |
| 196 | + "secureInfo": null |
| 197 | + }, |
| 198 | + "metadata": null, |
| 199 | + "metric": null, |
| 200 | + "name": "template0", |
| 201 | + "ownerId": "eac70dbf-22fb-462b-9298-949796ca1f73", |
| 202 | + "parentDatabaseId": "3bfe2902-67f0-4d87-9682d-3a80b1d336f9", |
| 203 | + "parentLinkedDatabaseId": "56e97fff-4ae2-12d9-9c89-3fe50b3903d3", |
| 204 | + "snapshotId": null, |
| 205 | + "status": "READY", |
| 206 | + "timeZone": null |
| 207 | + } |
| 208 | + ], |
| 209 | + "metadata": { |
| 210 | + "baseSizeComputed": true, |
| 211 | + "capabilityResetTime": null, |
| 212 | + "createdDbservers": null, |
| 213 | + "deregisterInfo": null, |
| 214 | + "deregisteredWithDeleteTimeMachine": false, |
| 215 | + "info": null, |
| 216 | + "lastLogCatchUpForRestoreOperationId": null, |
| 217 | + "lastRefreshTimestamp": "2022-10-17 13:17:48", |
| 218 | + "lastRequestedRefreshTimestamp": null, |
| 219 | + "logCatchUpForRestoreDispatched": false, |
| 220 | + "originalDatabaseName": null, |
| 221 | + "pitrBased": false, |
| 222 | + "provisionOperationId": null, |
| 223 | + "refreshBlockerInfo": null, |
| 224 | + "registeredDbservers": null, |
| 225 | + "sanitised": false, |
| 226 | + "secureInfo": null, |
| 227 | + "sourceSnapshotId": "7657037a-c39d-dsada-99cd-d90217b40a9d", |
| 228 | + "stateBeforeRefresh": null, |
| 229 | + "stateBeforeRestore": null, |
| 230 | + "stateBeforeScaling": null, |
| 231 | + "tmActivateOperationId": null |
| 232 | + }, |
| 233 | + "metric": null, |
| 234 | + "name": "PRAD_POSTGRESS_2022_Oct_17_22_35_49", |
| 235 | + "ownerId": "eac70dbf-22fb-462b-9498-9497dasca1f73", |
| 236 | + "parentDatabaseId": null, |
| 237 | + "parentSourceDatabaseId": null, |
| 238 | + "parentTimeMachine": null, |
| 239 | + "parentTimeMachineId": "b051e542-1b96-40ba-dsef-52e9feb77003", |
| 240 | + "placeholder": false, |
| 241 | + "properties": [ |
| 242 | + { |
| 243 | + "description": null, |
| 244 | + "name": "version", |
| 245 | + "ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9", |
| 246 | + "secure": false, |
| 247 | + "value": "10.4" |
| 248 | + }, |
| 249 | + { |
| 250 | + "description": null, |
| 251 | + "name": "vm_ip", |
| 252 | + "ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9", |
| 253 | + "secure": false, |
| 254 | + "value": "000.000.000.000" |
| 255 | + }, |
| 256 | + { |
| 257 | + "description": null, |
| 258 | + "name": "postgres_software_home", |
| 259 | + "ref_id": "3bfe2902-67f0-4d87-967d-3asdb1d336f9", |
| 260 | + "secure": false, |
| 261 | + "value": "%2Fusr%2Fpgsql-10.4" |
| 262 | + }, |
| 263 | + { |
| 264 | + "description": null, |
| 265 | + "name": "listener_port", |
| 266 | + "ref_id": "3sde2902-67f0-4d87-967d-3a80b1d336f9", |
| 267 | + "secure": false, |
| 268 | + "value": "5432" |
| 269 | + }, |
| 270 | + { |
| 271 | + "description": null, |
| 272 | + "name": "db_parameter_profile_id", |
| 273 | + "ref_id": "3sae2902-67f0-4d87-967d-3a80b1d336f9", |
| 274 | + "secure": false, |
| 275 | + "value": "a8auc1fb-8787-4442-8f38-eeb2417a8cbb" |
| 276 | + }, |
| 277 | + { |
| 278 | + "description": null, |
| 279 | + "name": "BASE_SIZE", |
| 280 | + "ref_id": "3gfe2902-67f0-4d87-967d-3a80b1d336f9", |
| 281 | + "secure": false, |
| 282 | + "value": "{\"clusterStorage\": |
| 283 | + {\"d7881b99-5a9d-4da7-8e7d-c938499214de\": |
| 284 | + {\"41f39cb1-a5fd-4bc8-bb78-d3fe81a76539\": |
| 285 | + {\"size\": 26416896, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"}, |
| 286 | + \"dcd08c14-20dd-4b27-893c-c65a4c2e1d3b\": |
| 287 | + {\"size\": 23134208, \"allocatedSize\": 0, |
| 288 | + \"usedSize\": 0, \"unit\": \"B\"}, \"7c695994-a1ff-459c-9174-c93f75b470a4\": |
| 289 | + {\"size\": 9189376, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"}, |
| 290 | + \"c35e56bd-f1b8-4349-b9aa-a86273c473c3\": {\"size\": 5496832, \"allocatedSize\": 0, \"usedSize\": 0, \"unit\": \"B\"}}}}" |
| 291 | + } |
| 292 | + ], |
| 293 | + "status": "READY", |
| 294 | + "tags": [], |
| 295 | + "timeMachine": null, |
| 296 | + "timeMachineId": "f5gf5d90-835c-4d37-a922-3a936aaa21da", |
| 297 | + "timeZone": "UTC", |
| 298 | + "type": "postgres_database" |
| 299 | + } |
| 300 | + ] |
| 301 | +
|
61 | 302 | """
|
62 | 303 |
|
63 | 304 | from ..module_utils.ndb.base_info_module import NdbBaseInfoModule # noqa: E402
|
|
0 commit comments