Update
Update
client.Settings.Session.Update(ctx, body) (*SessionSettingsSessionSettingsSettingSessionUpdateResponse, error)
post/api/v1/settings/session
Invokes the c1.api.settings.v1.SessionSettingsService.Update method.
Parameters
bodySessionSettingsfieldUpdateMaskfieldSettingSessionUpdateParams
Returns
SettingSessionUpdateResponsestruct
The UpdateSessionSettingsResponse message.
Request example Go
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/-go"
"github.com/stainless-sdks/-go/option"
)
func main() {
client := conductoronesdk.NewClient(
option.WithAPIKey("My API Key"),
)
session, err := client.Settings.Session.Update(context.TODO(), conductoronesdk.SettingSessionUpdateParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", session.SessionSettings)
}
200 Example
{
"sessionSettings": {
"connectorSource": {
"enabled": true,
"sourceCidr": [
"string"
]
},
"maxSessionLength": "maxSessionLength",
"pccAdminSource": {
"enabled": true,
"sourceCidr": [
"string"
]
},
"pccUserSource": {
"enabled": true,
"sourceCidr": [
"string"
]
},
"ssoAdminSource": {
"enabled": true,
"sourceCidr": [
"string"
]
},
"ssoUserSource": {
"enabled": true,
"sourceCidr": [
"string"
]
}
}
}