settings
Update Portainer settings
Update Portainer settings. Access policy: administrator
put/settings
Request body
Example request
{
"AuthenticationMethod": 1,
"BlackListedLabels": [
{
"name": "name",
"value": "value"
}
],
"EdgeAgentCheckinInterval": 5,
"EnableEdgeComputeFeatures": true,
"HelmRepositoryURL": "https://charts.bitnami.com/bitnami",
"KubeconfigExpiry": "24h",
"KubectlShellImage": "portainer/kubectl-shell:latest",
"LDAPSettings": {
"AnonymousMode": true,
"AutoCreateUsers": true,
"GroupSearchSettings": [
{
"GroupAttribute": "member",
"GroupBaseDN": "dc=ldap,dc=domain,dc=tld",
"GroupFilter": "(objectClass=account"
}
],
"Password": "readonly-password",
"ReaderDN": "cn=readonly-account,dc=ldap,dc=domain,dc=tld",
"SearchSettings": [
{
"BaseDN": "dc=ldap,dc=domain,dc=tld",
"Filter": "(objectClass=account)",
"UserNameAttribute": "uid"
}
],
"StartTLS": true,
"TLSConfig": {
"TLS": true,
"TLSCACert": "/data/tls/ca.pem",
"TLSCert": "/data/tls/cert.pem",
"TLSKey": "/data/tls/key.pem"
},
"URL": "myldap.domain.tld:389"
},
"LogoURL": "https://mycompany.mydomain.tld/logo.png",
"SnapshotInterval": "5m",
"TemplatesURL": "https://raw.githubusercontent.com/portainer/templates/master/templates.json",
"UserSessionTimeout": "5m"
}Response
Success
Example response
{
"BlackListedLabels": [
{
"name": "name",
"value": "value"
}
],
"Edge": {
"CommandInterval": 5,
"PingInterval": 5,
"SnapshotInterval": 5
},
"EdgeAgentCheckinInterval": 5,
"HelmRepositoryURL": "https://charts.bitnami.com/bitnami",
"KubeconfigExpiry": "24h",
"KubectlShellImage": "portainer/kubectl-shell",
"LDAPSettings": {
"AnonymousMode": true,
"AutoCreateUsers": true,
"GroupSearchSettings": [
{
"GroupAttribute": "member",
"GroupBaseDN": "dc=ldap,dc=domain,dc=tld",
"GroupFilter": "(objectClass=account"
}
],
"Password": "readonly-password",
"ReaderDN": "cn=readonly-account,dc=ldap,dc=domain,dc=tld",
"SearchSettings": [
{
"BaseDN": "dc=ldap,dc=domain,dc=tld",
"Filter": "(objectClass=account)",
"UserNameAttribute": "uid"
}
],
"StartTLS": true,
"TLSConfig": {
"TLS": true,
"TLSCACert": "/data/tls/ca.pem",
"TLSCert": "/data/tls/cert.pem",
"TLSKey": "/data/tls/key.pem"
},
"URL": "myldap.domain.tld:389"
},
"LogoURL": "https://mycompany.mydomain.tld/logo.png",
"SnapshotInterval": "5m",
"TemplatesURL": "https://raw.githubusercontent.com/portainer/templates/master/templates.json",
"UserSessionTimeout": "5m"
}