All URIs are relative to https://sailpoint.api.identitynow.com/beta
Method | HTTP request | Description |
---|---|---|
GetClientLogConfiguration | Get /managed-clusters/{id}/log-config | get ManagedCluster Log Configuration for a specified cluster |
GetManagedCluster | Get /managed-clusters/{id} | Get a specified ManagedCluster. |
GetManagedClusters | Get /managed-clusters | Retrieve all Managed Clusters. |
UpdateClientLogConfiguration | Put /managed-clusters/{id}/log-config | Update log configuration for a specified cluster. |
[]ClientLogConfiguration GetClientLogConfiguration(ctx, id).Execute()
get ManagedCluster Log Configuration for a specified cluster
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "aClusterId" // string | ID of the ManagedCluster to get log configuration for
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClustersApi.GetClientLogConfiguration(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersApi.GetClientLogConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetClientLogConfiguration`: []ClientLogConfiguration
fmt.Fprintf(os.Stdout, "Response from `ManagedClustersApi.GetClientLogConfiguration`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the ManagedCluster to get log configuration for |
Other parameters are passed through a pointer to a apiGetClientLogConfigurationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ManagedCluster GetManagedCluster(ctx, id).Execute()
Get a specified ManagedCluster.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "aClusterId" // string | ID of the ManagedCluster to get
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClustersApi.GetManagedCluster(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersApi.GetManagedCluster``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetManagedCluster`: ManagedCluster
fmt.Fprintf(os.Stdout, "Response from `ManagedClustersApi.GetManagedCluster`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the ManagedCluster to get |
Other parameters are passed through a pointer to a apiGetManagedClusterRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]ManagedCluster GetManagedClusters(ctx).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute()
Retrieve all Managed Clusters.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
offset := int32(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 := int32(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)
count := true // bool | If *true* it will populate the *X-Total-Count* response header with the number of results that would be returned if *limit* and *offset* were ignored. Since requesting a total count can have a performance impact, it is recommended not to send **count=true** if that value will not be used. See [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters) for more information. (optional) (default to false)
filters := "filters_example" // string | Filtering is supported for the following fields and operators: **operational**: *eq* (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClustersApi.GetManagedClusters(context.Background()).Offset(offset).Limit(limit).Count(count).Filters(filters).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersApi.GetManagedClusters``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetManagedClusters`: []ManagedCluster
fmt.Fprintf(os.Stdout, "Response from `ManagedClustersApi.GetManagedClusters`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiGetManagedClustersRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
offset | int32 | Offset 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] |
limit | int32 | Max number of results to return. See V3 API Standard Collection Parameters for more information. | [default to 250] |
count | bool | If true it will populate the X-Total-Count response header with the number of results that would be returned if limit and offset were ignored. Since requesting a total count can have a performance impact, it is recommended not to send count=true if that value will not be used. See V3 API Standard Collection Parameters for more information. | [default to false] |
filters | string | Filtering is supported for the following fields and operators: operational: eq |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ClientLogConfiguration UpdateClientLogConfiguration(ctx, id).ClientLogConfiguration(clientLogConfiguration).Execute()
Update log configuration for a specified cluster.
package main
import (
"context"
"fmt"
"os"
openapiclient "./openapi"
)
func main() {
id := "aClusterId" // string | ID of the ManagedCluster to update log configuration for
clientLogConfiguration := *openapiclient.NewClientLogConfiguration(int32(120), openapiclient.StandardLevel("false")) // ClientLogConfiguration | ClientLogConfiguration for the given ManagedCluster
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagedClustersApi.UpdateClientLogConfiguration(context.Background(), id).ClientLogConfiguration(clientLogConfiguration).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagedClustersApi.UpdateClientLogConfiguration``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateClientLogConfiguration`: ClientLogConfiguration
fmt.Fprintf(os.Stdout, "Response from `ManagedClustersApi.UpdateClientLogConfiguration`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | ID of the ManagedCluster to update log configuration for |
Other parameters are passed through a pointer to a apiUpdateClientLogConfigurationRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
clientLogConfiguration | ClientLogConfiguration | ClientLogConfiguration for the given ManagedCluster |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]