Amazon Lightsail
API Reference
API Version 2016-11-28
Amazon Lightsail: API Reference
Copyright © Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by Amazon.
Table of Contents
Welcome ... 1
Actions ... 2
AllocateStaticIp ... 6
Request Syntax ... 6
Request Parameters ... 6
Response Syntax ... 6
Response Elements ... 6
Errors ... 7
See Also ... 7
AttachCertificateToDistribution ... 9
Request Syntax ... 9
Request Parameters ... 9
Response Syntax ... 10
Response Elements ... 10
Errors ... 10
See Also ... 11
AttachDisk ... 12
Request Syntax ... 12
Request Parameters ... 12
Response Syntax ... 12
Response Elements ... 13
Errors ... 13
See Also ... 14
AttachInstancesToLoadBalancer ... 15
Request Syntax ... 15
Request Parameters ... 15
Response Syntax ... 15
Response Elements ... 16
Errors ... 16
See Also ... 17
AttachLoadBalancerTlsCertificate ... 18
Request Syntax ... 18
Request Parameters ... 18
Response Syntax ... 18
Response Elements ... 19
Errors ... 19
See Also ... 20
AttachStaticIp ... 21
Request Syntax ... 21
Request Parameters ... 21
Response Syntax ... 21
Response Elements ... 22
Errors ... 22
See Also ... 23
CloseInstancePublicPorts ... 24
Request Syntax ... 24
Request Parameters ... 24
Response Syntax ... 24
Response Elements ... 25
Errors ... 25
See Also ... 26
CopySnapshot ... 27
Request Syntax ... 27
Request Parameters ... 27
Response Syntax ... 28
Response Elements ... 29
Errors ... 29
Examples ... 30
See Also ... 32
CreateBucket ... 33
Request Syntax ... 33
Request Parameters ... 33
Response Syntax ... 34
Response Elements ... 35
Errors ... 35
See Also ... 36
CreateBucketAccessKey ... 37
Request Syntax ... 37
Request Parameters ... 37
Response Syntax ... 37
Response Elements ... 38
Errors ... 38
See Also ... 39
CreateCertificate ... 40
Request Syntax ... 40
Request Parameters ... 40
Response Syntax ... 41
Response Elements ... 42
Errors ... 42
See Also ... 43
CreateCloudFormationStack ... 44
Request Syntax ... 44
Request Parameters ... 44
Response Syntax ... 44
Response Elements ... 45
Errors ... 45
See Also ... 46
CreateContactMethod ... 47
Request Syntax ... 47
Request Parameters ... 47
Response Syntax ... 48
Response Elements ... 48
Errors ... 48
See Also ... 49
CreateContainerService ... 50
Request Syntax ... 50
Request Parameters ... 50
Response Syntax ... 52
Response Elements ... 54
Errors ... 54
Examples ... 55
See Also ... 56
CreateContainerServiceDeployment ... 57
Request Syntax ... 57
Request Parameters ... 57
Response Syntax ... 58
Response Elements ... 59
Errors ... 60
See Also ... 60
CreateContainerServiceRegistryLogin ... 61
Response Syntax ... 61
Response Elements ... 61
Errors ... 61
See Also ... 62
CreateDisk ... 63
Request Syntax ... 63
Request Parameters ... 63
Response Syntax ... 64
Response Elements ... 64
Errors ... 65
See Also ... 65
CreateDiskFromSnapshot ... 67
Request Syntax ... 67
Request Parameters ... 67
Response Syntax ... 69
Response Elements ... 69
Errors ... 70
See Also ... 70
CreateDiskSnapshot ... 72
Request Syntax ... 72
Request Parameters ... 72
Response Syntax ... 73
Response Elements ... 73
Errors ... 74
See Also ... 75
CreateDistribution ... 76
Request Syntax ... 76
Request Parameters ... 76
Response Syntax ... 78
Response Elements ... 79
Errors ... 79
See Also ... 80
CreateDomain ... 81
Request Syntax ... 81
Request Parameters ... 81
Response Syntax ... 81
Response Elements ... 82
Errors ... 82
See Also ... 83
CreateDomainEntry ... 84
Request Syntax ... 84
Request Parameters ... 84
Response Syntax ... 84
Response Elements ... 85
Errors ... 85
See Also ... 86
CreateInstances ... 87
Request Syntax ... 87
Request Parameters ... 87
Response Syntax ... 89
Response Elements ... 89
Errors ... 90
See Also ... 90
CreateInstancesFromSnapshot ... 92
Request Syntax ... 92
Request Parameters ... 92
Response Syntax ... 95
Response Elements ... 95
Errors ... 95
See Also ... 96
CreateInstanceSnapshot ... 98
Request Syntax ... 98
Request Parameters ... 98
Response Syntax ... 99
Response Elements ... 99
Errors ... 99
See Also ... 100
CreateKeyPair ... 101
Request Syntax ... 101
Request Parameters ... 101
Response Syntax ... 101
Response Elements ... 102
Errors ... 103
See Also ... 103
CreateLoadBalancer ... 105
Request Syntax ... 105
Request Parameters ... 105
Response Syntax ... 106
Response Elements ... 107
Errors ... 107
See Also ... 108
CreateLoadBalancerTlsCertificate ... 109
Request Syntax ... 109
Request Parameters ... 109
Response Syntax ... 110
Response Elements ... 110
Errors ... 111
See Also ... 111
CreateRelationalDatabase ... 113
Request Syntax ... 113
Request Parameters ... 113
Response Syntax ... 116
Response Elements ... 117
Errors ... 117
See Also ... 118
CreateRelationalDatabaseFromSnapshot ... 119
Request Syntax ... 119
Request Parameters ... 119
Response Syntax ... 121
Response Elements ... 121
Errors ... 122
See Also ... 122
CreateRelationalDatabaseSnapshot ... 124
Request Syntax ... 124
Request Parameters ... 124
Response Syntax ... 125
Response Elements ... 125
Errors ... 125
See Also ... 126
DeleteAlarm ... 127
Request Syntax ... 127
Request Parameters ... 127
Response Syntax ... 127
Response Elements ... 128
Errors ... 128
See Also ... 128
DeleteAutoSnapshot ... 130
Request Syntax ... 130
Request Parameters ... 130
Response Syntax ... 130
Response Elements ... 131
Errors ... 131
See Also ... 132
DeleteBucket ... 133
Request Syntax ... 133
Request Parameters ... 133
Response Syntax ... 133
Response Elements ... 134
Errors ... 134
See Also ... 135
DeleteBucketAccessKey ... 136
Request Syntax ... 136
Request Parameters ... 136
Response Syntax ... 136
Response Elements ... 137
Errors ... 137
See Also ... 138
DeleteCertificate ... 139
Request Syntax ... 139
Request Parameters ... 139
Response Syntax ... 139
Response Elements ... 139
Errors ... 140
See Also ... 140
DeleteContactMethod ... 142
Request Syntax ... 142
Request Parameters ... 142
Response Syntax ... 142
Response Elements ... 143
Errors ... 143
See Also ... 144
DeleteContainerImage ... 145
Request Syntax ... 145
Request Parameters ... 145
Response Elements ... 145
Errors ... 145
See Also ... 146
DeleteContainerService ... 147
Request Syntax ... 147
Request Parameters ... 147
Response Elements ... 147
Errors ... 147
See Also ... 148
DeleteDisk ... 149
Request Syntax ... 149
Request Parameters ... 149
Response Syntax ... 149
Response Elements ... 150
Errors ... 150
See Also ... 151
DeleteDiskSnapshot ... 152
Request Syntax ... 152
Request Parameters ... 152
Response Syntax ... 152
Response Elements ... 153
Errors ... 153
See Also ... 154
DeleteDistribution ... 155
Request Syntax ... 155
Request Parameters ... 155
Response Syntax ... 155
Response Elements ... 155
Errors ... 156
See Also ... 156
DeleteDomain ... 158
Request Syntax ... 158
Request Parameters ... 158
Response Syntax ... 158
Response Elements ... 158
Errors ... 159
See Also ... 159
DeleteDomainEntry ... 161
Request Syntax ... 161
Request Parameters ... 161
Response Syntax ... 161
Response Elements ... 162
Errors ... 162
See Also ... 163
DeleteInstance ... 164
Request Syntax ... 164
Request Parameters ... 164
Response Syntax ... 164
Response Elements ... 165
Errors ... 165
See Also ... 166
DeleteInstanceSnapshot ... 167
Request Syntax ... 167
Request Parameters ... 167
Response Syntax ... 167
Response Elements ... 168
Errors ... 168
See Also ... 169
DeleteKeyPair ... 170
Request Syntax ... 170
Request Parameters ... 170
Response Syntax ... 170
Response Elements ... 171
Errors ... 171
See Also ... 172
DeleteKnownHostKeys ... 173
Request Syntax ... 173
Request Parameters ... 173
Response Syntax ... 173
Response Elements ... 174
Errors ... 174
See Also ... 175
DeleteLoadBalancer ... 176
Request Syntax ... 176
Request Parameters ... 176
Response Syntax ... 176
Response Elements ... 177
Errors ... 177
See Also ... 178
DeleteLoadBalancerTlsCertificate ... 179
Request Syntax ... 179
Request Parameters ... 179
Response Syntax ... 179
Response Elements ... 180
Errors ... 180
See Also ... 181
DeleteRelationalDatabase ... 182
Request Syntax ... 182
Request Parameters ... 182
Response Syntax ... 183
Response Elements ... 183
Errors ... 183
See Also ... 184
DeleteRelationalDatabaseSnapshot ... 185
Request Syntax ... 185
Request Parameters ... 185
Response Syntax ... 185
Response Elements ... 186
Errors ... 186
See Also ... 187
DetachCertificateFromDistribution ... 188
Request Syntax ... 188
Request Parameters ... 188
Response Syntax ... 188
Response Elements ... 188
Errors ... 189
See Also ... 189
DetachDisk ... 191
Request Syntax ... 191
Request Parameters ... 191
Response Syntax ... 191
Response Elements ... 192
Errors ... 192
See Also ... 193
DetachInstancesFromLoadBalancer ... 194
Request Syntax ... 194
Request Parameters ... 194
Response Syntax ... 194
Response Elements ... 195
Errors ... 195
See Also ... 196
DetachStaticIp ... 197
Request Syntax ... 197
Request Parameters ... 197
Response Syntax ... 197
Response Elements ... 197
Errors ... 198
See Also ... 198
DisableAddOn ... 200
Request Syntax ... 200
Request Parameters ... 200
Response Syntax ... 200
Response Elements ... 201
Errors ... 201
See Also ... 202
DownloadDefaultKeyPair ... 203
Response Syntax ... 203
Response Elements ... 203
Errors ... 203
See Also ... 204
EnableAddOn ... 205
Request Syntax ... 205
Request Parameters ... 205
Response Syntax ... 205
Response Elements ... 206
Errors ... 206
See Also ... 207
ExportSnapshot ... 208
Request Syntax ... 208
Request Parameters ... 208
Response Syntax ... 208
Response Elements ... 209
Errors ... 209
See Also ... 210
GetActiveNames ... 211
Request Syntax ... 211
Request Parameters ... 211
Response Syntax ... 211
Response Elements ... 211
Errors ... 212
See Also ... 212
GetAlarms ... 214
Request Syntax ... 214
Request Parameters ... 214
Response Syntax ... 215
Response Elements ... 215
Errors ... 216
See Also ... 216
GetAutoSnapshots ... 218
Request Syntax ... 218
Request Parameters ... 218
Response Syntax ... 218
Response Elements ... 218
Errors ... 219
See Also ... 220
GetBlueprints ... 221
Request Syntax ... 221
Request Parameters ... 221
Response Syntax ... 221
Response Elements ... 222
Errors ... 222
See Also ... 223
GetBucketAccessKeys ... 224
Request Syntax ... 224
Request Parameters ... 224
Response Syntax ... 224
Response Elements ... 224
Errors ... 225
Examples ... 225
See Also ... 226
GetBucketBundles ... 227
Request Syntax ... 227
Request Parameters ... 227
Response Syntax ... 227
Response Elements ... 227
Errors ... 228
See Also ... 228
GetBucketMetricData ... 229
Request Syntax ... 229
Request Parameters ... 229
Response Syntax ... 231
Response Elements ... 231
Errors ... 231
See Also ... 232
GetBuckets ... 233
Request Syntax ... 233
Request Parameters ... 233
Response Syntax ... 234
Response Elements ... 234
Errors ... 235
See Also ... 235
GetBundles ... 237
Request Syntax ... 237
Request Parameters ... 237
Response Syntax ... 237
Response Elements ... 238
Errors ... 238
See Also ... 239
GetCertificates ... 240
Request Syntax ... 240
Request Parameters ... 240
Response Syntax ... 241
Response Elements ... 242
Errors ... 242
See Also ... 243
GetCloudFormationStackRecords ... 244
Request Syntax ... 244
Request Parameters ... 244
Response Syntax ... 244
Response Elements ... 245
Errors ... 245
See Also ... 246
GetContactMethods ... 247
Request Syntax ... 247
Request Parameters ... 247
Response Syntax ... 247
Response Elements ... 248
Errors ... 248
See Also ... 248
GetContainerAPIMetadata ... 250
Response Syntax ... 250
Response Elements ... 250
Errors ... 250
See Also ... 250
GetContainerImages ... 252
Request Syntax ... 252
Request Parameters ... 252
Response Syntax ... 252
Response Elements ... 252
Errors ... 253
See Also ... 253
GetContainerLog ... 254
Request Syntax ... 254
Request Parameters ... 254
Response Syntax ... 255
Response Elements ... 256
Errors ... 256
See Also ... 257
GetContainerServiceDeployments ... 258
Request Syntax ... 258
Request Parameters ... 258
Response Syntax ... 258
Response Elements ... 259
Errors ... 259
See Also ... 260
GetContainerServiceMetricData ... 261
Request Syntax ... 261
Request Parameters ... 261
Response Syntax ... 262
Response Elements ... 263
Errors ... 263
See Also ... 264
GetContainerServicePowers ... 265
Response Syntax ... 265
Response Elements ... 265
Errors ... 265
See Also ... 266
GetContainerServices ... 267
Request Syntax ... 267
Request Parameters ... 267
Response Syntax ... 267
Response Elements ... 269
Errors ... 269
See Also ... 269
GetDisk ... 271
Request Syntax ... 271
Request Parameters ... 271
Response Syntax ... 271
Response Elements ... 272
Errors ... 272
See Also ... 273
GetDisks ... 274
Request Syntax ... 274
Request Parameters ... 274
Response Syntax ... 274
Response Elements ... 275
Errors ... 275
See Also ... 276
GetDiskSnapshot ... 277
Request Syntax ... 277
Request Parameters ... 277
Response Syntax ... 277
Response Elements ... 278
Errors ... 278
See Also ... 279
GetDiskSnapshots ... 280
Request Syntax ... 280
Request Parameters ... 280
Response Syntax ... 280
Response Elements ... 281
Errors ... 281
See Also ... 282
GetDistributionBundles ... 283
Response Syntax ... 283
Response Elements ... 283
Errors ... 283
See Also ... 284
GetDistributionLatestCacheReset ... 285
Request Syntax ... 285
Request Parameters ... 285
Response Syntax ... 285
Response Elements ... 285
Errors ... 286
See Also ... 286
GetDistributionMetricData ... 288
Request Syntax ... 288
Request Parameters ... 288
Response Syntax ... 290
Response Elements ... 291
Errors ... 291
See Also ... 292
GetDistributions ... 293
Request Syntax ... 293
Request Parameters ... 293
Response Syntax ... 293
Response Elements ... 294
Errors ... 295
See Also ... 295
GetDomain ... 297
Request Syntax ... 297
Request Parameters ... 297
Response Syntax ... 297
Response Elements ... 298
Errors ... 298
See Also ... 299
GetDomains ... 300
Request Syntax ... 300
Request Parameters ... 300
Response Syntax ... 300
Response Elements ... 301
Errors ... 301
See Also ... 302
GetExportSnapshotRecords ... 303
Request Syntax ... 303
Request Parameters ... 303
Response Syntax ... 303
Response Elements ... 304
Errors ... 304
See Also ... 305
GetInstance ... 306
Request Syntax ... 306
Request Parameters ... 306
Response Syntax ... 306
Response Elements ... 308
Errors ... 308
See Also ... 309
GetInstanceAccessDetails ... 310
Request Syntax ... 310
Request Parameters ... 310
Response Syntax ... 310
Response Elements ... 311
Errors ... 311
See Also ... 312
GetInstanceMetricData ... 313
Request Syntax ... 313
Request Parameters ... 313
Response Syntax ... 316
Response Elements ... 316
Errors ... 316
See Also ... 317
GetInstancePortStates ... 318
Request Syntax ... 318
Request Parameters ... 318
Response Syntax ... 318
Response Elements ... 318
Errors ... 319
See Also ... 319
GetInstances ... 321
Request Syntax ... 321
Request Parameters ... 321
Response Syntax ... 321
Response Elements ... 323
Errors ... 323
Examples ... 324
See Also ... 327
GetInstanceSnapshot ... 328
Request Syntax ... 328
Request Parameters ... 328
Response Syntax ... 328
Response Elements ... 329
Errors ... 329
See Also ... 330
GetInstanceSnapshots ... 331
Request Syntax ... 331
Request Parameters ... 331
Response Syntax ... 331
Response Elements ... 332
Errors ... 333
See Also ... 333
GetInstanceState ... 335
Request Syntax ... 335
Request Parameters ... 335
Response Syntax ... 335
Response Elements ... 335
Errors ... 335
See Also ... 336
GetKeyPair ... 338
Request Syntax ... 338
Request Parameters ... 338
Response Syntax ... 338
Response Elements ... 338
Errors ... 339
See Also ... 339
GetKeyPairs ... 341
Request Syntax ... 341
Request Parameters ... 341
Response Syntax ... 341
Response Elements ... 342
Errors ... 342
See Also ... 343
GetLoadBalancer ... 344
Request Syntax ... 344
Request Parameters ... 344
Response Syntax ... 344
Response Elements ... 345
Errors ... 345
See Also ... 346
GetLoadBalancerMetricData ... 347
Request Syntax ... 347
Request Parameters ... 347
Response Syntax ... 350
Response Elements ... 350
Errors ... 351
See Also ... 351
GetLoadBalancers ... 353
Request Syntax ... 353
Request Parameters ... 353
Response Syntax ... 353
Response Elements ... 354
Errors ... 354
See Also ... 355
GetLoadBalancerTlsCertificates ... 356
Request Syntax ... 356
Request Parameters ... 356
Response Syntax ... 356
Response Elements ... 357
Errors ... 357
See Also ... 358
GetOperation ... 359
Request Syntax ... 359
Request Parameters ... 359
Response Syntax ... 359
Response Elements ... 359
Errors ... 360
See Also ... 360
GetOperations ... 362
Request Syntax ... 362
Request Parameters ... 362
Response Syntax ... 362
Response Elements ... 363
Errors ... 363
See Also ... 364
GetOperationsForResource ... 365
Request Syntax ... 365
Request Parameters ... 365
Response Syntax ... 365
Response Elements ... 366
Errors ... 366
See Also ... 367
GetRegions ... 368
Request Syntax ... 368
Request Parameters ... 368
Response Syntax ... 368
Response Elements ... 369
Errors ... 369
See Also ... 370
GetRelationalDatabase ... 371
Request Syntax ... 371
Request Parameters ... 371
Response Syntax ... 371
Response Elements ... 372
Errors ... 372
See Also ... 373
GetRelationalDatabaseBlueprints ... 374
Request Syntax ... 374
Request Parameters ... 374
Response Syntax ... 374
Response Elements ... 374
Errors ... 375
See Also ... 376
GetRelationalDatabaseBundles ... 377
Request Syntax ... 377
Request Parameters ... 377
Response Syntax ... 377
Response Elements ... 377
Errors ... 378
See Also ... 379
GetRelationalDatabaseEvents ... 380
Request Syntax ... 380
Request Parameters ... 380
Response Syntax ... 380
Response Elements ... 381
Errors ... 381
See Also ... 382
GetRelationalDatabaseLogEvents ... 383
Request Syntax ... 383
Request Parameters ... 383
Response Syntax ... 384
Response Elements ... 384
Errors ... 385
See Also ... 386
GetRelationalDatabaseLogStreams ... 387
Request Syntax ... 387
Request Parameters ... 387
Response Syntax ... 387
Response Elements ... 387
Errors ... 387
See Also ... 388
GetRelationalDatabaseMasterUserPassword ... 389
Request Syntax ... 389
Request Parameters ... 389
Response Syntax ... 389
Response Elements ... 389
Errors ... 390
See Also ... 391
GetRelationalDatabaseMetricData ... 392
Request Syntax ... 392
Request Parameters ... 392
Response Syntax ... 394
Response Elements ... 395
Errors ... 395
See Also ... 396
GetRelationalDatabaseParameters ... 397
Request Syntax ... 397
Request Parameters ... 397
Response Syntax ... 397
Response Elements ... 398
Errors ... 398
See Also ... 399
GetRelationalDatabases ... 400
Request Syntax ... 400
Request Parameters ... 400
Response Syntax ... 400
Response Elements ... 401
Errors ... 401
See Also ... 402
GetRelationalDatabaseSnapshot ... 404
Request Syntax ... 404
Request Parameters ... 404
Response Syntax ... 404
Response Elements ... 405
Errors ... 405
See Also ... 406
GetRelationalDatabaseSnapshots ... 407
Request Syntax ... 407
Request Parameters ... 407
Response Syntax ... 407
Response Elements ... 408
Errors ... 408
See Also ... 409
GetStaticIp ... 410
Request Syntax ... 410
Request Parameters ... 410
Response Syntax ... 410
Response Elements ... 410
Errors ... 411
See Also ... 411
GetStaticIps ... 413
Request Syntax ... 413
Request Parameters ... 413
Response Syntax ... 413
Response Elements ... 413
Errors ... 414
See Also ... 415
ImportKeyPair ... 416
Request Syntax ... 416
Request Parameters ... 416
Response Syntax ... 416
Response Elements ... 417
Errors ... 417
See Also ... 418
IsVpcPeered ... 419
Response Syntax ... 419
Response Elements ... 419
Errors ... 419
See Also ... 420
OpenInstancePublicPorts ... 421
Request Syntax ... 421
Request Parameters ... 421
Response Syntax ... 421
Response Elements ... 422
Errors ... 422
See Also ... 423
PeerVpc ... 424
Response Syntax ... 424
Response Elements ... 424
Errors ... 424
See Also ... 425
PutAlarm ... 426
Request Syntax ... 426
Request Parameters ... 426
Response Syntax ... 429
Response Elements ... 429
Errors ... 430
See Also ... 430
PutInstancePublicPorts ... 432
Request Syntax ... 432
Request Parameters ... 432
Response Syntax ... 432
Response Elements ... 433
Errors ... 433
See Also ... 434
RebootInstance ... 435
Request Syntax ... 435
Request Parameters ... 435
Response Syntax ... 435
Response Elements ... 436
Errors ... 436
See Also ... 437
RebootRelationalDatabase ... 438
Request Syntax ... 438
Request Parameters ... 438
Response Syntax ... 438
Response Elements ... 439
Errors ... 439
See Also ... 440
RegisterContainerImage ... 441
Request Syntax ... 441
Request Parameters ... 441
Response Syntax ... 442
Response Elements ... 442
Errors ... 442
See Also ... 443
ReleaseStaticIp ... 444
Request Syntax ... 444
Request Parameters ... 444
Response Syntax ... 444
Response Elements ... 444
Errors ... 445
See Also ... 445
ResetDistributionCache ... 447
Request Syntax ... 447
Request Parameters ... 447
Response Syntax ... 447
Response Elements ... 448
Errors ... 448
See Also ... 449
SendContactMethodVerification ... 450
Request Syntax ... 450
Request Parameters ... 450
Response Syntax ... 450
Response Elements ... 451
Errors ... 451
See Also ... 452
SetIpAddressType ... 453
Request Syntax ... 453
Request Parameters ... 453
Response Syntax ... 454
Response Elements ... 454
Errors ... 454
See Also ... 455
SetResourceAccessForBucket ... 456
Request Syntax ... 456
Request Parameters ... 456
Response Syntax ... 457
Response Elements ... 457
Errors ... 457
See Also ... 458
StartInstance ... 459
Request Syntax ... 459
Request Parameters ... 459
Response Syntax ... 459
Response Elements ... 460
Errors ... 460
See Also ... 461
StartRelationalDatabase ... 462
Request Syntax ... 462
Request Parameters ... 462
Response Syntax ... 462
Response Elements ... 463
Errors ... 463
See Also ... 464
StopInstance ... 465
Request Syntax ... 465
Request Parameters ... 465
Response Syntax ... 465
Response Elements ... 466
Errors ... 466
See Also ... 467
StopRelationalDatabase ... 468
Request Syntax ... 468
Request Parameters ... 468
Response Syntax ... 468
Response Elements ... 469
Errors ... 469
See Also ... 470
TagResource ... 471
Request Syntax ... 471
Request Parameters ... 471
Response Syntax ... 472
Response Elements ... 472
Errors ... 472
See Also ... 473
TestAlarm ... 474
Request Syntax ... 474
Request Parameters ... 474
Response Syntax ... 474
Response Elements ... 475
Errors ... 475
See Also ... 476
UnpeerVpc ... 477
Response Syntax ... 477
Response Elements ... 477
Errors ... 477
See Also ... 478
UntagResource ... 479
Request Syntax ... 479
Request Parameters ... 479
Response Syntax ... 479
Response Elements ... 480
Errors ... 480
See Also ... 481
UpdateBucket ... 482
Request Syntax ... 482
Request Parameters ... 482
Response Syntax ... 483
Response Elements ... 484
Errors ... 484
See Also ... 485
UpdateBucketBundle ... 486
Request Syntax ... 486
Request Parameters ... 486
Response Syntax ... 486
Response Elements ... 487
Errors ... 487
See Also ... 488
UpdateContainerService ... 489
Request Syntax ... 489
Request Parameters ... 489
Response Syntax ... 490
Response Elements ... 492
Errors ... 492
Examples ... 492
See Also ... 494
UpdateDistribution ... 495
Request Syntax ... 495
Request Parameters ... 495
Response Syntax ... 496
Response Elements ... 497
Errors ... 497
See Also ... 498
UpdateDistributionBundle ... 499
Request Syntax ... 499
Request Parameters ... 499
Response Syntax ... 499
Response Elements ... 500
Errors ... 500
See Also ... 501
UpdateDomainEntry ... 502
Request Syntax ... 502
Request Parameters ... 502
Response Syntax ... 502
Response Elements ... 503
Errors ... 503
See Also ... 504
UpdateLoadBalancerAttribute ... 505
Request Syntax ... 505
Request Parameters ... 505
Response Syntax ... 505
Response Elements ... 506
Errors ... 506
See Also ... 507
UpdateRelationalDatabase ... 508
Request Syntax ... 508
Request Parameters ... 508
Response Syntax ... 510
Response Elements ... 511
Errors ... 511
See Also ... 512
UpdateRelationalDatabaseParameters ... 513
Request Syntax ... 513
Request Parameters ... 513
Response Syntax ... 514
Response Elements ... 514
Errors ... 514
See Also ... 515
Data Types ... 516
AccessKey ... 519
Contents ... 519
See Also ... 520
AccessKeyLastUsed ... 521
Contents ... 521
See Also ... 521
AccessRules ... 522
Contents ... 522
See Also ... 522
AddOn ... 523
Contents ... 523
See Also ... 523
AddOnRequest ... 525
Contents ... 525
See Also ... 525
Alarm ... 526
Contents ... 526
See Also ... 529
AttachedDisk ... 530
Contents ... 530 See Also ... 530 AutoSnapshotAddOnRequest ... 531 Contents ... 531 See Also ... 531 AutoSnapshotDetails ... 532 Contents ... 532 See Also ... 532 AvailabilityZone ... 533 Contents ... 533 See Also ... 533 Blueprint ... 534 Contents ... 534 See Also ... 535 Bucket ... 537 Contents ... 537 See Also ... 539 BucketAccessLogConfig ... 540 Contents ... 540 See Also ... 540 BucketBundle ... 542 Contents ... 542 See Also ... 542 BucketState ... 544 Contents ... 544 See Also ... 544 Bundle ... 545 Contents ... 545 See Also ... 546 CacheBehavior ... 547 Contents ... 547 See Also ... 547 CacheBehaviorPerPath ... 548 Contents ... 548 See Also ... 549 CacheSettings ... 550 Contents ... 550 See Also ... 551 Certificate ... 552 Contents ... 552 See Also ... 555 CertificateSummary ... 556 Contents ... 556 See Also ... 556 CloudFormationStackRecord ... 557 Contents ... 557 See Also ... 558 CloudFormationStackRecordSourceInfo ... 559 Contents ... 559 See Also ... 559 ContactMethod ... 560 Contents ... 560 See Also ... 561 Container ... 562 Contents ... 562 See Also ... 562 ContainerImage ... 564
Contents ... 564 See Also ... 564 ContainerService ... 565 Contents ... 565 See Also ... 568 ContainerServiceDeployment ... 569 Contents ... 569 See Also ... 570 ContainerServiceDeploymentRequest ... 571 Contents ... 571 See Also ... 571 ContainerServiceEndpoint ... 572 Contents ... 572 See Also ... 572 ContainerServiceHealthCheckConfig ... 573 Contents ... 573 See Also ... 573 ContainerServiceLogEvent ... 575 Contents ... 575 See Also ... 575 ContainerServicePower ... 576 Contents ... 576 See Also ... 576 ContainerServiceRegistryLogin ... 578 Contents ... 578 See Also ... 578 ContainerServiceStateDetail ... 579 Contents ... 579 See Also ... 579 CookieObject ... 581 Contents ... 581 See Also ... 581 DestinationInfo ... 582 Contents ... 582 See Also ... 582 Disk ... 583 Contents ... 583 See Also ... 585 DiskInfo ... 586 Contents ... 586 See Also ... 586 DiskMap ... 587 Contents ... 587 See Also ... 587 DiskSnapshot ... 588 Contents ... 588 See Also ... 590 DiskSnapshotInfo ... 591 Contents ... 591 See Also ... 591 DistributionBundle ... 592 Contents ... 592 See Also ... 592 Domain ... 593 Contents ... 593 See Also ... 594 DomainEntry ... 595
Contents ... 595 See Also ... 596 DomainValidationRecord ... 597 Contents ... 597 See Also ... 597 EndpointRequest ... 598 Contents ... 598 See Also ... 598 ExportSnapshotRecord ... 599 Contents ... 599 See Also ... 600 ExportSnapshotRecordSourceInfo ... 601 Contents ... 601 See Also ... 602 HeaderObject ... 603 Contents ... 603 See Also ... 603 HostKeyAttributes ... 604 Contents ... 604 See Also ... 605 InputOrigin ... 606 Contents ... 606 See Also ... 606 Instance ... 607 Contents ... 607 See Also ... 610 InstanceAccessDetails ... 611 Contents ... 611 See Also ... 612 InstanceEntry ... 613 Contents ... 613 See Also ... 614 InstanceHardware ... 615 Contents ... 615 See Also ... 615 InstanceHealthSummary ... 616 Contents ... 616 See Also ... 617 InstanceNetworking ... 618 Contents ... 618 See Also ... 618 InstancePortInfo ... 619 Contents ... 619 See Also ... 621 InstancePortState ... 622 Contents ... 622 See Also ... 624 InstanceSnapshot ... 625 Contents ... 625 See Also ... 627 InstanceSnapshotInfo ... 628 Contents ... 628 See Also ... 628 InstanceState ... 629 Contents ... 629 See Also ... 629 KeyPair ... 630
Contents ... 630 See Also ... 631 LightsailDistribution ... 632 Contents ... 632 See Also ... 635 LoadBalancer ... 636 Contents ... 636 See Also ... 638 LoadBalancerTlsCertificate ... 639 Contents ... 639 See Also ... 643 LoadBalancerTlsCertificateDomainValidationOption ... 644 Contents ... 644 See Also ... 644 LoadBalancerTlsCertificateDomainValidationRecord ... 645 Contents ... 645 See Also ... 645 LoadBalancerTlsCertificateRenewalSummary ... 647 Contents ... 647 See Also ... 648 LoadBalancerTlsCertificateSummary ... 649 Contents ... 649 See Also ... 649 LogEvent ... 650 Contents ... 650 See Also ... 650 MetricDatapoint ... 651 Contents ... 651 See Also ... 652 MonitoredResourceInfo ... 653 Contents ... 653 See Also ... 653 MonthlyTransfer ... 654 Contents ... 654 See Also ... 654 Operation ... 655 Contents ... 655 See Also ... 657 Origin ... 658 Contents ... 658 See Also ... 658 PasswordData ... 660 Contents ... 660 See Also ... 660 PendingMaintenanceAction ... 661 Contents ... 661 See Also ... 661 PendingModifiedRelationalDatabaseValues ... 662 Contents ... 662 See Also ... 662 PortInfo ... 663 Contents ... 663 See Also ... 664 QueryStringObject ... 666 Contents ... 666 See Also ... 666 Region ... 667
Contents ... 667 See Also ... 667 RelationalDatabase ... 669 Contents ... 669 See Also ... 672 RelationalDatabaseBlueprint ... 673 Contents ... 673 See Also ... 673 RelationalDatabaseBundle ... 675 Contents ... 675 See Also ... 676 RelationalDatabaseEndpoint ... 677 Contents ... 677 See Also ... 677 RelationalDatabaseEvent ... 678 Contents ... 678 See Also ... 678 RelationalDatabaseHardware ... 679 Contents ... 679 See Also ... 679 RelationalDatabaseParameter ... 680 Contents ... 680 See Also ... 681 RelationalDatabaseSnapshot ... 682 Contents ... 682 See Also ... 684 RenewalSummary ... 685 Contents ... 685 See Also ... 685 ResourceLocation ... 687 Contents ... 687 See Also ... 687 ResourceReceivingAccess ... 688 Contents ... 688 See Also ... 688 ResourceRecord ... 689 Contents ... 689 See Also ... 689 StaticIp ... 690 Contents ... 690 See Also ... 691 Tag ... 692 Contents ... 692 See Also ... 692 Actions for object storage ... 693 Common Parameters ... 695 Common Errors ... 697
Welcome
Amazon Lightsail is the easiest way to get started with Amazon Web Services (AWS) for developers who need to build websites or web applications. It includes everything you need to launch your project quickly - instances (virtual private servers), container services, storage buckets, managed databases, SSD- based block storage, static IP addresses, load balancers, content delivery network (CDN) distributions, DNS management of registered domains, and resource snapshots (backups) - for a low, predictable monthly price.
You can manage your Lightsail resources using the Lightsail console, Lightsail API, AWS Command Line Interface (AWS CLI), or SDKs. For more information about Lightsail concepts and tasks, see the Amazon Lightsail Developer Guide.
This API Reference provides detailed information about the actions, data types, parameters, and errors of the Lightsail service. For more information about the supported AWS Regions, endpoints, and service quotas of the Lightsail service, see Amazon Lightsail Endpoints and Quotas in the AWS General Reference.
This document was last published on March 6, 2022.
Actions
The following actions are supported:
• AllocateStaticIp (p. 6)
• AttachCertificateToDistribution (p. 9)
• AttachDisk (p. 12)
• AttachInstancesToLoadBalancer (p. 15)
• AttachLoadBalancerTlsCertificate (p. 18)
• AttachStaticIp (p. 21)
• CloseInstancePublicPorts (p. 24)
• CopySnapshot (p. 27)
• CreateBucket (p. 33)
• CreateBucketAccessKey (p. 37)
• CreateCertificate (p. 40)
• CreateCloudFormationStack (p. 44)
• CreateContactMethod (p. 47)
• CreateContainerService (p. 50)
• CreateContainerServiceDeployment (p. 57)
• CreateContainerServiceRegistryLogin (p. 61)
• CreateDisk (p. 63)
• CreateDiskFromSnapshot (p. 67)
• CreateDiskSnapshot (p. 72)
• CreateDistribution (p. 76)
• CreateDomain (p. 81)
• CreateDomainEntry (p. 84)
• CreateInstances (p. 87)
• CreateInstancesFromSnapshot (p. 92)
• CreateInstanceSnapshot (p. 98)
• CreateKeyPair (p. 101)
• CreateLoadBalancer (p. 105)
• CreateLoadBalancerTlsCertificate (p. 109)
• CreateRelationalDatabase (p. 113)
• CreateRelationalDatabaseFromSnapshot (p. 119)
• CreateRelationalDatabaseSnapshot (p. 124)
• DeleteAlarm (p. 127)
• DeleteAutoSnapshot (p. 130)
• DeleteBucket (p. 133)
• DeleteBucketAccessKey (p. 136)
• DeleteCertificate (p. 139)
• DeleteContactMethod (p. 142)
• DeleteContainerImage (p. 145)
• DeleteContainerService (p. 147)
• DeleteDisk (p. 149)
• DeleteDiskSnapshot (p. 152)
• DeleteDistribution (p. 155)
• DeleteDomain (p. 158)
• DeleteDomainEntry (p. 161)
• DeleteInstance (p. 164)
• DeleteInstanceSnapshot (p. 167)
• DeleteKeyPair (p. 170)
• DeleteKnownHostKeys (p. 173)
• DeleteLoadBalancer (p. 176)
• DeleteLoadBalancerTlsCertificate (p. 179)
• DeleteRelationalDatabase (p. 182)
• DeleteRelationalDatabaseSnapshot (p. 185)
• DetachCertificateFromDistribution (p. 188)
• DetachDisk (p. 191)
• DetachInstancesFromLoadBalancer (p. 194)
• DetachStaticIp (p. 197)
• DisableAddOn (p. 200)
• DownloadDefaultKeyPair (p. 203)
• EnableAddOn (p. 205)
• ExportSnapshot (p. 208)
• GetActiveNames (p. 211)
• GetAlarms (p. 214)
• GetAutoSnapshots (p. 218)
• GetBlueprints (p. 221)
• GetBucketAccessKeys (p. 224)
• GetBucketBundles (p. 227)
• GetBucketMetricData (p. 229)
• GetBuckets (p. 233)
• GetBundles (p. 237)
• GetCertificates (p. 240)
• GetCloudFormationStackRecords (p. 244)
• GetContactMethods (p. 247)
• GetContainerAPIMetadata (p. 250)
• GetContainerImages (p. 252)
• GetContainerLog (p. 254)
• GetContainerServiceDeployments (p. 258)
• GetContainerServiceMetricData (p. 261)
• GetContainerServicePowers (p. 265)
• GetContainerServices (p. 267)
• GetDisk (p. 271)
• GetDisks (p. 274)
• GetDiskSnapshot (p. 277)
• GetDiskSnapshots (p. 280)
• GetDistributionBundles (p. 283)
• GetDistributionLatestCacheReset (p. 285)
• GetDistributionMetricData (p. 288)
• GetDistributions (p. 293)
• GetDomain (p. 297)
• GetDomains (p. 300)
• GetExportSnapshotRecords (p. 303)
• GetInstance (p. 306)
• GetInstanceAccessDetails (p. 310)
• GetInstanceMetricData (p. 313)
• GetInstancePortStates (p. 318)
• GetInstances (p. 321)
• GetInstanceSnapshot (p. 328)
• GetInstanceSnapshots (p. 331)
• GetInstanceState (p. 335)
• GetKeyPair (p. 338)
• GetKeyPairs (p. 341)
• GetLoadBalancer (p. 344)
• GetLoadBalancerMetricData (p. 347)
• GetLoadBalancers (p. 353)
• GetLoadBalancerTlsCertificates (p. 356)
• GetOperation (p. 359)
• GetOperations (p. 362)
• GetOperationsForResource (p. 365)
• GetRegions (p. 368)
• GetRelationalDatabase (p. 371)
• GetRelationalDatabaseBlueprints (p. 374)
• GetRelationalDatabaseBundles (p. 377)
• GetRelationalDatabaseEvents (p. 380)
• GetRelationalDatabaseLogEvents (p. 383)
• GetRelationalDatabaseLogStreams (p. 387)
• GetRelationalDatabaseMasterUserPassword (p. 389)
• GetRelationalDatabaseMetricData (p. 392)
• GetRelationalDatabaseParameters (p. 397)
• GetRelationalDatabases (p. 400)
• GetRelationalDatabaseSnapshot (p. 404)
• GetRelationalDatabaseSnapshots (p. 407)
• GetStaticIp (p. 410)
• GetStaticIps (p. 413)
• ImportKeyPair (p. 416)
• IsVpcPeered (p. 419)
• OpenInstancePublicPorts (p. 421)
• PeerVpc (p. 424)
• PutAlarm (p. 426)
• PutInstancePublicPorts (p. 432)
• RebootInstance (p. 435)
• RebootRelationalDatabase (p. 438)
• RegisterContainerImage (p. 441)
• ReleaseStaticIp (p. 444)
• ResetDistributionCache (p. 447)
• SendContactMethodVerification (p. 450)
• SetIpAddressType (p. 453)
• SetResourceAccessForBucket (p. 456)
• StartInstance (p. 459)
• StartRelationalDatabase (p. 462)
• StopInstance (p. 465)
• StopRelationalDatabase (p. 468)
• TagResource (p. 471)
• TestAlarm (p. 474)
• UnpeerVpc (p. 477)
• UntagResource (p. 479)
• UpdateBucket (p. 482)
• UpdateBucketBundle (p. 486)
• UpdateContainerService (p. 489)
• UpdateDistribution (p. 495)
• UpdateDistributionBundle (p. 499)
• UpdateDomainEntry (p. 502)
• UpdateLoadBalancerAttribute (p. 505)
• UpdateRelationalDatabase (p. 508)
• UpdateRelationalDatabaseParameters (p. 513)
AllocateStaticIp
AllocateStaticIp
Allocates a static IP address.
Request Syntax
{
"staticIpName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
staticIpName (p. 6)
The name of the static IP address.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
Response Syntax
{ "operations": [ {
"createdAt": number, "errorCode": "string", "errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string", "statusChangedAt": number }
] }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
Errors
operations (p. 6)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
Type: Array of Operation (p. 655) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400
AccountSetupInProgressException
Lightsail throws this exception when an account is still in the setup in progress state.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Note
Domain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
HTTP Status Code: 400 NotFoundException
Lightsail throws this exception when it cannot find a resource.
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
See Also
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachCertificateToDistribution
AttachCertificateToDistribution
Attaches an SSL/TLS certificate to your Amazon Lightsail content delivery network (CDN) distribution.
After the certificate is attached, your distribution accepts HTTPS traffic for all of the domains that are associated with the certificate.
Use the CreateCertificate action to create a certificate that you can attach to your distribution.
Important
Only certificates created in the us-east-1 AWS Region can be attached to Lightsail
distributions. Lightsail distributions are global resources that can reference an origin in any AWS Region, and distribute its content globally. However, all distributions are located in the us- east-1 Region.
Request Syntax
{
"certificateName": "string", "distributionName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
certificateName (p. 9)
The name of the certificate to attach to a distribution.
Only certificates with a status of ISSUED can be attached to a distribution.
Use the GetCertificates action to get a list of certificate names that you can specify.
Note
This is the name of the certificate resource type and is used only to reference the certificate in other API actions. It can be different than the domain name of the certificate. For
example, your certificate name might be WordPress-Blog-Certificate and the domain name of the certificate might be example.com.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
distributionName (p. 9)
The name of the distribution that the certificate will be attached to.
Use the GetDistributions action to get a list of distribution names that you can specify.
Type: String
Pattern: \w[\w\-]*\w
Response Syntax
Required: Yes
Response Syntax
{ "operation": {
"createdAt": number, "errorCode": "string", "errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string", "statusChangedAt": number }
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
operation (p. 10)
An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
Type: Operation (p. 655) object
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
NoteDomain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
See Also
HTTP Status Code: 400 NotFoundException
Lightsail throws this exception when it cannot find a resource.
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachDisk
AttachDisk
Attaches a block storage disk to a running or stopped Lightsail instance and exposes it to the instance with the specified disk name.
The attach disk operation supports tag-based access control via resource tags applied to the resource identified by disk name. For more information, see the Amazon Lightsail Developer Guide.
Request Syntax
{ "diskName": "string", "diskPath": "string", "instanceName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
diskName (p. 12)
The unique Lightsail disk name (e.g., my-disk).
Type: String
Pattern: \w[\w\-]*\w Required: Yes
diskPath (p. 12)
The disk path to expose to the instance (e.g., /dev/xvdf).
Type: String Pattern: .*\S.*
Required: Yes instanceName (p. 12)
The name of the Lightsail instance where you want to utilize the storage disk.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
Response Syntax
{ "operations": [
Response Elements
{
"createdAt": number, "errorCode": "string", "errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string", "statusChangedAt": number }
]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
operations (p. 12)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
Type: Array of Operation (p. 655) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400
AccountSetupInProgressException
Lightsail throws this exception when an account is still in the setup in progress state.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
NoteDomain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
HTTP Status Code: 400
See Also
NotFoundException
Lightsail throws this exception when it cannot find a resource.
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachInstancesToLoadBalancer
AttachInstancesToLoadBalancer
Attaches one or more Lightsail instances to a load balancer.
After some time, the instances are attached to the load balancer and the health check status is available.
The attach instances to load balancer operation supports tag-based access control via resource tags applied to the resource identified by load balancer name. For more information, see the Lightsail Developer Guide.
Request Syntax
{
"instanceNames": [ "string" ], "loadBalancerName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
instanceNames (p. 15)
An array of strings representing the instance name(s) you want to attach to your load balancer.
An instance must be running before you can attach it to your load balancer.
There are no additional limits on the number of instances you can attach to your load balancer, aside from the limit of Lightsail instances you can create in your account (20).
Type: Array of strings Pattern: \w[\w\-]*\w Required: Yes
loadBalancerName (p. 15)
The name of the load balancer.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
Response Syntax
{ "operations": [ {
"createdAt": number, "errorCode": "string",
Response Elements
"errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string", "statusChangedAt": number }
]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
operations (p. 15)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
Type: Array of Operation (p. 655) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400
AccountSetupInProgressException
Lightsail throws this exception when an account is still in the setup in progress state.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Note
Domain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
HTTP Status Code: 400 NotFoundException
Lightsail throws this exception when it cannot find a resource.
See Also
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachLoadBalancerTlsCertificate
AttachLoadBalancerTlsCertificate
Attaches a Transport Layer Security (TLS) certificate to your load balancer. TLS is just an updated, more secure version of Secure Socket Layer (SSL).
Once you create and validate your certificate, you can attach it to your load balancer. You can also use this API to rotate the certificates on your account. Use the AttachLoadBalancerTlsCertificate action with the non-attached certificate, and it will replace the existing one and become the attached certificate.
The AttachLoadBalancerTlsCertificate operation supports tag-based access control via resource tags applied to the resource identified by load balancer name. For more information, see the Amazon Lightsail Developer Guide.
Request Syntax
{ "certificateName": "string", "loadBalancerName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
certificateName (p. 18)
The name of your SSL/TLS certificate.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
loadBalancerName (p. 18)
The name of the load balancer to which you want to associate the SSL/TLS certificate.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
Response Syntax
{
"operations": [ {
"createdAt": number, "errorCode": "string", "errorDetails": "string",
Response Elements
"id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string", "statusChangedAt": number }
] }
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
operations (p. 18)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
These SSL/TLS certificates are only usable by Lightsail load balancers. You can't get the certificate and use it for another purpose.
Type: Array of Operation (p. 655) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400
AccountSetupInProgressException
Lightsail throws this exception when an account is still in the setup in progress state.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
NoteDomain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
HTTP Status Code: 400
See Also
NotFoundException
Lightsail throws this exception when it cannot find a resource.
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
AttachStaticIp
AttachStaticIp
Attaches a static IP address to a specific Amazon Lightsail instance.
Request Syntax
{ "instanceName": "string", "staticIpName": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
instanceName (p. 21)
The instance name to which you want to attach the static IP address.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
staticIpName (p. 21)
The name of the static IP.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
Response Syntax
{ "operations": [ {
"createdAt": number, "errorCode": "string", "errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {
"availabilityZone": "string", "regionName": "string"
},
"operationDetails": "string", "operationType": "string", "resourceName": "string", "resourceType": "string", "status": "string",
Response Elements
"statusChangedAt": number }
]}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
operations (p. 21)
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
Type: Array of Operation (p. 655) objects
Errors
For information about the errors that are common to all actions, see Common Errors (p. 697).
AccessDeniedException
Lightsail throws this exception when the user cannot be authenticated or uses invalid credentials to access a resource.
HTTP Status Code: 400
AccountSetupInProgressException
Lightsail throws this exception when an account is still in the setup in progress state.
HTTP Status Code: 400 InvalidInputException
Lightsail throws this exception when user input does not conform to the validation rules of an input field.
Note
Domain and distribution APIs are only available in the N. Virginia (us-east-1) AWS Region.
Please set your AWS Region configuration to us-east-1 to create, view, or edit these resources.
HTTP Status Code: 400 NotFoundException
Lightsail throws this exception when it cannot find a resource.
HTTP Status Code: 400 OperationFailureException
Lightsail throws this exception when an operation fails to execute.
HTTP Status Code: 400 ServiceException
A general service exception.
See Also
HTTP Status Code: 500 UnauthenticatedException
Lightsail throws this exception when the user has not been authenticated.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following:
• AWS Command Line Interface
• AWS SDK for .NET
• AWS SDK for C++
• AWS SDK for Go
• AWS SDK for Java V2
• AWS SDK for JavaScript
• AWS SDK for PHP V3
• AWS SDK for Python
• AWS SDK for Ruby V3
CloseInstancePublicPorts
CloseInstancePublicPorts
Closes ports for a specific Amazon Lightsail instance.
The CloseInstancePublicPorts action supports tag-based access control via resource tags applied to the resource identified by instanceName. For more information, see the Amazon Lightsail Developer Guide.
Request Syntax
{
"instanceName": "string", "portInfo": {
"cidrListAliases": [ "string" ], "cidrs": [ "string" ],
"fromPort": number, "ipv6Cidrs": [ "string" ], "protocol": "string", "toPort": number }}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters (p. 695).
The request accepts the following data in JSON format.
instanceName (p. 24)
The name of the instance for which to close ports.
Type: String
Pattern: \w[\w\-]*\w Required: Yes
portInfo (p. 24)
An object to describe the ports to close for the specified instance.
Type: PortInfo (p. 663) object Required: Yes
Response Syntax
{
"operation": {
"createdAt": number, "errorCode": "string", "errorDetails": "string", "id": "string",
"isTerminal": boolean, "location": {