Skip to content

Last updated: June 26, 2024

DQOps REST API timezones operations

Operations for returning time zone names and codes supported by DQOps.


get_available_zone_ids

Returns a list of available time zone ids

Follow the link to see the source code on GitHub.

GET

http://localhost:8888/api/timezones

Return value

 Property name   Description                       Data type 
string List[string]

Usage examples

Execution

curl http://localhost:8888/api/timezones^
    -H "Accept: application/json"
Expand to see the returned result
[ "sampleString_1", "sampleString_2", "sampleString_3" ]

Execution

from dqops import client
from dqops.client.api.timezones import get_available_zone_ids

dqops_client = client.Client(
    'http://localhost:8888/',
    raise_on_unexpected_status=True
)

call_result = get_available_zone_ids.sync(
    client=dqops_client
)
Expand to see the returned result
[
    'sampleString_1',
    'sampleString_2',
    'sampleString_3'
]

Execution

from dqops import client
from dqops.client.api.timezones import get_available_zone_ids

dqops_client = client.Client(
    'http://localhost:8888/',
    raise_on_unexpected_status=True
)

call_result = await get_available_zone_ids.asyncio(
    client=dqops_client
)
Expand to see the returned result
[
    'sampleString_1',
    'sampleString_2',
    'sampleString_3'
]

Execution

from dqops import client
from dqops.client.api.timezones import get_available_zone_ids

token = 's4mp13_4u7h_70k3n'

dqops_client = client.AuthenticatedClient(
    'http://localhost:8888/',
    token=token,
    raise_on_unexpected_status=True
)

call_result = get_available_zone_ids.sync(
    client=dqops_client
)
Expand to see the returned result
[
    'sampleString_1',
    'sampleString_2',
    'sampleString_3'
]

Execution

from dqops import client
from dqops.client.api.timezones import get_available_zone_ids

token = 's4mp13_4u7h_70k3n'

dqops_client = client.AuthenticatedClient(
    'http://localhost:8888/',
    token=token,
    raise_on_unexpected_status=True
)

call_result = await get_available_zone_ids.asyncio(
    client=dqops_client
)
Expand to see the returned result
[
    'sampleString_1',
    'sampleString_2',
    'sampleString_3'
]