Skip to content
Start here

Memberships

List Memberships
client.Memberships.List(ctx, query) (*V4PagePaginationArray[Membership], error)
GET/memberships
Membership Details
client.Memberships.Get(ctx, membershipID) (*MembershipGetResponse, error)
GET/memberships/{membership_id}
Update Membership
client.Memberships.Update(ctx, membershipID, body) (*MembershipUpdateResponse, error)
PUT/memberships/{membership_id}
Delete Membership
client.Memberships.Delete(ctx, membershipID) (*MembershipDeleteResponse, error)
DELETE/memberships/{membership_id}
ModelsExpand Collapse
type Membership struct{…}
ID stringoptional

Membership identifier tag.

maxLength32
Account Accountoptional
APIAccessEnabled booloptional

Enterprise only. Indicates whether or not API access is enabled specifically for this user on a given account.

Permissions MembershipPermissionsoptional

All access permissions for the user at the account.

Analytics PermissionGrantoptional
Billing PermissionGrantoptional
CachePurge PermissionGrantoptional
DNS PermissionGrantoptional
DNSRecords PermissionGrantoptional
LB PermissionGrantoptional
Logs PermissionGrantoptional
Organization PermissionGrantoptional
SSL PermissionGrantoptional
WAF PermissionGrantoptional
ZoneSettings PermissionGrantoptional
Zones PermissionGrantoptional
Roles []stringoptional

List of role names the membership has for this account.

Status MembershipStatusoptional

Status of this membership.

One of the following:
const MembershipStatusAccepted MembershipStatus = "accepted"
const MembershipStatusPending MembershipStatus = "pending"
const MembershipStatusRejected MembershipStatus = "rejected"