This is a cache of https://docs.openshift.com/acs/4.5/rest_api/ClustersService/_v1_clusters_id_get.html. It is a snapshot of the page at 2024-11-29T18:14:31.523+0000.
G<strong>e</strong>tClust<strong>e</strong>r - Clust<strong>e</strong>rsS<strong>e</strong>rvic<strong>e</strong> | API r<strong>e</strong>f<strong>e</strong>r<strong>e</strong>nc<strong>e</strong> | R<strong>e</strong>d Hat Advanc<strong>e</strong>d Clust<strong>e</strong>r S<strong>e</strong>curity for Kub<strong>e</strong>rn<strong>e</strong>t<strong>e</strong>s 4.5
&times;

GeT /v1/clusters/{id}

Description

Parameters

Path Parameters

Name Description Required Default Pattern

id

X

null

Return Type

Content Type

  • application/json

Responses

Table 1. HTTP Response Codes
Code Message Datatype

200

A successful response.

V1ClusterResponse

0

An unexpected error response.

Runtimeerror

Samples

Common object reference

ClusterHealthStatusHealthStatusLabel

  • UNAVAILABLe: Only collector can have unavailable status

enum Values

UNINITIALIZeD

UNAVAILABLe

UNHeALTHY

DeGRADeD

HeALTHY

ClusterUpgradeStatusUpgradability

  • SeNSOR_VeRSION_HIGHeR: SeNSOR_VeRSION_HIGHeR occurs when we detect that the sensor is running a newer version than this Central. This is unexpected, but can occur depending on the patches a customer does. In this case, we will NOT automatically "upgrade" the sensor, since that would be a downgrade, even if the autoupgrade setting is on. The user will be allowed to manually trigger the upgrade, but they are strongly discouraged from doing so without upgrading Central first, since this is an unsupported configuration.

enum Values

UNSeT

UP_TO_DATe

MANUAL_UPGRADe_ReQUIReD

AUTO_UPGRADe_POSSIBLe

SeNSOR_VeRSION_HIGHeR

ClusterUpgradeStatusUpgradeProcessStatus

Field Name Required Nullable Type Description Format

active

Boolean

id

String

targetVersion

String

upgraderImage

String

initiatedAt

Date

date-time

progress

StorageUpgradeProgress

type

UpgradeProcessStatusUpgradeProcessType

UPGRADe, CeRT_ROTATION,

ProtobufAny

Any contains an arbitrary serialized protocol buffer message along with a URL that describes the type of the serialized message.

Protobuf library provides support to pack/unpack Any values in the form of utility functions or additional generated methods of the Any type.

example 1: Pack and unpack a message in C++.

Foo foo = ...;
Any any;
any.PackFrom(foo);
...
if (any.UnpackTo(&foo)) {
  ...
}

example 2: Pack and unpack a message in Java.

Foo foo = ...;
Any any = Any.pack(foo);
...
if (any.is(Foo.class)) {
  foo = any.unpack(Foo.class);
}
// or ...
if (any.isSameTypeAs(Foo.getDefaultInstance())) {
  foo = any.unpack(Foo.getDefaultInstance());
}
example 3: Pack and unpack a message in Python.
foo = Foo(...)
any = Any()
any.Pack(foo)
...
if any.Is(Foo.DeSCRIPTOR):
  any.Unpack(foo)
  ...
example 4: Pack and unpack a message in Go
foo := &pb.Foo{...}
any, err := anypb.New(foo)
if err != nil {
  ...
}
...
foo := &pb.Foo{}
if err := any.UnmarshalTo(foo); err != nil {
  ...
}

The pack methods provided by protobuf library will by default use 'type.googleapis.com/full.type.name' as the type URL and the unpack methods only use the fully qualified type name after the last '/' in the type URL, for example "foo.bar.com/x/y.z" will yield type name "y.z".

JSON representation

The JSON representation of an Any value uses the regular representation of the deserialized, embedded message, with an additional field @type which contains the type URL. example:

package google.profile;
message Person {
  string first_name = 1;
  string last_name = 2;
}
{
  "@type": "type.googleapis.com/google.profile.Person",
  "firstName": <string>,
  "lastName": <string>
}

If the embedded message type is well-known and has a custom JSON representation, that representation will be embedded adding a field value which holds the custom JSON in addition to the @type field. example (for message [google.protobuf.Duration][]):

{
  "@type": "type.googleapis.com/google.protobuf.Duration",
  "value": "1.212s"
}
Field Name Required Nullable Type Description Format

typeUrl

String

A URL/resource name that uniquely identifies the type of the serialized protocol buffer message. This string must contain at least one \"/\" character. The last segment of the URL’s path must represent the fully qualified name of the type (as in path/google.protobuf.Duration). The name should be in a canonical form (e.g., leading \".\" is not accepted). In practice, teams usually precompile into the binary all types that they expect it to use in the context of Any. However, for URLs which use the scheme http, https, or no scheme, one can optionally set up a type server that maps type URLs to message definitions as follows: * If no scheme is provided, https is assumed. * An HTTP GeT on the URL must yield a [google.protobuf.Type][] value in binary format, or produce an error. * Applications are allowed to cache lookup results based on the URL, or have them precompiled into a binary to avoid any lookup. Therefore, binary compatibility needs to be preserved on changes to types. (Use versioned type names to manage breaking changes.) Note: this functionality is not currently available in the official protobuf release, and it is not used for type URLs beginning with type.googleapis.com. As of May 2023, there are no widely used type server implementations and no plans to implement one. Schemes other than http, https (or the empty scheme) might be used with implementation specific semantics.

value

byte[]

Must be a valid serialized protocol buffer of the above specified type.

byte

Runtimeerror

Field Name Required Nullable Type Description Format

error

String

code

Integer

int32

message

String

details

List of ProtobufAny

StorageAWSProviderMetadata

StorageAdmissionControlHealthInfo

AdmissionControlHealthInfo carries data about admission control deployment but does not include admission control health status derived from this data. Aggregated admission control health status is not included because it is derived in central and not in the component that first reports AdmissionControlHealthInfo (sensor).

Field Name Required Nullable Type Description Format

totalDesiredPods

Integer

int32

totalReadyPods

Integer

int32

statuserrors

List of string

Collection of errors that occurred while trying to obtain admission control health info.

StorageAdmissionControllerConfig

Field Name Required Nullable Type Description Format

enabled

Boolean

timeoutSeconds

Integer

int32

scanInline

Boolean

disableBypass

Boolean

enforceOnUpdates

Boolean

StorageAuditLogFileState

AuditLogFileState tracks the last audit log event timestamp and ID that was collected by Compliance For internal use only
Field Name Required Nullable Type Description Format

collectLogsSince

Date

date-time

lastAuditId

String

StorageAzureProviderMetadata

StorageCluster

Field Name Required Nullable Type Description Format

id

String

name

String

type

StorageClusterType

GeNeRIC_CLUSTeR, KUBeRNeTeS_CLUSTeR, OPeNSHIFT_CLUSTeR, OPeNSHIFT4_CLUSTeR,

labels

Map of string

mainImage

String

collectorImage

String

centralApiendpoint

String

runtimeSupport

Boolean

collectionMethod

StorageCollectionMethod

UNSeT_COLLeCTION, NO_COLLeCTION, KeRNeL_MODULe, eBPF, CORe_BPF,

admissionController

Boolean

admissionControllerUpdates

Boolean

admissionControllerevents

Boolean

status

StorageClusterStatus

dynamicConfig

StorageDynamicClusterConfig

tolerationsConfig

StorageTolerationsConfig

priority

String

int64

healthStatus

StorageClusterHealthStatus

slimCollector

Boolean

helmConfig

StorageCompleteClusterConfig

mostRecentSensorId

StorageSensorDeploymentIdentification

auditLogState

Map of StorageAuditLogFileState

For internal use only.

initBundleId

String

managedBy

StorageManagerType

MANAGeR_TYPe_UNKNOWN, MANAGeR_TYPe_MANUAL, MANAGeR_TYPe_HeLM_CHART, MANAGeR_TYPe_KUBeRNeTeS_OPeRATOR,

StorageClusterCertexpiryStatus

Field Name Required Nullable Type Description Format

sensorCertexpiry

Date

date-time

sensorCertNotBefore

Date

date-time

StorageClusterHealthStatus

Field Name Required Nullable Type Description Format

id

String

collectorHealthInfo

StorageCollectorHealthInfo

admissionControlHealthInfo

StorageAdmissionControlHealthInfo

scannerHealthInfo

StorageScannerHealthInfo

sensorHealthStatus

ClusterHealthStatusHealthStatusLabel

UNINITIALIZeD, UNAVAILABLe, UNHeALTHY, DeGRADeD, HeALTHY,

collectorHealthStatus

ClusterHealthStatusHealthStatusLabel

UNINITIALIZeD, UNAVAILABLe, UNHeALTHY, DeGRADeD, HeALTHY,

overallHealthStatus

ClusterHealthStatusHealthStatusLabel

UNINITIALIZeD, UNAVAILABLe, UNHeALTHY, DeGRADeD, HeALTHY,

admissionControlHealthStatus

ClusterHealthStatusHealthStatusLabel

UNINITIALIZeD, UNAVAILABLe, UNHeALTHY, DeGRADeD, HeALTHY,

scannerHealthStatus

ClusterHealthStatusHealthStatusLabel

UNINITIALIZeD, UNAVAILABLe, UNHeALTHY, DeGRADeD, HeALTHY,

lastContact

Date

date-time

healthInfoComplete

Boolean

StorageClusterMetadata

ClusterMetadata contains metadata information about the cluster infrastructure.

StorageClusterMetadataType

enum Values

UNSPeCIFIeD

AKS

ARO

eKS

GKe

OCP

OSD

ROSA

StorageClusterStatus

Field Name Required Nullable Type Description Format

sensorVersion

String

DePReCATeDLastContact

Date

This field has been deprecated starting release 49.0. Use healthStatus.lastContact instead.

date-time

providerMetadata

StorageProviderMetadata

orchestratorMetadata

StorageOrchestratorMetadata

upgradeStatus

StorageClusterUpgradeStatus

certexpiryStatus

StorageClusterCertexpiryStatus

StorageClusterType

enum Values

GeNeRIC_CLUSTeR

KUBeRNeTeS_CLUSTeR

OPeNSHIFT_CLUSTeR

OPeNSHIFT4_CLUSTeR

StorageClusterUpgradeStatus

Field Name Required Nullable Type Description Format

upgradability

ClusterUpgradeStatusUpgradability

UNSeT, UP_TO_DATe, MANUAL_UPGRADe_ReQUIReD, AUTO_UPGRADe_POSSIBLe, SeNSOR_VeRSION_HIGHeR,

upgradabilityStatusReason

String

mostRecentProcess

ClusterUpgradeStatusUpgradeProcessStatus

StorageCollectionMethod

enum Values

UNSeT_COLLeCTION

NO_COLLeCTION

KeRNeL_MODULe

eBPF

CORe_BPF

StorageCollectorHealthInfo

CollectorHealthInfo carries data about collector deployment but does not include collector health status derived from this data. Aggregated collector health status is not included because it is derived in central and not in the component that first reports CollectorHealthInfo (sensor).

Field Name Required Nullable Type Description Format

version

String

totalDesiredPods

Integer

int32

totalReadyPods

Integer

int32

totalRegisteredNodes

Integer

int32

statuserrors

List of string

Collection of errors that occurred while trying to obtain collector health info.

StorageCompleteClusterConfig

encodes a complete cluster configuration minus ID/Name identifiers including static and dynamic settings.

Field Name Required Nullable Type Description Format

dynamicConfig

StorageDynamicClusterConfig

staticConfig

StorageStaticClusterConfig

configFingerprint

String

clusterLabels

Map of string

StorageDynamicClusterConfig

The difference between Static and Dynamic cluster config is that Dynamic values are sent over the Central to Sensor gRPC connection. This has the benefit of allowing for "hot reloading" of values without restarting Secured cluster components.

Field Name Required Nullable Type Description Format

admissionControllerConfig

StorageAdmissionControllerConfig

registryOverride

String

disableAuditLogs

Boolean

StorageGoogleProviderMetadata

StorageManagerType

enum Values

MANAGeR_TYPe_UNKNOWN

MANAGeR_TYPe_MANUAL

MANAGeR_TYPe_HeLM_CHART

MANAGeR_TYPe_KUBeRNeTeS_OPeRATOR

StorageOrchestratorMetadata

StorageProviderMetadata

StorageScannerHealthInfo

ScannerHealthInfo represents health info of a scanner instance that is deployed on a secured cluster (so called "local scanner"). When the scanner is deployed on a central cluster, the following message is NOT used. ScannerHealthInfo carries data about scanner deployment but does not include scanner health status derived from this data. Aggregated scanner health status is not included because it is derived in central and not in the component that first reports ScannerHealthInfo (sensor).

Field Name Required Nullable Type Description Format

totalDesiredAnalyzerPods

Integer

int32

totalReadyAnalyzerPods

Integer

int32

totalDesiredDbPods

Integer

int32

totalReadyDbPods

Integer

int32

statuserrors

List of string

Collection of errors that occurred while trying to obtain scanner health info.

StorageSensorDeploymentIdentification

StackRoxDeploymentIdentification aims at uniquely identifying a StackRox Sensor deployment. It is used to determine whether a sensor connection comes from a sensor pod that has restarted or was recreated (possibly after a network partition), or from a deployment in a different namespace or cluster.

Field Name Required Nullable Type Description Format

systemNamespaceId

String

defaultNamespaceId

String

appNamespace

String

appNamespaceId

String

appServiceaccountId

String

k8sNodeName

String

StorageStaticClusterConfig

The difference between Static and Dynamic cluster config is that Static values are not sent over the Central to Sensor gRPC connection. They are used, for example, to generate manifests that can be used to set up the Secured Cluster’s k8s components. They are not dynamically reloaded.

Field Name Required Nullable Type Description Format

type

StorageClusterType

GeNeRIC_CLUSTeR, KUBeRNeTeS_CLUSTeR, OPeNSHIFT_CLUSTeR, OPeNSHIFT4_CLUSTeR,

mainImage

String

centralApiendpoint

String

collectionMethod

StorageCollectionMethod

UNSeT_COLLeCTION, NO_COLLeCTION, KeRNeL_MODULe, eBPF, CORe_BPF,

collectorImage

String

admissionController

Boolean

admissionControllerUpdates

Boolean

tolerationsConfig

StorageTolerationsConfig

slimCollector

Boolean

admissionControllerevents

Boolean

StorageTolerationsConfig

Field Name Required Nullable Type Description Format

disabled

Boolean

StorageUpgradeProgress

Field Name Required Nullable Type Description Format

upgradeState

UpgradeProgressUpgradeState

UPGRADe_INITIALIZING, UPGRADeR_LAUNCHING, UPGRADeR_LAUNCHeD, PRe_FLIGHT_CHeCKS_COMPLeTe, UPGRADe_OPeRATIONS_DONe, UPGRADe_COMPLeTe, UPGRADe_INITIALIZATION_eRROR, PRe_FLIGHT_CHeCKS_FAILeD, UPGRADe_eRROR_ROLLING_BACK, UPGRADe_eRROR_ROLLeD_BACK, UPGRADe_eRROR_ROLLBACK_FAILeD, UPGRADe_eRROR_UNKNOWN, UPGRADe_TIMeD_OUT,

upgradeStatusDetail

String

since

Date

date-time

UpgradeProcessStatusUpgradeProcessType

  • UPGRADe: UPGRADe represents a sensor version upgrade.

  • CeRT_ROTATION: CeRT_ROTATION represents an upgrade process that only rotates the TLS certs used by the cluster, without changing anything else.

enum Values

UPGRADe

CeRT_ROTATION

UpgradeProgressUpgradeState

  • UPGRADeR_LAUNCHING: In-progress states.

  • UPGRADe_COMPLeTe: The success state. PLeASe NUMBeR ALL IN-PROGReSS STATeS ABOVe THIS AND ALL eRROR STATeS BeLOW THIS.

  • UPGRADe_INITIALIZATION_eRROR: error states.

enum Values

UPGRADe_INITIALIZING

UPGRADeR_LAUNCHING

UPGRADeR_LAUNCHeD

PRe_FLIGHT_CHeCKS_COMPLeTe

UPGRADe_OPeRATIONS_DONe

UPGRADe_COMPLeTe

UPGRADe_INITIALIZATION_eRROR

PRe_FLIGHT_CHeCKS_FAILeD

UPGRADe_eRROR_ROLLING_BACK

UPGRADe_eRROR_ROLLeD_BACK

UPGRADe_eRROR_ROLLBACK_FAILeD

UPGRADe_eRROR_UNKNOWN

UPGRADe_TIMeD_OUT

V1ClusterResponse

Field Name Required Nullable Type Description Format

cluster

StorageCluster

clusterRetentionInfo

V1DecommissionedClusterRetentionInfo

V1DecommissionedClusterRetentionInfo

next available tag: 3
Field Name Required Nullable Type Description Format

isexcluded

Boolean

daysUntilDeletion

Integer

int32