Test Source IP
Test Source Ip
client.Settings.Session.TestSourceIP(ctx, body) (*AllowedboolCheckedIPstringDetailsSettingSessionTestSourceIPResponseDetailsSettingSessionTestSourceIPResponse, error)
post/api/v1/settings/session/test-source-ip
Invokes the c1.api.settings.v1.SessionSettingsService.TestSourceIP method.
Parameters
bodyAllowCidrfieldSourceIPfieldSettingSessionTestSourceIPParams
Returns
SettingSessionTestSourceIPResponsestruct
The TestSourceIPResponse 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"),
)
response, err := client.Settings.Session.TestSourceIP(context.TODO(), conductoronesdk.SettingSessionTestSourceIPParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", response.Allowed)
}
200 Example
{
"allowed": true,
"checkedIp": "checkedIp",
"details": {
"code": 0,
"details": [
{
"@type": "@type"
}
],
"message": "message"
}
}