serverscom / serverscom.sc_api / 0.1.0 / module / sc_cloud_computing_flavors_info List of available flavors | "added in version" 1.0.0 of serverscom.sc_api" Authors: George Shuklin (@amarao) preview | supported by communityserverscom.sc_api.sc_cloud_computing_flavors_info (0.1.0) — module
Install with ansible-galaxy collection install serverscom.sc_api:==0.1.0
collections: - name: serverscom.sc_api version: 0.1.0
Return list of all available flavors.
- name: List all flavors sc_cloud_computing_flavors_info: token: '{{ sc_token }}' region_id: 0 register: flavors
- debug: var=flavors.cloud_flavors
token: description: - Token to use. - You can create token for you account in https://portal.servers.com in Profile -> Public API section. required: true type: str endpoint: default: https://api.servers.com/v1 description: - Endpoint to use to connect to API. - Do not change until specifically asked to do otherwise. type: str region_id: description: - Id of cloud computing region. - Use I(serverscom.sc_api.sc_cloud_computing_regions_info) module to retrive list of available regions. required: true type: int
api_url: description: URL for the failed request returned: on failure type: str cloud_flavors: contains: disk: description: - Disk size in GB for this flavor. type: int id: description: - Id of the flavor. type: str name: description: - Human-readable name of the flavor. type: str ram: description: - Memory size in MB for this flavor. type: int vcpus: description: - Number of CPU allocated for this flavor. type: int description: - List of available flavors for region. returned: on success type: complex status_code: description: Status code for the request returned: always type: int