-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
When calling get_managed_clusters, following exception gets thrown :
... Error: 1 validation error for ManagedCluster
type
Input should be 'idn' or 'iai' [type=enum, input_value='standard', input_type=str]
For further information visit https://errors.pydantic.dev/2.12/v/enum ... re-initializing ...To Reproduce Steps to reproduce the behavior:
Sample Code :
from sailpoint.v2025.api.managed_clusters_api import ManagedClustersApi
from sailpoint.v2025.api_client import ApiClient
from sailpoint.v2025.models.managed_cluster import ManagedCluster
from sailpoint.configuration import Configuration
configuration = Configuration()
with ApiClient(configuration) as api_client:
offset = 0 # int | 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) # int | 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 # int | 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) # int | 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 = False # 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) # 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 = 'operational eq \"operation\"' # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional) # str | Filter results using the standard syntax described in [V3 API Standard Collection Parameters](https://developer.sailpoint.com/idn/api/standard-collection-parameters#filtering-results) Filtering is supported for the following fields and operators: **operational**: *eq* (optional)
try:
# Get managed clusters
results = ManagedClustersApi(api_client).get_managed_clusters()
# Below is a request that includes all optional parameters
# results = ManagedClustersApi(api_client).get_managed_clusters(offset, limit, count, filters)
print("The response of ManagedClustersApi->get_managed_clusters:\n")
for item in results:
print(item.model_dump_json(by_alias=True, indent=4))
except Exception as e:
print("Exception when calling ManagedClustersApi->get_managed_clusters: %s\n" % e)
Output
Exception when calling ManagedClustersApi->get_managed_clusters: 1 validation error for ManagedCluster
type
Input should be 'idn' or 'iai' [type=enum, input_value='standard', input_type=str]
For further information visit https://errors.pydantic.dev/2.12/v/enum
Additional info
Response from PostMan :
[
{
"id": "0855c84607c8491baf31a1c4bb989e8f",
"name": "AWS Cluster",
"pod": "se01-useast1",
"org": "company18864-poc",
"type": "standard",
"configuration": {
"clusterType": "sqsCluster",
"clusterExternalId": "0855c84607c8491baf31a1c4bb989e8f",
"processes": "[{\"type\": \"ccg\", \"cpus\": \"4\", \"memory\": \"16\"}]",
"gmtOffset": "-5",
"restartThresholdInHours": "36"
},
"keyPair": {
"publicKey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtmjs4nfQkNvQidKOc2m/4GKETEZ51+97S0CuK3Pvyc9t3KsnN/ked39XLQcZDHJXbx5GN61Asmnt/SWCWGHB1vWyoL4uSHk4aBc0LlppdQwNOkpCbO8qhLJ8iGMQvarh6Rs95gR+GH1boiwDFUFy0sDIznBDpR1u8eaiL6kvx6G01hLIofKSJCkJfATbrlXXuqBS8hoXCyjg5TIeSaT2J0h2wuuCUY4egGz7DT3KFZEwGs/irCa0/XfwwbayM7Zl3M5NhuHNpfl3urvo/7SpuTbJO+Z/oJ/AWluvvRhvdzsYUz3G9y5p1JmOy/fD06uVV1jsM883wLTnMtyLnCa6UQIDAQAB-----END PUBLIC KEY-----",
"publicKeyThumbprint": "xpVbLUvLRIPxL604suq0qiyqI50=",
"publicKeyCertificate": "-----BEGIN CERTIFICATE-----\nMIICuTCCAaGgAwIBAgIBADANBgkqhkiG9w0BAQsFADAgMR4wHAYDVQQDDBV0ZXN0\nL0RDPXNhaWxwb2ludC5jb20wHhcNMjUxMDE3MTU0NzA2WhcNMjYxMDE3MTU0NzA2\nWjAgMR4wHAYDVQQDDBV0ZXN0L0RDPXNhaWxwb2ludC5jb20wggEiMA0GCSqGSIb3\nDQEBAQUAA4IBDwAwggEKAoIBAQC2aOzid9CQ29CJ0o5zab/gYoRMRnnX73tLQK4r\nc+/Jz23cqyc3+R53f1ctBxkMcldvHkY3rUCyae39JYJYYcHW9bKgvi5IeThoFzQu\nWml1DA06SkJs7yqEsnyIYxC9quHpGz3mBH4YfVuiLAMVQXLSwMjOcEOlHW7x5qIv\nqS/HobTWEsih8pIkKQl8BNuuVde6oFLyGhcLKODlMh5JpPYnSHbC64JRjh6AbPsN\nPcoVkTAaz+KsJrT9d/DBtrIztmXczk2G4c2l+Xe6u+j/tKm5Nsk75n+gn8BaW6+9\nGG93OxhTPcb3LmnUmY7L98PTq5VXWOwzzzfAtOcy3IucJrpRAgMBAAEwDQYJKoZI\nhvcNAQELBQADggEBAE7KweibXiDNGZtAR/AykFrIMuGezo1H5WMDF2pFzKyCudcv\nJ4VVzMGDEspfcKD2tVnDfGaWAVti+VyEtsH4E6Q9zjyUgHJu9/orVxxVp3QhKsQd\nbxmKwvmNV/be7QbO3acpU3pmuKKCNaWcsjsNYvnmMICgf4GuAhgO0RUm6ya3Raa3\nn8v2YgGTHqj2y5iUAXO11pAS5quFMQs4mqMdVMBJNjvgzEPV9fG7zhDBCycLhfSh\noaLVJa2HUMZeDPJSc5H6mu0PiNa/awOqcz+y3Skh5i/rrC/2JTPRrcGXE0f4385m\nNVUKT4CRoIFo7zX5GBVZn3+W57FilPGK7FNAbkc=\n-----END CERTIFICATE-----\n"
},
"attributes": {
"queue": {
"name": "se01-useast1-company18864-poc-cluster-0855c84607c8",
"region": "us-east-1"
}
},
"redis": {
"redisHost": "se01-useast1-shared-redis.acct03.sailpoint.com",
"redisPort": 6379
},
"description": "",
"clientType": "CCG",
"ccgVersion": "1915_1180_278.0.0",
"pinnedConfig": false,
"logConfiguration": null,
"operational": true,
"status": "WARNING",
"publicKeyCertificate": "-----BEGIN CERTIFICATE-----\nMIICuTCCAaGgAwIBAgIBADANBgkqhkiG9w0BAQsFADAgMR4wHAYDVQQDDBV0ZXN0\nL0RDPXNhaWxwb2ludC5jb20wHhcNMjUxMDE3MTU0NzA2WhcNMjYxMDE3MTU0NzA2\nWjAgMR4wHAYDVQQDDBV0ZXN0L0RDPXNhaWxwb2ludC5jb20wggEiMA0GCSqGSIb3\nDQEBAQUAA4IBDwAwggEKAoIBAQC2aOzid9CQ29CJ0o5zab/gYoRMRnnX73tLQK4r\nc+/Jz23cqyc3+R53f1ctBxkMcldvHkY3rUCyae39JYJYYcHW9bKgvi5IeThoFzQu\nWml1DA06SkJs7yqEsnyIYxC9quHpGz3mBH4YfVuiLAMVQXLSwMjOcEOlHW7x5qIv\nqS/HobTWEsih8pIkKQl8BNuuVde6oFLyGhcLKODlMh5JpPYnSHbC64JRjh6AbPsN\nPcoVkTAaz+KsJrT9d/DBtrIztmXczk2G4c2l+Xe6u+j/tKm5Nsk75n+gn8BaW6+9\nGG93OxhTPcb3LmnUmY7L98PTq5VXWOwzzzfAtOcy3IucJrpRAgMBAAEwDQYJKoZI\nhvcNAQELBQADggEBAE7KweibXiDNGZtAR/AykFrIMuGezo1H5WMDF2pFzKyCudcv\nJ4VVzMGDEspfcKD2tVnDfGaWAVti+VyEtsH4E6Q9zjyUgHJu9/orVxxVp3QhKsQd\nbxmKwvmNV/be7QbO3acpU3pmuKKCNaWcsjsNYvnmMICgf4GuAhgO0RUm6ya3Raa3\nn8v2YgGTHqj2y5iUAXO11pAS5quFMQs4mqMdVMBJNjvgzEPV9fG7zhDBCycLhfSh\noaLVJa2HUMZeDPJSc5H6mu0PiNa/awOqcz+y3Skh5i/rrC/2JTPRrcGXE0f4385m\nNVUKT4CRoIFo7zX5GBVZn3+W57FilPGK7FNAbkc=\n-----END CERTIFICATE-----\n",
"publicKeyThumbprint": "xpVbLUvLRIPxL604suq0qiyqI50=",
"publicKey": "-----BEGIN PUBLIC KEY-----MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtmjs4nfQkNvQidKOc2m/4GKETEZ51+97S0CuK3Pvyc9t3KsnN/ked39XLQcZDHJXbx5GN61Asmnt/SWCWGHB1vWyoL4uSHk4aBc0LlppdQwNOkpCbO8qhLJ8iGMQvarh6Rs95gR+GH1boiwDFUFy0sDIznBDpR1u8eaiL6kvx6G01hLIofKSJCkJfATbrlXXuqBS8hoXCyjg5TIeSaT2J0h2wuuCUY4egGz7DT3KFZEwGs/irCa0/XfwwbayM7Zl3M5NhuHNpfl3urvo/7SpuTbJO+Z/oJ/AWluvvRhvdzsYUz3G9y5p1JmOy/fD06uVV1jsM883wLTnMtyLnCa6UQIDAQAB-----END PUBLIC KEY-----",
"alertKey": "LIMITED_RESOURCES",
"clientIds": [
"c5c1c9b0-1c03-4ec1-8300-4e0bd00c448d"
],
"serviceCount": 6,
"ccId": "0",
"createdAt": "2025-10-17T15:45:43.328143Z",
"updatedAt": null,
"lastReleaseNotifiedAt": null,
"updatePreferences": {
"processGroups": null,
"updateState": null,
"notificationEmail": null
},
"currentInstalledReleaseVersion": null,
"updatePackage": null,
"isOutOfDateNotifiedAt": null,
"consolidatedHealthIndicatorsStatus": "WARNING",
"encryptionConfiguration": {
"format": "V3"
}
}
]- Note that the type is
standard
Metadata
Metadata
Assignees
Labels
No labels