Class ConsoleApiClient

Hierarchy

  • ConsoleApiClient

Constructors

  • Parameters

    • Optional userAgent: string

    Returns ConsoleApiClient

Properties

getHeaders: any
gotOptions: any
userAgentString: any

Methods

  • Description

    Create a new API client for a cluster. See the API Documentation for more details.

    Returns

    Parameters

    • req: {
          clientName: string;
          clusterUuid: string;
          permissions: string[];
      }
      • clientName: string
      • clusterUuid: string
      • permissions: string[]

    Returns Promise<CreatedClusterClient>

  • Description

    Create a new cluster. See the API Documentation for more details.

    Parameters

    Returns Promise<{
        clusterId: string;
    }>

  • Description

    Create a new connector secret. See the API Documentation for more details.

    Parameters

    • __namedParameters: {
          clusterUuid: string;
          secretName: string;
          secretValue: string;
      }
      • clusterUuid: string
      • secretName: string
      • secretValue: string

    Returns Promise<null>

  • Description

    See the API Documentation for more details.

    Parameters

    • clusterUuid: string
    • clientId: string

    Returns Promise<null>

  • Description

    Delete a cluster. See the API Documentation for more details.

    Parameters

    • clusterUuid: string

    Returns Promise<null>

  • Description

    Delete a connector secret. See the API Documentation for more details.

    Parameters

    • clusterUuid: string
    • secretName: string

    Returns Promise<null>

  • Description

    Get an array of the current API clients for this cluster. See the API Documentation for more details.

    Parameters

    • clusterUuid: string

      The cluster UUID

    Returns Promise<ClusterClient[]>

  • Description

    Retrieve the metadata for a cluster. See the API Documentation for more details.

    Parameters

    • clusterUuid: string

    Returns Promise<Cluster>

  • Description

    Return an array of clusters. See the API Documentation for more details.

    Returns Promise<Cluster[]>

  • Description

    Retrieve the available parameters for cluster creation. See the API Documentation for more details.

    Returns Promise<Parameters>

  • Description

    Retrieve the connector secrets. See the API Documentation for more details.

    Parameters

    • clusterUuid: string

    Returns Promise<{
        [key: string]: string;
    }>

  • Description

    Add one or more IPs to the whitelist for the cluster. See the API Documentation for more details.

    Returns

    Parameters

    • clusterUuid: string
    • ipwhitelist: [{
          description: string;
          ip: string;
      }]

    Returns Promise<unknown>

Generated using TypeDoc