from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
task_id_list = client.cloud.load_balancers.l7_policies.create(
project_id=0,
region_id=0,
action="REDIRECT_TO_URL",
listener_id="023f2e34-7806-443b-bfae-16c324569a3d",
)
print(task_id_list.tasks)
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
task_id_list = client.cloud.load_balancers.l7_policies.create(
project_id=0,
region_id=0,
action="REDIRECT_TO_URL",
listener_id="023f2e34-7806-443b-bfae-16c324569a3d",
)
print(task_id_list.tasks)
{
"tasks": [
"d478ae29-dedc-4869-82f0-96104425f565"
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
CreateL7Policy schema
List of created tasks
The response is of type object
.
Was this page helpful?