cloudenv / server /providers /aws /route53_api.md
Vishvam10
initial space commit
b404de3
|
Raw History Blame Contribute Delete
6.25 kB

Route53 Service API

Requests use CloudEnvAction: service, operation, and payload (boto3 parameters for the operation).

Operations are enforced by IAM as route53:<OperationName> (see adapter).

Operations

CreateHostedZone

Boto3 client method: create_hosted_zone

Other boto3 parameters (optional): DelegationSetId, HostedZoneConfig, VPC

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "CreateHostedZone",
  "payload": {
    "Name": "example-dnsname",
    "CallerReference": "example-nonce"
  }
}

GetHostedZone

Boto3 client method: get_hosted_zone

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "GetHostedZone",
  "payload": {
    "Id": "example-resourceid"
  }
}

DeleteHostedZone

Boto3 client method: delete_hosted_zone

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "DeleteHostedZone",
  "payload": {
    "Id": "example-resourceid"
  }
}

ListHostedZones

Boto3 client method: list_hosted_zones

Other boto3 parameters (optional): DelegationSetId, HostedZoneType, Marker, MaxItems

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ListHostedZones",
  "payload": {}
}

ListHostedZonesByName

Boto3 client method: list_hosted_zones_by_name

Other boto3 parameters (optional): DNSName, HostedZoneId, MaxItems

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ListHostedZonesByName",
  "payload": {}
}

UpdateHostedZoneComment

Boto3 client method: update_hosted_zone_comment

Other boto3 parameters (optional): Comment

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "UpdateHostedZoneComment",
  "payload": {
    "Id": "example-resourceid"
  }
}

ChangeResourceRecordSets

Boto3 client method: change_resource_record_sets

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ChangeResourceRecordSets",
  "payload": {
    "HostedZoneId": "example-resourceid",
    "ChangeBatch": {
      "Changes": [
        {
          "Action": "CREATE",
          "ResourceRecordSet": {
            "Name": "example-dnsname",
            "Type": "SOA"
          }
        }
      ]
    }
  }
}

ListResourceRecordSets

Boto3 client method: list_resource_record_sets

Other boto3 parameters (optional): MaxItems, StartRecordIdentifier, StartRecordName, StartRecordType

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ListResourceRecordSets",
  "payload": {
    "HostedZoneId": "example-resourceid"
  }
}

GetChange

Boto3 client method: get_change

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "GetChange",
  "payload": {
    "Id": "example-changeid"
  }
}

CreateHealthCheck

Boto3 client method: create_health_check

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "CreateHealthCheck",
  "payload": {
    "CallerReference": "example-healthchecknonce",
    "HealthCheckConfig": {
      "Type": "HTTP"
    }
  }
}

GetHealthCheck

Boto3 client method: get_health_check

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "GetHealthCheck",
  "payload": {
    "HealthCheckId": "example-healthcheckid"
  }
}

DeleteHealthCheck

Boto3 client method: delete_health_check

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "DeleteHealthCheck",
  "payload": {
    "HealthCheckId": "example-healthcheckid"
  }
}

ListHealthChecks

Boto3 client method: list_health_checks

Other boto3 parameters (optional): Marker, MaxItems

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ListHealthChecks",
  "payload": {}
}

UpdateHealthCheck

Boto3 client method: update_health_check

Other boto3 parameters (optional): AlarmIdentifier, ChildHealthChecks, Disabled, EnableSNI, FailureThreshold, FullyQualifiedDomainName, HealthCheckVersion, HealthThreshold, IPAddress, InsufficientDataHealthStatus, Inverted, Port, Regions, ResetElements, ResourcePath, SearchString

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "UpdateHealthCheck",
  "payload": {
    "HealthCheckId": "example-healthcheckid"
  }
}

ChangeTagsForResource

Boto3 client method: change_tags_for_resource

Other boto3 parameters (optional): AddTags, RemoveTagKeys

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ChangeTagsForResource",
  "payload": {
    "ResourceType": "healthcheck",
    "ResourceId": "example-tagresourceid"
  }
}

ListTagsForResource

Boto3 client method: list_tags_for_resource

curl -X POST http://localhost:8000/step \
  -H "Content-Type: application/json" \
  -d @- <<'EOF'
{
  "service": "route53",
  "operation": "ListTagsForResource",
  "payload": {
    "ResourceType": "healthcheck",
    "ResourceId": "example-tagresourceid"
  }
}