List Requests
cloudforce_one.requests.list(RequestListParams**kwargs) -> SyncSinglePage[ListItem]
POST/accounts/{account_id}/cloudforce-one/requests
List Requests
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Parameters
completed_after: Optional[Union[str, datetime]]
Retrieve requests completed after this time.
formatdate-time
completed_before: Optional[Union[str, datetime]]
Retrieve requests completed before this time.
formatdate-time
created_after: Optional[Union[str, datetime]]
Retrieve requests created after this time.
formatdate-time
List Requests
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_email=os.environ.get("CLOUDFLARE_EMAIL"), # This is the default and can be omitted
api_key=os.environ.get("CLOUDFLARE_API_KEY"), # This is the default and can be omitted
)
page = client.cloudforce_one.requests.list(
account_id="023e105f4ecef8ad9ca31a8372d0c353",
page=0,
per_page=10,
)
page = page.result[0]
print(page.id){
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"created": "2022-04-01T00:00:00Z",
"priority": "routine",
"request": "Victomology",
"summary": "DoS attack",
"tlp": "clear",
"updated": "2022-04-01T00:00:00Z",
"completed": "2024-01-01T00:00:00Z",
"message_tokens": 16,
"readable_id": "RFI-2022-000001",
"status": "open",
"tokens": 0
}
]
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": [
{
"id": "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
"created": "2022-04-01T00:00:00Z",
"priority": "routine",
"request": "Victomology",
"summary": "DoS attack",
"tlp": "clear",
"updated": "2022-04-01T00:00:00Z",
"completed": "2024-01-01T00:00:00Z",
"message_tokens": 16,
"readable_id": "RFI-2022-000001",
"status": "open",
"tokens": 0
}
]
}