Retrieves countries information for all countries
cloudforce_one.threat_events.countries.list(CountryListParams**kwargs) -> CountryListResponse
GET/accounts/{account_id}/cloudforce-one/events/countries
Retrieves countries information for all countries
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
Accepted Permissions (at least one required)
Retrieves countries information for all countries
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
countries = client.cloudforce_one.threat_events.countries.list(
account_id="account_id",
)
print(countries)[
{
"result": [
{
"alpha3": "AF",
"name": "Afghanistan"
}
],
"success": "true"
}
]Returns Examples
[
{
"result": [
{
"alpha3": "AF",
"name": "Afghanistan"
}
],
"success": "true"
}
]