Skip to content

Latest commit

 

History

History
77 lines (47 loc) · 1.99 KB

File metadata and controls

77 lines (47 loc) · 1.99 KB

\NonHumanIdentitiesAPI

All URIs are relative to https://api.opal.dev/v1

Method HTTP request Description
GetNhis Get /non-human-identities

GetNhis

PaginatedResourcesList GetNhis(ctx).Cursor(cursor).PageSize(pageSize).Execute()

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/opalsecurity/opal-go"
)

func main() {
	cursor := "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw" // string | The pagination cursor value. (optional)
	pageSize := int32(200) // int32 | Number of results to return per page. Default is 200. (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.NonHumanIdentitiesAPI.GetNhis(context.Background()).Cursor(cursor).PageSize(pageSize).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `NonHumanIdentitiesAPI.GetNhis``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `GetNhis`: PaginatedResourcesList
	fmt.Fprintf(os.Stdout, "Response from `NonHumanIdentitiesAPI.GetNhis`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiGetNhisRequest struct via the builder pattern

Name Type Description Notes
cursor string The pagination cursor value.
pageSize int32 Number of results to return per page. Default is 200.

Return type

PaginatedResourcesList

Authorization

BearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]