Skip to main content

GlobalProtect Forwarding Profile Destination Models

Pydantic models for GlobalProtect forwarding profile destinations in Palo Alto Networks Strata Cloud Manager.

Model Hierarchy​

ModelPurpose
ForwardingProfileDestinationBaseModelCommon fields shared across all CRUD operations
ForwardingProfileDestinationCreateModelFields for creating new destinations
ForwardingProfileDestinationUpdateModelFields for updating destinations (adds optional id)
ForwardingProfileDestinationResponseModelFields returned by the API (adds id)

Base Model Attributes​

AttributeTypeRequiredDefaultDescription
namestrYesNoneDestination name (max 64 chars, pattern ^[0-9a-zA-Z._-]+$)
descriptionstrNoNoneDescription (max 1023 chars)
fqdnList[DestinationFqdnEntry]NoNoneFQDN entries
ip_addressesList[DestinationIpEntry]NoNoneIP address entries

Supporting Models​

DestinationFqdnEntry​

AttributeTypeRequiredDefaultDescription
namestrYesNoneFQDN (max 255 chars, wildcards * and at most one trailing $ supported)
portintNoNonePort number (1-65535)

DestinationIpEntry​

AttributeTypeRequiredDefaultDescription
namestrYesNoneIP address with wildcards and CIDR notation support
portintNoNonePort number (1-65535)

Usage Example​

from scm.models.mobile_agent.forwarding_profile_destinations import (
DestinationFqdnEntry,
DestinationIpEntry,
ForwardingProfileDestinationCreateModel,
)

destination = ForwardingProfileDestinationCreateModel(
name="internal-destinations",
description="Internal corporate destinations",
fqdn=[
DestinationFqdnEntry(name="*.example.com"),
DestinationFqdnEntry(name="intranet.example.com", port=8443),
],
ip_addresses=[
DestinationIpEntry(name="10.0.0.0/8"),
DestinationIpEntry(name="192.168.1.*", port=443),
],
)

payload = destination.model_dump(exclude_unset=True)