UserPortalLinkBulk
User Portal Link Bulk resource for Zscaler Private Access V2.
Resource operations
This resource supports the following standard methods: create(). They operate on the instance state — set properties with dot notation, then call the method with no arguments.
Quick Start
import zssdk
from zssdk.zscore.config import Config
config = Config(api_version="v2")
import logging
# Enable debug logging for UserPortalLinkBulk
logging.getLogger('zssdk.zpa').setLevel(logging.DEBUG)
logging.basicConfig(level=logging.DEBUG)
session = zssdk.Session(
config=config,
vanity_domain="your-vanity-domain",
client_id="your-client-id",
client_secret="your-client-secret",
)
# Call create on UserPortalLinkBulk
resource = session.zpa.UserPortalLinkBulk()
result = resource.create(user_portal_links=[{"id": 3600, "modified_time": 3600, "creation_time": 3600, "modified_by": 3600}])
print(result)
# Debug output shows HTTP request/response details
Actions
create()
Creates a new UserPortalLinkBulk. Set properties on the resource instance, then call create() — this method takes no arguments.
Properties for creation:
| Name | Type | Required | Description |
|---|---|---|---|
customer_id | long | No | - |
microtenant_id | long | No | - |
user_portal_links | UserPortalLinkBaseWrapperCollection | Yes | - |
user_portals | UserPortalWrapperCollection | No | - |
Example:
resource = session.zpa.UserPortalLinkBulk()
resource.user_portal_links = [{"id": 3600, "modified_time": 3600, "creation_time": 3600, "modified_by": 3600}]
resource.create()
print(f"Created with ID: {resource.id}")
Attributes
| Name | Type | Required | Description |
|---|---|---|---|
user_portal_links | UserPortalLinkBaseWrapperCollection | Yes | - |
user_portals | UserPortalWrapperCollection | No | - |
microtenant_id | string | No | - |
Related
- UserPortalLinkBulk - Data structure definition
- Logging guide - enable verbose logs while debugging this resource