from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
client_profile_templates = client.security.profile_templates.list()
print(client_profile_templates)
[
{
"id": 123,
"name": "<string>",
"description": "<string>",
"fields": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"field_type": "int",
"required": true,
"default": "<string>",
"validation_schema": {}
}
],
"base_template": 123,
"version": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"template_sifter": "<string>"
}
]
Get list of profile templates. Profile template is used as a template to create profile. Client receives only common and created for him profile templates.
from gcore import Gcore
client = Gcore(
api_key="My API Key",
)
client_profile_templates = client.security.profile_templates.list()
print(client_profile_templates)
[
{
"id": 123,
"name": "<string>",
"description": "<string>",
"fields": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"field_type": "int",
"required": true,
"default": "<string>",
"validation_schema": {}
}
],
"base_template": 123,
"version": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"created": "2023-11-07T05:31:56Z",
"template_sifter": "<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
The response is of type object[]
.
Was this page helpful?