Skip to main content

ManagedClusterTypesAPI

Use this API to implement managed cluster types functionality. With this functionality in place, administrators can modify and delete existing managed cluster types and create new ones.

All URIs are relative to https://sailpoint.api.identitynow.com

MethodHTTP requestDescription
create-managed-cluster-type-v1Post /managed-cluster-types/v1Create new managed cluster type
delete-managed-cluster-type-v1Delete /managed-cluster-types/v1/{id}Delete a managed cluster type
get-managed-cluster-type-v1Get /managed-cluster-types/v1/{id}Get a managed cluster type
get-managed-cluster-types-v1Get /managed-cluster-types/v1List managed cluster types
update-managed-cluster-type-v1Patch /managed-cluster-types/v1/{id}Update a managed cluster type

create-managed-cluster-type-v1

Create new managed cluster type Create a new Managed Cluster Type.

The API returns a result that includes the Managed Cluster Type ID

API Spec

Path Parameters

Other Parameters

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

NameTypeDescriptionNotes
managedclustertypeManagedclustertype

Return type

Managedclustertype

HTTP request headers

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

Example

package main

import (
"context"
"fmt"
"os"
"encoding/json"
v1 "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
sailpoint "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
)

func main() {
managedclustertype := []byte(``) // Managedclustertype |

var managedclustertype v1.Managedclustertype
if err := json.Unmarshal(managedclustertype, &managedclustertype); err != nil {
fmt.Println("Error:", err)
return
}


configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClusterTypesAPI.CreateManagedClusterTypeV1(context.Background()).Managedclustertype(managedclustertype).Execute()
//resp, r, err := apiClient.ManagedClusterTypesAPI.CreateManagedClusterTypeV1(context.Background()).Managedclustertype(managedclustertype).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.CreateManagedClusterTypeV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateManagedClusterTypeV1`: Managedclustertype
fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.CreateManagedClusterTypeV1`: %v\n", resp)
}

[Back to top]

delete-managed-cluster-type-v1

Delete a managed cluster type Delete an existing Managed Cluster Type.

API Spec

Path Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
idstringThe Managed Cluster Type ID

Other Parameters

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

NameTypeDescriptionNotes

Return type

(empty response body)

HTTP request headers

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

Example

package main

import (
"context"
"fmt"
"os"


sailpoint "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
)

func main() {
id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
r, err := apiClient.ManagedClusterTypesAPI.DeleteManagedClusterTypeV1(context.Background(), id).Execute()
//r, err := apiClient.ManagedClusterTypesAPI.DeleteManagedClusterTypeV1(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.DeleteManagedClusterTypeV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}

}

[Back to top]

get-managed-cluster-type-v1

Get a managed cluster type Get a Managed Cluster Type.

API Spec

Path Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
idstringThe Managed Cluster Type ID

Other Parameters

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

NameTypeDescriptionNotes

Return type

Managedclustertype

HTTP request headers

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

Example

package main

import (
"context"
"fmt"
"os"


sailpoint "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
)

func main() {
id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClusterTypesAPI.GetManagedClusterTypeV1(context.Background(), id).Execute()
//resp, r, err := apiClient.ManagedClusterTypesAPI.GetManagedClusterTypeV1(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypeV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetManagedClusterTypeV1`: Managedclustertype
fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypeV1`: %v\n", resp)
}

[Back to top]

get-managed-cluster-types-v1

List managed cluster types Get a list of Managed Cluster Types.

API Spec

Path Parameters

Other Parameters

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

NameTypeDescriptionNotes
type_stringType descriptor
podstringPinned pod (or default)
orgstringPinned org (or default)
offsetint32Offset into the full result set. Usually specified with limit to paginate through the results. See V3 API Standard Collection Parameters for more information.[default to 0]
limitint32Max number of results to return. See V3 API Standard Collection Parameters for more information.[default to 250]

Return type

[]Managedclustertype

HTTP request headers

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

Example

package main

import (
"context"
"fmt"
"os"


sailpoint "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
)

func main() {
type_ := `IDN` // string | Type descriptor (optional) # string | Type descriptor (optional)
pod := `megapod-useast1` // string | Pinned pod (or default) (optional) # string | Pinned pod (or default) (optional)
org := `denali-xyz` // string | Pinned org (or default) (optional) # string | Pinned org (or default) (optional)
offset := 0 // int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0) # int32 | Offset into the full result set. Usually specified with *limit* to paginate through the results. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 0)
limit := 250 // int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250) # int32 | Max number of results to return. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to 250)



configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClusterTypesAPI.GetManagedClusterTypesV1(context.Background()).Execute()
//resp, r, err := apiClient.ManagedClusterTypesAPI.GetManagedClusterTypesV1(context.Background()).Type_(type_).Pod(pod).Org(org).Offset(offset).Limit(limit).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.GetManagedClusterTypesV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetManagedClusterTypesV1`: []Managedclustertype
fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.GetManagedClusterTypesV1`: %v\n", resp)
}

[Back to top]

update-managed-cluster-type-v1

Update a managed cluster type Update an existing Managed Cluster Type.

API Spec

Path Parameters

NameTypeDescriptionNotes
ctxcontext.Contextcontext for authentication, logging, cancellation, deadlines, tracing, etc.
idstringThe Managed Cluster Type ID

Other Parameters

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

NameTypeDescriptionNotes

jsonpatch | Jsonpatch | The JSONPatch payload used to update the schema. |

Return type

Managedclustertype

HTTP request headers

  • Content-Type: application/json-patch+json
  • Accept: application/json

Example

package main

import (
"context"
"fmt"
"os"
"encoding/json"
v1 "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
sailpoint "github.com/sailpoint-oss/golang-sdk/v3/managed_cluster_types"
)

func main() {
id := `aClusterTypeId` // string | The Managed Cluster Type ID # string | The Managed Cluster Type ID
jsonpatch := []byte(``) // Jsonpatch | The JSONPatch payload used to update the schema.

var jsonpatch v1.Jsonpatch
if err := json.Unmarshal(jsonpatch, &jsonpatch); err != nil {
fmt.Println("Error:", err)
return
}


configuration := sailpoint.NewDefaultConfiguration()
apiClient := sailpoint.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClusterTypesAPI.UpdateManagedClusterTypeV1(context.Background(), id).Jsonpatch(jsonpatch).Execute()
//resp, r, err := apiClient.ManagedClusterTypesAPI.UpdateManagedClusterTypeV1(context.Background(), id).Jsonpatch(jsonpatch).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClusterTypesAPI.UpdateManagedClusterTypeV1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateManagedClusterTypeV1`: Managedclustertype
fmt.Fprintf(os.Stdout, "Response from `ManagedClusterTypesAPI.UpdateManagedClusterTypeV1`: %v\n", resp)
}

[Back to top]