Lists domain-verification records for the workspace.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.list_domains(workspace_key="<value>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.ListDomainsResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Creates a domain-verification challenge and returns the TXT record to add to DNS.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.create_domain(workspace_key="<value>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
domain |
Optional[str] |
➖ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.CreateDomainResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Permanently removes a domain-verification record.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
orq.workspace_security.delete_domain(workspace_key="<value>", domain_id="<id>")
# Use the SDK ...
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
domain_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Checks DNS for the expected TXT record and marks the domain as verified when it matches.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.verify_domain(workspace_key="<value>", domain_id="<id>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
domain_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.VerifyDomainResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Returns the workspace IP allowlist and the current caller IP when available.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.get_ip_allowlist(workspace_key="<value>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.GetIPAllowlistResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Updates the workspace-level allowlist switch. Every listed range applies while the allowlist is enabled.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.update_ip_allowlist(workspace_key="<value>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
enabled |
Optional[bool] |
➖ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.UpdateIPAllowlistResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Adds an IPv4 or IPv6 CIDR range to the workspace allowlist.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
res = orq.workspace_security.add_ip_range(workspace_key="<value>")
# Handle response
print(res)
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
cidr |
Optional[str] |
➖ |
N/A |
description |
Optional[str] |
➖ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
models.AddIPRangeResponse
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |
Permanently removes a CIDR range from the workspace allowlist.
from orq_ai_sdk import Orq
import os
with Orq(
api_key=os.getenv("ORQ_API_KEY", ""),
) as orq:
orq.workspace_security.delete_ip_range(workspace_key="<value>", range_id="<id>")
# Use the SDK ...
| Parameter |
Type |
Required |
Description |
workspace_key |
str |
✔️ |
N/A |
range_id |
str |
✔️ |
N/A |
retries |
Optional[utils.RetryConfig] |
➖ |
Configuration to override the default retry behavior of the client. |
| Error Type |
Status Code |
Content Type |
| models.APIDefaultError |
4XX, 5XX |
*/* |