Skip to content
Start here

Tenant Structures

List tenant structures for an account
client.zeroTrust.cws.tenantStructures.list(TenantStructureListParams { account_id, cursor, direction, 4 more } params, RequestOptionsoptions?): CursorPagination<TenantStructure { id, application, created_at, 3 more } >
GET/accounts/{account_id}/cws/tenant-structures
Get a tenant structure by ID
client.zeroTrust.cws.tenantStructures.get(stringstructureID, TenantStructureGetParams { account_id } params, RequestOptionsoptions?): TenantStructure { id, application, created_at, 3 more }
GET/accounts/{account_id}/cws/tenant-structures/{structure_id}
Create a tenant structure
client.zeroTrust.cws.tenantStructures.create(TenantStructureCreateParams { account_id, application, name, import_path } params, RequestOptionsoptions?): TenantStructure { id, application, created_at, 3 more }
POST/accounts/{account_id}/cws/tenant-structures
Update a tenant structure
client.zeroTrust.cws.tenantStructures.update(stringstructureID, TenantStructureUpdateParams { account_id, application, name, import_path } params, RequestOptionsoptions?): TenantStructure { id, application, created_at, 3 more }
PUT/accounts/{account_id}/cws/tenant-structures/{structure_id}
Delete a tenant structure
client.zeroTrust.cws.tenantStructures.delete(stringstructureID, TenantStructureDeleteParams { account_id } params, RequestOptionsoptions?): TenantStructureDeleteResponse { id }
DELETE/accounts/{account_id}/cws/tenant-structures/{structure_id}
ModelsExpand Collapse
TenantStructure { id, application, created_at, 3 more }
id: string

Server-assigned UUID

formatuuid
application: "aws" | "cloudflare"

Platform this structure models. Immutable after creation; determines valid node kinds and identifier formats.

One of the following:
"aws"
"cloudflare"
created_at: string
formatdate-time
name: string

Human-readable name; unique per account

maxLength100
minLength1
updated_at: string
formatdate-time
import_path?: string

Optional unique Rego mount path in the form tenant... The application segment must match application; omitted when unmounted.

maxLength255
minLength1
TenantStructureDeleteResponse { id }
id: string
formatuuid

Tenant StructuresNodes

List nodes for a tenant structure
client.zeroTrust.cws.tenantStructures.nodes.list(stringstructureID, NodeListParams { account_id, cursor, direction, 6 more } params, RequestOptionsoptions?): CursorPagination<TenantStructureNode { id, created_at, native_id, 4 more } >
GET/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes
Get a tenant node by ID
client.zeroTrust.cws.tenantStructures.nodes.get(stringnodeID, NodeGetParams { account_id, structure_id } params, RequestOptionsoptions?): TenantStructureNode { id, created_at, native_id, 4 more }
GET/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes/{node_id}
Add a node to a tenant structure
client.zeroTrust.cws.tenantStructures.nodes.create(stringstructureID, NodeCreateParams { account_id, native_id, node_kind, 2 more } params, RequestOptionsoptions?): TenantStructureNode { id, created_at, native_id, 4 more }
POST/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes
Update a tenant node
client.zeroTrust.cws.tenantStructures.nodes.update(stringnodeID, NodeUpdateParams { account_id, structure_id, native_id, 3 more } params, RequestOptionsoptions?): TenantStructureNode { id, created_at, native_id, 4 more }
PUT/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes/{node_id}
Delete a tenant node
client.zeroTrust.cws.tenantStructures.nodes.delete(stringnodeID, NodeDeleteParams { account_id, structure_id } params, RequestOptionsoptions?): NodeDeleteResponse { id }
DELETE/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes/{node_id}
Apply a batch of tenant node mutations
client.zeroTrust.cws.tenantStructures.nodes.batch(stringstructureID, NodeBatchParams { account_id, creates, deletes, updates } params, RequestOptionsoptions?): NodeBatchResponse { created, deleted, updated }
POST/accounts/{account_id}/cws/tenant-structures/{structure_id}/nodes/batch
ModelsExpand Collapse
TenantStructureNode { id, created_at, native_id, 4 more }
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
native_id: string

Cloud-native identifier of this node, unique within the structure; the parent-reference target. Shape depends on the structure’s application. Immutable after create.

maxLength255
minLength1
node_kind: string

Position in the tree. Legal values depend on the structure’s application (aws: root/ou/account; cloudflare: org/account/zone). At most one root per structure. Immutable after create.

maxLength64
minLength1
updated_at: string
formatdate-time
name?: string

Display name (e.g. an OU or account name), mutable. Optional; empty by default.

maxLength100
parent?: string

Native ID of this node’s parent. Required for non-root nodes and omitted for the root. The parent must be in the same structure and able to contain this node kind.

maxLength255
NodeDeleteResponse { id }
id: string
formatuuid
NodeBatchResponse { created, deleted, updated }
created: Array<TenantStructureNode { id, created_at, native_id, 4 more } >
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
native_id: string

Cloud-native identifier of this node, unique within the structure; the parent-reference target. Shape depends on the structure’s application. Immutable after create.

maxLength255
minLength1
node_kind: string

Position in the tree. Legal values depend on the structure’s application (aws: root/ou/account; cloudflare: org/account/zone). At most one root per structure. Immutable after create.

maxLength64
minLength1
updated_at: string
formatdate-time
name?: string

Display name (e.g. an OU or account name), mutable. Optional; empty by default.

maxLength100
parent?: string

Native ID of this node’s parent. Required for non-root nodes and omitted for the root. The parent must be in the same structure and able to contain this node kind.

maxLength255
deleted: Array<Deleted>
id: string
formatuuid
updated: Array<TenantStructureNode { id, created_at, native_id, 4 more } >
id: string

Server-assigned UUID

formatuuid
created_at: string
formatdate-time
native_id: string

Cloud-native identifier of this node, unique within the structure; the parent-reference target. Shape depends on the structure’s application. Immutable after create.

maxLength255
minLength1
node_kind: string

Position in the tree. Legal values depend on the structure’s application (aws: root/ou/account; cloudflare: org/account/zone). At most one root per structure. Immutable after create.

maxLength64
minLength1
updated_at: string
formatdate-time
name?: string

Display name (e.g. an OU or account name), mutable. Optional; empty by default.

maxLength100
parent?: string

Native ID of this node’s parent. Required for non-root nodes and omitted for the root. The parent must be in the same structure and able to contain this node kind.

maxLength255