Red Hat OpenShift · Example Payload

Red Hat Openshift Create Project Example

ContainersEnterpriseHybrid CloudKubernetesPaaSRed Hat

Red Hat Openshift Create Project Example is an example object payload from Red Hat OpenShift, with 2 top-level fields. It illustrates the shape of data this provider's APIs accept or return.

Top-level fields

requestresponse

Example Payload

Raw ↑
{
  "request": {
    "method": "POST",
    "url": "https://api.cluster.example.com:6443/apis/project.openshift.io/v1/projects",
    "headers": {
      "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
      "Content-Type": "application/json"
    },
    "body": {
      "apiVersion": "project.openshift.io/v1",
      "kind": "Project",
      "metadata": {
        "name": "my-app",
        "annotations": {
          "openshift.io/description": "My application project",
          "openshift.io/display-name": "My Application"
        }
      }
    }
  },
  "response": {
    "status": 201,
    "body": {
      "apiVersion": "project.openshift.io/v1",
      "kind": "Project",
      "metadata": {
        "name": "my-app",
        "uid": "3c4d5e6f-1234-5678-abcd-ef0123456789",
        "resourceVersion": "12345",
        "creationTimestamp": "2026-05-02T10:00:00Z",
        "annotations": {
          "openshift.io/description": "My application project",
          "openshift.io/display-name": "My Application",
          "openshift.io/requester": "admin"
        }
      },
      "spec": {
        "finalizers": ["kubernetes"]
      },
      "status": {
        "phase": "Active"
      }
    }
  }
}