Skip to main content

EnrollmentCert

Enrollment Cert resource for Zscaler Private Access V1.

Resource operations

This resource supports the following standard methods: create(), load(), update(), delete(). They operate on the instance state — set properties with dot notation, then call the method with no arguments. Any other action listed below is a custom action that takes explicit keyword arguments and returns a value.

Quick Start​

import zssdk
import logging

# Enable debug logging for EnrollmentCert
logging.getLogger('zssdk.zpa').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)

session = zssdk.Session(
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)

# Get a specific EnrollmentCert
resource = session.zpa.EnrollmentCert(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

create()​

Creates a new EnrollmentCert. Set properties on the resource instance, then call create() — this method takes no arguments.

Properties for creation:

NameTypeRequiredDescription
customer_idlongNo-
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
microtenant_idlongNo-
getc_namestringNo-
valid_from_in_epoch_seclongNo-
valid_to_in_epoch_seclongNo-
certificatestringYes-
issued_tostringNo-
issued_bystringNo-
serial_nostringNo-
descriptionstringNo-
namestringYes-
private_keystringNo-
zrsaencryptedprivatekeystringNo-
zrsaencryptedsessionkeystringNo-
allow_signingbooleanNo-
parent_cert_idlongNo-
parent_cert_namestringNo-
private_key_presentbooleanNo-
client_cert_typestringNo-
csrstringNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-

Returns: EnrollmentCert

Example:

resource = session.zpa.EnrollmentCert()
resource.certificate = "value"
resource.name = "example-name"
resource.create()
print(f"Created with ID: {resource.id}")

create_CSR_for_CA_cert()​

Parameters:

NameTypeRequiredDescription
customer_idlongNo-
namestringYes-
descriptionstringNo-

Returns: EnrollmentCert

Example:

resource = session.zpa.EnrollmentCert()
result = resource.create_CSR_for_CA_cert(name="example-name")
print(result)

create_self_signed_enrollment_cert()​

Parameters:

NameTypeRequiredDescription
customer_idlongNo-
namestringYes-
valid_from_in_epoch_seclongNo-
valid_to_in_epoch_seclongNo-
descriptionstringNo-
root_certificate_idstringNo-
microtenant_idlongNo-

Returns: EnrollmentCert

Example:

resource = session.zpa.EnrollmentCert()
result = resource.create_self_signed_enrollment_cert(name="example-name")
print(result)

delete()​

Deletes a EnrollmentCert by id. Only the id identifier is required; delete() takes no other arguments.

Example:

resource = session.zpa.EnrollmentCert(id="your-resource-id")
resource.delete()

load()​

Fetches an existing EnrollmentCert by id. Only the id identifier is required; load() takes no other arguments.

Returns: EnrollmentCert

Example:

resource = session.zpa.EnrollmentCert(id="your-resource-id")
resource.load()
print(resource.name)

update()​

Updates an existing EnrollmentCert. Call load() first, modify properties, then call update() — this method takes no arguments.

Properties for update:

NameTypeRequiredDescription
customer_idlongNo-
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
microtenant_idlongNo-
getc_namestringNo-
valid_from_in_epoch_seclongNo-
valid_to_in_epoch_seclongNo-
certificatestringYes-
issued_tostringNo-
issued_bystringNo-
serial_nostringNo-
descriptionstringNo-
namestringYes-
private_keystringNo-
zrsaencryptedprivatekeystringNo-
zrsaencryptedsessionkeystringNo-
allow_signingbooleanNo-
parent_cert_idlongNo-
parent_cert_namestringNo-
private_key_presentbooleanNo-
client_cert_typestringNo-
csrstringNo-
read_onlybooleanNo-
zscaler_managedbooleanNo-

Example:

resource = session.zpa.EnrollmentCert(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()

Attributes​

NameTypeRequiredDescription
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
microtenant_idlongNo-
getc_namestringNo-
valid_from_in_epoch_seclongNo-
valid_to_in_epoch_seclongNo-
certificatestringYes-
issued_tostringNo-
issued_bystringNo-
serial_nostringNo-
descriptionstringNo-
namestringYes-
private_keystringNo-
zrsaencryptedprivatekeystringNo-
zrsaencryptedsessionkeystringNo-
allow_signingbooleanNo-
parent_cert_idlongNo-
parent_cert_namestringNo-
private_key_presentbooleanNo-
client_cert_typestringNo-
csrstringNo-
read_onlybooleanNo-
store_in_hsmbooleanNo-
zscaler_managedbooleanNo-