Skip to main content

GlobalProtect Global Settings Configuration Object

Manages the GlobalProtect global settings singleton (agent version and manual gateways) in Palo Alto Networks Strata Cloud Manager.

Class Overview

The GlobalSettings class inherits from BaseObject and provides access to the GlobalProtect global settings.

note

Global settings are a singleton configuration object with only GET and PUT operations. There is no create, delete, or list-of-many, and no query parameters - the configuration always exists for the tenant.

Methods

MethodDescriptionParametersReturn Type
get()Retrieves the global settingsNoneGlobalSettingsResponseModel
update()Updates the global settingsdata: Dict[str, Any]GlobalSettingsResponseModel
note

The API returns 200 OK with an empty body for update(); in that case the validated request payload is returned as the response model.

Model Attributes

AttributeTypeRequiredDefaultDescription
agent_versionstrNoNoneThe GlobalProtect agent version
manual_gatewayManualGatewayNoNoneManual gateway regions (use locations from infrastructure settings)

Exceptions

ExceptionHTTP CodeDescription
InvalidObjectError400Invalid settings data or format
MissingQueryParameterError400Empty configuration data on update
AuthenticationError401Authentication failed
ServerError500Internal server error

Basic Configuration

from scm.client import Scm

client = Scm(
client_id="your_client_id",
client_secret="your_client_secret",
tsg_id="your_tsg_id"
)

global_settings = client.global_settings

Methods

Get Global Settings

settings = client.global_settings.get()

print(f"Agent version: {settings.agent_version}")
if settings.manual_gateway and settings.manual_gateway.region:
for region in settings.manual_gateway.region:
print(f"Region: {region.name}, Locations: {region.locations}")

Update Global Settings

settings_config = {
"agent_version": "6.2.1",
"manual_gateway": {
"region": [
{
"name": "americas",
"locations": ["us-east-1", "us-west-201"],
}
]
},
}

updated = client.global_settings.update(settings_config)
print(f"Updated agent version: {updated.agent_version}")