servicediscovery-2017-03-14.examples.json 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758
  1. {
  2. "version": "1.0",
  3. "examples": {
  4. "CreateHttpNamespace": [
  5. {
  6. "input": {
  7. "CreatorRequestId": "example-creator-request-id-0001",
  8. "Description": "Example.com AWS Cloud Map HTTP Namespace",
  9. "Name": "example-http.com"
  10. },
  11. "output": {
  12. "OperationId": "httpvoqozuhfet5kzxoxg-a-response-example"
  13. },
  14. "comments": {
  15. "input": {
  16. },
  17. "output": {
  18. }
  19. },
  20. "description": "This example creates an HTTP namespace.",
  21. "id": "createhttpnamespace-example-1590114811304",
  22. "title": "CreateHttpNamespace example"
  23. }
  24. ],
  25. "CreatePrivateDnsNamespace": [
  26. {
  27. "input": {
  28. "CreatorRequestId": "eedd6892-50f3-41b2-8af9-611d6e1d1a8c",
  29. "Name": "example.com",
  30. "Vpc": "vpc-1c56417b"
  31. },
  32. "output": {
  33. "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
  34. },
  35. "comments": {
  36. "input": {
  37. },
  38. "output": {
  39. }
  40. },
  41. "description": "Example: Create private DNS namespace",
  42. "id": "example-create-private-dns-namespace-1587058592930",
  43. "title": "Example: Create private DNS namespace"
  44. }
  45. ],
  46. "CreatePublicDnsNamespace": [
  47. {
  48. "input": {
  49. "CreatorRequestId": "example-creator-request-id-0003",
  50. "Description": "Example.com AWS Cloud Map Public DNS Namespace",
  51. "Name": "example-public-dns.com"
  52. },
  53. "output": {
  54. "OperationId": "dns2voqozuhfet5kzxoxg-a-response-example"
  55. },
  56. "comments": {
  57. "input": {
  58. },
  59. "output": {
  60. }
  61. },
  62. "description": "This example creates a public namespace based on DNS.",
  63. "id": "createpublicdnsnamespace-example-1590114940910",
  64. "title": "CreatePublicDnsNamespace example"
  65. }
  66. ],
  67. "CreateService": [
  68. {
  69. "input": {
  70. "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25",
  71. "DnsConfig": {
  72. "DnsRecords": [
  73. {
  74. "TTL": 60,
  75. "Type": "A"
  76. }
  77. ],
  78. "NamespaceId": "ns-ylexjili4cdxy3xm",
  79. "RoutingPolicy": "MULTIVALUE"
  80. },
  81. "Name": "myservice",
  82. "NamespaceId": "ns-ylexjili4cdxy3xm"
  83. },
  84. "output": {
  85. "Service": {
  86. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita",
  87. "CreateDate": 1587081768.334,
  88. "CreatorRequestId": "567c1193-6b00-4308-bd57-ad38a8822d25",
  89. "DnsConfig": {
  90. "DnsRecords": [
  91. {
  92. "TTL": 60,
  93. "Type": "A"
  94. }
  95. ],
  96. "NamespaceId": "ns-ylexjili4cdxy3xm",
  97. "RoutingPolicy": "MULTIVALUE"
  98. },
  99. "Id": "srv-p5zdwlg5uvvzjita",
  100. "Name": "myservice",
  101. "NamespaceId": "ns-ylexjili4cdxy3xm"
  102. }
  103. },
  104. "comments": {
  105. "input": {
  106. },
  107. "output": {
  108. }
  109. },
  110. "description": "Example: Create service",
  111. "id": "example-create-service-1587235913584",
  112. "title": "Example: Create service"
  113. }
  114. ],
  115. "DeleteNamespace": [
  116. {
  117. "input": {
  118. "Id": "ns-ylexjili4cdxy3xm"
  119. },
  120. "output": {
  121. "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k98y6drk"
  122. },
  123. "comments": {
  124. "input": {
  125. },
  126. "output": {
  127. }
  128. },
  129. "description": "Example: Delete namespace",
  130. "id": "example-delete-namespace-1587416093508",
  131. "title": "Example: Delete namespace"
  132. }
  133. ],
  134. "DeleteService": [
  135. {
  136. "input": {
  137. "Id": "srv-p5zdwlg5uvvzjita"
  138. },
  139. "output": {
  140. },
  141. "comments": {
  142. "input": {
  143. },
  144. "output": {
  145. }
  146. },
  147. "description": "Example: Delete service",
  148. "id": "example-delete-service-1587416462902",
  149. "title": "Example: Delete service"
  150. }
  151. ],
  152. "DeregisterInstance": [
  153. {
  154. "input": {
  155. "InstanceId": "myservice-53",
  156. "ServiceId": "srv-p5zdwlg5uvvzjita"
  157. },
  158. "output": {
  159. "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k98rnaiq"
  160. },
  161. "comments": {
  162. "input": {
  163. },
  164. "output": {
  165. }
  166. },
  167. "description": "Example: Deregister a service instance",
  168. "id": "example-deregister-a-service-instance-1587416305738",
  169. "title": "Example: Deregister a service instance"
  170. }
  171. ],
  172. "DiscoverInstances": [
  173. {
  174. "input": {
  175. "HealthStatus": "ALL",
  176. "MaxResults": 10,
  177. "NamespaceName": "example.com",
  178. "ServiceName": "myservice"
  179. },
  180. "output": {
  181. "Instances": [
  182. {
  183. "Attributes": {
  184. "AWS_INSTANCE_IPV4": "172.2.1.3",
  185. "AWS_INSTANCE_PORT": "808"
  186. },
  187. "HealthStatus": "UNKNOWN",
  188. "InstanceId": "myservice-53",
  189. "NamespaceName": "example.com",
  190. "ServiceName": "myservice"
  191. }
  192. ]
  193. },
  194. "comments": {
  195. "input": {
  196. },
  197. "output": {
  198. }
  199. },
  200. "description": "Example: Discover registered instances",
  201. "id": "example-discover-registered-instances-1587236343568",
  202. "title": "Example: Discover registered instances"
  203. }
  204. ],
  205. "DiscoverInstancesRevision": [
  206. {
  207. "input": {
  208. "NamespaceName": "example-namespace",
  209. "ServiceName": "example-service"
  210. },
  211. "output": {
  212. "InstancesRevision": 123456
  213. },
  214. "comments": {
  215. "input": {
  216. },
  217. "output": {
  218. }
  219. },
  220. "description": "The following example discovers the revision ID for a registered instance.",
  221. "id": "to-discover-the-revision-for-a-registered-instance-1712867460953",
  222. "title": "To discover the revision for a registered instance"
  223. }
  224. ],
  225. "GetInstance": [
  226. {
  227. "input": {
  228. "InstanceId": "i-abcd1234",
  229. "ServiceId": "srv-e4anhexample0004"
  230. },
  231. "output": {
  232. "Instance": {
  233. "Attributes": {
  234. "AWS_INSTANCE_IPV4": "192.0.2.44",
  235. "AWS_INSTANCE_PORT": "80",
  236. "color": "green",
  237. "region": "us-west-2",
  238. "stage": "beta"
  239. },
  240. "Id": "i-abcd1234"
  241. }
  242. },
  243. "comments": {
  244. "input": {
  245. },
  246. "output": {
  247. }
  248. },
  249. "description": "This example gets information about a specified instance.",
  250. "id": "getinstance-example-1590115065598",
  251. "title": "GetInstance example"
  252. }
  253. ],
  254. "GetInstancesHealthStatus": [
  255. {
  256. "input": {
  257. "ServiceId": "srv-e4anhexample0004"
  258. },
  259. "output": {
  260. "Status": {
  261. "i-abcd1234": "HEALTHY",
  262. "i-abcd1235": "UNHEALTHY"
  263. }
  264. },
  265. "comments": {
  266. "input": {
  267. },
  268. "output": {
  269. }
  270. },
  271. "description": "This example gets the current health status of one or more instances that are associate with a specified service.",
  272. "id": "getinstanceshealthstatus-example-1590115176146",
  273. "title": "GetInstancesHealthStatus example"
  274. }
  275. ],
  276. "GetNamespace": [
  277. {
  278. "input": {
  279. "Id": "ns-e4anhexample0004"
  280. },
  281. "output": {
  282. "Namespace": {
  283. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-e1tpmexample0001",
  284. "CreateDate": "20181118T211712Z",
  285. "CreatorRequestId": "example-creator-request-id-0001",
  286. "Description": "Example.com AWS Cloud Map HTTP Namespace",
  287. "Id": "ns-e1tpmexample0001",
  288. "Name": "example-http.com",
  289. "Properties": {
  290. "DnsProperties": {
  291. },
  292. "HttpProperties": {
  293. "HttpName": "example-http.com"
  294. }
  295. },
  296. "Type": "HTTP"
  297. }
  298. },
  299. "comments": {
  300. "input": {
  301. },
  302. "output": {
  303. }
  304. },
  305. "description": "This example gets information about a specified namespace.",
  306. "id": "getnamespace-example-1590115383708",
  307. "title": "GetNamespace example"
  308. }
  309. ],
  310. "GetOperation": [
  311. {
  312. "input": {
  313. "OperationId": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd"
  314. },
  315. "output": {
  316. "Operation": {
  317. "CreateDate": 1587055860.121,
  318. "Id": "gv4g5meo7ndmeh4fqskygvk23d2fijwa-k9302yzd",
  319. "Status": "SUCCESS",
  320. "Targets": {
  321. "NAMESPACE": "ns-ylexjili4cdxy3xm"
  322. },
  323. "Type": "CREATE_NAMESPACE",
  324. "UpdateDate": 1587055900.469
  325. }
  326. },
  327. "comments": {
  328. "input": {
  329. },
  330. "output": {
  331. }
  332. },
  333. "description": "Example: Get operation result",
  334. "id": "example-get-operation-result-1587073807124",
  335. "title": "Example: Get operation result"
  336. }
  337. ],
  338. "GetService": [
  339. {
  340. "input": {
  341. "Id": "srv-e4anhexample0004"
  342. },
  343. "output": {
  344. "Service": {
  345. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-e4anhexample0004",
  346. "CreateDate": "20181118T211707Z",
  347. "CreatorRequestId": "example-creator-request-id-0004",
  348. "Description": "Example.com AWS Cloud Map HTTP Service",
  349. "HealthCheckConfig": {
  350. "FailureThreshold": 3,
  351. "ResourcePath": "/",
  352. "Type": "HTTPS"
  353. },
  354. "Id": "srv-e4anhexample0004",
  355. "Name": "example-http-service",
  356. "NamespaceId": "ns-e4anhexample0004"
  357. }
  358. },
  359. "comments": {
  360. "input": {
  361. },
  362. "output": {
  363. }
  364. },
  365. "description": "This example gets the settings for a specified service.",
  366. "id": "getservice-example-1590117234294",
  367. "title": "GetService Example"
  368. }
  369. ],
  370. "ListInstances": [
  371. {
  372. "input": {
  373. "ServiceId": "srv-qzpwvt2tfqcegapy"
  374. },
  375. "output": {
  376. "Instances": [
  377. {
  378. "Attributes": {
  379. "AWS_INSTANCE_IPV4": "172.2.1.3",
  380. "AWS_INSTANCE_PORT": "808"
  381. },
  382. "Id": "i-06bdabbae60f65a4e"
  383. }
  384. ]
  385. },
  386. "comments": {
  387. "input": {
  388. },
  389. "output": {
  390. }
  391. },
  392. "description": "Example: List service instances",
  393. "id": "example-list-service-instances-1587236237008",
  394. "title": "Example: List service instances"
  395. }
  396. ],
  397. "ListNamespaces": [
  398. {
  399. "input": {
  400. },
  401. "output": {
  402. "Namespaces": [
  403. {
  404. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-a3ccy2e7e3a7rile",
  405. "CreateDate": 1585354387.357,
  406. "Id": "ns-a3ccy2e7e3a7rile",
  407. "Name": "local",
  408. "Properties": {
  409. "DnsProperties": {
  410. "HostedZoneId": "Z06752353VBUDTC32S84S"
  411. },
  412. "HttpProperties": {
  413. "HttpName": "local"
  414. }
  415. },
  416. "Type": "DNS_PRIVATE"
  417. },
  418. {
  419. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-pocfyjtrsmwtvcxx",
  420. "CreateDate": 1586468974.698,
  421. "Description": "My second namespace",
  422. "Id": "ns-pocfyjtrsmwtvcxx",
  423. "Name": "My-second-namespace",
  424. "Properties": {
  425. "DnsProperties": {
  426. },
  427. "HttpProperties": {
  428. "HttpName": "My-second-namespace"
  429. }
  430. },
  431. "Type": "HTTP"
  432. },
  433. {
  434. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:namespace/ns-ylexjili4cdxy3xm",
  435. "CreateDate": 1587055896.798,
  436. "Id": "ns-ylexjili4cdxy3xm",
  437. "Name": "example.com",
  438. "Properties": {
  439. "DnsProperties": {
  440. "HostedZoneId": "Z09983722P0QME1B3KC8I"
  441. },
  442. "HttpProperties": {
  443. "HttpName": "example.com"
  444. }
  445. },
  446. "Type": "DNS_PRIVATE"
  447. }
  448. ]
  449. },
  450. "comments": {
  451. "input": {
  452. },
  453. "output": {
  454. }
  455. },
  456. "description": "Example: List namespaces",
  457. "id": "example-list-namespaces-1587401553154",
  458. "title": "Example: List namespaces"
  459. }
  460. ],
  461. "ListOperations": [
  462. {
  463. "input": {
  464. "Filters": [
  465. {
  466. "Condition": "IN",
  467. "Name": "STATUS",
  468. "Values": [
  469. "PENDING",
  470. "SUCCESS"
  471. ]
  472. }
  473. ]
  474. },
  475. "output": {
  476. "Operations": [
  477. {
  478. "Id": "76yy8ovhpdz0plmjzbsnqgnrqvpv2qdt-kexample",
  479. "Status": "SUCCESS"
  480. },
  481. {
  482. "Id": "prysnyzpji3u2ciy45nke83x2zanl7yk-dexample",
  483. "Status": "SUCCESS"
  484. },
  485. {
  486. "Id": "ko4ekftir7kzlbechsh7xvcdgcpk66gh-7example",
  487. "Status": "PENDING"
  488. }
  489. ]
  490. },
  491. "comments": {
  492. "input": {
  493. },
  494. "output": {
  495. }
  496. },
  497. "description": "This example gets the operations that have a STATUS of either PENDING or SUCCESS.",
  498. "id": "listoperations-example-1590117354396",
  499. "title": "ListOperations Example"
  500. }
  501. ],
  502. "ListServices": [
  503. {
  504. "input": {
  505. },
  506. "output": {
  507. "Services": [
  508. {
  509. "Arn": "arn:aws:servicediscovery:us-west-2:123456789012:service/srv-p5zdwlg5uvvzjita",
  510. "CreateDate": 1587081768.334,
  511. "DnsConfig": {
  512. "DnsRecords": [
  513. {
  514. "TTL": 60,
  515. "Type": "A"
  516. }
  517. ],
  518. "RoutingPolicy": "MULTIVALUE"
  519. },
  520. "Id": "srv-p5zdwlg5uvvzjita",
  521. "Name": "myservice"
  522. }
  523. ]
  524. },
  525. "comments": {
  526. "input": {
  527. },
  528. "output": {
  529. }
  530. },
  531. "description": "Example: List services",
  532. "id": "example-list-services-1587236889840",
  533. "title": "Example: List services"
  534. }
  535. ],
  536. "ListTagsForResource": [
  537. {
  538. "input": {
  539. "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm"
  540. },
  541. "output": {
  542. "Tags": [
  543. {
  544. "Key": "Project",
  545. "Value": "Zeta"
  546. },
  547. {
  548. "Key": "Department",
  549. "Value": "Engineering"
  550. }
  551. ]
  552. },
  553. "comments": {
  554. "input": {
  555. },
  556. "output": {
  557. }
  558. },
  559. "description": "This example lists the tags of a resource.",
  560. "id": "listtagsforresource-example-1590093928416",
  561. "title": "ListTagsForResource example"
  562. }
  563. ],
  564. "RegisterInstance": [
  565. {
  566. "input": {
  567. "Attributes": {
  568. "AWS_INSTANCE_IPV4": "172.2.1.3",
  569. "AWS_INSTANCE_PORT": "808"
  570. },
  571. "CreatorRequestId": "7a48a98a-72e6-4849-bfa7-1a458e030d7b",
  572. "InstanceId": "myservice-53",
  573. "ServiceId": "srv-p5zdwlg5uvvzjita"
  574. },
  575. "output": {
  576. "OperationId": "4yejorelbukcjzpnr6tlmrghsjwpngf4-k95yg2u7"
  577. },
  578. "comments": {
  579. "input": {
  580. },
  581. "output": {
  582. }
  583. },
  584. "description": "Example: Register Instance",
  585. "id": "example-register-instance-1587236116314",
  586. "title": "Example: Register Instance"
  587. }
  588. ],
  589. "TagResource": [
  590. {
  591. "input": {
  592. "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
  593. "Tags": [
  594. {
  595. "Key": "Department",
  596. "Value": "Engineering"
  597. },
  598. {
  599. "Key": "Project",
  600. "Value": "Zeta"
  601. }
  602. ]
  603. },
  604. "output": {
  605. },
  606. "comments": {
  607. "input": {
  608. },
  609. "output": {
  610. }
  611. },
  612. "description": "This example adds \"Department\" and \"Project\" tags to a resource.",
  613. "id": "tagresource-example-1590093532240",
  614. "title": "TagResource example"
  615. }
  616. ],
  617. "UntagResource": [
  618. {
  619. "input": {
  620. "ResourceARN": "arn:aws:servicediscovery:us-east-1:123456789012:namespace/ns-ylexjili4cdxy3xm",
  621. "TagKeys": [
  622. "Project",
  623. "Department"
  624. ]
  625. },
  626. "output": {
  627. },
  628. "comments": {
  629. "input": {
  630. },
  631. "output": {
  632. }
  633. },
  634. "description": "This example removes the \"Department\" and \"Project\" tags from a resource.",
  635. "id": "untagresource-example-1590094024672",
  636. "title": "UntagResource example"
  637. }
  638. ],
  639. "UpdateHttpNamespace": [
  640. {
  641. "input": {
  642. "Id": "ns-vh4nbmEXAMPLE",
  643. "Namespace": {
  644. "Description": "The updated namespace description."
  645. }
  646. },
  647. "output": {
  648. "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE"
  649. },
  650. "comments": {
  651. "input": {
  652. },
  653. "output": {
  654. }
  655. },
  656. "description": "The following example updates the description of a HTTP namespace.",
  657. "id": "to-update-a-http-namespace-17128EXAMPLE",
  658. "title": "To update a HTTP namespace"
  659. }
  660. ],
  661. "UpdateInstanceCustomHealthStatus": [
  662. {
  663. "input": {
  664. "InstanceId": "i-abcd1234",
  665. "ServiceId": "srv-e4anhexample0004",
  666. "Status": "HEALTHY"
  667. },
  668. "comments": {
  669. "input": {
  670. },
  671. "output": {
  672. }
  673. },
  674. "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.",
  675. "id": "updateinstancecustomhealthstatus-example-1590118408574",
  676. "title": "UpdateInstanceCustomHealthStatus Example"
  677. }
  678. ],
  679. "UpdatePrivateDnsNamespace": [
  680. {
  681. "input": {
  682. "Id": "ns-bk3aEXAMPLE",
  683. "Namespace": {
  684. "Description": "The updated namespace description."
  685. },
  686. "UpdaterRequestId": ""
  687. },
  688. "output": {
  689. "OperationId": "ft52xe2koxhoeormaceymagglsdjyvEXAMPLE"
  690. },
  691. "comments": {
  692. "input": {
  693. },
  694. "output": {
  695. }
  696. },
  697. "description": "The following example updates the description of a private DNS namespace.",
  698. "id": "to-update-a-private-dns-namespace-1712868389604",
  699. "title": "To update a private DNS namespace"
  700. },
  701. {
  702. "input": {
  703. "Id": "ns-bk3aEXAMPLE",
  704. "Namespace": {
  705. "Description": "The updated namespace description."
  706. },
  707. "UpdaterRequestId": ""
  708. },
  709. "output": {
  710. "OperationId": "ft52xe2koxhoeormaceymagglsdjEXAMPLE"
  711. },
  712. "comments": {
  713. "input": {
  714. },
  715. "output": {
  716. }
  717. },
  718. "description": "The following example updates the description of a public DNS namespace.",
  719. "id": "to-update-a-public-dns-namespace-1712868389604",
  720. "title": "To update a public DNS namespace"
  721. }
  722. ],
  723. "UpdateService": [
  724. {
  725. "input": {
  726. "Id": "srv-e4anhexample0004",
  727. "Service": {
  728. "DnsConfig": {
  729. "DnsRecords": [
  730. {
  731. "TTL": 60,
  732. "Type": "A"
  733. }
  734. ]
  735. },
  736. "HealthCheckConfig": {
  737. "FailureThreshold": 2,
  738. "ResourcePath": "/",
  739. "Type": "HTTP"
  740. }
  741. }
  742. },
  743. "output": {
  744. "OperationId": "m35hsdrkxwjffm3xef4bxyy6vc3ewakx-jdn3y5g5"
  745. },
  746. "comments": {
  747. "input": {
  748. },
  749. "output": {
  750. }
  751. },
  752. "description": "This example submits a request to replace the DnsConfig and HealthCheckConfig settings of a specified service.",
  753. "id": "updateservice-example-1590117830880",
  754. "title": "UpdateService Example"
  755. }
  756. ]
  757. }
  758. }