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_custom_page_set = client.waap.custom_page_sets.create(
name="x",
)
print(waap_custom_page_set.id){
"name": "<string>",
"id": 123,
"domains": [
123
],
"block": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"block_csrf": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"captcha": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>",
"error": "<string>"
},
"cookie_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
},
"handshake": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>"
},
"javascript_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
}
}Create a custom page set based on the provided data.
For any custom page type (block, block_csrf, etc) that is not provided the default page will be used.
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_custom_page_set = client.waap.custom_page_sets.create(
name="x",
)
print(waap_custom_page_set.id){
"name": "<string>",
"id": 123,
"domains": [
123
],
"block": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"block_csrf": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>"
},
"captcha": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>",
"text": "<string>",
"error": "<string>"
},
"cookie_disabled": {
"enabled": true,
"header": "<string>",
"text": "<string>"
},
"handshake": {
"enabled": true,
"logo": "<string>",
"header": "<string>",
"title": "<string>"
},
"javascript_disabled": {
"enabled": true,
"header": "<string>",
"text": "<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
Create a custom page set
Name of the custom page set
1 - 50List of domain IDs that are associated with this page set
The domain ID
Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Error message
10 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Successful Response
Name of the custom page set
1 - 50The ID of the custom page set
List of domain IDs that are associated with this page set
The domain ID
Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50The text to display in the body of the custom page
20 - 400Error message
10 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Show child attributes
Indicates whether the custom custom page is active or inactive
Supported image types are JPEG, PNG and JPG, size is limited to width 450px, height 130px. This should be a base 64 encoding of the full HTML img tag compatible image, with the header included.
The text to display in the header of the custom page
3 - 62The text to display in the title of the custom page
3 - 50Show child attributes
Indicates whether the custom custom page is active or inactive
The text to display in the header of the custom page
3 - 62The text to display in the body of the custom page
20 - 400Was this page helpful?