LocationsApi
LocationsApi
Method
HTTP request
Description
locations_find_by_region_id
Example
from __future__ import print_function
import time
import ionoscloud
from ionoscloud.rest import ApiException
# Defining the host is optional and defaults to https://api.ionos.com/cloudapi/v6
configuration = ionoscloud.Configuration(
host = 'https://api.ionos.com/cloudapi/v6',
)
# Example of configuring HTTP Basic Authorization
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
with ionoscloud.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = ionoscloud.LocationsApi(api_client)
region_id = 'region_id_example' # str | The unique ID of the region.
try:
# Get Locations within a Region
api_response = api_instance.locations_find_by_region_id(region_id)
print(api_response)
except ApiException as e:
print('Exception when calling LocationsApi.locations_find_by_region_id: %s\n' % e)Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
locations_find_by_region_id_and_id
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
locations_get
Example
Parameters
Name
Type
Description
Notes
Return type
Authorization
HTTP request headers
Last updated
Was this helpful?