Skip to content
  • Auto
  • Light
  • Dark
Get Started

List

NOTE: Only shows personal clients for the current user.
client.IAM.PersonalClients.List(ctx) (*ListarrayNextPageTokenstringIAMPersonalClientListResponse, error)
get/api/v1/iam/personal_clients

Invokes the c1.api.iam.v1.PersonalClientService.List method.

Returns
IAMPersonalClientListResponsestruct

The PersonalClientServiceListResponse message.

Hide ParametersShow Parameters
Listarray
optional
[]IDstringAllowSourceCidrarrayClientIDstringCreatedAtTimeDeletedAtTimeDisplayNamestringExpiresTimeTimeLastUsedAtTimeScopedRolesarrayUpdatedAtTimeUserIDstringPersonalClient

The list field.

Hide ParametersShow Parameters
IDstring
optional

The unique ID of the personal client credential.

AllowSourceCidrarray
optional
[]string

If set, only allows the CIDRs in the array to use the credential.

ClientIDstring
optional

The clientID of the credential.

CreatedAtTime
optional
formatdate-time
DeletedAtTime
optional
formatdate-time
DisplayNamestring
optional

The display name of the personal client credential.

ExpiresTimeTime
optional
formatdate-time
LastUsedAtTime
optional
formatdate-time
ScopedRolesarray
optional
[]string

scoped_roles provides a list of IAM Roles that this OAuth2 Client's API permissions are reduced to. The permissions granted to OAuth2 Client are AND'ed against the owning User's own permissions.

UpdatedAtTime
optional
formatdate-time
UserIDstring
optional

The ID of the user that this credential is created for.

NextPageTokenstring
optional

The nextPageToken field.

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"),
  )
  personalClients, err := client.IAM.PersonalClients.List(context.TODO())
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", personalClients.List)
}
200 Example
{
  "list": [
    {
      "allowSourceCidr": [
        "string"
      ],
      "displayName": "displayName",
      "expiresTime": "2019-12-27T18:11:19.117Z",
      "scopedRoles": [
        "string"
      ]
    }
  ],
  "nextPageToken": "nextPageToken"
}