Authorizations
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
waap_advanced_rule_descriptor_list = client.waap.advanced_rules.list()
print(waap_advanced_rule_descriptor_list.version)
{
"version": "<string>",
"objects": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"attrs": [
{
"name": "<string>",
"type": "<string>",
"hint": "<string>",
"description": "<string>",
"args": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>"
}
]
}
]
}
]
}
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
waap_advanced_rule_descriptor_list = client.waap.advanced_rules.list()
print(waap_advanced_rule_descriptor_list.version)
{
"version": "<string>",
"objects": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>",
"attrs": [
{
"name": "<string>",
"type": "<string>",
"hint": "<string>",
"description": "<string>",
"args": [
{
"name": "<string>",
"type": "<string>",
"description": "<string>"
}
]
}
]
}
]
}
API key for authentication. Make sure to include the word apikey
, followed by a single space and then your token.
Example: apikey 1234$abcdef
Was this page helpful?