Cloud Workload Security
Cloud Workload SecurityBasic Auth Credentials
List basic-auth credentials for an account
client.zeroTrust.cws.basicAuthCredentials.list(BasicAuthCredentialListParams { account_id, cursor, deployment_id, 4 more } params, RequestOptionsoptions?): CursorPagination<BasicAuthCredential { id, created_at, updated_at, username } >
GET/accounts/{account_id}/cws/basic-auth-credentials
Get a basic-auth credential by ID
client.zeroTrust.cws.basicAuthCredentials.get(stringcredentialID, BasicAuthCredentialGetParams { account_id } params, RequestOptionsoptions?): BasicAuthCredential { id, created_at, updated_at, username }
GET/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}
Create a basic-auth credential
client.zeroTrust.cws.basicAuthCredentials.create(BasicAuthCredentialCreateParams { account_id, username } params, RequestOptionsoptions?): BasicAuthCredential { id, created_at, updated_at, username }
POST/accounts/{account_id}/cws/basic-auth-credentials
Delete a basic-auth credential
client.zeroTrust.cws.basicAuthCredentials.delete(stringcredentialID, BasicAuthCredentialDeleteParams { account_id } params, RequestOptionsoptions?): BasicAuthCredentialDeleteResponse { id }
DELETE/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}
Cloud Workload SecurityBasic Auth CredentialsSecrets
List secrets for a basic-auth credential
client.zeroTrust.cws.basicAuthCredentials.secrets.list(stringcredentialID, SecretListParams { account_id, cursor, direction, 2 more } params, RequestOptionsoptions?): CursorPagination<BasicAuthSecret { id, created_at, expires_at } >
GET/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}/secrets
Get a basic-auth secret by ID
client.zeroTrust.cws.basicAuthCredentials.secrets.get(stringsecretID, SecretGetParams { account_id, credential_id } params, RequestOptionsoptions?): BasicAuthSecret { id, created_at, expires_at }
GET/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}/secrets/{secret_id}
Add a secret to a basic-auth credential
client.zeroTrust.cws.basicAuthCredentials.secrets.create(stringcredentialID, SecretCreateParams { account_id, password, expires_at } params, RequestOptionsoptions?): BasicAuthSecret { id, created_at, expires_at }
POST/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}/secrets
Delete a basic-auth secret
client.zeroTrust.cws.basicAuthCredentials.secrets.delete(stringsecretID, SecretDeleteParams { account_id, credential_id } params, RequestOptionsoptions?): SecretDeleteResponse { id }
DELETE/accounts/{account_id}/cws/basic-auth-credentials/{credential_id}/secrets/{secret_id}
Cloud Workload SecurityDeployments
List deployments
client.zeroTrust.cws.deployments.list(DeploymentListParams { account_id, cursor, direction, 3 more } params, RequestOptionsoptions?): CursorPagination<Deployment { id, basic_auth_credential_ids, created_at, 9 more } >
GET/accounts/{account_id}/cws/deployments
Get a deployment by ID
client.zeroTrust.cws.deployments.get(stringdeploymentID, DeploymentGetParams { account_id } params, RequestOptionsoptions?): Deployment { id, basic_auth_credential_ids, created_at, 9 more }
GET/accounts/{account_id}/cws/deployments/{deployment_id}
Create a new deployment
client.zeroTrust.cws.deployments.create(DeploymentCreateParams { account_id, basic_auth_credential_ids, default_mode, 7 more } params, RequestOptionsoptions?): Deployment { id, basic_auth_credential_ids, created_at, 9 more }
POST/accounts/{account_id}/cws/deployments
Update a deployment
client.zeroTrust.cws.deployments.update(stringdeploymentID, DeploymentUpdateParams { account_id, basic_auth_credential_ids, default_mode, 7 more } params, RequestOptionsoptions?): Deployment { id, basic_auth_credential_ids, created_at, 9 more }
PUT/accounts/{account_id}/cws/deployments/{deployment_id}
Delete a deployment
client.zeroTrust.cws.deployments.delete(stringdeploymentID, DeploymentDeleteParams { account_id } params, RequestOptionsoptions?): DeploymentDeleteResponse { id }
DELETE/accounts/{account_id}/cws/deployments/{deployment_id}
Cloud Workload SecurityDomain ACLs
List domain ACLs
client.zeroTrust.cws.domainACLs.list(DomainACLListParams { account_id, cursor, deployment_id, 4 more } params, RequestOptionsoptions?): CursorPagination<DomainACL { id, created_at, default_action, 3 more } >
GET/accounts/{account_id}/cws/domain-acls
Get a domain ACL by ID
client.zeroTrust.cws.domainACLs.get(stringdomainACLID, DomainACLGetParams { account_id } params, RequestOptionsoptions?): DomainACL { id, created_at, default_action, 3 more }
GET/accounts/{account_id}/cws/domain-acls/{domain_acl_id}
Create a new domain ACL
client.zeroTrust.cws.domainACLs.create(DomainACLCreateParams { account_id, default_action, entries, name } params, RequestOptionsoptions?): DomainACL { id, created_at, default_action, 3 more }
POST/accounts/{account_id}/cws/domain-acls
Update a domain ACL and replace its entries
client.zeroTrust.cws.domainACLs.update(stringdomainACLID, DomainACLUpdateParams { account_id, default_action, entries, name } params, RequestOptionsoptions?): DomainACL { id, created_at, default_action, 3 more }
PUT/accounts/{account_id}/cws/domain-acls/{domain_acl_id}
Delete a domain ACL
client.zeroTrust.cws.domainACLs.delete(stringdomainACLID, DomainACLDeleteParams { account_id } params, RequestOptionsoptions?): DomainACLDeleteResponse { id }
DELETE/accounts/{account_id}/cws/domain-acls/{domain_acl_id}
Cloud Workload SecurityPolicies
List policies
client.zeroTrust.cws.policies.list(PolicyListParams { account_id, cursor, direction, 5 more } params, RequestOptionsoptions?): CursorPagination<Policy { id, created_at, entrypoint, 7 more } >
GET/accounts/{account_id}/cws/policies
Get a policy by ID
client.zeroTrust.cws.policies.get(stringpolicyID, PolicyGetParams { account_id } params, RequestOptionsoptions?): Policy { id, created_at, entrypoint, 7 more }
GET/accounts/{account_id}/cws/policies/{policy_id}
Create a new policy
client.zeroTrust.cws.policies.create(PolicyCreateParams { account_id, entrypoint, name, 4 more } params, RequestOptionsoptions?): Policy { id, created_at, entrypoint, 7 more }
POST/accounts/{account_id}/cws/policies
Update a policy
client.zeroTrust.cws.policies.update(stringpolicyID, PolicyUpdateParams { account_id, entrypoint, name, 4 more } params, RequestOptionsoptions?): Policy { id, created_at, entrypoint, 7 more }
PUT/accounts/{account_id}/cws/policies/{policy_id}
Delete a policy
client.zeroTrust.cws.policies.delete(stringpolicyID, PolicyDeleteParams { account_id } params, RequestOptionsoptions?): PolicyDeleteResponse { id }
DELETE/accounts/{account_id}/cws/policies/{policy_id}
Cloud Workload SecurityPolicy Sets
List policy sets
client.zeroTrust.cws.policySets.list(PolicySetListParams { account_id, cursor, deployment_id, 4 more } params, RequestOptionsoptions?): CursorPagination<PolicySet { id, created_at, exclude_workload_ids, 6 more } >
GET/accounts/{account_id}/cws/policy-sets
Get a policy set by ID
client.zeroTrust.cws.policySets.get(stringpolicySetID, PolicySetGetParams { account_id } params, RequestOptionsoptions?): PolicySet { id, created_at, exclude_workload_ids, 6 more }
GET/accounts/{account_id}/cws/policy-sets/{policy_set_id}
Create a new policy set
client.zeroTrust.cws.policySets.create(PolicySetCreateParams { account_id, name, policies, 4 more } params, RequestOptionsoptions?): PolicySet { id, created_at, exclude_workload_ids, 6 more }
POST/accounts/{account_id}/cws/policy-sets
Update a policy set
client.zeroTrust.cws.policySets.update(stringpolicySetID, PolicySetUpdateParams { account_id, name, policies, 4 more } params, RequestOptionsoptions?): PolicySet { id, created_at, exclude_workload_ids, 6 more }
PUT/accounts/{account_id}/cws/policy-sets/{policy_set_id}
Delete a policy set
client.zeroTrust.cws.policySets.delete(stringpolicySetID, PolicySetDeleteParams { account_id } params, RequestOptionsoptions?): PolicySetDeleteResponse { id }
DELETE/accounts/{account_id}/cws/policy-sets/{policy_set_id}
Cloud Workload SecurityRego Metadata
List Rego metadata documents
client.zeroTrust.cws.regoMetadata.list(RegoMetadataListParams { account_id, cursor, direction, 4 more } params, RequestOptionsoptions?): CursorPagination<RegoMetadata { id, created_at, data, 3 more } >
GET/accounts/{account_id}/cws/rego-metadata
Get a rego metadata document by ID
client.zeroTrust.cws.regoMetadata.get(stringregoMetadataID, RegoMetadataGetParams { account_id } params, RequestOptionsoptions?): RegoMetadata { id, created_at, data, 3 more }
GET/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
Create a new rego metadata document
client.zeroTrust.cws.regoMetadata.create(RegoMetadataCreateParams { account_id, data, import_path, name } params, RequestOptionsoptions?): RegoMetadata { id, created_at, data, 3 more }
POST/accounts/{account_id}/cws/rego-metadata
Update a rego metadata document
client.zeroTrust.cws.regoMetadata.update(stringregoMetadataID, RegoMetadataUpdateParams { account_id, data, import_path, name } params, RequestOptionsoptions?): RegoMetadata { id, created_at, data, 3 more }
PUT/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
Delete a rego metadata document
client.zeroTrust.cws.regoMetadata.delete(stringregoMetadataID, RegoMetadataDeleteParams { account_id } params, RequestOptionsoptions?): RegoMetadataDeleteResponse { id }
DELETE/accounts/{account_id}/cws/rego-metadata/{rego_metadata_id}
Cloud Workload SecurityRego Modules
List Rego modules
client.zeroTrust.cws.regoModules.list(RegoModuleListParams { account_id, cursor, direction, 4 more } params, RequestOptionsoptions?): CursorPagination<RegoModule { id, created_at, name, 3 more } >
GET/accounts/{account_id}/cws/rego-modules
Get a Rego module by ID
client.zeroTrust.cws.regoModules.get(stringregoModuleID, RegoModuleGetParams { account_id } params, RequestOptionsoptions?): RegoModule { id, created_at, name, 3 more }
GET/accounts/{account_id}/cws/rego-modules/{rego_module_id}
Create a new Rego module
client.zeroTrust.cws.regoModules.create(RegoModuleCreateParams { account_id, name, rego_source } params, RequestOptionsoptions?): RegoModule { id, created_at, name, 3 more }
POST/accounts/{account_id}/cws/rego-modules
Update a Rego module
client.zeroTrust.cws.regoModules.update(stringregoModuleID, RegoModuleUpdateParams { account_id, name, rego_source } params, RequestOptionsoptions?): RegoModule { id, created_at, name, 3 more }
PUT/accounts/{account_id}/cws/rego-modules/{rego_module_id}
Delete a Rego module
client.zeroTrust.cws.regoModules.delete(stringregoModuleID, RegoModuleDeleteParams { account_id } params, RequestOptionsoptions?): RegoModuleDeleteResponse { id }
DELETE/accounts/{account_id}/cws/rego-modules/{rego_module_id}
Cloud Workload SecurityTenant 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}
Cloud Workload SecurityTenant 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
Cloud Workload SecurityWorkloads
List workloads
client.zeroTrust.cws.workloads.list(WorkloadListParams { account_id, cursor, direction, 4 more } params, RequestOptionsoptions?): CursorPagination<Workload { id, created_at, filter, 4 more } >
GET/accounts/{account_id}/cws/workloads
Get a workload by ID
client.zeroTrust.cws.workloads.get(stringworkloadID, WorkloadGetParams { account_id } params, RequestOptionsoptions?): Workload { id, created_at, filter, 4 more }
GET/accounts/{account_id}/cws/workloads/{workload_id}
Create a new workload
client.zeroTrust.cws.workloads.create(WorkloadCreateParams { account_id, filter, name, 2 more } params, RequestOptionsoptions?): Workload { id, created_at, filter, 4 more }
POST/accounts/{account_id}/cws/workloads
Update a workload
client.zeroTrust.cws.workloads.update(stringworkloadID, WorkloadUpdateParams { account_id, filter, name, 2 more } params, RequestOptionsoptions?): Workload { id, created_at, filter, 4 more }
PUT/accounts/{account_id}/cws/workloads/{workload_id}
Delete a workload
client.zeroTrust.cws.workloads.delete(stringworkloadID, WorkloadDeleteParams { account_id } params, RequestOptionsoptions?): WorkloadDeleteResponse { id }
DELETE/accounts/{account_id}/cws/workloads/{workload_id}