Get operation Run in API Explorer

GET /v1/operations/{id}

Get information about a long-running operation. This is a generic endpoint and can be used to retrieve any type of operation.

Path parameters

  • id string Required

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • operation object

      Operation describes a long running operation

      Hide operation attributes Show operation attributes object
      • error object

        Describes errors

        Hide error attributes Show error attributes object
        • code string(int32)

          RPC status code, as described here.

          Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

        • details array[object]

          A list of messages that carries the error details.

          Details of the error.

          Details of the error.

          One of:
        • message string

          Detailed error message. No compatibility guarantees are given for the text contained in this message.

      • finished_at string(date-time)

        Timestamp when the operation has finished.

      • id string

        ID of the operation.

      • metadata object

        Metadata of the long-running Operation. Contains in-progress information.

        One of:
      • resource_id string | null
      • response object

        Response of the long-running Operation.

        One of:
      • started_at string(date-time)

        Timestamp when the operation has started.

      • state string

        describes if the operation has finished, or is still in progress. Only if done is true, either error or result become available.

        Values are STATE_IN_PROGRESS, STATE_COMPLETED, or STATE_FAILED.

      • type string

        Values are TYPE_CREATE_CLUSTER, TYPE_UPDATE_CLUSTER, TYPE_DELETE_CLUSTER, TYPE_CREATE_NETWORK, TYPE_DELETE_NETWORK, TYPE_CREATE_SERVERLESS_CLUSTER, TYPE_DELETE_SERVERLESS_CLUSTER, TYPE_CREATE_CLUSTER_WITH_DEPENDENCIES, or TYPE_DELETE_CLUSTER_WITH_DEPENDENCIES.

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • 500 application/json

    Internal Server Error. Please reach out to support.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code string(int32)

      RPC status code, as described here.

      Values are OK, CANCELLED, UNKNOWN, INVALID_ARGUMENT, DEADLINE_EXCEEDED, NOT_FOUND, ALREADY_EXISTS, PERMISSION_DENIED, UNAUTHENTICATED, RESOURCE_EXHAUSTED, FAILED_PRECONDITION, ABORTED, OUT_OF_RANGE, UNIMPLEMENTED, INTERNAL, UNAVAILABLE, or DATA_LOSS.

    • details array[object]

      A list of messages that carries the error details.

      Details of the error.

      Details of the error.

      One of:
    • message string

      Detailed error message. No compatibility guarantees are given for the text contained in this message.

GET /v1/operations/{id}
curl \
 --request GET 'https://api.redpanda.com/v1/operations/{id}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Example of an operation response of a Cluster creation that is done
{
  "operation": {
    "id": "cjb6cjpc4vs0b0spksbg",
    "type": "TYPE_CREATE_CLUSTER",
    "state": "STATE_COMPLETED",
    "metadata": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateClusterMetadata",
      "cluster_id": "cjb69h1c4vs42pca89s0"
    },
    "response": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateClusterResponse",
      "cluster": {
        "id": "cjb69h1c4vs42pca89s0",
        "name": "my-new-cluster",
        "type": "TYPE_DEDICATED",
        "state": "STATE_READY",
        "zones": [
          "us-west1-a",
          "us-west1-b",
          "us-west1-c"
        ],
        "region": "us-west1",
        "kafka_api": {
          "mtls": null,
          "sasl": null,
          "seed_brokers": [
            "seed-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092"
          ],
          "all_seed_brokers": null
        },
        "created_at": "2023-01-01T00:00:00Z",
        "http_proxy": {
          "url": "https://pandaproxy-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092",
          "mtls": {
            "enabled": false,
            "ca_certificates_pem": [],
            "principal_mapping_rules": []
          },
          "sasl": null,
          "all_urls": null
        },
        "network_id": "cjb69k1c4vs45df9bee0",
        "prometheus": {
          "url": "https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics"
        },
        "updated_at": "2023-01-01T00:00:00Z",
        "cloud_storage": null,
        "dataplane_api": null,
        "kafka_connect": null,
        "cloud_provider": "CLOUD_PROVIDER_GCP",
        "connection_type": "CONNECTION_TYPE_PUBLIC",
        "schema_registry": {
          "url": "schema-registry-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092",
          "mtls": null,
          "sasl": null,
          "all_urls": null
        },
        "throughput_tier": "tier-1",
        "redpanda_console": {
          "url": "https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api"
        },
        "internet_gateways": [],
        "resource_group_id": "6c09e47b-f426-4ec7-a7b4-8048caf8ae47",
        "state_description": null,
        "cloud_provider_tags": {},
        "redpanda_node_count": 0,
        "cluster_configuration": null,
        "current_redpanda_version": "",
        "desired_redpanda_version": "",
        "read_replica_cluster_ids": [],
        "maintenance_window_config": null,
        "customer_managed_resources": null
      }
    },
    "started_at": null,
    "finished_at": null,
    "resource_id": "cjb69h1c4vs42pca89s0"
  }
}
Example of an operation response of a Network creation that is done
{
  "operation": {
    "id": "cjb6cg9c4vs08hd3poo0",
    "type": "TYPE_CREATE_NETWORK",
    "state": "STATE_COMPLETED",
    "metadata": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateNetworkMetadata",
      "network_id": "cjb6capc4vs0m91gh3kg"
    },
    "response": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateNetworkResponse",
      "network": {
        "id": "cjb6capc4vs0m91gh3kg",
        "name": "my-new-cluster",
        "state": "STATE_READY",
        "zones": [],
        "region": "us-central1",
        "cidr_block": "10.0.0.0/20",
        "created_at": "2023-01-01T00:00:00Z",
        "updated_at": "2023-01-01T00:00:00Z",
        "cluster_type": "TYPE_DEDICATED",
        "cloud_provider": "CLOUD_PROVIDER_GCP",
        "resource_group_id": "dbc1ccee-93e8-4859-a1ae-3bcfc4ef0ded",
        "customer_managed_resources": null
      }
    },
    "started_at": null,
    "finished_at": null,
    "resource_id": "cjb6capc4vs0m91gh3kg"
  }
}
Example of an operation response of a cluster deletion that is done
{
  "operation": {
    "id": "cjd5tfpc4vsfi6jbjve0",
    "type": "TYPE_DELETE_CLUSTER",
    "state": "STATE_COMPLETED",
    "metadata": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.DeleteClusterMetadata",
      "required_action": ""
    },
    "started_at": null,
    "finished_at": null,
    "resource_id": "cjb69h1c4vs42pca89s0"
  }
}
Example of an operation response of a Network deletion that is done
{
  "operation": {
    "id": "cjd5tdpc4vsfvm2tav1g",
    "type": "TYPE_DELETE_NETWORK",
    "state": "STATE_COMPLETED",
    "metadata": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.DeleteNetworkMetadata"
    },
    "started_at": null,
    "finished_at": null,
    "resource_id": "cjb6capc4vs0m91gh3kg"
  }
}
Example of an operation response of a Cluster update that is done
{
  "operation": {
    "id": "cjd5tppc4vsf9o7lhcj0",
    "type": "TYPE_UPDATE_CLUSTER",
    "state": "STATE_COMPLETED",
    "metadata": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.UpdateClusterMetadata",
      "update_type": []
    },
    "response": {
      "@type": "type.googleapis.com/redpanda.api.controlplane.v1.CreateClusterResponse",
      "cluster": {
        "id": "cjb69h1c4vs42pca89s0",
        "name": "my-new-cluster",
        "type": "TYPE_DEDICATED",
        "state": "STATE_READY",
        "zones": [
          "us-west1-a",
          "us-west1-b",
          "us-west1-c"
        ],
        "region": "us-west1",
        "kafka_api": {
          "mtls": null,
          "sasl": null,
          "seed_brokers": [
            "seed-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092"
          ],
          "all_seed_brokers": null
        },
        "created_at": "2023-01-01T00:00:00Z",
        "http_proxy": {
          "url": "https://pandaproxy-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092",
          "mtls": {
            "enabled": false,
            "ca_certificates_pem": [],
            "principal_mapping_rules": []
          },
          "sasl": null,
          "all_urls": null
        },
        "network_id": "cjb69k1c4vs45df9bee0",
        "prometheus": {
          "url": "https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api/cloud/prometheus/public_metrics"
        },
        "updated_at": "2023-01-01T00:00:00Z",
        "cloud_storage": null,
        "dataplane_api": null,
        "kafka_connect": null,
        "cloud_provider": "CLOUD_PROVIDER_GCP",
        "connection_type": "CONNECTION_TYPE_PUBLIC",
        "schema_registry": {
          "url": "schema-registry-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com:9092",
          "mtls": null,
          "sasl": null,
          "all_urls": null
        },
        "throughput_tier": "tier-1",
        "redpanda_console": {
          "url": "https://console-aa0000l0.cjb69h1c4vs42pca89s0.fmc.prd.cloud.redpanda.com/api"
        },
        "internet_gateways": [],
        "resource_group_id": "6c09e47b-f426-4ec7-a7b4-8048caf8ae47",
        "state_description": null,
        "cloud_provider_tags": {},
        "redpanda_node_count": 0,
        "cluster_configuration": null,
        "current_redpanda_version": "",
        "desired_redpanda_version": "",
        "read_replica_cluster_ids": [],
        "maintenance_window_config": null,
        "customer_managed_resources": null
      }
    },
    "started_at": null,
    "finished_at": null,
    "resource_id": "cjb69h1c4vs42pca89s0"
  }
}
Response examples (404)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (500)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}
Response examples (default)
{
  "code": "OK",
  "details": [
    {
      "@type": "type.googleapis.com/google.rpc.BadRequest",
      "field_violations": [
        {
          "description": "string",
          "field": "string",
          "localized_message": {
            "locale": "string",
            "message": "string"
          },
          "reason": "string"
        }
      ]
    }
  ],
  "message": "string"
}