sedai.resource

def get_resource_tags(resource_id):

Retrieve list of tags associated with a resource

Parameters
  • resource_id: The ID of the resource (str)
Returns

List of tags Each tag is an object with the following fields:

  • key - tag key
  • value - tag value

Output:

[
    {
        "key": "Name",
        "value": "example-k8s-cluster"
    },
    {
        "key": "region",
        "value": "us-east-1"
    }
]
def get_clusters():

Get all clusters that have discovered, group-assigned resources in Sedai.

Returns

A list of clusters. Each entry is an object with the following fields:

  • name - the name of the cluster
  • clusterId - the Sedai id of the cluster
  • clusterType - the type of the cluster, e.g. "KUBERNETES" or "ECS"
  • cloudProvider - the cloud provider of the cluster's account
  • accountId - the Sedai account id backing the cluster
  • accountName - the name of the account backing the cluster
  • region - the region the cluster is in