EcProvUrl
Ec Prov Url resource for Zscaler Cloud & Branch Connector.
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 EcProvUrl
logging.getLogger('zssdk.ztw').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 EcProvUrl
resource = session.ztw.EcProvUrl(id="your-resource-id")
resource.load()
print(resource)
# Debug output shows HTTP request/response details
Identifiers
| Name | Type | Description |
|---|---|---|
id | string | Unique identifier |
Actions
change_prov_url_status()
Parameters:
| Name | Type | Required | Description |
|---|---|---|---|
status | string | Yes | - |
Example:
resource = session.ztw.EcProvUrl(id="your-resource-id")
result = resource.change_prov_url_status(status="value")
print(result)
create()
Creates a new EcProvUrl. Set properties on the resource instance, then call create() — this method takes no arguments.
Properties for creation:
| Name | Type | Required | Description |
|---|---|---|---|
desc | string | No | - |
last_mod_time | integer | No | - |
last_mod_uid | EntityReference | No | - |
name | string | Yes | - |
prov_url | string | No | - |
prov_url_data | EcProvUrlContent | No | - |
prov_url_type | string | No | - |
status | string | No | - |
used_in_ec_groups | EntityReferenceWrapperCollection | No | - |
Returns: EcProvUrl
Example:
resource = session.ztw.EcProvUrl()
resource.name = "example-name"
resource.create()
print(f"Created with ID: {resource.id}")
delete()
Deletes a EcProvUrl by id. Only the id identifier is required; delete() takes no other arguments.
Example:
resource = session.ztw.EcProvUrl(id="your-resource-id")
resource.delete()
load()
Fetches an existing EcProvUrl by id. Only the id identifier is required; load() takes no other arguments.
Returns: EcProvUrl
Example:
resource = session.ztw.EcProvUrl(id="your-resource-id")
resource.load()
print(resource.name)
update()
Updates an existing EcProvUrl. Call load() first, modify properties, then call update() — this method takes no arguments.
Properties for update:
| Name | Type | Required | Description |
|---|---|---|---|
desc | string | No | - |
last_mod_time | integer | No | - |
last_mod_uid | EntityReference | No | - |
name | string | Yes | - |
prov_url | string | No | - |
prov_url_data | EcProvUrlContent | No | - |
prov_url_type | string | No | - |
status | string | No | - |
used_in_ec_groups | EntityReferenceWrapperCollection | No | - |
Returns: EcProvUrl
Example:
resource = session.ztw.EcProvUrl(id="your-resource-id")
resource.load()
resource.name = "Updated value"
resource.update()
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
desc | string | No | - |
id | integer | Yes | - |
last_mod_time | integer | No | - |
last_mod_uid | EntityReference | No | - |
name | string | Yes | - |
prov_url | string | No | - |
prov_url_data | EcProvUrlContent | No | - |
prov_url_type | string | No | - |
status | string | No | - |
used_in_ec_groups | EntityReferenceWrapperCollection | No | - |
Related
- EcProvUrl - Data structure definition
- Logging guide - enable verbose logs while debugging this resource