Search

Console APIs

download PDF
OpenShift Container Platform 4.17

Reference guide for console APIs

Red Hat OpenShift Documentation Team

Abstract

This document describes the OpenShift Container Platform console API objects and their detailed specifications.

Chapter 1. Console APIs

1.1. ConsoleCLIDownload [console.openshift.io/v1]

Description
ConsoleCLIDownload is an extension for configuring openshift web console command line interface (CLI) downloads. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object

1.4. ConsoleNotification [console.openshift.io/v1]

Description
ConsoleNotification is the extension for configuring openshift web console notifications. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object

1.5. ConsolePlugin [console.openshift.io/v1]

Description
ConsolePlugin is an extension for customizing OpenShift web console by dynamically loading code from another service running on the cluster. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
object

1.6. ConsoleQuickStart [console.openshift.io/v1]

Description
ConsoleQuickStart is an extension for guiding user through various workflows in the OpenShift web console. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object

1.7. ConsoleSample [console.openshift.io/v1]

Description
ConsoleSample is an extension to customizing OpenShift web console by adding samples. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
object

1.8. ConsoleYAMLSample [console.openshift.io/v1]

Description
ConsoleYAMLSample is an extension for customizing OpenShift web console YAML samples. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object

Chapter 2. ConsoleCLIDownload [console.openshift.io/v1]

Description
ConsoleCLIDownload is an extension for configuring openshift web console command line interface (CLI) downloads. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object
Required
  • spec

2.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

ConsoleCLIDownloadSpec is the desired cli download configuration.

2.1.1. .spec

Description
ConsoleCLIDownloadSpec is the desired cli download configuration.
Type
object
Required
  • description
  • displayName
  • links
PropertyTypeDescription

description

string

description is the description of the CLI download (can include markdown).

displayName

string

displayName is the display name of the CLI download.

links

array

links is a list of objects that provide CLI download link details.

links[]

object

 

2.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consoleclidownloads

    • DELETE: delete collection of ConsoleCLIDownload
    • GET: list objects of kind ConsoleCLIDownload
    • POST: create a ConsoleCLIDownload
  • /apis/console.openshift.io/v1/consoleclidownloads/{name}

    • DELETE: delete a ConsoleCLIDownload
    • GET: read the specified ConsoleCLIDownload
    • PATCH: partially update the specified ConsoleCLIDownload
    • PUT: replace the specified ConsoleCLIDownload
  • /apis/console.openshift.io/v1/consoleclidownloads/{name}/status

    • GET: read status of the specified ConsoleCLIDownload
    • PATCH: partially update status of the specified ConsoleCLIDownload
    • PUT: replace status of the specified ConsoleCLIDownload

2.2.1. /apis/console.openshift.io/v1/consoleclidownloads

HTTP method
DELETE
Description
delete collection of ConsoleCLIDownload
Table 2.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsoleCLIDownload
Table 2.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownloadList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsoleCLIDownload
Table 2.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 2.4. Body parameters
ParameterTypeDescription

body

ConsoleCLIDownload schema

 
Table 2.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

201 - Created

ConsoleCLIDownload schema

202 - Accepted

ConsoleCLIDownload schema

401 - Unauthorized

Empty

2.2.2. /apis/console.openshift.io/v1/consoleclidownloads/{name}

Table 2.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleCLIDownload

HTTP method
DELETE
Description
delete a ConsoleCLIDownload
Table 2.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 2.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsoleCLIDownload
Table 2.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsoleCLIDownload
Table 2.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 2.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsoleCLIDownload
Table 2.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 2.13. Body parameters
ParameterTypeDescription

body

ConsoleCLIDownload schema

 
Table 2.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

201 - Created

ConsoleCLIDownload schema

401 - Unauthorized

Empty

2.2.3. /apis/console.openshift.io/v1/consoleclidownloads/{name}/status

Table 2.15. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleCLIDownload

HTTP method
GET
Description
read status of the specified ConsoleCLIDownload
Table 2.16. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update status of the specified ConsoleCLIDownload
Table 2.17. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 2.18. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace status of the specified ConsoleCLIDownload
Table 2.19. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 2.20. Body parameters
ParameterTypeDescription

body

ConsoleCLIDownload schema

 
Table 2.21. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleCLIDownload schema

201 - Created

ConsoleCLIDownload schema

401 - Unauthorized

Empty

Chapter 5. ConsoleNotification [console.openshift.io/v1]

Description
ConsoleNotification is the extension for configuring openshift web console notifications. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object
Required
  • spec

5.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

ConsoleNotificationSpec is the desired console notification configuration.

5.1.1. .spec

Description
ConsoleNotificationSpec is the desired console notification configuration.
Type
object
Required
  • text
PropertyTypeDescription

backgroundColor

string

backgroundColor is the color of the background for the notification as CSS data type color.

color

string

color is the color of the text for the notification as CSS data type color.

link

object

link is an object that holds notification link details.

location

string

location is the location of the notification in the console. Valid values are: "BannerTop", "BannerBottom", "BannerTopBottom".

text

string

text is the visible text of the notification.

5.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consolenotifications

    • DELETE: delete collection of ConsoleNotification
    • GET: list objects of kind ConsoleNotification
    • POST: create a ConsoleNotification
  • /apis/console.openshift.io/v1/consolenotifications/{name}

    • DELETE: delete a ConsoleNotification
    • GET: read the specified ConsoleNotification
    • PATCH: partially update the specified ConsoleNotification
    • PUT: replace the specified ConsoleNotification
  • /apis/console.openshift.io/v1/consolenotifications/{name}/status

    • GET: read status of the specified ConsoleNotification
    • PATCH: partially update status of the specified ConsoleNotification
    • PUT: replace status of the specified ConsoleNotification

5.2.1. /apis/console.openshift.io/v1/consolenotifications

HTTP method
DELETE
Description
delete collection of ConsoleNotification
Table 5.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsoleNotification
Table 5.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotificationList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsoleNotification
Table 5.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5.4. Body parameters
ParameterTypeDescription

body

ConsoleNotification schema

 
Table 5.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

201 - Created

ConsoleNotification schema

202 - Accepted

ConsoleNotification schema

401 - Unauthorized

Empty

5.2.2. /apis/console.openshift.io/v1/consolenotifications/{name}

Table 5.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleNotification

HTTP method
DELETE
Description
delete a ConsoleNotification
Table 5.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 5.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsoleNotification
Table 5.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsoleNotification
Table 5.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsoleNotification
Table 5.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5.13. Body parameters
ParameterTypeDescription

body

ConsoleNotification schema

 
Table 5.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

201 - Created

ConsoleNotification schema

401 - Unauthorized

Empty

5.2.3. /apis/console.openshift.io/v1/consolenotifications/{name}/status

Table 5.15. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleNotification

HTTP method
GET
Description
read status of the specified ConsoleNotification
Table 5.16. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update status of the specified ConsoleNotification
Table 5.17. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5.18. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace status of the specified ConsoleNotification
Table 5.19. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 5.20. Body parameters
ParameterTypeDescription

body

ConsoleNotification schema

 
Table 5.21. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleNotification schema

201 - Created

ConsoleNotification schema

401 - Unauthorized

Empty

Chapter 6. ConsolePlugin [console.openshift.io/v1]

Description
ConsolePlugin is an extension for customizing OpenShift web console by dynamically loading code from another service running on the cluster. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
object
Required
  • metadata
  • spec

6.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

ConsolePluginSpec is the desired plugin configuration.

6.1.1. .spec

Description
ConsolePluginSpec is the desired plugin configuration.
Type
object
Required
  • backend
  • displayName
PropertyTypeDescription

backend

object

backend holds the configuration of backend which is serving console’s plugin .

displayName

string

displayName is the display name of the plugin. The dispalyName should be between 1 and 128 characters.

i18n

object

i18n is the configuration of plugin’s localization resources.

proxy

array

proxy is a list of proxies that describe various service type to which the plugin needs to connect to.

proxy[]

object

ConsolePluginProxy holds information on various service types to which console’s backend will proxy the plugin’s requests.

6.1.2. .spec.backend

Description
backend holds the configuration of backend which is serving console’s plugin .
Type
object
Required
  • type
PropertyTypeDescription

service

object

service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle.

type

string

type is the backend type which servers the console’s plugin. Currently only "Service" is supported. ---

6.1.3. .spec.backend.service

Description
service is a Kubernetes Service that exposes the plugin using a deployment with an HTTP server. The Service must use HTTPS and Service serving certificate. The console backend will proxy the plugins assets from the Service using the service CA bundle.
Type
object
Required
  • name
  • namespace
  • port
PropertyTypeDescription

basePath

string

basePath is the path to the plugin’s assets. The primary asset it the manifest file called plugin-manifest.json, which is a JSON document that contains metadata about the plugin and the extensions.

name

string

name of Service that is serving the plugin assets.

namespace

string

namespace of Service that is serving the plugin assets.

port

integer

port on which the Service that is serving the plugin is listening to.

6.1.4. .spec.i18n

Description
i18n is the configuration of plugin’s localization resources.
Type
object
Required
  • loadType
PropertyTypeDescription

loadType

string

loadType indicates how the plugin’s localization resource should be loaded. Valid values are Preload, Lazy and the empty string. When set to Preload, all localization resources are fetched when the plugin is loaded. When set to Lazy, localization resources are lazily loaded as and when they are required by the console. When omitted or set to the empty string, the behaviour is equivalent to Lazy type.

6.1.5. .spec.proxy

Description
proxy is a list of proxies that describe various service type to which the plugin needs to connect to.
Type
array

6.1.6. .spec.proxy[]

Description
ConsolePluginProxy holds information on various service types to which console’s backend will proxy the plugin’s requests.
Type
object
Required
  • alias
  • endpoint
PropertyTypeDescription

alias

string

alias is a proxy name that identifies the plugin’s proxy. An alias name should be unique per plugin. The console backend exposes following proxy endpoint: /api/proxy/plugin/<plugin-name>/<proxy-alias>/<request-path>?<optional-query-parameters> Request example path: /api/proxy/plugin/acm/search/pods?namespace=openshift-apiserver

authorization

string

authorization provides information about authorization type, which the proxied request should contain

caCertificate

string

caCertificate provides the cert authority certificate contents, in case the proxied Service is using custom service CA. By default, the service CA bundle provided by the service-ca operator is used.

endpoint

object

endpoint provides information about endpoint to which the request is proxied to.

6.1.7. .spec.proxy[].endpoint

Description
endpoint provides information about endpoint to which the request is proxied to.
Type
object
Required
  • type
PropertyTypeDescription

service

object

service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only "Service" type is supported.

type

string

type is the type of the console plugin’s proxy. Currently only "Service" is supported. ---

6.1.8. .spec.proxy[].endpoint.service

Description
service is an in-cluster Service that the plugin will connect to. The Service must use HTTPS. The console backend exposes an endpoint in order to proxy communication between the plugin and the Service. Note: service field is required for now, since currently only "Service" type is supported.
Type
object
Required
  • name
  • namespace
  • port
PropertyTypeDescription

name

string

name of Service that the plugin needs to connect to.

namespace

string

namespace of Service that the plugin needs to connect to

port

integer

port on which the Service that the plugin needs to connect to is listening on.

6.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consoleplugins

    • DELETE: delete collection of ConsolePlugin
    • GET: list objects of kind ConsolePlugin
    • POST: create a ConsolePlugin
  • /apis/console.openshift.io/v1/consoleplugins/{name}

    • DELETE: delete a ConsolePlugin
    • GET: read the specified ConsolePlugin
    • PATCH: partially update the specified ConsolePlugin
    • PUT: replace the specified ConsolePlugin

6.2.1. /apis/console.openshift.io/v1/consoleplugins

HTTP method
DELETE
Description
delete collection of ConsolePlugin
Table 6.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsolePlugin
Table 6.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsolePluginList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsolePlugin
Table 6.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 6.4. Body parameters
ParameterTypeDescription

body

ConsolePlugin schema

 
Table 6.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsolePlugin schema

201 - Created

ConsolePlugin schema

202 - Accepted

ConsolePlugin schema

401 - Unauthorized

Empty

6.2.2. /apis/console.openshift.io/v1/consoleplugins/{name}

Table 6.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsolePlugin

HTTP method
DELETE
Description
delete a ConsolePlugin
Table 6.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 6.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsolePlugin
Table 6.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsolePlugin schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsolePlugin
Table 6.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 6.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsolePlugin schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsolePlugin
Table 6.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 6.13. Body parameters
ParameterTypeDescription

body

ConsolePlugin schema

 
Table 6.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsolePlugin schema

201 - Created

ConsolePlugin schema

401 - Unauthorized

Empty

Chapter 7. ConsoleQuickStart [console.openshift.io/v1]

Description
ConsoleQuickStart is an extension for guiding user through various workflows in the OpenShift web console. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object
Required
  • spec

7.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

ConsoleQuickStartSpec is the desired quick start configuration.

7.1.1. .spec

Description
ConsoleQuickStartSpec is the desired quick start configuration.
Type
object
Required
  • description
  • displayName
  • durationMinutes
  • introduction
  • tasks
PropertyTypeDescription

accessReviewResources

array

accessReviewResources contains a list of resources that the user’s access will be reviewed against in order for the user to complete the Quick Start. The Quick Start will be hidden if any of the access reviews fail.

accessReviewResources[]

object

ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface

conclusion

string

conclusion sums up the Quick Start and suggests the possible next steps. (includes markdown)

description

string

description is the description of the Quick Start. (includes markdown)

displayName

string

displayName is the display name of the Quick Start.

durationMinutes

integer

durationMinutes describes approximately how many minutes it will take to complete the Quick Start.

icon

string

icon is a base64 encoded image that will be displayed beside the Quick Start display name. The icon should be an vector image for easy scaling. The size of the icon should be 40x40.

introduction

string

introduction describes the purpose of the Quick Start. (includes markdown)

nextQuickStart

array (string)

nextQuickStart is a list of the following Quick Starts, suggested for the user to try.

prerequisites

array (string)

prerequisites contains all prerequisites that need to be met before taking a Quick Start. (includes markdown)

tags

array (string)

tags is a list of strings that describe the Quick Start.

tasks

array

tasks is the list of steps the user has to perform to complete the Quick Start.

tasks[]

object

ConsoleQuickStartTask is a single step in a Quick Start.

7.1.2. .spec.accessReviewResources

Description
accessReviewResources contains a list of resources that the user’s access will be reviewed against in order for the user to complete the Quick Start. The Quick Start will be hidden if any of the access reviews fail.
Type
array

7.1.3. .spec.accessReviewResources[]

Description
ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface
Type
object
PropertyTypeDescription

group

string

Group is the API Group of the Resource. "*" means all.

name

string

Name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.

namespace

string

Namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview

resource

string

Resource is one of the existing resource types. "*" means all.

subresource

string

Subresource is one of the existing resource types. "" means none.

verb

string

Verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

version

string

Version is the API Version of the Resource. "*" means all.

7.1.4. .spec.tasks

Description
tasks is the list of steps the user has to perform to complete the Quick Start.
Type
array

7.1.5. .spec.tasks[]

Description
ConsoleQuickStartTask is a single step in a Quick Start.
Type
object
Required
  • description
  • title
PropertyTypeDescription

description

string

description describes the steps needed to complete the task. (includes markdown)

review

object

review contains instructions to validate the task is complete. The user will select 'Yes' or 'No'. using a radio button, which indicates whether the step was completed successfully.

summary

object

summary contains information about the passed step.

title

string

title describes the task and is displayed as a step heading.

7.1.6. .spec.tasks[].review

Description
review contains instructions to validate the task is complete. The user will select 'Yes' or 'No'. using a radio button, which indicates whether the step was completed successfully.
Type
object
Required
  • failedTaskHelp
  • instructions
PropertyTypeDescription

failedTaskHelp

string

failedTaskHelp contains suggestions for a failed task review and is shown at the end of task. (includes markdown)

instructions

string

instructions contains steps that user needs to take in order to validate his work after going through a task. (includes markdown)

7.1.7. .spec.tasks[].summary

Description
summary contains information about the passed step.
Type
object
Required
  • failed
  • success
PropertyTypeDescription

failed

string

failed briefly describes the unsuccessfully passed task. (includes markdown)

success

string

success describes the succesfully passed task.

7.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consolequickstarts

    • DELETE: delete collection of ConsoleQuickStart
    • GET: list objects of kind ConsoleQuickStart
    • POST: create a ConsoleQuickStart
  • /apis/console.openshift.io/v1/consolequickstarts/{name}

    • DELETE: delete a ConsoleQuickStart
    • GET: read the specified ConsoleQuickStart
    • PATCH: partially update the specified ConsoleQuickStart
    • PUT: replace the specified ConsoleQuickStart

7.2.1. /apis/console.openshift.io/v1/consolequickstarts

HTTP method
DELETE
Description
delete collection of ConsoleQuickStart
Table 7.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsoleQuickStart
Table 7.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleQuickStartList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsoleQuickStart
Table 7.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 7.4. Body parameters
ParameterTypeDescription

body

ConsoleQuickStart schema

 
Table 7.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleQuickStart schema

201 - Created

ConsoleQuickStart schema

202 - Accepted

ConsoleQuickStart schema

401 - Unauthorized

Empty

7.2.2. /apis/console.openshift.io/v1/consolequickstarts/{name}

Table 7.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleQuickStart

HTTP method
DELETE
Description
delete a ConsoleQuickStart
Table 7.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 7.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsoleQuickStart
Table 7.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleQuickStart schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsoleQuickStart
Table 7.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 7.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleQuickStart schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsoleQuickStart
Table 7.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 7.13. Body parameters
ParameterTypeDescription

body

ConsoleQuickStart schema

 
Table 7.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleQuickStart schema

201 - Created

ConsoleQuickStart schema

401 - Unauthorized

Empty

Chapter 8. ConsoleSample [console.openshift.io/v1]

Description
ConsoleSample is an extension to customizing OpenShift web console by adding samples. Compatibility level 1: Stable within a major release for a minimum of 12 months or 3 minor releases (whichever is longer).
Type
object
Required
  • metadata
  • spec

8.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

spec contains configuration for a console sample.

8.1.1. .spec

Description
spec contains configuration for a console sample.
Type
object
Required
  • abstract
  • description
  • source
  • title
PropertyTypeDescription

abstract

string

abstract is a short introduction to the sample. It is required and must be no more than 100 characters in length. The abstract is shown on the sample card tile below the title and provider and is limited to three lines of content.

description

string

description is a long form explanation of the sample. It is required and can have a maximum length of 4096 characters. It is a README.md-like content for additional information, links, pre-conditions, and other instructions. It will be rendered as Markdown so that it can contain line breaks, links, and other simple formatting.

icon

string

icon is an optional base64 encoded image and shown beside the sample title. The format must follow the data: URL format and can have a maximum size of 10 KB. data:[<mediatype>][;base64],<base64 encoded image> For example: data:image;base64, plus the base64 encoded image. Vector images can also be used. SVG icons must start with: data:image/svg+xml;base64, plus the base64 encoded SVG image. All sample catalog icons will be shown on a white background (also when the dark theme is used). The web console ensures that different aspect ratios work correctly. Currently, the surface of the icon is at most 40x100px. For more information on the data URL format, please visit https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URLs.

provider

string

provider is an optional label to honor who provides the sample. It is optional and must be no more than 50 characters in length. A provider can be a company like "Red Hat" or an organization like "CNCF" or "Knative". Currently, the provider is only shown on the sample card tile below the title with the prefix "Provided by "

source

object

source defines where to deploy the sample service from. The sample may be sourced from an external git repository or container image.

tags

array (string)

tags are optional string values that can be used to find samples in the samples catalog. Examples of common tags may be "Java", "Quarkus", etc. They will be displayed on the samples details page.

title

string

title is the display name of the sample. It is required and must be no more than 50 characters in length.

type

string

type is an optional label to group multiple samples. It is optional and must be no more than 20 characters in length. Recommendation is a singular term like "Builder Image", "Devfile" or "Serverless Function". Currently, the type is shown a badge on the sample card tile in the top right corner.

8.1.2. .spec.source

Description
source defines where to deploy the sample service from. The sample may be sourced from an external git repository or container image.
Type
object
Required
  • type
PropertyTypeDescription

containerImport

object

containerImport allows the user import a container image.

gitImport

object

gitImport allows the user to import code from a git repository.

type

string

type of the sample, currently supported: "GitImport";"ContainerImport"

8.1.3. .spec.source.containerImport

Description
containerImport allows the user import a container image.
Type
object
Required
  • image
PropertyTypeDescription

image

string

reference to a container image that provides a HTTP service. The service must be exposed on the default port (8080) unless otherwise configured with the port field. Supported formats: - <repository-name>/<image-name> - docker.io/<repository-name>/<image-name> - quay.io/<repository-name>/<image-name> - quay.io/<repository-name>/<image-name>@sha256:<image hash> - quay.io/<repository-name>/<image-name>:<tag>

service

object

service contains configuration for the Service resource created for this sample.

8.1.4. .spec.source.containerImport.service

Description
service contains configuration for the Service resource created for this sample.
Type
object
PropertyTypeDescription

targetPort

integer

targetPort is the port that the service listens on for HTTP requests. This port will be used for Service and Route created for this sample. Port must be in the range 1 to 65535. Default port is 8080.

8.1.5. .spec.source.gitImport

Description
gitImport allows the user to import code from a git repository.
Type
object
Required
  • repository
PropertyTypeDescription

repository

object

repository contains the reference to the actual Git repository.

service

object

service contains configuration for the Service resource created for this sample.

8.1.6. .spec.source.gitImport.repository

Description
repository contains the reference to the actual Git repository.
Type
object
Required
  • url
PropertyTypeDescription

contextDir

string

contextDir is used to specify a directory within the repository to build the component. Must start with / and have a maximum length of 256 characters. When omitted, the default value is to build from the root of the repository.

revision

string

revision is the git revision at which to clone the git repository Can be used to clone a specific branch, tag or commit SHA. Must be at most 256 characters in length. When omitted the repository’s default branch is used.

url

string

url of the Git repository that contains a HTTP service. The HTTP service must be exposed on the default port (8080) unless otherwise configured with the port field. Only public repositories on GitHub, GitLab and Bitbucket are currently supported: - https://github.com/<org>/<repository> - https://gitlab.com/<org>/<repository> - https://bitbucket.org/<org>/<repository> The url must have a maximum length of 256 characters.

8.1.7. .spec.source.gitImport.service

Description
service contains configuration for the Service resource created for this sample.
Type
object
PropertyTypeDescription

targetPort

integer

targetPort is the port that the service listens on for HTTP requests. This port will be used for Service created for this sample. Port must be in the range 1 to 65535. Default port is 8080.

8.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consolesamples

    • DELETE: delete collection of ConsoleSample
    • GET: list objects of kind ConsoleSample
    • POST: create a ConsoleSample
  • /apis/console.openshift.io/v1/consolesamples/{name}

    • DELETE: delete a ConsoleSample
    • GET: read the specified ConsoleSample
    • PATCH: partially update the specified ConsoleSample
    • PUT: replace the specified ConsoleSample

8.2.1. /apis/console.openshift.io/v1/consolesamples

HTTP method
DELETE
Description
delete collection of ConsoleSample
Table 8.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsoleSample
Table 8.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleSampleList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsoleSample
Table 8.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 8.4. Body parameters
ParameterTypeDescription

body

ConsoleSample schema

 
Table 8.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleSample schema

201 - Created

ConsoleSample schema

202 - Accepted

ConsoleSample schema

401 - Unauthorized

Empty

8.2.2. /apis/console.openshift.io/v1/consolesamples/{name}

Table 8.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleSample

HTTP method
DELETE
Description
delete a ConsoleSample
Table 8.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 8.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsoleSample
Table 8.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleSample schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsoleSample
Table 8.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 8.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleSample schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsoleSample
Table 8.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 8.13. Body parameters
ParameterTypeDescription

body

ConsoleSample schema

 
Table 8.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleSample schema

201 - Created

ConsoleSample schema

401 - Unauthorized

Empty

Chapter 9. ConsoleYAMLSample [console.openshift.io/v1]

Description
ConsoleYAMLSample is an extension for customizing OpenShift web console YAML samples. Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
Type
object
Required
  • metadata
  • spec

9.1. Specification

PropertyTypeDescription

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

ObjectMeta

Standard object’s metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata

spec

object

ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.

9.1.1. .spec

Description
ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.
Type
object
Required
  • description
  • targetResource
  • title
  • yaml
PropertyTypeDescription

description

string

description of the YAML sample.

snippet

boolean

snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user’s cursor.

targetResource

object

targetResource contains apiVersion and kind of the resource YAML sample is representating.

title

string

title of the YAML sample.

yaml

string

yaml is the YAML sample to display.

9.1.2. .spec.targetResource

Description
targetResource contains apiVersion and kind of the resource YAML sample is representating.
Type
object
PropertyTypeDescription

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

9.2. API endpoints

The following API endpoints are available:

  • /apis/console.openshift.io/v1/consoleyamlsamples

    • DELETE: delete collection of ConsoleYAMLSample
    • GET: list objects of kind ConsoleYAMLSample
    • POST: create a ConsoleYAMLSample
  • /apis/console.openshift.io/v1/consoleyamlsamples/{name}

    • DELETE: delete a ConsoleYAMLSample
    • GET: read the specified ConsoleYAMLSample
    • PATCH: partially update the specified ConsoleYAMLSample
    • PUT: replace the specified ConsoleYAMLSample

9.2.1. /apis/console.openshift.io/v1/consoleyamlsamples

HTTP method
DELETE
Description
delete collection of ConsoleYAMLSample
Table 9.1. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
list objects of kind ConsoleYAMLSample
Table 9.2. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleYAMLSampleList schema

401 - Unauthorized

Empty

HTTP method
POST
Description
create a ConsoleYAMLSample
Table 9.3. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 9.4. Body parameters
ParameterTypeDescription

body

ConsoleYAMLSample schema

 
Table 9.5. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleYAMLSample schema

201 - Created

ConsoleYAMLSample schema

202 - Accepted

ConsoleYAMLSample schema

401 - Unauthorized

Empty

9.2.2. /apis/console.openshift.io/v1/consoleyamlsamples/{name}

Table 9.6. Global path parameters
ParameterTypeDescription

name

string

name of the ConsoleYAMLSample

HTTP method
DELETE
Description
delete a ConsoleYAMLSample
Table 9.7. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

Table 9.8. HTTP responses
HTTP codeReponse body

200 - OK

Status schema

202 - Accepted

Status schema

401 - Unauthorized

Empty

HTTP method
GET
Description
read the specified ConsoleYAMLSample
Table 9.9. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleYAMLSample schema

401 - Unauthorized

Empty

HTTP method
PATCH
Description
partially update the specified ConsoleYAMLSample
Table 9.10. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 9.11. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleYAMLSample schema

401 - Unauthorized

Empty

HTTP method
PUT
Description
replace the specified ConsoleYAMLSample
Table 9.12. Query parameters
ParameterTypeDescription

dryRun

string

When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed

fieldValidation

string

fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.

Table 9.13. Body parameters
ParameterTypeDescription

body

ConsoleYAMLSample schema

 
Table 9.14. HTTP responses
HTTP codeReponse body

200 - OK

ConsoleYAMLSample schema

201 - Created

ConsoleYAMLSample schema

401 - Unauthorized

Empty

Legal Notice

Copyright © 2024 Red Hat, Inc.
The text of and illustrations in this document are licensed by Red Hat under a Creative Commons Attribution–Share Alike 3.0 Unported license ("CC-BY-SA"). An explanation of CC-BY-SA is available at http://creativecommons.org/licenses/by-sa/3.0/. In accordance with CC-BY-SA, if you distribute this document or an adaptation of it, you must provide the URL for the original version.
Red Hat, as the licensor of this document, waives the right to enforce, and agrees not to assert, Section 4d of CC-BY-SA to the fullest extent permitted by applicable law.
Red Hat, Red Hat Enterprise Linux, the Shadowman logo, the Red Hat logo, JBoss, OpenShift, Fedora, the Infinity logo, and RHCE are trademarks of Red Hat, Inc., registered in the United States and other countries.
Linux® is the registered trademark of Linus Torvalds in the United States and other countries.
Java® is a registered trademark of Oracle and/or its affiliates.
XFS® is a trademark of Silicon Graphics International Corp. or its subsidiaries in the United States and/or other countries.
MySQL® is a registered trademark of MySQL AB in the United States, the European Union and other countries.
Node.js® is an official trademark of Joyent. Red Hat is not formally related to or endorsed by the official Joyent Node.js open source or commercial project.
The OpenStack® Word Mark and OpenStack logo are either registered trademarks/service marks or trademarks/service marks of the OpenStack Foundation, in the United States and other countries and are used with the OpenStack Foundation's permission. We are not affiliated with, endorsed or sponsored by the OpenStack Foundation, or the OpenStack community.
All other trademarks are the property of their respective owners.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.