- URL:https://<root>/system/upgrades/config
- Operations:Update Configuration
- Required Capability: Default administrator role | Security and infrastructure | Servers
- Version Introduced:11.2
Description
The config resource returns the current node affinity and tolerations that are applied to the pods used by the upgrade job whenever an upgrade or update is performed. This resource also provides access to the Update Configuration operation, which is used to define or modify the pod placement policy.
Request parameters
Parameter | Details |
---|---|
f | The response format. The default format is html. Values: html | json | pjson |
Example usage
The following is a sample request URL used to access the config resource:
https://organization.domain.com/context/admin/system/upgrades/config?f=pjson
JSON Response example
{
"podPlacementPolicy":{
"nodeAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": {
"nodeSelectorTerms": [
{
"matchExpressions": [
{
"key": "upgrader",
"operator": "In",
"values": [
"true"
]
}
]
}
]
}
},
"tolerations": [
{
"effect": "NoSchedule",
"key": "upgrader",
"operator": "Equal",
"value": "true"
}
]
}
}