Create
Create
client.IAM.PersonalClients.New(ctx, body) (*ClientPersonalClientClientSecretstringIAMPersonalClientNewResponse, error)
post/api/v1/iam/personal_clients
Create creates a new PersonalClient object for the current User.
Parameters
bodyAllowSourceCidrfieldDisplayNamefieldExpiresfieldScopedRolesfieldIAMPersonalClientNewParams
Returns
IAMPersonalClientNewResponsestruct
The PersonalClientServiceCreateResponse message contains the created personal client and client secret.
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"),
)
personalClient, err := client.IAM.PersonalClients.New(context.TODO(), conductoronesdk.IAMPersonalClientNewParams{
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", personalClient.Client)
}
200 Example
{
"client": {
"allowSourceCidr": [
"string"
],
"displayName": "displayName",
"expiresTime": "2019-12-27T18:11:19.117Z",
"scopedRoles": [
"string"
]
},
"clientSecret": "clientSecret"
}