---
title: "List data import jobs for a database cluster"
method: GET
path: "/namespaces/{namespace}/database-clusters/{dbName}/data-import-jobs"
tags: ["Database Cluster"]
---

# List data import jobs for a database cluster

`GET /namespaces/{namespace}/database-clusters/{dbName}/data-import-jobs`

This API lists all data import jobs for the database cluster specified by the `name` and `namespace`.

## Path parameters

- `namespace` string, required
- `dbName` string, required

## Response `200`

Successful operation

- DataImportJobList — DataImportJobList is an object that contains the list of the existing data import jobs.
  - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
  - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
  - `items` DataImportJob[]
    - `apiVersion` string — APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
    - `kind` string — Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
    - `metadata` object
    - `spec` object
      - `config` object — Config defines the configuration for the data import job. These options are specific to the DataImporter being used and must conform to the schema defined in the DataImporter's .spec.config.openAPIV3Schema.
      - `dataImporterName` string, required — DataImporterName is the data importer to use for the import.
      - `source` object, required — Source is the source of the data to import.
        - `path` string — Path is the path to the directory to import the data from. This may be a path to a file or a directory, depending on the data importer.
        - `s3` object — S3 contains the S3 information for the data import.
          - `accessKeyId` string — AccessKeyID allows specifying the S3 access key ID inline. It is provided as a write-only input field for convenience. When this field is set, a webhook writes this value in the Secret specified by `credentialsSecretName` and empties this field. This field is not stored in the API.
          - `bucket` string — Bucket is the name of the S3 bucket.
          - `credentialsSecretName` string, required — CredentialsSecreName is the reference to the secret containing the S3 credentials. The Secret must contain the keys `AWS_ACCESS_KEY_ID` and `AWS_SECRET_ACCESS_KEY`.
          - `endpointURL` string — EndpointURL is an endpoint URL of backup storage.
          - `forcePathStyle` boolean — ForcePathStyle is set to use path-style URLs. If unspecified, the default value is false.
          - `region` string — Region is the region of the S3 bucket.
          - `secretAccessKey` string — SecretAccessKey allows specifying the S3 secret access key inline. It is provided as a write-only input field for convenience. When this field is set, a webhook writes this value in the Secret specified by `credentialsSecretName` and empties this field. This field is not stored in the API.
          - `verifyTLS` boolean — VerifyTLS is set to ensure TLS/SSL verification. If unspecified, the default value is true.
      - `targetClusterName` string, required — TargetClusterName is the reference to the target cluster.
    - `status` object
      - `completedAt` string, date-time — CompletedAt is the time when the data import job completed successfully.
      - `jobName` string — JobName is the reference to the job that is running the data import.
      - `lastObservedGeneration` integer — LastObservedGeneration is the last observed generation of the data import job.
      - `message` string — Message is the message of the data import job.
      - `startedAt` string, date-time — StartedAt is the time when the data import job started.
      - `state` string — State is the current state of the data import job.
  - `metadata` object

## Other responses

- `500` — Internal server error

---

[API](https://skmtc.net/openeverest/apis/openeverest-schema.md) · [All operations](https://skmtc.net/openeverest/apis/openeverest-schema/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openeverest/openeverest-schema/versions/46b19e13670b/schema)
