You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
776 B
20 lines
776 B
---
|
|
|
|
- name: Get a list of available services
|
|
uri:
|
|
url: "https://{{ threescale_admin_hostname }}/admin/api/services.json?access_token={{ access_token }}"
|
|
validate_certs: no
|
|
register: response
|
|
|
|
- set_fact:
|
|
services: '{{ response.json|json_query(''services[*].service.system_name'') }}'
|
|
services_details: '{{ response.json|json_query(''services[].{"system_name": service.system_name, "id": service.id}'') }}'
|
|
|
|
- name: Get the list of existing applications
|
|
uri:
|
|
url: https://{{ threescale_admin_hostname }}/admin/api/applications.json?access_token={{ access_token|urlencode }}
|
|
validate_certs: no
|
|
register: response
|
|
|
|
- set_fact:
|
|
applications: '{{ response.json|json_query(''applications[*].application.name'') }}'
|
|
|