Organizations
User API tokens can list and create Organizations, but reading, updating, or deleting an Organization requires a Global API key and your registered email address. The cloudflare_organization Terraform resource therefore requires a Global API key for its full lifecycle.
See Organizations authentication limitations for credential compatibility by operation. Each endpoint’s Security section lists its supported authentication methods, with Accepted Permissions where applicable.
List organizations the user has access to
client.organizations.list(OrganizationListParams { id, containing, direction, 6 more } query?, RequestOptionsoptions?): SinglePage<Organization { id, create_time, meta, 3 more } >
GET/organizations
Get organization
client.organizations.get(stringorganizationID, RequestOptionsoptions?): Organization { id, create_time, meta, 3 more }
GET/organizations/{organization_id}
Create organization
client.organizations.create(OrganizationCreateParams { name, parent, profile } body, RequestOptionsoptions?): Organization { id, create_time, meta, 3 more }
POST/organizations
Update organization
client.organizations.update(stringorganizationID, OrganizationUpdateParams { name, parent_id } body, RequestOptionsoptions?): Organization { id, create_time, meta, 3 more }
PUT/organizations/{organization_id}
Delete organization
client.organizations.delete(stringorganizationID, RequestOptionsoptions?): OrganizationDeleteResponse { id }
DELETE/organizations/{organization_id}
OrganizationsOrganization Accounts
OrganizationsOrganization Profile
Get organization profile
client.organizations.organizationProfile.get(stringorganizationID, RequestOptionsoptions?): Result { business_address, business_email, business_name, 2 more }
GET/organizations/{organization_id}/profile
Modify organization profile.
client.organizations.organizationProfile.update(stringorganizationID, OrganizationProfileUpdateParams { business_address, business_email, business_name, 2 more } body, RequestOptionsoptions?): void
PUT/organizations/{organization_id}/profile
OrganizationsMembers
OrganizationsLogs
OrganizationsLogsAudit
Get organization audit logs (Version 2)
client.organizations.logs.audit.list(stringorganizationID, AuditListParams { before, since, id, 20 more } query, RequestOptionsoptions?): CursorPaginationAfter<AuditListResponse { id, action, actor, 3 more } >
GET/organizations/{organization_id}/logs/audit
Get resource change history from an organization audit log entry (Version 2)
client.organizations.logs.audit.history(stringid, AuditHistoryParams { organization_id, action_time, before, 4 more } params, RequestOptionsoptions?): AuditHistoryResponse { id, action, actor, 3 more }
GET/organizations/{organization_id}/logs/audit/{id}/history
OrganizationsBilling
OrganizationsBillingUsage
Get Organization Usage (Version 2, Alpha, Restricted)
client.organizations.billing.usage.get(stringorganizationID, UsageGetParams { from, to } query?, RequestOptionsoptions?): UsageGetResponse { ChargeCategory, ChargeDescription, ChargeFrequency, 33 more }
GET/organizations/{organization_id}/billable/usage