RiskProfile
Risk Profile resource for Zscaler Internet Access.
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.
Quick Start
import zssdk
import logging
# Enable debug logging for RiskProfile
logging.getLogger('zssdk.zia').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 RiskProfile
resource = session.zia.RiskProfile(id="your-resource-id")
resource.load()
print(resource)
# Debug output shows HTTP request/response details
Identifiers
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
create()
Creates a new RiskProfile. Set properties on the resource instance, then call create() — this method takes no arguments.
Properties for creation:
| Name | Type | Required | Description |
|---|---|---|---|
admin_audit_logs | string | No | - |
certifications | ValueEnumCollection | No | - |
create_time | integer | No | - |
custom_tags | CustomTagWrapperCollection | No | - |
data_breach | string | No | - |
data_encryption_in_transit | DataEncryptionInTransitEnumCollection | No | - |
dns_caa_policy | string | No | - |
domain_based_message_auth | string | No | - |
domain_keys_identified_mail | string | No | - |
evasive | string | No | - |
exclude_certificates | integer | No | - |
file_sharing | string | No | - |
http_security_headers | string | No | - |
id | integer | No | - |
last_mod_time | integer | No | - |
malware_scanning_for_content | string | No | - |
mfa_support | string | No | - |
modified_by | EntityReference | No | - |
password_strength | string | No | - |
poor_items_of_service | string | No | - |
profile_name | string | No | - |
profile_type | string | No | - |
remote_screen_sharing | string | No | - |
risk_index | int32Collection | No | - |
sender_policy_framework | string | No | - |
source_ip_restrictions | string | No | - |
ssl_cert_key_size | string | No | - |
ssl_cert_validity | string | No | - |
ssl_pinned | string | No | - |
status | string | No | - |
support_for_waf | string | No | - |
vulnerability | string | No | - |
vulnerability_disclosure | string | No | - |
vulnerable_to_heart_bleed | string | No | - |
vulnerable_to_log_jam | string | No | - |
vulnerable_to_poodle | string | No | - |
weak_cipher_support | string | No | - |
Returns: RiskProfile
Example:
resource = session.zia.RiskProfile()
resource.admin_audit_logs = "value"
resource.certifications = ["value"]
resource.create_time = 3600
resource.create()
print(f"Created with ID: {resource.id}")
delete()
Deletes a RiskProfile by id. Only the id identifier is required; delete() takes no other arguments.
Example:
resource = session.zia.RiskProfile(id="your-resource-id")
resource.delete()
load()
Fetches an existing RiskProfile by id. Only the id identifier is required; load() takes no other arguments.
Returns: RiskProfile
Example:
resource = session.zia.RiskProfile(id="your-resource-id")
resource.load()
print(resource.admin_audit_logs)
update()
Updates an existing RiskProfile. Call load() first, modify properties, then call update() — this method takes no arguments.
Properties for update:
| Name | Type | Required | Description |
|---|---|---|---|
admin_audit_logs | string | No | - |
certifications | ValueEnumCollection | No | - |
create_time | integer | No | - |
custom_tags | CustomTagWrapperCollection | No | - |
data_breach | string | No | - |
data_encryption_in_transit | DataEncryptionInTransitEnumCollection | No | - |
dns_caa_policy | string | No | - |
domain_based_message_auth | string | No | - |
domain_keys_identified_mail | string | No | - |
evasive | string | No | - |
exclude_certificates | integer | No | - |
file_sharing | string | No | - |
http_security_headers | string | No | - |
id | integer | Yes | - |
last_mod_time | integer | No | - |
malware_scanning_for_content | string | No | - |
mfa_support | string | No | - |
modified_by | EntityReference | No | - |
password_strength | string | No | - |
poor_items_of_service | string | No | - |
profile_name | string | No | - |
profile_type | string | No | - |
remote_screen_sharing | string | No | - |
risk_index | int32Collection | No | - |
sender_policy_framework | string | No | - |
source_ip_restrictions | string | No | - |
ssl_cert_key_size | string | No | - |
ssl_cert_validity | string | No | - |
ssl_pinned | string | No | - |
status | string | No | - |
support_for_waf | string | No | - |
vulnerability | string | No | - |
vulnerability_disclosure | string | No | - |
vulnerable_to_heart_bleed | string | No | - |
vulnerable_to_log_jam | string | No | - |
vulnerable_to_poodle | string | No | - |
weak_cipher_support | string | No | - |
Returns: RiskProfile
Example:
resource = session.zia.RiskProfile(id="your-resource-id")
resource.load()
resource.admin_audit_logs = "Updated value"
resource.update()
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
admin_audit_logs | string | No | - |
certifications | ValueEnumCollection | No | - |
create_time | integer | No | - |
custom_tags | CustomTagWrapperCollection | No | - |
data_breach | string | No | - |
data_encryption_in_transit | DataEncryptionInTransitEnumCollection | No | - |
dns_caa_policy | string | No | - |
domain_based_message_auth | string | No | - |
domain_keys_identified_mail | string | No | - |
evasive | string | No | - |
exclude_certificates | integer | No | - |
file_sharing | string | No | - |
http_security_headers | string | No | - |
id | integer | No | - |
last_mod_time | integer | No | - |
malware_scanning_for_content | string | No | - |
mfa_support | string | No | - |
modified_by | EntityReference | No | - |
password_strength | string | No | - |
poor_items_of_service | string | No | - |
profile_name | string | No | - |
profile_type | string | No | - |
remote_screen_sharing | string | No | - |
risk_index | int32Collection | No | - |
sender_policy_framework | string | No | - |
source_ip_restrictions | string | No | - |
ssl_cert_key_size | string | No | - |
ssl_cert_validity | string | No | - |
ssl_pinned | string | No | - |
status | string | No | - |
support_for_waf | string | No | - |
vulnerability | string | No | - |
vulnerability_disclosure | string | No | - |
vulnerable_to_heart_bleed | string | No | - |
vulnerable_to_log_jam | string | No | - |
vulnerable_to_poodle | string | No | - |
weak_cipher_support | string | No | - |
Related
- RiskProfile - Data structure definition
- Logging guide - enable verbose logs while debugging this resource