123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758 |
- {
- "version": "1.0",
- "examples": {
- "CreateHttpNamespace": [
- {
- "input": {
- "CreatorRequestId": "example-creator-request-id-0001",
- "Description": "Example.com AWS Cloud Map HTTP Namespace",
- "Name": "example-http.com"
- },
- "output": {
- "OperationId": "httpvoqozuhfet5kzxoxg-a-response-example"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example creates an HTTP namespace.",
- "id": "createhttpnamespace-example-1590114811304",
- "title": "CreateHttpNamespace example"
- }
- ],
- "CreatePrivateDnsNamespace": [
- {
- "input": {
- "CreatorRequestId": "eedd6892-50f3-41b2-8af9-611d6e1d1a8c",
- "Name": "example.com",
- "Vpc": "vpc-1c56417b"
- },
- "output": {
- "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Create private DNS namespace",
- "id": "example-create-private-dns-namespace-1587058592930",
- "title": "Example: Create private DNS namespace"
- }
- ],
- "CreatePublicDnsNamespace": [
- {
- "input": {
- "CreatorRequestId": "example-creator-request-id-0003",
- "Description": "Example.com AWS Cloud Map Public DNS Namespace",
- "Name": "example-public-dns.com"
- },
- "output": {
- "OperationId": "dns2voqozuhfet5kzxoxg-a-response-example"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example creates a public namespace based on DNS.",
- "id": "createpublicdnsnamespace-example-1590114940910",
- "title": "CreatePublicDnsNamespace example"
- }
- ],
- "CreateService": [
- {
- "input": {
- "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25",
- "DnsConfig": {
- "DnsRecords": [
- {
- "TTL": 60,
- "Type": "A"
- }
- ],
- "NamespaceId": "ns-ylexjili4cdxy3xm",
- "RoutingPolicy": "MULTIVALUE"
- },
- "Name": "myservice",
- "NamespaceId": "ns-ylexjili4cdxy3xm"
- },
- "output": {
- "Service": {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita",
- "CreateDate": 1587081768.334,
- "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25",
- "DnsConfig": {
- "DnsRecords": [
- {
- "TTL": 60,
- "Type": "A"
- }
- ],
- "NamespaceId": "ns-ylexjili4cdxy3xm",
- "RoutingPolicy": "MULTIVALUE"
- },
- "Id": "srv-p5zdwlg5uvvzjita",
- "Name": "myservice",
- "NamespaceId": "ns-ylexjili4cdxy3xm"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Create service",
- "id": "example-create-service-1587235913584",
- "title": "Example: Create service"
- }
- ],
- "DeleteNamespace": [
- {
- "input": {
- "Id": "ns-ylexjili4cdxy3xm"
- },
- "output": {
- "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k98y6drk"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Delete namespace",
- "id": "example-delete-namespace-1587416093508",
- "title": "Example: Delete namespace"
- }
- ],
- "DeleteService": [
- {
- "input": {
- "Id": "srv-p5zdwlg5uvvzjita"
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Delete service",
- "id": "example-delete-service-1587416462902",
- "title": "Example: Delete service"
- }
- ],
- "DeregisterInstance": [
- {
- "input": {
- "InstanceId": "myservice-53",
- "ServiceId": "srv-p5zdwlg5uvvzjita"
- },
- "output": {
- "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k98rnaiq"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Deregister a service instance",
- "id": "example-deregister-a-service-instance-1587416305738",
- "title": "Example: Deregister a service instance"
- }
- ],
- "DiscoverInstances": [
- {
- "input": {
- "HealthStatus": "ALL",
- "MaxResults": 10,
- "NamespaceName": "example.com",
- "ServiceName": "myservice"
- },
- "output": {
- "Instances": [
- {
- "Attributes": {
- "AWS_INSTANCE_IPV4": "172.2.1.3",
- "AWS_INSTANCE_PORT": "808"
- },
- "HealthStatus": "UNKNOWN",
- "InstanceId": "myservice-53",
- "NamespaceName": "example.com",
- "ServiceName": "myservice"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Discover registered instances",
- "id": "example-discover-registered-instances-1587236343568",
- "title": "Example: Discover registered instances"
- }
- ],
- "DiscoverInstancesRevision": [
- {
- "input": {
- "NamespaceName": "example-namespace",
- "ServiceName": "example-service"
- },
- "output": {
- "InstancesRevision": 123456
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example discovers the revision ID for a registered instance.",
- "id": "to-discover-the-revision-for-a-registered-instance-1712867460953",
- "title": "To discover the revision for a registered instance"
- }
- ],
- "GetInstance": [
- {
- "input": {
- "InstanceId": "i-abcd1234",
- "ServiceId": "srv-e4anhexample0004"
- },
- "output": {
- "Instance": {
- "Attributes": {
- "AWS_INSTANCE_IPV4": "192.0.2.44",
- "AWS_INSTANCE_PORT": "80",
- "color": "green",
- "region": "us-west-2",
- "stage": "beta"
- },
- "Id": "i-abcd1234"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example gets information about a specified instance.",
- "id": "getinstance-example-1590115065598",
- "title": "GetInstance example"
- }
- ],
- "GetInstancesHealthStatus": [
- {
- "input": {
- "ServiceId": "srv-e4anhexample0004"
- },
- "output": {
- "Status": {
- "i-abcd1234": "HEALTHY",
- "i-abcd1235": "UNHEALTHY"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example gets the current health status of one or more instances that are associate with a specified service.",
- "id": "getinstanceshealthstatus-example-1590115176146",
- "title": "GetInstancesHealthStatus example"
- }
- ],
- "GetNamespace": [
- {
- "input": {
- "Id": "ns-e4anhexample0004"
- },
- "output": {
- "Namespace": {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-e1tpmexample0001",
- "CreateDate": "20181118T211712Z",
- "CreatorRequestId": "example-creator-request-id-0001",
- "Description": "Example.com AWS Cloud Map HTTP Namespace",
- "Id": "ns-e1tpmexample0001",
- "Name": "example-http.com",
- "Properties": {
- "DnsProperties": {
- },
- "HttpProperties": {
- "HttpName": "example-http.com"
- }
- },
- "Type": "HTTP"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example gets information about a specified namespace.",
- "id": "getnamespace-example-1590115383708",
- "title": "GetNamespace example"
- }
- ],
- "GetOperation": [
- {
- "input": {
- "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
- },
- "output": {
- "Operation": {
- "CreateDate": 1587055860.121,
- "Id": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd",
- "Status": "SUCCESS",
- "Targets": {
- "NAMESPACE": "ns-ylexjili4cdxy3xm"
- },
- "Type": "CREATE_NAMESPACE",
- "UpdateDate": 1587055900.469
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Get operation result",
- "id": "example-get-operation-result-1587073807124",
- "title": "Example: Get operation result"
- }
- ],
- "GetService": [
- {
- "input": {
- "Id": "srv-e4anhexample0004"
- },
- "output": {
- "Service": {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004",
- "CreateDate": "20181118T211707Z",
- "CreatorRequestId": "example-creator-request-id-0004",
- "Description": "Example.com AWS Cloud Map HTTP Service",
- "HealthCheckConfig": {
- "FailureThreshold": 3,
- "ResourcePath": "/",
- "Type": "HTTPS"
- },
- "Id": "srv-e4anhexample0004",
- "Name": "example-http-service",
- "NamespaceId": "ns-e4anhexample0004"
- }
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example gets the settings for a specified service.",
- "id": "getservice-example-1590117234294",
- "title": "GetService Example"
- }
- ],
- "ListInstances": [
- {
- "input": {
- "ServiceId": "srv-qzpwvt2tfqcegapy"
- },
- "output": {
- "Instances": [
- {
- "Attributes": {
- "AWS_INSTANCE_IPV4": "172.2.1.3",
- "AWS_INSTANCE_PORT": "808"
- },
- "Id": "i-06bdabbae60f65a4e"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: List service instances",
- "id": "example-list-service-instances-1587236237008",
- "title": "Example: List service instances"
- }
- ],
- "ListNamespaces": [
- {
- "input": {
- },
- "output": {
- "Namespaces": [
- {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-a3ccy2e7e3a7rile",
- "CreateDate": 1585354387.357,
- "Id": "ns-a3ccy2e7e3a7rile",
- "Name": "local",
- "Properties": {
- "DnsProperties": {
- "HostedZoneId": "Z06752353VBUDTC32S84S"
- },
- "HttpProperties": {
- "HttpName": "local"
- }
- },
- "Type": "DNS_PRIVATE"
- },
- {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-pocfyjtrsmwtvcxx",
- "CreateDate": 1586468974.698,
- "Description": "My second namespace",
- "Id": "ns-pocfyjtrsmwtvcxx",
- "Name": "My-second-namespace",
- "Properties": {
- "DnsProperties": {
- },
- "HttpProperties": {
- "HttpName": "My-second-namespace"
- }
- },
- "Type": "HTTP"
- },
- {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-ylexjili4cdxy3xm",
- "CreateDate": 1587055896.798,
- "Id": "ns-ylexjili4cdxy3xm",
- "Name": "example.com",
- "Properties": {
- "DnsProperties": {
- "HostedZoneId": "Z09983722P0QME1B3KC8I"
- },
- "HttpProperties": {
- "HttpName": "example.com"
- }
- },
- "Type": "DNS_PRIVATE"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: List namespaces",
- "id": "example-list-namespaces-1587401553154",
- "title": "Example: List namespaces"
- }
- ],
- "ListOperations": [
- {
- "input": {
- "Filters": [
- {
- "Condition": "IN",
- "Name": "STATUS",
- "Values": [
- "PENDING",
- "SUCCESS"
- ]
- }
- ]
- },
- "output": {
- "Operations": [
- {
- "Id": "76yy8ovhpdz0plmjzbsnqgnrqvpv2qdt-kexample",
- "Status": "SUCCESS"
- },
- {
- "Id": "prysnyzpji3u2ciy45nke83x2zanl7yk-dexample",
- "Status": "SUCCESS"
- },
- {
- "Id": "ko4ekftir7kzlbechsh7xvcdgcpk66gh-7example",
- "Status": "PENDING"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example gets the operations that have a STATUS of either PENDING or SUCCESS.",
- "id": "listoperations-example-1590117354396",
- "title": "ListOperations Example"
- }
- ],
- "ListServices": [
- {
- "input": {
- },
- "output": {
- "Services": [
- {
- "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita",
- "CreateDate": 1587081768.334,
- "DnsConfig": {
- "DnsRecords": [
- {
- "TTL": 60,
- "Type": "A"
- }
- ],
- "RoutingPolicy": "MULTIVALUE"
- },
- "Id": "srv-p5zdwlg5uvvzjita",
- "Name": "myservice"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: List services",
- "id": "example-list-services-1587236889840",
- "title": "Example: List services"
- }
- ],
- "ListTagsForResource": [
- {
- "input": {
- "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm"
- },
- "output": {
- "Tags": [
- {
- "Key": "Project",
- "Value": "Zeta"
- },
- {
- "Key": "Department",
- "Value": "Engineering"
- }
- ]
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example lists the tags of a resource.",
- "id": "listtagsforresource-example-1590093928416",
- "title": "ListTagsForResource example"
- }
- ],
- "RegisterInstance": [
- {
- "input": {
- "Attributes": {
- "AWS_INSTANCE_IPV4": "172.2.1.3",
- "AWS_INSTANCE_PORT": "808"
- },
- "CreatorRequestId": "7a48a98a-72e6-4849-bfa7-1a458e030d7b",
- "InstanceId": "myservice-53",
- "ServiceId": "srv-p5zdwlg5uvvzjita"
- },
- "output": {
- "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k95yg2u7"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "Example: Register Instance",
- "id": "example-register-instance-1587236116314",
- "title": "Example: Register Instance"
- }
- ],
- "TagResource": [
- {
- "input": {
- "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
- "Tags": [
- {
- "Key": "Department",
- "Value": "Engineering"
- },
- {
- "Key": "Project",
- "Value": "Zeta"
- }
- ]
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example adds \"Department\" and \"Project\" tags to a resource.",
- "id": "tagresource-example-1590093532240",
- "title": "TagResource example"
- }
- ],
- "UntagResource": [
- {
- "input": {
- "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
- "TagKeys": [
- "Project",
- "Department"
- ]
- },
- "output": {
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example removes the \"Department\" and \"Project\" tags from a resource.",
- "id": "untagresource-example-1590094024672",
- "title": "UntagResource example"
- }
- ],
- "UpdateHttpNamespace": [
- {
- "input": {
- "Id": "ns-vh4nbmEXAMPLE",
- "Namespace": {
- "Description": "The updated namespace description."
- }
- },
- "output": {
- "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example updates the description of a HTTP namespace.",
- "id": "to-update-a-http-namespace-17128EXAMPLE",
- "title": "To update a HTTP namespace"
- }
- ],
- "UpdateInstanceCustomHealthStatus": [
- {
- "input": {
- "InstanceId": "i-abcd1234",
- "ServiceId": "srv-e4anhexample0004",
- "Status": "HEALTHY"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example submits a request to change the health status of an instance associated with a service with a custom health check to HEALTHY.",
- "id": "updateinstancecustomhealthstatus-example-1590118408574",
- "title": "UpdateInstanceCustomHealthStatus Example"
- }
- ],
- "UpdatePrivateDnsNamespace": [
- {
- "input": {
- "Id": "ns-bk3aEXAMPLE",
- "Namespace": {
- "Description": "The updated namespace description."
- },
- "UpdaterRequestId": ""
- },
- "output": {
- "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example updates the description of a private DNS namespace.",
- "id": "to-update-a-private-dns-namespace-1712868389604",
- "title": "To update a private DNS namespace"
- },
- {
- "input": {
- "Id": "ns-bk3aEXAMPLE",
- "Namespace": {
- "Description": "The updated namespace description."
- },
- "UpdaterRequestId": ""
- },
- "output": {
- "OperationId": "ft52xe2koxhoeormaceymagglsdjEXAMPLE"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "The following example updates the description of a public DNS namespace.",
- "id": "to-update-a-public-dns-namespace-1712868389604",
- "title": "To update a public DNS namespace"
- }
- ],
- "UpdateService": [
- {
- "input": {
- "Id": "srv-e4anhexample0004",
- "Service": {
- "DnsConfig": {
- "DnsRecords": [
- {
- "TTL": 60,
- "Type": "A"
- }
- ]
- },
- "HealthCheckConfig": {
- "FailureThreshold": 2,
- "ResourcePath": "/",
- "Type": "HTTP"
- }
- }
- },
- "output": {
- "OperationId": "m35hsdrkxwjffm3xef4bxyy6vc3ewakx-jdn3y5g5"
- },
- "comments": {
- "input": {
- },
- "output": {
- }
- },
- "description": "This example submits a request to replace the DnsConfig and HealthCheckConfig settings of a specified service.",
- "id": "updateservice-example-1590117830880",
- "title": "UpdateService Example"
- }
- ]
- }
- }
|