Skip to main content

PostureProfile

Posture Profile resource for Zscaler Private Access.

Resource operations

This resource supports the following standard methods: load(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.

Quick Start​

import zssdk
import logging

# Enable debug logging for PostureProfile
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 PostureProfile
resource = session.zpa.PostureProfile(id="your-resource-id")
resource.load()
print(resource)

# Debug output shows HTTP request/response details

Identifiers​

NameTypeDescription
idstringUnique identifier

Actions​

load()​

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

Returns: PostureProfile

Example:

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

Attributes​

NameTypeRequiredDescription
idlongNo-
modified_timeintegerNo-
creation_timeintegerNo-
modified_bylongNo-
namestringYes-
posture_udidstringNo-
posture_typestringNo-
apply_to_machine_tunnel_enabledbooleanNo-
root_certstringNo-
crl_check_enabledbooleanNo-
non_exportable_private_key_enabledbooleanNo-
platformstringCollectionNo-
domainstringNo-
zscaler_customer_idlongNo-
zscaler_cloudstringNo-
master_customer_idstringNo-
name_without_trimstringNo-