doActionOnRealtimeCluster

On this page
Back to index

Summary

Perform action on the given object in the container platform for the given CloudBees CD/RO cluster reference.
For a list of object types in CloudBees CD/RO, refer to Object types in CloudBees CD/RO.
projectName
Stringrequired
The name for the project that must be unique among all projects.
clusterName
Stringrequired
The name of the cluster.
objectId
Stringrequired
The identifier for the object within the cluster for which real-time details will be retrieved. The identifier for the object within the cluster can be obtained using getRealtimeClusterTopology API.
objectType
Stringrequired
The type of object within the cluster for which real-time details will be retrieved. The supported values for object type may vary by container platform. Kubernetes cluster will support ecp-namespace, ecp-service, ecp-pod, and ecp-container object types.
action
Stringrequired
The action to be performed on the object within the cluster. The supported values for action may vary by container platform and the type of object. Kubernetes cluster will support viewLogs action on ecp-container object type.
actionParameter
Arrayoptional
Parameters passed as arguments for the action that should be performed on the object within the cluster.
environmentName
Stringoptional
Name of the environment which owns this cluster.

Usage

Perl

$cmdr->doActionOnRealtimeCluster( "test-projectName", # projectName "test-clusterName", # clusterName "test-objectId", # objectId "test-objectType", # objectType "test-action" # action # optionals );

ectool

ectool doActionOnRealtimeCluster \ "test-projectName" `# projectName` \ "test-clusterName" `# clusterName` \ "test-objectId" `# objectId` \ "test-objectType" `# objectType` \ "test-action" `# action` \ # optionals