From c138ca1069fa263bc97dac56cfc976315b476d38 Mon Sep 17 00:00:00 2001 From: Kanwar Saad Bin Liaqat Date: Sun, 8 Sep 2019 23:55:37 +0300 Subject: [PATCH] computerSystem api support Support for redfish root, system list, system get and system reset action. --- Makefile | 11 + client/.gitignore | 24 + client/.openapi-generator-ignore | 23 + client/.openapi-generator/VERSION | 1 + client/.travis.yml | 8 + client/README.md | 76 + client/api/openapi.yaml | 652 ++ client/api_default.go | 468 + client/client.go | 499 + client/configuration.go | 72 + client/docs/Boot.md | 13 + client/docs/BootSource.md | 10 + client/docs/BootSourceOverrideEnabled.md | 10 + client/docs/Collection.md | 19 + client/docs/ComputerSystem.md | 31 + client/docs/ComputerSystemActions.md | 11 + client/docs/ComputerSystemReset.md | 12 + client/docs/DefaultApi.md | 157 + client/docs/Health.md | 10 + client/docs/IdRef.md | 11 + client/docs/IndicatorLed.md | 10 + client/docs/Links.md | 12 + client/docs/MemorySummary.md | 13 + client/docs/Message.md | 16 + client/docs/PowerState.md | 10 + client/docs/ProcessorSummary.md | 12 + client/docs/RedfishError.md | 11 + client/docs/RedfishErrorError.md | 13 + client/docs/ResetRequestBody.md | 11 + client/docs/ResetType.md | 10 + client/docs/Root.md | 19 + client/docs/State.md | 10 + client/docs/Status.md | 13 + client/git_push.sh | 52 + client/go.mod | 6 + client/go.sum | 11 + client/model_boot.go | 16 + client/model_boot_source.go | 30 + client/model_boot_source_override_enabled.go | 17 + client/model_collection.go | 32 + client/model_computer_system.go | 42 + client/model_computer_system_actions.go | 14 + client/model_computer_system_reset.go | 16 + client/model_health.go | 18 + client/model_id_ref.go | 16 + client/model_indicator_led.go | 19 + client/model_links.go | 15 + client/model_memory_summary.go | 16 + client/model_message.go | 19 + client/model_power_state.go | 19 + client/model_processor_summary.go | 15 + client/model_redfish_error.go | 15 + client/model_redfish_error_error.go | 16 + client/model_reset_request_body.go | 14 + client/model_reset_type.go | 24 + client/model_root.go | 29 + client/model_state.go | 26 + client/model_status.go | 16 + client/response.go | 43 + spec/openapi.yaml | 458 + spec/openapi.yaml.redfish | 8723 ++++++++++++++++++ 61 files changed, 12015 insertions(+) create mode 100644 Makefile create mode 100644 client/.gitignore create mode 100644 client/.openapi-generator-ignore create mode 100644 client/.openapi-generator/VERSION create mode 100644 client/.travis.yml create mode 100644 client/README.md create mode 100644 client/api/openapi.yaml create mode 100644 client/api_default.go create mode 100644 client/client.go create mode 100644 client/configuration.go create mode 100644 client/docs/Boot.md create mode 100644 client/docs/BootSource.md create mode 100644 client/docs/BootSourceOverrideEnabled.md create mode 100644 client/docs/Collection.md create mode 100644 client/docs/ComputerSystem.md create mode 100644 client/docs/ComputerSystemActions.md create mode 100644 client/docs/ComputerSystemReset.md create mode 100644 client/docs/DefaultApi.md create mode 100644 client/docs/Health.md create mode 100644 client/docs/IdRef.md create mode 100644 client/docs/IndicatorLed.md create mode 100644 client/docs/Links.md create mode 100644 client/docs/MemorySummary.md create mode 100644 client/docs/Message.md create mode 100644 client/docs/PowerState.md create mode 100644 client/docs/ProcessorSummary.md create mode 100644 client/docs/RedfishError.md create mode 100644 client/docs/RedfishErrorError.md create mode 100644 client/docs/ResetRequestBody.md create mode 100644 client/docs/ResetType.md create mode 100644 client/docs/Root.md create mode 100644 client/docs/State.md create mode 100644 client/docs/Status.md create mode 100644 client/git_push.sh create mode 100644 client/go.mod create mode 100644 client/go.sum create mode 100644 client/model_boot.go create mode 100644 client/model_boot_source.go create mode 100644 client/model_boot_source_override_enabled.go create mode 100644 client/model_collection.go create mode 100644 client/model_computer_system.go create mode 100644 client/model_computer_system_actions.go create mode 100644 client/model_computer_system_reset.go create mode 100644 client/model_health.go create mode 100644 client/model_id_ref.go create mode 100644 client/model_indicator_led.go create mode 100644 client/model_links.go create mode 100644 client/model_memory_summary.go create mode 100644 client/model_message.go create mode 100644 client/model_power_state.go create mode 100644 client/model_processor_summary.go create mode 100644 client/model_redfish_error.go create mode 100644 client/model_redfish_error_error.go create mode 100644 client/model_reset_request_body.go create mode 100644 client/model_reset_type.go create mode 100644 client/model_root.go create mode 100644 client/model_state.go create mode 100644 client/model_status.go create mode 100644 client/response.go create mode 100644 spec/openapi.yaml create mode 100644 spec/openapi.yaml.redfish diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..57ba731 --- /dev/null +++ b/Makefile @@ -0,0 +1,11 @@ +.PHONY: code-gen +code-gen: + rm -rf redfish_client + openapi-generator generate -i ./spec/openapi.yaml -g go -o client/ + +.PHONY: deps +deps: + go get github.com/stretchr/testify/assert + go get golang.org/x/oauth2 + go get golang.org/x/net/context + go get github.com/antihax/optional diff --git a/client/.gitignore b/client/.gitignore new file mode 100644 index 0000000..daf913b --- /dev/null +++ b/client/.gitignore @@ -0,0 +1,24 @@ +# Compiled Object files, Static and Dynamic libs (Shared Objects) +*.o +*.a +*.so + +# Folders +_obj +_test + +# Architecture specific extensions/prefixes +*.[568vq] +[568vq].out + +*.cgo1.go +*.cgo2.c +_cgo_defun.c +_cgo_gotypes.go +_cgo_export.* + +_testmain.go + +*.exe +*.test +*.prof diff --git a/client/.openapi-generator-ignore b/client/.openapi-generator-ignore new file mode 100644 index 0000000..7484ee5 --- /dev/null +++ b/client/.openapi-generator-ignore @@ -0,0 +1,23 @@ +# OpenAPI Generator Ignore +# Generated by openapi-generator https://github.com/openapitools/openapi-generator + +# Use this file to prevent files from being overwritten by the generator. +# The patterns follow closely to .gitignore or .dockerignore. + +# As an example, the C# client generator defines ApiClient.cs. +# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: +#ApiClient.cs + +# You can match any string of characters against a directory, file or extension with a single asterisk (*): +#foo/*/qux +# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux + +# You can recursively match patterns against a directory, file or extension with a double asterisk (**): +#foo/**/qux +# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux + +# You can also negate patterns with an exclamation (!). +# For example, you can ignore all files in a docs folder with the file extension .md: +#docs/*.md +# Then explicitly reverse the ignore rule for a single file: +#!docs/README.md diff --git a/client/.openapi-generator/VERSION b/client/.openapi-generator/VERSION new file mode 100644 index 0000000..2582ddd --- /dev/null +++ b/client/.openapi-generator/VERSION @@ -0,0 +1 @@ +4.1.1 \ No newline at end of file diff --git a/client/.travis.yml b/client/.travis.yml new file mode 100644 index 0000000..f5cb2ce --- /dev/null +++ b/client/.travis.yml @@ -0,0 +1,8 @@ +language: go + +install: + - go get -d -v . + +script: + - go build -v ./ + diff --git a/client/README.md b/client/README.md new file mode 100644 index 0000000..14eecea --- /dev/null +++ b/client/README.md @@ -0,0 +1,76 @@ +# Go API client for openapi + +Partial Redfish OAPI specification for a limited client + +## Overview +This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. + +- API version: 0.0.1 +- Package version: 1.0.0 +- Build package: org.openapitools.codegen.languages.GoClientCodegen + +## Installation + +Install the following dependencies: + +```shell +go get github.com/stretchr/testify/assert +go get golang.org/x/oauth2 +go get golang.org/x/net/context +go get github.com/antihax/optional +``` + +Put the package under your project folder and add the following in import: + +```golang +import "./openapi" +``` + +## Documentation for API Endpoints + +All URIs are relative to *http://localhost* + +Class | Method | HTTP request | Description +------------ | ------------- | ------------- | ------------- +*DefaultApi* | [**GetRoot**](docs/DefaultApi.md#getroot) | **Get** /redfish/v1 | +*DefaultApi* | [**GetSystem**](docs/DefaultApi.md#getsystem) | **Get** /redfish/v1/Systems/{systemId} | +*DefaultApi* | [**ListManagers**](docs/DefaultApi.md#listmanagers) | **Get** /redfish/v1/Managers | +*DefaultApi* | [**ListSystems**](docs/DefaultApi.md#listsystems) | **Get** /redfish/v1/Systems | +*DefaultApi* | [**ResetSystem**](docs/DefaultApi.md#resetsystem) | **Post** /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset | + + +## Documentation For Models + + - [Boot](docs/Boot.md) + - [BootSource](docs/BootSource.md) + - [BootSourceOverrideEnabled](docs/BootSourceOverrideEnabled.md) + - [Collection](docs/Collection.md) + - [ComputerSystem](docs/ComputerSystem.md) + - [ComputerSystemActions](docs/ComputerSystemActions.md) + - [ComputerSystemReset](docs/ComputerSystemReset.md) + - [Health](docs/Health.md) + - [IdRef](docs/IdRef.md) + - [IndicatorLed](docs/IndicatorLed.md) + - [Links](docs/Links.md) + - [MemorySummary](docs/MemorySummary.md) + - [Message](docs/Message.md) + - [PowerState](docs/PowerState.md) + - [ProcessorSummary](docs/ProcessorSummary.md) + - [RedfishError](docs/RedfishError.md) + - [RedfishErrorError](docs/RedfishErrorError.md) + - [ResetRequestBody](docs/ResetRequestBody.md) + - [ResetType](docs/ResetType.md) + - [Root](docs/Root.md) + - [State](docs/State.md) + - [Status](docs/Status.md) + + +## Documentation For Authorization + + Endpoints do not require authorization. + + +## Author + + + diff --git a/client/api/openapi.yaml b/client/api/openapi.yaml new file mode 100644 index 0000000..d40a8a2 --- /dev/null +++ b/client/api/openapi.yaml @@ -0,0 +1,652 @@ +openapi: 3.0.2 +info: + description: Partial Redfish OAPI specification for a limited client + title: Redfish OAPI specification + version: 0.0.1 +servers: +- url: / +paths: + /redfish/v1: + get: + operationId: get_root + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/Root' + description: Get redfish root + /redfish/v1/Systems: + get: + operationId: list_systems + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/Collection' + description: Computer Systems List + /redfish/v1/Systems/{systemId}: + get: + operationId: get_system + parameters: + - description: ID of resource + explode: false + in: path + name: systemId + required: true + schema: + type: string + style: simple + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/ComputerSystem' + description: Computer Systems List + /redfish/v1/Managers: + get: + operationId: list_managers + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/Collection' + description: Managers List + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset: + post: + operationId: reset_system + parameters: + - explode: false + in: path + name: ComputerSystemId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResetRequestBody' + required: true + responses: + 200: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Success with response + 204: + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition +components: + schemas: + BootSource: + enum: + - None + - Pxe + - Floppy + - Cd + - Usb + - Hdd + - BiosSetup + - Utilities + - Diags + - UefiShell + - UefiTarget + - SDCard + - UefiHttp + - RemoteDrive + - UefiBootNext + type: string + BootSourceOverrideEnabled: + enum: + - Once + - Continuous + type: string + State: + enum: + - Enabled + - Disabled + - StandbyOffline + - StandbySpare + - InTest + - Starting + - Absent + - UnavailableOffline + - Deferring + - Quiesced + - Updating + type: string + Health: + enum: + - OK + - Warning + - Critical + type: string + PowerState: + enum: + - "true" + - "false" + - PoweringOn + - PoweringOff + type: string + ResetType: + enum: + - On + - ForceOff + - GracefulShutdown + - GracefulRestart + - ForceRestart + - Nmi + - ForceOn + - PushPowerButton + - PowerCycle + type: string + IndicatorLED: + enum: + - Unknown + - Lit + - Blinking + - Off + type: string + context: + description: The OData description of a payload. + format: uri-reference + readOnly: true + type: string + count: + description: The number of items in a collection. + readOnly: true + type: integer + name: + description: The name of the resource. + readOnly: true + type: string + etag: + description: The current ETag of the resource. + readOnly: true + type: string + id: + description: The name of the resource. + readOnly: true + type: string + odataId: + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + idRef: + additionalProperties: false + description: A reference to a resource. + example: + '@odata.id': '@odata.id' + properties: + '@odata.id': + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + type: object + nextLink: + description: The URI to the resource containing the next set of partial members. + format: uri-reference + readOnly: true + type: string + rtype: + description: The type of a resource. + readOnly: true + type: string + UUID: + pattern: ([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}) + type: string + Message: + additionalProperties: false + example: + MessageArgs: + - MessageArgs + - MessageArgs + Message: Message + RelatedProperties: + - RelatedProperties + - RelatedProperties + Severity: Severity + MessageId: MessageId + Resolution: Resolution + properties: + Message: + readOnly: true + type: string + MessageArgs: + items: + type: string + readOnly: true + type: array + MessageId: + readOnly: true + type: string + RelatedProperties: + items: + type: string + readOnly: true + type: array + Resolution: + readOnly: true + type: string + Severity: + readOnly: true + type: string + required: + - MessageId + type: object + RedfishError: + description: Contains an error payload from a Redfish Service. + example: + error: + '@Message.ExtendedInfo': + - MessageArgs: + - MessageArgs + - MessageArgs + Message: Message + RelatedProperties: + - RelatedProperties + - RelatedProperties + Severity: Severity + MessageId: MessageId + Resolution: Resolution + - MessageArgs: + - MessageArgs + - MessageArgs + Message: Message + RelatedProperties: + - RelatedProperties + - RelatedProperties + Severity: Severity + MessageId: MessageId + Resolution: Resolution + code: code + message: message + properties: + error: + $ref: '#/components/schemas/RedfishError_error' + required: + - error + type: object + Root: + additionalProperties: false + description: Root redfish path. + example: + '@odata.id': '@odata.id' + Managers: + '@odata.id': '@odata.id' + '@odata.type': '@odata.type' + RedfishVersion: RedfishVersion + Id: Id + UUID: UUID + '@Redfish.Copyright': '@Redfish.Copyright' + Systems: + '@odata.id': '@odata.id' + Name: Name + properties: + Id: + description: The name of the resource. + readOnly: true + type: string + Name: + description: The name of the resource. + readOnly: true + type: string + RedfishVersion: + description: redfish version + type: string + UUID: + pattern: ([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}) + type: string + '@odata.type': + description: The type of a resource. + readOnly: true + type: string + '@odata.id': + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + '@Redfish.Copyright': + description: redfish copyright + type: string + Systems: + $ref: '#/components/schemas/idRef' + Managers: + $ref: '#/components/schemas/idRef' + required: + - '@odata.id' + - '@odata.type' + - Name + type: object + Collection: + additionalProperties: false + description: A Collection of ComputerSystem resource instances. + example: + '@odata.id': '@odata.id' + Description: Description + '@odata.type': '@odata.type' + Members@odata.count: 0 + '@odata.etag': '@odata.etag' + '@odata.context': '@odata.context' + Members@odata.nextLink: Members@odata.nextLink + Members: + - '@odata.id': '@odata.id' + - '@odata.id': '@odata.id' + Name: Name + properties: + '@odata.context': + description: context + type: string + '@odata.etag': + description: etag + type: string + '@odata.id': + description: id + type: string + '@odata.type': + description: type + type: string + Description: + description: description + readOnly: true + type: string + Members: + description: Contains the members of this collection. + items: + $ref: '#/components/schemas/idRef' + readOnly: true + type: array + Members@odata.count: + description: The number of items in a collection. + readOnly: true + type: integer + Members@odata.nextLink: + description: The URI to the resource containing the next set of partial + members. + format: uri-reference + readOnly: true + type: string + Name: + description: The name of the resource. + readOnly: true + type: string + required: + - '@odata.id' + - '@odata.type' + - Members + - Name + type: object + Status: + additionalProperties: false + example: {} + properties: + Health: + $ref: '#/components/schemas/Health' + HealthRollup: + $ref: '#/components/schemas/Health' + State: + $ref: '#/components/schemas/State' + type: object + Boot: + additionalProperties: false + example: + BootSourceOverrideTarget@Redfish.AllowableValues: + - null + - null + properties: + BootSourceOverrideEnabled: + $ref: '#/components/schemas/BootSourceOverrideEnabled' + BootSourceOverrideTarget: + $ref: '#/components/schemas/BootSource' + BootSourceOverrideTarget@Redfish.AllowableValues: + items: + $ref: '#/components/schemas/BootSource' + type: array + type: object + ProcessorSummary: + additionalProperties: false + example: + Status: {} + Count: 0 + properties: + Count: + minimum: 0 + readOnly: true + type: integer + Status: + $ref: '#/components/schemas/Status' + type: object + MemorySummary: + additionalProperties: false + example: + Status: {} + TotalSystemPersistentMemoryGiB: 0.14658129805029452 + TotalSystemMemoryGiB: 0.6027456183070403 + properties: + TotalSystemMemoryGiB: + minimum: 0 + readOnly: true + type: number + TotalSystemPersistentMemoryGiB: + minimum: 0 + readOnly: true + type: number + Status: + $ref: '#/components/schemas/Status' + type: object + Links: + additionalProperties: false + example: + Chassis: + - '@odata.id': '@odata.id' + - '@odata.id': '@odata.id' + ManagedBy: + - '@odata.id': '@odata.id' + - '@odata.id': '@odata.id' + properties: + Chassis: + items: + $ref: '#/components/schemas/idRef' + type: array + ManagedBy: + items: + $ref: '#/components/schemas/idRef' + type: array + type: object + ComputerSystemReset: + additionalProperties: false + example: + ResetType@Redfish.AllowableValues: + - null + - null + target: target + properties: + target: + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + ResetType@Redfish.AllowableValues: + items: + $ref: '#/components/schemas/ResetType' + type: array + type: object + ResetRequestBody: + additionalProperties: false + example: {} + properties: + ResetType: + $ref: '#/components/schemas/ResetType' + type: object + ComputerSystem: + additionalProperties: false + description: Root redfish path. + example: + Status: {} + Actions: + '#ComputerSystem.Reset': + ResetType@Redfish.AllowableValues: + - null + - null + target: target + '@odata.type': '@odata.type' + Memory: + '@odata.id': '@odata.id' + RedfishVersion: RedfishVersion + '@odata.context': '@odata.context' + Boot: + BootSourceOverrideTarget@Redfish.AllowableValues: + - null + - null + Name: Name + '@odata.id': '@odata.id' + Bios: + '@odata.id': '@odata.id' + ProcessorSummary: + Status: {} + Count: 0 + Links: + Chassis: + - '@odata.id': '@odata.id' + - '@odata.id': '@odata.id' + ManagedBy: + - '@odata.id': '@odata.id' + - '@odata.id': '@odata.id' + Id: Id + MemorySummary: + Status: {} + TotalSystemPersistentMemoryGiB: 0.14658129805029452 + TotalSystemMemoryGiB: 0.6027456183070403 + UUID: UUID + '@Redfish.Copyright': '@Redfish.Copyright' + Processors: + '@odata.id': '@odata.id' + EthernetInterfaces: + '@odata.id': '@odata.id' + SimpleStorage: + '@odata.id': '@odata.id' + properties: + Id: + description: The name of the resource. + readOnly: true + type: string + Name: + description: The name of the resource. + readOnly: true + type: string + RedfishVersion: + description: redfish version + type: string + UUID: + pattern: ([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}) + type: string + '@odata.type': + description: The type of a resource. + readOnly: true + type: string + '@odata.id': + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + '@odata.context': + description: The OData description of a payload. + format: uri-reference + readOnly: true + type: string + '@Redfish.Copyright': + description: redfish copyright + type: string + Bios: + $ref: '#/components/schemas/idRef' + Processors: + $ref: '#/components/schemas/idRef' + Memory: + $ref: '#/components/schemas/idRef' + EthernetInterfaces: + $ref: '#/components/schemas/idRef' + SimpleStorage: + $ref: '#/components/schemas/idRef' + PowerState: + $ref: '#/components/schemas/PowerState' + Status: + $ref: '#/components/schemas/Status' + Boot: + $ref: '#/components/schemas/Boot' + ProcessorSummary: + $ref: '#/components/schemas/ProcessorSummary' + MemorySummary: + $ref: '#/components/schemas/MemorySummary' + IndicatorLED: + $ref: '#/components/schemas/IndicatorLED' + Links: + $ref: '#/components/schemas/Links' + Actions: + $ref: '#/components/schemas/ComputerSystem_Actions' + required: + - '@odata.id' + - '@odata.type' + - Name + type: object + RedfishError_error: + example: + '@Message.ExtendedInfo': + - MessageArgs: + - MessageArgs + - MessageArgs + Message: Message + RelatedProperties: + - RelatedProperties + - RelatedProperties + Severity: Severity + MessageId: MessageId + Resolution: Resolution + - MessageArgs: + - MessageArgs + - MessageArgs + Message: Message + RelatedProperties: + - RelatedProperties + - RelatedProperties + Severity: Severity + MessageId: MessageId + Resolution: Resolution + code: code + message: message + properties: + '@Message.ExtendedInfo': + items: + $ref: '#/components/schemas/Message' + type: array + code: + readOnly: true + type: string + message: + readOnly: true + type: string + required: + - code + - message + ComputerSystem_Actions: + example: + '#ComputerSystem.Reset': + ResetType@Redfish.AllowableValues: + - null + - null + target: target + properties: + '#ComputerSystem.Reset': + $ref: '#/components/schemas/ComputerSystemReset' diff --git a/client/api_default.go b/client/api_default.go new file mode 100644 index 0000000..f96cde1 --- /dev/null +++ b/client/api_default.go @@ -0,0 +1,468 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + _context "context" + _ioutil "io/ioutil" + _nethttp "net/http" + _neturl "net/url" + "fmt" + "strings" +) + +// Linger please +var ( + _ _context.Context +) + +type DefaultApiService service + +/* +DefaultApiService + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return Root +*/ +func (a *DefaultApiService) GetRoot(ctx _context.Context) (Root, *_nethttp.Response, error) { + var ( + localVarHttpMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Root + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/redfish/v1" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v Root + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +DefaultApiService + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param systemId ID of resource +@return ComputerSystem +*/ +func (a *DefaultApiService) GetSystem(ctx _context.Context, systemId string) (ComputerSystem, *_nethttp.Response, error) { + var ( + localVarHttpMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue ComputerSystem + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{systemId}" + localVarPath = strings.Replace(localVarPath, "{"+"systemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", systemId)), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v ComputerSystem + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +DefaultApiService + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return Collection +*/ +func (a *DefaultApiService) ListManagers(ctx _context.Context) (Collection, *_nethttp.Response, error) { + var ( + localVarHttpMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Collection + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/redfish/v1/Managers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v Collection + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +DefaultApiService + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). +@return Collection +*/ +func (a *DefaultApiService) ListSystems(ctx _context.Context) (Collection, *_nethttp.Response, error) { + var ( + localVarHttpMethod = _nethttp.MethodGet + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue Collection + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v Collection + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} + +/* +DefaultApiService + * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + * @param computerSystemId + * @param resetRequestBody +@return RedfishError +*/ +func (a *DefaultApiService) ResetSystem(ctx _context.Context, computerSystemId string, resetRequestBody ResetRequestBody) (RedfishError, *_nethttp.Response, error) { + var ( + localVarHttpMethod = _nethttp.MethodPost + localVarPostBody interface{} + localVarFormFileName string + localVarFileName string + localVarFileBytes []byte + localVarReturnValue RedfishError + ) + + // create path and map variables + localVarPath := a.client.cfg.BasePath + "/redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset" + localVarPath = strings.Replace(localVarPath, "{"+"ComputerSystemId"+"}", _neturl.QueryEscape(fmt.Sprintf("%v", computerSystemId)), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := _neturl.Values{} + localVarFormParams := _neturl.Values{} + + // to determine the Content-Type header + localVarHttpContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes) + if localVarHttpContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHttpContentType + } + + // to determine the Accept header + localVarHttpHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts) + if localVarHttpHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHttpHeaderAccept + } + // body params + localVarPostBody = &resetRequestBody + r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFormFileName, localVarFileName, localVarFileBytes) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHttpResponse, err := a.client.callAPI(r) + if err != nil || localVarHttpResponse == nil { + return localVarReturnValue, localVarHttpResponse, err + } + + localVarBody, err := _ioutil.ReadAll(localVarHttpResponse.Body) + localVarHttpResponse.Body.Close() + if err != nil { + return localVarReturnValue, localVarHttpResponse, err + } + + if localVarHttpResponse.StatusCode >= 300 { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: localVarHttpResponse.Status, + } + if localVarHttpResponse.StatusCode == 200 { + var v RedfishError + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + if localVarHttpResponse.StatusCode == 0 { + var v RedfishError + err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHttpResponse, newErr + } + newErr.model = v + return localVarReturnValue, localVarHttpResponse, newErr + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type")) + if err != nil { + newErr := GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHttpResponse, newErr + } + + return localVarReturnValue, localVarHttpResponse, nil +} diff --git a/client/client.go b/client/client.go new file mode 100644 index 0000000..3a57da1 --- /dev/null +++ b/client/client.go @@ -0,0 +1,499 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "mime/multipart" + "net/http" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "golang.org/x/oauth2" +) + +var ( + jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) + xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) +) + +// APIClient manages communication with the Redfish OAPI specification API v0.0.1 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultApi *DefaultApiService +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(cfg *Configuration) *APIClient { + if cfg.HTTPClient == nil { + cfg.HTTPClient = http.DefaultClient + } + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultApi = (*DefaultApiService)(&c.common) + + return c +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insenstive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.ToLower(a) == strings.ToLower(needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. +func parameterToString(obj interface{}, collectionFormat string) string { + var delimiter string + + switch collectionFormat { + case "pipes": + delimiter = "|" + case "ssv": + delimiter = " " + case "tsv": + delimiter = "\t" + case "csv": + delimiter = "," + } + + if reflect.TypeOf(obj).Kind() == reflect.Slice { + return strings.Trim(strings.Replace(fmt.Sprint(obj), " ", delimiter, -1), "[]") + } else if t, ok := obj.(time.Time); ok { + return t.Format(time.RFC3339) + } + + return fmt.Sprintf("%v", obj) +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + return c.cfg.HTTPClient.Do(request) +} + +// Change base path to allow switching to mocks +func (c *APIClient) ChangeBasePath(path string) { + c.cfg.BasePath = path +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFileName string, + fileName string, + fileBytes []byte) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(fileBytes) > 0 && fileName != "") { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + if len(fileBytes) > 0 && fileName != "" { + w.Boundary() + //_, fileNm := filepath.Split(fileName) + part, err := w.CreateFormFile(formFileName, filepath.Base(fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(fileBytes) + if err != nil { + return nil, err + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = query.Encode() + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers.Set(h, v) + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + // OAuth2 authentication + if tok, ok := ctx.Value(ContextOAuth2).(oauth2.TokenSource); ok { + // We were able to grab an oauth2 token from the context + var latestToken *oauth2.Token + if latestToken, err = tok.Token(); err != nil { + return nil, err + } + + latestToken.SetAuthHeader(localVarRequest) + } + + // Basic HTTP Authentication + if auth, ok := ctx.Value(ContextBasicAuth).(BasicAuth); ok { + localVarRequest.SetBasicAuth(auth.UserName, auth.Password) + } + + // AccessToken Authentication + if auth, ok := ctx.Value(ContextAccessToken).(string); ok { + localVarRequest.Header.Add("Authorization", "Bearer "+auth) + } + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if xmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if jsonCheck.MatchString(contentType) { + if err = json.Unmarshal(b, v); err != nil { + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(path) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if jsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if xmlCheck.MatchString(contentType) { + err = xml.NewEncoder(bodyBuf).Encode(body) + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("Invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// GenericOpenAPIError Provides access to the body, error and model on returned errors. +type GenericOpenAPIError struct { + body []byte + error string + model interface{} +} + +// Error returns non-empty string if there was an error. +func (e GenericOpenAPIError) Error() string { + return e.error +} + +// Body returns the raw bytes of the response +func (e GenericOpenAPIError) Body() []byte { + return e.body +} + +// Model returns the unpacked model of the error +func (e GenericOpenAPIError) Model() interface{} { + return e.model +} diff --git a/client/configuration.go b/client/configuration.go new file mode 100644 index 0000000..ce11c96 --- /dev/null +++ b/client/configuration.go @@ -0,0 +1,72 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +// contextKeys are used to identify the type of value in the context. +// Since these are string, it is possible to get a short description of the +// context key for logging and debugging using key.String(). + +type contextKey string + +func (c contextKey) String() string { + return "auth " + string(c) +} + +var ( + // ContextOAuth2 takes an oauth2.TokenSource as authentication for the request. + ContextOAuth2 = contextKey("token") + + // ContextBasicAuth takes BasicAuth as authentication for the request. + ContextBasicAuth = contextKey("basic") + + // ContextAccessToken takes a string oauth2 access token as authentication for the request. + ContextAccessToken = contextKey("accesstoken") + + // ContextAPIKey takes an APIKey as authentication for the request + ContextAPIKey = contextKey("apikey") +) + +// BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth +type BasicAuth struct { + UserName string `json:"userName,omitempty"` + Password string `json:"password,omitempty"` +} + +// APIKey provides API key based authentication to a request passed via context using ContextAPIKey +type APIKey struct { + Key string + Prefix string +} + +type Configuration struct { + BasePath string `json:"basePath,omitempty"` + Host string `json:"host,omitempty"` + Scheme string `json:"scheme,omitempty"` + DefaultHeader map[string]string `json:"defaultHeader,omitempty"` + UserAgent string `json:"userAgent,omitempty"` + HTTPClient *http.Client +} + +func NewConfiguration() *Configuration { + cfg := &Configuration{ + BasePath: "http://localhost", + DefaultHeader: make(map[string]string), + UserAgent: "OpenAPI-Generator/1.0.0/go", + } + return cfg +} + +func (c *Configuration) AddDefaultHeader(key string, value string) { + c.DefaultHeader[key] = value +} diff --git a/client/docs/Boot.md b/client/docs/Boot.md new file mode 100644 index 0000000..4bd4c12 --- /dev/null +++ b/client/docs/Boot.md @@ -0,0 +1,13 @@ +# Boot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BootSourceOverrideEnabled** | [**BootSourceOverrideEnabled**](BootSourceOverrideEnabled.md) | | [optional] +**BootSourceOverrideTarget** | [**BootSource**](BootSource.md) | | [optional] +**BootSourceOverrideTargetRedfishAllowableValues** | [**[]BootSource**](BootSource.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BootSource.md b/client/docs/BootSource.md new file mode 100644 index 0000000..b7771af --- /dev/null +++ b/client/docs/BootSource.md @@ -0,0 +1,10 @@ +# BootSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/BootSourceOverrideEnabled.md b/client/docs/BootSourceOverrideEnabled.md new file mode 100644 index 0000000..14e9563 --- /dev/null +++ b/client/docs/BootSourceOverrideEnabled.md @@ -0,0 +1,10 @@ +# BootSourceOverrideEnabled + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Collection.md b/client/docs/Collection.md new file mode 100644 index 0000000..9e88720 --- /dev/null +++ b/client/docs/Collection.md @@ -0,0 +1,19 @@ +# Collection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OdataContext** | **string** | context | [optional] +**OdataEtag** | **string** | etag | [optional] +**OdataId** | **string** | id | +**OdataType** | **string** | type | +**Description** | **string** | description | [optional] +**Members** | [**[]IdRef**](idRef.md) | Contains the members of this collection. | +**MembersodataCount** | **int32** | The number of items in a collection. | [optional] +**MembersodataNextLink** | **string** | The URI to the resource containing the next set of partial members. | [optional] +**Name** | **string** | The name of the resource. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ComputerSystem.md b/client/docs/ComputerSystem.md new file mode 100644 index 0000000..1a10615 --- /dev/null +++ b/client/docs/ComputerSystem.md @@ -0,0 +1,31 @@ +# ComputerSystem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The name of the resource. | [optional] +**Name** | **string** | The name of the resource. | +**RedfishVersion** | **string** | redfish version | [optional] +**UUID** | **string** | | [optional] +**OdataType** | **string** | The type of a resource. | +**OdataId** | **string** | The unique identifier for a resource. | +**OdataContext** | **string** | The OData description of a payload. | [optional] +**RedfishCopyright** | **string** | redfish copyright | [optional] +**Bios** | [**IdRef**](idRef.md) | | [optional] +**Processors** | [**IdRef**](idRef.md) | | [optional] +**Memory** | [**IdRef**](idRef.md) | | [optional] +**EthernetInterfaces** | [**IdRef**](idRef.md) | | [optional] +**SimpleStorage** | [**IdRef**](idRef.md) | | [optional] +**PowerState** | [**PowerState**](PowerState.md) | | [optional] +**Status** | [**Status**](Status.md) | | [optional] +**Boot** | [**Boot**](Boot.md) | | [optional] +**ProcessorSummary** | [**ProcessorSummary**](ProcessorSummary.md) | | [optional] +**MemorySummary** | [**MemorySummary**](MemorySummary.md) | | [optional] +**IndicatorLED** | [**IndicatorLed**](IndicatorLED.md) | | [optional] +**Links** | [**Links**](Links.md) | | [optional] +**Actions** | [**ComputerSystemActions**](ComputerSystem_Actions.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ComputerSystemActions.md b/client/docs/ComputerSystemActions.md new file mode 100644 index 0000000..7e6bb63 --- /dev/null +++ b/client/docs/ComputerSystemActions.md @@ -0,0 +1,11 @@ +# ComputerSystemActions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ComputerSystemReset** | [**ComputerSystemReset**](ComputerSystemReset.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ComputerSystemReset.md b/client/docs/ComputerSystemReset.md new file mode 100644 index 0000000..e6d1127 --- /dev/null +++ b/client/docs/ComputerSystemReset.md @@ -0,0 +1,12 @@ +# ComputerSystemReset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Target** | **string** | The unique identifier for a resource. | [optional] +**ResetTypeRedfishAllowableValues** | [**[]ResetType**](ResetType.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/DefaultApi.md b/client/docs/DefaultApi.md new file mode 100644 index 0000000..ca11c95 --- /dev/null +++ b/client/docs/DefaultApi.md @@ -0,0 +1,157 @@ +# \DefaultApi + +All URIs are relative to *http://localhost* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**GetRoot**](DefaultApi.md#GetRoot) | **Get** /redfish/v1 | +[**GetSystem**](DefaultApi.md#GetSystem) | **Get** /redfish/v1/Systems/{systemId} | +[**ListManagers**](DefaultApi.md#ListManagers) | **Get** /redfish/v1/Managers | +[**ListSystems**](DefaultApi.md#ListSystems) | **Get** /redfish/v1/Systems | +[**ResetSystem**](DefaultApi.md#ResetSystem) | **Post** /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset | + + + +## GetRoot + +> Root GetRoot(ctx, ) + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Root**](Root.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetSystem + +> ComputerSystem GetSystem(ctx, systemId) + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**systemId** | **string**| ID of resource | + +### Return type + +[**ComputerSystem**](ComputerSystem.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListManagers + +> Collection ListManagers(ctx, ) + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Collection**](Collection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ListSystems + +> Collection ListSystems(ctx, ) + + +### Required Parameters + +This endpoint does not need any parameter. + +### Return type + +[**Collection**](Collection.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ResetSystem + +> RedfishError ResetSystem(ctx, computerSystemId, resetRequestBody) + + +### Required Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**computerSystemId** | **string**| | +**resetRequestBody** | [**ResetRequestBody**](ResetRequestBody.md)| | + +### Return type + +[**RedfishError**](RedfishError.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/client/docs/Health.md b/client/docs/Health.md new file mode 100644 index 0000000..265c7f5 --- /dev/null +++ b/client/docs/Health.md @@ -0,0 +1,10 @@ +# Health + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/IdRef.md b/client/docs/IdRef.md new file mode 100644 index 0000000..e980fdf --- /dev/null +++ b/client/docs/IdRef.md @@ -0,0 +1,11 @@ +# IdRef + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**OdataId** | **string** | The unique identifier for a resource. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/IndicatorLed.md b/client/docs/IndicatorLed.md new file mode 100644 index 0000000..ccbcb55 --- /dev/null +++ b/client/docs/IndicatorLed.md @@ -0,0 +1,10 @@ +# IndicatorLed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Links.md b/client/docs/Links.md new file mode 100644 index 0000000..983e150 --- /dev/null +++ b/client/docs/Links.md @@ -0,0 +1,12 @@ +# Links + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Chassis** | [**[]IdRef**](idRef.md) | | [optional] +**ManagedBy** | [**[]IdRef**](idRef.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/MemorySummary.md b/client/docs/MemorySummary.md new file mode 100644 index 0000000..321a4c8 --- /dev/null +++ b/client/docs/MemorySummary.md @@ -0,0 +1,13 @@ +# MemorySummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TotalSystemMemoryGiB** | **float32** | | [optional] +**TotalSystemPersistentMemoryGiB** | **float32** | | [optional] +**Status** | [**Status**](Status.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Message.md b/client/docs/Message.md new file mode 100644 index 0000000..ab89714 --- /dev/null +++ b/client/docs/Message.md @@ -0,0 +1,16 @@ +# Message + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Message** | **string** | | [optional] +**MessageArgs** | **[]string** | | [optional] +**MessageId** | **string** | | +**RelatedProperties** | **[]string** | | [optional] +**Resolution** | **string** | | [optional] +**Severity** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/PowerState.md b/client/docs/PowerState.md new file mode 100644 index 0000000..512c3f0 --- /dev/null +++ b/client/docs/PowerState.md @@ -0,0 +1,10 @@ +# PowerState + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ProcessorSummary.md b/client/docs/ProcessorSummary.md new file mode 100644 index 0000000..d997790 --- /dev/null +++ b/client/docs/ProcessorSummary.md @@ -0,0 +1,12 @@ +# ProcessorSummary + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | [optional] +**Status** | [**Status**](Status.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RedfishError.md b/client/docs/RedfishError.md new file mode 100644 index 0000000..677cb1d --- /dev/null +++ b/client/docs/RedfishError.md @@ -0,0 +1,11 @@ +# RedfishError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | [**RedfishErrorError**](RedfishError_error.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/RedfishErrorError.md b/client/docs/RedfishErrorError.md new file mode 100644 index 0000000..e7648cd --- /dev/null +++ b/client/docs/RedfishErrorError.md @@ -0,0 +1,13 @@ +# RedfishErrorError + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**MessageExtendedInfo** | [**[]Message**](Message.md) | | [optional] +**Code** | **string** | | +**Message** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ResetRequestBody.md b/client/docs/ResetRequestBody.md new file mode 100644 index 0000000..b274fce --- /dev/null +++ b/client/docs/ResetRequestBody.md @@ -0,0 +1,11 @@ +# ResetRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ResetType** | [**ResetType**](ResetType.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/ResetType.md b/client/docs/ResetType.md new file mode 100644 index 0000000..8236f86 --- /dev/null +++ b/client/docs/ResetType.md @@ -0,0 +1,10 @@ +# ResetType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Root.md b/client/docs/Root.md new file mode 100644 index 0000000..f2a265c --- /dev/null +++ b/client/docs/Root.md @@ -0,0 +1,19 @@ +# Root + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The name of the resource. | [optional] +**Name** | **string** | The name of the resource. | +**RedfishVersion** | **string** | redfish version | [optional] +**UUID** | **string** | | [optional] +**OdataType** | **string** | The type of a resource. | +**OdataId** | **string** | The unique identifier for a resource. | +**RedfishCopyright** | **string** | redfish copyright | [optional] +**Systems** | [**IdRef**](idRef.md) | | [optional] +**Managers** | [**IdRef**](idRef.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/State.md b/client/docs/State.md new file mode 100644 index 0000000..fbb82fc --- /dev/null +++ b/client/docs/State.md @@ -0,0 +1,10 @@ +# State + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/docs/Status.md b/client/docs/Status.md new file mode 100644 index 0000000..6a79d5f --- /dev/null +++ b/client/docs/Status.md @@ -0,0 +1,13 @@ +# Status + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Health** | [**Health**](Health.md) | | [optional] +**HealthRollup** | [**Health**](Health.md) | | [optional] +**State** | [**State**](State.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/client/git_push.sh b/client/git_push.sh new file mode 100644 index 0000000..8442b80 --- /dev/null +++ b/client/git_push.sh @@ -0,0 +1,52 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=`git remote` +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' + diff --git a/client/go.mod b/client/go.mod new file mode 100644 index 0000000..199809e --- /dev/null +++ b/client/go.mod @@ -0,0 +1,6 @@ +module github.com/GIT_USER_ID/GIT_REPO_ID + +require ( + github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6 + golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a +) diff --git a/client/go.sum b/client/go.sum new file mode 100644 index 0000000..e3c16fe --- /dev/null +++ b/client/go.sum @@ -0,0 +1,11 @@ +cloud.google.com/go v0.34.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= +github.com/antihax/optional v0.0.0-20180406194304-ca021399b1a6/go.mod h1:V8iCPQYkqmusNa815XgQio277wI47sdRh1dUOLdyC6Q= +github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U= +golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e h1:bRhVy7zSSasaqNksaRZiA5EEI+Ei4I1nO5Jh72wfHlg= +golang.org/x/net v0.0.0-20190108225652-1e06a53dbb7e/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a h1:tImsplftrFpALCYumobsd0K86vlAs/eXGFms2txfJfA= +golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a/go.mod h1:gOpvHmFTYa4IltrdGE7lF6nIHvwfUNPOp7c8zoXwtLw= +golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= +golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= +google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4= diff --git a/client/model_boot.go b/client/model_boot.go new file mode 100644 index 0000000..d9fbc83 --- /dev/null +++ b/client/model_boot.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type Boot struct { + BootSourceOverrideEnabled BootSourceOverrideEnabled `json:"BootSourceOverrideEnabled,omitempty"` + BootSourceOverrideTarget BootSource `json:"BootSourceOverrideTarget,omitempty"` + BootSourceOverrideTargetRedfishAllowableValues []BootSource `json:"BootSourceOverrideTarget@Redfish.AllowableValues,omitempty"` +} diff --git a/client/model_boot_source.go b/client/model_boot_source.go new file mode 100644 index 0000000..6003111 --- /dev/null +++ b/client/model_boot_source.go @@ -0,0 +1,30 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type BootSource string + +// List of BootSource +const ( + NONE BootSource = "None" + PXE BootSource = "Pxe" + FLOPPY BootSource = "Floppy" + CD BootSource = "Cd" + USB BootSource = "Usb" + HDD BootSource = "Hdd" + BIOS_SETUP BootSource = "BiosSetup" + UTILITIES BootSource = "Utilities" + DIAGS BootSource = "Diags" + UEFI_SHELL BootSource = "UefiShell" + UEFI_TARGET BootSource = "UefiTarget" + SD_CARD BootSource = "SDCard" + UEFI_HTTP BootSource = "UefiHttp" + REMOTE_DRIVE BootSource = "RemoteDrive" + UEFI_BOOT_NEXT BootSource = "UefiBootNext" +) \ No newline at end of file diff --git a/client/model_boot_source_override_enabled.go b/client/model_boot_source_override_enabled.go new file mode 100644 index 0000000..e618a7e --- /dev/null +++ b/client/model_boot_source_override_enabled.go @@ -0,0 +1,17 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type BootSourceOverrideEnabled string + +// List of BootSourceOverrideEnabled +const ( + ONCE BootSourceOverrideEnabled = "Once" + CONTINUOUS BootSourceOverrideEnabled = "Continuous" +) \ No newline at end of file diff --git a/client/model_collection.go b/client/model_collection.go new file mode 100644 index 0000000..84503a9 --- /dev/null +++ b/client/model_collection.go @@ -0,0 +1,32 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +// A Collection of ComputerSystem resource instances. +type Collection struct { + // context + OdataContext string `json:"@odata.context,omitempty"` + // etag + OdataEtag string `json:"@odata.etag,omitempty"` + // id + OdataId string `json:"@odata.id"` + // type + OdataType string `json:"@odata.type"` + // description + Description string `json:"Description,omitempty"` + // Contains the members of this collection. + Members []IdRef `json:"Members"` + // The number of items in a collection. + MembersodataCount int32 `json:"Members@odata.count,omitempty"` + // The URI to the resource containing the next set of partial members. + MembersodataNextLink string `json:"Members@odata.nextLink,omitempty"` + // The name of the resource. + Name string `json:"Name"` +} diff --git a/client/model_computer_system.go b/client/model_computer_system.go new file mode 100644 index 0000000..ef6c11c --- /dev/null +++ b/client/model_computer_system.go @@ -0,0 +1,42 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +// Root redfish path. +type ComputerSystem struct { + // The name of the resource. + Id string `json:"Id,omitempty"` + // The name of the resource. + Name string `json:"Name"` + // redfish version + RedfishVersion string `json:"RedfishVersion,omitempty"` + UUID string `json:"UUID,omitempty"` + // The type of a resource. + OdataType string `json:"@odata.type"` + // The unique identifier for a resource. + OdataId string `json:"@odata.id"` + // The OData description of a payload. + OdataContext string `json:"@odata.context,omitempty"` + // redfish copyright + RedfishCopyright string `json:"@Redfish.Copyright,omitempty"` + Bios IdRef `json:"Bios,omitempty"` + Processors IdRef `json:"Processors,omitempty"` + Memory IdRef `json:"Memory,omitempty"` + EthernetInterfaces IdRef `json:"EthernetInterfaces,omitempty"` + SimpleStorage IdRef `json:"SimpleStorage,omitempty"` + PowerState PowerState `json:"PowerState,omitempty"` + Status Status `json:"Status,omitempty"` + Boot Boot `json:"Boot,omitempty"` + ProcessorSummary ProcessorSummary `json:"ProcessorSummary,omitempty"` + MemorySummary MemorySummary `json:"MemorySummary,omitempty"` + IndicatorLED IndicatorLed `json:"IndicatorLED,omitempty"` + Links Links `json:"Links,omitempty"` + Actions ComputerSystemActions `json:"Actions,omitempty"` +} diff --git a/client/model_computer_system_actions.go b/client/model_computer_system_actions.go new file mode 100644 index 0000000..73cf14b --- /dev/null +++ b/client/model_computer_system_actions.go @@ -0,0 +1,14 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type ComputerSystemActions struct { + ComputerSystemReset ComputerSystemReset `json:"#ComputerSystem.Reset,omitempty"` +} diff --git a/client/model_computer_system_reset.go b/client/model_computer_system_reset.go new file mode 100644 index 0000000..bd7b2c0 --- /dev/null +++ b/client/model_computer_system_reset.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type ComputerSystemReset struct { + // The unique identifier for a resource. + Target string `json:"target,omitempty"` + ResetTypeRedfishAllowableValues []ResetType `json:"ResetType@Redfish.AllowableValues,omitempty"` +} diff --git a/client/model_health.go b/client/model_health.go new file mode 100644 index 0000000..137539e --- /dev/null +++ b/client/model_health.go @@ -0,0 +1,18 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type Health string + +// List of Health +const ( + OK Health = "OK" + WARNING Health = "Warning" + CRITICAL Health = "Critical" +) \ No newline at end of file diff --git a/client/model_id_ref.go b/client/model_id_ref.go new file mode 100644 index 0000000..2f1aba7 --- /dev/null +++ b/client/model_id_ref.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +// A reference to a resource. +type IdRef struct { + // The unique identifier for a resource. + OdataId string `json:"@odata.id,omitempty"` +} diff --git a/client/model_indicator_led.go b/client/model_indicator_led.go new file mode 100644 index 0000000..3827f62 --- /dev/null +++ b/client/model_indicator_led.go @@ -0,0 +1,19 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type IndicatorLed string + +// List of IndicatorLED +const ( + UNKNOWN IndicatorLed = "Unknown" + LIT IndicatorLed = "Lit" + BLINKING IndicatorLed = "Blinking" + OFF IndicatorLed = "Off" +) \ No newline at end of file diff --git a/client/model_links.go b/client/model_links.go new file mode 100644 index 0000000..2adebfa --- /dev/null +++ b/client/model_links.go @@ -0,0 +1,15 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type Links struct { + Chassis []IdRef `json:"Chassis,omitempty"` + ManagedBy []IdRef `json:"ManagedBy,omitempty"` +} diff --git a/client/model_memory_summary.go b/client/model_memory_summary.go new file mode 100644 index 0000000..cbfc1e7 --- /dev/null +++ b/client/model_memory_summary.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type MemorySummary struct { + TotalSystemMemoryGiB float32 `json:"TotalSystemMemoryGiB,omitempty"` + TotalSystemPersistentMemoryGiB float32 `json:"TotalSystemPersistentMemoryGiB,omitempty"` + Status Status `json:"Status,omitempty"` +} diff --git a/client/model_message.go b/client/model_message.go new file mode 100644 index 0000000..b174263 --- /dev/null +++ b/client/model_message.go @@ -0,0 +1,19 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type Message struct { + Message string `json:"Message,omitempty"` + MessageArgs []string `json:"MessageArgs,omitempty"` + MessageId string `json:"MessageId"` + RelatedProperties []string `json:"RelatedProperties,omitempty"` + Resolution string `json:"Resolution,omitempty"` + Severity string `json:"Severity,omitempty"` +} diff --git a/client/model_power_state.go b/client/model_power_state.go new file mode 100644 index 0000000..06bd871 --- /dev/null +++ b/client/model_power_state.go @@ -0,0 +1,19 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type PowerState string + +// List of PowerState +const ( + TRUE PowerState = "true" + FALSE PowerState = "false" + POWERING_ON PowerState = "PoweringOn" + POWERING_OFF PowerState = "PoweringOff" +) \ No newline at end of file diff --git a/client/model_processor_summary.go b/client/model_processor_summary.go new file mode 100644 index 0000000..97a3e9a --- /dev/null +++ b/client/model_processor_summary.go @@ -0,0 +1,15 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type ProcessorSummary struct { + Count int32 `json:"Count,omitempty"` + Status Status `json:"Status,omitempty"` +} diff --git a/client/model_redfish_error.go b/client/model_redfish_error.go new file mode 100644 index 0000000..4a77c19 --- /dev/null +++ b/client/model_redfish_error.go @@ -0,0 +1,15 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +// Contains an error payload from a Redfish Service. +type RedfishError struct { + Error RedfishErrorError `json:"error"` +} diff --git a/client/model_redfish_error_error.go b/client/model_redfish_error_error.go new file mode 100644 index 0000000..693d616 --- /dev/null +++ b/client/model_redfish_error_error.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type RedfishErrorError struct { + MessageExtendedInfo []Message `json:"@Message.ExtendedInfo,omitempty"` + Code string `json:"code"` + Message string `json:"message"` +} diff --git a/client/model_reset_request_body.go b/client/model_reset_request_body.go new file mode 100644 index 0000000..59ae62b --- /dev/null +++ b/client/model_reset_request_body.go @@ -0,0 +1,14 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type ResetRequestBody struct { + ResetType ResetType `json:"ResetType,omitempty"` +} diff --git a/client/model_reset_type.go b/client/model_reset_type.go new file mode 100644 index 0000000..4f0fabc --- /dev/null +++ b/client/model_reset_type.go @@ -0,0 +1,24 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type ResetType string + +// List of ResetType +const ( + ON ResetType = "On" + FORCE_OFF ResetType = "ForceOff" + GRACEFUL_SHUTDOWN ResetType = "GracefulShutdown" + GRACEFUL_RESTART ResetType = "GracefulRestart" + FORCE_RESTART ResetType = "ForceRestart" + NMI ResetType = "Nmi" + FORCE_ON ResetType = "ForceOn" + PUSH_POWER_BUTTON ResetType = "PushPowerButton" + POWER_CYCLE ResetType = "PowerCycle" +) \ No newline at end of file diff --git a/client/model_root.go b/client/model_root.go new file mode 100644 index 0000000..b7b991f --- /dev/null +++ b/client/model_root.go @@ -0,0 +1,29 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +// Root redfish path. +type Root struct { + // The name of the resource. + Id string `json:"Id,omitempty"` + // The name of the resource. + Name string `json:"Name"` + // redfish version + RedfishVersion string `json:"RedfishVersion,omitempty"` + UUID string `json:"UUID,omitempty"` + // The type of a resource. + OdataType string `json:"@odata.type"` + // The unique identifier for a resource. + OdataId string `json:"@odata.id"` + // redfish copyright + RedfishCopyright string `json:"@Redfish.Copyright,omitempty"` + Systems IdRef `json:"Systems,omitempty"` + Managers IdRef `json:"Managers,omitempty"` +} diff --git a/client/model_state.go b/client/model_state.go new file mode 100644 index 0000000..0552f0d --- /dev/null +++ b/client/model_state.go @@ -0,0 +1,26 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi +type State string + +// List of State +const ( + ENABLED State = "Enabled" + DISABLED State = "Disabled" + STANDBY_OFFLINE State = "StandbyOffline" + STANDBY_SPARE State = "StandbySpare" + IN_TEST State = "InTest" + STARTING State = "Starting" + ABSENT State = "Absent" + UNAVAILABLE_OFFLINE State = "UnavailableOffline" + DEFERRING State = "Deferring" + QUIESCED State = "Quiesced" + UPDATING State = "Updating" +) \ No newline at end of file diff --git a/client/model_status.go b/client/model_status.go new file mode 100644 index 0000000..8c5e909 --- /dev/null +++ b/client/model_status.go @@ -0,0 +1,16 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +type Status struct { + Health Health `json:"Health,omitempty"` + HealthRollup Health `json:"HealthRollup,omitempty"` + State State `json:"State,omitempty"` +} diff --git a/client/response.go b/client/response.go new file mode 100644 index 0000000..4e45b69 --- /dev/null +++ b/client/response.go @@ -0,0 +1,43 @@ +/* + * Redfish OAPI specification + * + * Partial Redfish OAPI specification for a limited client + * + * API version: 0.0.1 + * Generated by: OpenAPI Generator (https://openapi-generator.tech) + */ + +package openapi + +import ( + "net/http" +) + +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/spec/openapi.yaml b/spec/openapi.yaml new file mode 100644 index 0000000..fd56aec --- /dev/null +++ b/spec/openapi.yaml @@ -0,0 +1,458 @@ +openapi: 3.0.2 +info: + title: Redfish OAPI specification + description: 'Partial Redfish OAPI specification for a limited client' + version: 0.0.1 +components: + schemas: + BootSource: + type: string + enum: + - None + - Pxe + - Floppy + - Cd + - Usb + - Hdd + - BiosSetup + - Utilities + - Diags + - UefiShell + - UefiTarget + - SDCard + - UefiHttp + - RemoteDrive + - UefiBootNext + BootSourceOverrideEnabled: + type: string + enum: + - Once + - Continuous + State: + type: string + enum: + - Enabled + - Disabled + - StandbyOffline + - StandbySpare + - InTest + - Starting + - Absent + - UnavailableOffline + - Deferring + - Quiesced + - Updating + Health: + type: string + enum: + - OK + - Warning + - Critical + PowerState: + type: string + enum: + - On + - Off + - PoweringOn + - PoweringOff + ResetType: + type: string + enum: + - "On" + - ForceOff + - GracefulShutdown + - GracefulRestart + - ForceRestart + - Nmi + - ForceOn + - PushPowerButton + - PowerCycle + IndicatorLED: + type: string + enum: + - Unknown + - Lit + - Blinking + - "Off" + context: + description: The OData description of a payload. + format: uri-reference + readOnly: true + type: string + count: + description: The number of items in a collection. + readOnly: true + type: integer + name: + description: The name of the resource. + readOnly: true + type: string + etag: + description: The current ETag of the resource. + readOnly: true + type: string + id: + description: The name of the resource. + readOnly: true + type: string + odataId: + description: The unique identifier for a resource. + format: uri-reference + readOnly: true + type: string + idRef: + additionalProperties: false + description: A reference to a resource. + properties: + '@odata.id': + $ref: '#/components/schemas/odataId' + type: object + nextLink: + description: The URI to the resource containing the next set of partial members. + format: uri-reference + readOnly: true + type: string + rtype: + description: The type of a resource. + readOnly: true + type: string + UUID: + pattern: ([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}) + type: string + Message: + additionalProperties: false + properties: + Message: + readOnly: true + type: string + MessageArgs: + items: + type: string + readOnly: true + type: array + MessageId: + readOnly: true + type: string + RelatedProperties: + items: + type: string + readOnly: true + type: array + Resolution: + readOnly: true + type: string + Severity: + readOnly: true + type: string + required: + - MessageId + type: object + RedfishError: + description: Contains an error payload from a Redfish Service. + properties: + error: + properties: + '@Message.ExtendedInfo': + items: + $ref: '#/components/schemas/Message' + type: array + code: + readOnly: true + type: string + message: + readOnly: true + type: string + required: + - code + - message + type: object + required: + - error + type: object + Root: + type: object + additionalProperties: false + description: Root redfish path. + required: + - '@odata.id' + - '@odata.type' + - 'Name' + properties: + 'Id': + $ref: '#/components/schemas/id' + 'Name': + $ref: '#/components/schemas/name' + 'RedfishVersion': + type: string + description: redfish version + 'UUID': + $ref: '#/components/schemas/UUID' + '@odata.type': + $ref: '#/components/schemas/rtype' + '@odata.id': + $ref: '#/components/schemas/odataId' + '@Redfish.Copyright': + type: string + description: redfish copyright + 'Systems': + $ref: '#/components/schemas/idRef' + 'Managers': + $ref: '#/components/schemas/idRef' + Collection: + type: object + additionalProperties: false + description: A Collection of ComputerSystem resource instances. + required: + - 'Members' + - '@odata.id' + - '@odata.type' + - 'Name' + properties: + '@odata.context': + type: string + description: context + '@odata.etag': + type: string + description: etag + '@odata.id': + type: string + description: id + '@odata.type': + type: string + description: type + 'Description': + type: string + description: "description" + #nullable: true + readOnly: true + 'Members': + description: Contains the members of this collection. + items: + $ref: '#/components/schemas/idRef' + readOnly: true + type: array + 'Members@odata.count': + $ref: '#/components/schemas/count' + 'Members@odata.nextLink': + $ref: '#/components/schemas/nextLink' + 'Name': + $ref: '#/components/schemas/name' + readOnly: true + Status: + type: object + additionalProperties: false + properties: + Health: + $ref: '#/components/schemas/Health' + #nullable: true + readOnly: true + HealthRollup: + $ref: '#/components/schemas/Health' + #nullable: true + readOnly: true + State: + $ref: '#/components/schemas/State' + #nullable: true + readOnly: true + Boot: + type: object + additionalProperties: false + properties: + BootSourceOverrideEnabled: + $ref: '#/components/schemas/BootSourceOverrideEnabled' + BootSourceOverrideTarget: + $ref: '#/components/schemas/BootSource' + BootSourceOverrideTarget@Redfish.AllowableValues: + type: array + items: + $ref: '#/components/schemas/BootSource' + ProcessorSummary: + type: object + additionalProperties: false + properties: + Count: + minimum: 0 + #nullable: true + readOnly: true + type: integer + Status: + $ref: '#/components/schemas/Status' + MemorySummary: + type: object + additionalProperties: false + properties: + TotalSystemMemoryGiB: + minimum: 0 + #nullable: true + readOnly: true + type: number + TotalSystemPersistentMemoryGiB: + minimum: 0 + #nullable: true + readOnly: true + type: number + Status: + $ref: '#/components/schemas/Status' + Links: + type: object + additionalProperties: false + properties: + Chassis: + type: array + items: + $ref: '#/components/schemas/idRef' + ManagedBy: + type: array + items: + $ref: '#/components/schemas/idRef' + ComputerSystemReset: + type: object + additionalProperties: false + properties: + target: + $ref: '#/components/schemas/odataId' + ResetType@Redfish.AllowableValues: + type: array + items: + $ref: '#/components/schemas/ResetType' + ResetRequestBody: + additionalProperties: false + properties: + ResetType: + $ref: '#/components/schemas/ResetType' + type: object + ComputerSystem: + type: object + additionalProperties: false + description: Root redfish path. + required: + - '@odata.id' + - '@odata.type' + - 'Name' + properties: + 'Id': + $ref: '#/components/schemas/id' + 'Name': + $ref: '#/components/schemas/name' + 'RedfishVersion': + type: string + description: redfish version + 'UUID': + $ref: '#/components/schemas/UUID' + '@odata.type': + $ref: '#/components/schemas/rtype' + '@odata.id': + $ref: '#/components/schemas/odataId' + '@odata.context': + $ref: '#/components/schemas/context' + '@Redfish.Copyright': + type: string + description: redfish copyright + 'Bios': + $ref: '#/components/schemas/idRef' + 'Processors': + $ref: '#/components/schemas/idRef' + 'Memory': + $ref: '#/components/schemas/idRef' + 'EthernetInterfaces': + $ref: '#/components/schemas/idRef' + 'SimpleStorage': + $ref: '#/components/schemas/idRef' + 'PowerState': + $ref: '#/components/schemas/PowerState' + 'Status': + $ref: '#/components/schemas/Status' + 'Boot': + $ref: '#/components/schemas/Boot' + 'ProcessorSummary': + $ref: '#/components/schemas/ProcessorSummary' + 'MemorySummary': + $ref: '#/components/schemas/MemorySummary' + 'IndicatorLED': + $ref: '#/components/schemas/IndicatorLED' + 'Links': + $ref: '#/components/schemas/Links' + 'Actions': + type: object + properties: + "#ComputerSystem.Reset": + $ref: '#/components/schemas/ComputerSystemReset' +paths: + /redfish/v1: + get: + operationId: get_root + responses: + '200': + description: Get redfish root + content: + 'application/json': + schema: + $ref: '#/components/schemas/Root' + /redfish/v1/Systems: + get: + operationId: list_systems + responses: + '200': + description: Computer Systems List + content: + 'application/json': + schema: + $ref: '#/components/schemas/Collection' + /redfish/v1/Systems/{systemId}: + get: + operationId: get_system + responses: + '200': + description: Computer Systems List + content: + 'application/json': + schema: + $ref: '#/components/schemas/ComputerSystem' + parameters: + - name: systemId + in: path + description: ID of resource + required: true + schema: + type: string + + /redfish/v1/Managers: + get: + operationId: list_managers + responses: + '200': + description: Managers List + content: + 'application/json': + schema: + $ref: '#/components/schemas/Collection' + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset: + parameters: + - in: path + name: ComputerSystemId + required: true + schema: + type: string + post: + operationId: reset_system + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResetRequestBody' + required: true + responses: + '200': + description: Success with response + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition diff --git a/spec/openapi.yaml.redfish b/spec/openapi.yaml.redfish new file mode 100644 index 0000000..6ef4831 --- /dev/null +++ b/spec/openapi.yaml.redfish @@ -0,0 +1,8723 @@ +components: + schemas: + RedfishError: + description: Contains an error payload from a Redfish Service. + properties: + error: + description: Contains properties used to describe an error from a Redfish + Service. + properties: + '@Message.ExtendedInfo': + description: An array of message objects describing one or more error + message(s). + items: + $ref: http://redfish.dmtf.org/schemas/v1/Message.v1_0_7.yaml#/components/schemas/Message + type: array + x-longDescription: This property shall be an array of message objects + describing one or more error message(s). + code: + description: A string indicating a specific MessageId from the message + registry. + readOnly: true + type: string + x-longDescription: This property shall be a string indicating a specific + MessageId from the message registry. + message: + description: A human-readable error message corresponding to the message + in the message registry. + readOnly: true + type: string + x-longDescription: This property shall be a human-readable error message + corresponding to the message in the message registry. + required: + - code + - message + type: object + x-longDescription: This property, as described by the Redfish Specification, + shall contain properties used to describe an error from a Redfish Service. + required: + - error + type: object + x-longDescription: This type, as described by the Redfish Specification, shall + contain an error payload from a Redfish Service. +info: + contact: + name: DMTF + url: https://www.dmtf.org/standards/redfish + description: This contains the definition of a Redfish service. + title: Redfish + version: '2019.1' + x-copyright: Copyright 2019 DMTF. For the full DMTF copyright policy, see http://www.dmtf.org/about/policies/copyright +openapi: 3.0.1 +paths: + /redfish/v1: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ServiceRoot.v1_5_1.yaml#/components/schemas/ServiceRoot + description: The response contains a representation of the ServiceRoot resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ServiceRoot.v1_5_1.yaml#/components/schemas/ServiceRoot + description: The response contains a representation of the ServiceRoot resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ChassisCollection.yaml#/components/schemas/ChassisCollection + description: The response contains a representation of the ChassisCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/Chassis + description: The response contains a representation of the Chassis resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/Chassis + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/Chassis + description: The response contains a representation of the Chassis resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/Chassis + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/Chassis + description: The response contains a representation of the Chassis resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Actions/Chassis.Reset: + post: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Chassis.v1_9_1.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Assembly: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Drives/{DriveId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Drives/{DriveId}/Actions/Drive.SecureErase: + post: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/SecureEraseRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SecureErase action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Drives/{DriveId}/Assembly: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkAdapterCollection.yaml#/components/schemas/NetworkAdapterCollection + description: The response contains a representation of the NetworkAdapterCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkAdapter.v1_2_1.yaml#/components/schemas/NetworkAdapter + description: The response contains a representation of the NetworkAdapter + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/Actions/NetworkAdapter.ResetSettingsToDefault: + post: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkAdapter.v1_2_1.yaml#/components/schemas/ResetSettingsToDefaultRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ResetSettingsToDefault + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/Assembly: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunctionCollection.yaml#/components/schemas/NetworkDeviceFunctionCollection + description: The response contains a representation of the NetworkDeviceFunctionCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunction.v1_3_2.yaml#/components/schemas/NetworkDeviceFunction + description: The response contains a representation of the NetworkDeviceFunction + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunction.v1_3_2.yaml#/components/schemas/NetworkDeviceFunction + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunction.v1_3_2.yaml#/components/schemas/NetworkDeviceFunction + description: The response contains a representation of the NetworkDeviceFunction + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunction.v1_3_2.yaml#/components/schemas/NetworkDeviceFunction + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunction.v1_3_2.yaml#/components/schemas/NetworkDeviceFunction + description: The response contains a representation of the NetworkDeviceFunction + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + ? /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/Ethernet/VLANs + : get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterfaceCollection.yaml#/components/schemas/VLanNetworkInterfaceCollection + description: The response contains a representation of the VLanNetworkInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + description: A resource of type VLanNetworkInterface has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + ? /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkDeviceFunctions/{NetworkDeviceFunctionId}/Ethernet/VLANs/{VLanNetworkInterfaceId} + : delete: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkDeviceFunction resource + in: path + name: NetworkDeviceFunctionId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkPorts: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPortCollection.yaml#/components/schemas/NetworkPortCollection + description: The response contains a representation of the NetworkPortCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/NetworkAdapters/{NetworkAdapterId}/NetworkPorts/{NetworkPortId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkPort resource + in: path + name: NetworkPortId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPort.v1_2_2.yaml#/components/schemas/NetworkPort + description: The response contains a representation of the NetworkPort resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkPort resource + in: path + name: NetworkPortId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPort.v1_2_2.yaml#/components/schemas/NetworkPort + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPort.v1_2_2.yaml#/components/schemas/NetworkPort + description: The response contains a representation of the NetworkPort resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkAdapter resource + in: path + name: NetworkAdapterId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkPort resource + in: path + name: NetworkPortId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPort.v1_2_2.yaml#/components/schemas/NetworkPort + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPort.v1_2_2.yaml#/components/schemas/NetworkPort + description: The response contains a representation of the NetworkPort resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PCIeDevice.v1_3_1.yaml#/components/schemas/PCIeDevice + description: The response contains a representation of the PCIeDevice resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}/Assembly: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/PCIeDevices/{PCIeDeviceId}/PCIeFunctions/{PCIeFunctionId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeFunction resource + in: path + name: PCIeFunctionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PCIeFunction.v1_2_2.yaml#/components/schemas/PCIeFunction + description: The response contains a representation of the PCIeFunction + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/PCIeSlots: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PCIeSlots.v1_1_0.yaml#/components/schemas/PCIeSlots + description: The response contains a representation of the PCIeSlots resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Power: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Power.v1_5_3.yaml#/components/schemas/Power + description: The response contains a representation of the Power resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Power.v1_5_3.yaml#/components/schemas/Power + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Power.v1_5_3.yaml#/components/schemas/Power + description: The response contains a representation of the Power resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Power.v1_5_3.yaml#/components/schemas/Power + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Power.v1_5_3.yaml#/components/schemas/Power + description: The response contains a representation of the Power resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Power/PowerSupplies/{PowerSupplyId}/Assembly: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PowerSupply resource + in: path + name: PowerSupplyId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PowerSupply resource + in: path + name: PowerSupplyId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the PowerSupply resource + in: path + name: PowerSupplyId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Sensors: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SensorCollection.yaml#/components/schemas/SensorCollection + description: The response contains a representation of the SensorCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Sensors/{SensorId}: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Sensor resource + in: path + name: SensorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/Sensor + description: The response contains a representation of the Sensor resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Sensor resource + in: path + name: SensorId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/Sensor + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/Sensor + description: The response contains a representation of the Sensor resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Sensor resource + in: path + name: SensorId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/Sensor + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/Sensor + description: The response contains a representation of the Sensor resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Sensors/{SensorId}/Actions/Sensor.ResetStatistics: + post: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Sensor resource + in: path + name: SensorId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Sensor.v1_0_1.yaml#/components/schemas/ResetStatisticsRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ResetStatistics action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Thermal: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Thermal.v1_5_2.yaml#/components/schemas/Thermal + description: The response contains a representation of the Thermal resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Thermal.v1_5_2.yaml#/components/schemas/Thermal + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Thermal.v1_5_2.yaml#/components/schemas/Thermal + description: The response contains a representation of the Thermal resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Thermal.v1_5_2.yaml#/components/schemas/Thermal + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Thermal.v1_5_2.yaml#/components/schemas/Thermal + description: The response contains a representation of the Thermal resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Chassis/{ChassisId}/Thermal/Fans/{FanId}/Thermal: + get: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Fan resource + in: path + name: FanId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Fan resource + in: path + name: FanId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Chassis resource + in: path + name: ChassisId + required: true + schema: + type: string + - description: The value of the Id property of the Fan resource + in: path + name: FanId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/FabricCollection.yaml#/components/schemas/FabricCollection + description: The response contains a representation of the FabricCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Fabric.v1_0_5.yaml#/components/schemas/Fabric + description: The response contains a representation of the Fabric resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Endpoints: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EndpointCollection.yaml#/components/schemas/EndpointCollection + description: The response contains a representation of the EndpointCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Endpoint.yaml#/components/schemas/Endpoint + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Endpoint.yaml#/components/schemas/Endpoint + description: A resource of type Endpoint has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Endpoints/{EndpointId}: + delete: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Endpoint resource + in: path + name: EndpointId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Endpoint.v1_3_1.yaml#/components/schemas/Endpoint + description: The response contains a representation of the Endpoint resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Endpoint resource + in: path + name: EndpointId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Endpoint.v1_3_1.yaml#/components/schemas/Endpoint + description: The response contains a representation of the Endpoint resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SwitchCollection.yaml#/components/schemas/SwitchCollection + description: The response contains a representation of the SwitchCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/Switch + description: The response contains a representation of the Switch resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/Switch + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/Switch + description: The response contains a representation of the Switch resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/Switch + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/Switch + description: The response contains a representation of the Switch resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/Actions/Switch.Reset: + post: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Switch.v1_1_2.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/Ports: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PortCollection.yaml#/components/schemas/PortCollection + description: The response contains a representation of the PortCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/Ports/{PortId}: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + - description: The value of the Id property of the Port resource + in: path + name: PortId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Port.v1_1_2.yaml#/components/schemas/Port + description: The response contains a representation of the Port resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Switches/{SwitchId}/Ports/{PortId}/Actions/Port.Reset: + post: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Switch resource + in: path + name: SwitchId + required: true + schema: + type: string + - description: The value of the Id property of the Port resource + in: path + name: PortId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Port.v1_1_2.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Zones: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ZoneCollection.yaml#/components/schemas/ZoneCollection + description: The response contains a representation of the ZoneCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Fabrics/{FabricId}/Zones/{ZoneId}: + get: + parameters: + - description: The value of the Id property of the Fabric resource + in: path + name: FabricId + required: true + schema: + type: string + - description: The value of the Id property of the Zone resource + in: path + name: ZoneId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Zone.v1_3_0.yaml#/components/schemas/Zone + description: The response contains a representation of the Zone resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerCollection.yaml#/components/schemas/ManagerCollection + description: The response contains a representation of the ManagerCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/Manager + description: The response contains a representation of the Manager resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/Manager + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/Manager + description: The response contains a representation of the Manager resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/Manager + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/Manager + description: The response contains a representation of the Manager resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/Actions/Manager.ForceFailover: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/ForceFailoverRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ForceFailover action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/Actions/Manager.ModifyRedundancySet: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/ModifyRedundancySetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ModifyRedundancySet + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/Actions/Manager.Reset: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Manager.v1_5_2.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/EthernetInterfaces: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterfaceCollection.yaml#/components/schemas/EthernetInterfaceCollection + description: The response contains a representation of the EthernetInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/EthernetInterfaces/{EthernetInterfaceId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/EthernetInterfaces/{EthernetInterfaceId}/VLANs: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterfaceCollection.yaml#/components/schemas/VLanNetworkInterfaceCollection + description: The response contains a representation of the VLanNetworkInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + description: A resource of type VLanNetworkInterface has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/EthernetInterfaces/{EthernetInterfaceId}/VLANs/{VLanNetworkInterfaceId}: + delete: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/HostInterfaces: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterfaceCollection.yaml#/components/schemas/HostInterfaceCollection + description: The response contains a representation of the HostInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/HostInterfaces/{HostInterfaceId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the HostInterface resource + in: path + name: HostInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterface.v1_2_1.yaml#/components/schemas/HostInterface + description: The response contains a representation of the HostInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the HostInterface resource + in: path + name: HostInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterface.v1_2_1.yaml#/components/schemas/HostInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterface.v1_2_1.yaml#/components/schemas/HostInterface + description: The response contains a representation of the HostInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the HostInterface resource + in: path + name: HostInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterface.v1_2_1.yaml#/components/schemas/HostInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/HostInterface.v1_2_1.yaml#/components/schemas/HostInterface + description: The response contains a representation of the HostInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/HostInterfaces/{HostInterfaceId}/HostEthernetInterfaces: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the HostInterface resource + in: path + name: HostInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterfaceCollection.yaml#/components/schemas/EthernetInterfaceCollection + description: The response contains a representation of the EthernetInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/LogServices: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogServiceCollection.yaml#/components/schemas/LogServiceCollection + description: The response contains a representation of the LogServiceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId}/Actions/LogService.ClearLog: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/ClearLogRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ClearLog action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId}/Entries: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntryCollection.yaml#/components/schemas/LogEntryCollection + description: The response contains a representation of the LogEntryCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/LogServices/{LogServiceId}/Entries/{LogEntryId}: + delete: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + - description: The value of the Id property of the LogEntry resource + in: path + name: LogEntryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntry.v1_4_2.yaml#/components/schemas/LogEntry + description: The response contains a representation of the LogEntry resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + - description: The value of the Id property of the LogEntry resource + in: path + name: LogEntryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntry.v1_4_2.yaml#/components/schemas/LogEntry + description: The response contains a representation of the LogEntry resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/NetworkProtocol: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerNetworkProtocol.v1_4_1.yaml#/components/schemas/ManagerNetworkProtocol + description: The response contains a representation of the ManagerNetworkProtocol + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerNetworkProtocol.v1_4_1.yaml#/components/schemas/ManagerNetworkProtocol + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerNetworkProtocol.v1_4_1.yaml#/components/schemas/ManagerNetworkProtocol + description: The response contains a representation of the ManagerNetworkProtocol + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerNetworkProtocol.v1_4_1.yaml#/components/schemas/ManagerNetworkProtocol + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ManagerNetworkProtocol.v1_4_1.yaml#/components/schemas/ManagerNetworkProtocol + description: The response contains a representation of the ManagerNetworkProtocol + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/NetworkProtocol/HTTPS/Certificates: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/CertificateCollection.yaml#/components/schemas/CertificateCollection + description: The response contains a representation of the CertificateCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.yaml#/components/schemas/Certificate + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.yaml#/components/schemas/Certificate + description: A resource of type Certificate has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/NetworkProtocol/HTTPS/Certificates/{CertificateId}: + delete: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/Certificate + description: The response contains a representation of the Certificate resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/Certificate + description: The response contains a representation of the Certificate resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/NetworkProtocol/HTTPS/Certificates/{CertificateId}/Actions/Certificate.Rekey: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RekeyRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RekeyResponse + description: The response contains the results of the Rekey action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/NetworkProtocol/HTTPS/Certificates/{CertificateId}/Actions/Certificate.Renew: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RenewRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RenewResponse + description: The response contains the results of the Renew action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/SerialInterfaces: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterfaceCollection.yaml#/components/schemas/SerialInterfaceCollection + description: The response contains a representation of the SerialInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/SerialInterfaces/{SerialInterfaceId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the SerialInterface resource + in: path + name: SerialInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterface.v1_1_4.yaml#/components/schemas/SerialInterface + description: The response contains a representation of the SerialInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the SerialInterface resource + in: path + name: SerialInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterface.v1_1_4.yaml#/components/schemas/SerialInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterface.v1_1_4.yaml#/components/schemas/SerialInterface + description: The response contains a representation of the SerialInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the SerialInterface resource + in: path + name: SerialInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterface.v1_1_4.yaml#/components/schemas/SerialInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SerialInterface.v1_1_4.yaml#/components/schemas/SerialInterface + description: The response contains a representation of the SerialInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/VirtualMedia: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMediaCollection.yaml#/components/schemas/VirtualMediaCollection + description: The response contains a representation of the VirtualMediaCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/VirtualMedia/{VirtualMediaId}: + get: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the VirtualMedia resource + in: path + name: VirtualMediaId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/VirtualMedia + description: The response contains a representation of the VirtualMedia + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the VirtualMedia resource + in: path + name: VirtualMediaId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/VirtualMedia + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/VirtualMedia + description: The response contains a representation of the VirtualMedia + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the VirtualMedia resource + in: path + name: VirtualMediaId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/VirtualMedia + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/VirtualMedia + description: The response contains a representation of the VirtualMedia + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/VirtualMedia/{VirtualMediaId}/Actions/VirtualMedia.EjectMedia: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the VirtualMedia resource + in: path + name: VirtualMediaId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/EjectMediaRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the EjectMedia action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Managers/{ManagerId}/VirtualMedia/{VirtualMediaId}/Actions/VirtualMedia.InsertMedia: + post: + parameters: + - description: The value of the Id property of the Manager resource + in: path + name: ManagerId + required: true + schema: + type: string + - description: The value of the Id property of the VirtualMedia resource + in: path + name: VirtualMediaId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VirtualMedia.v1_3_1.yaml#/components/schemas/InsertMediaRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the InsertMedia action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/SessionService: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionService.v1_1_5.yaml#/components/schemas/SessionService + description: The response contains a representation of the SessionService + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionService.v1_1_5.yaml#/components/schemas/SessionService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionService.v1_1_5.yaml#/components/schemas/SessionService + description: The response contains a representation of the SessionService + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionService.v1_1_5.yaml#/components/schemas/SessionService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionService.v1_1_5.yaml#/components/schemas/SessionService + description: The response contains a representation of the SessionService + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/SessionService/Sessions: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SessionCollection.yaml#/components/schemas/SessionCollection + description: The response contains a representation of the SessionCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Session.yaml#/components/schemas/Session + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Session.yaml#/components/schemas/Session + description: A resource of type Session has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/SessionService/Sessions/{SessionId}: + delete: + parameters: + - description: The value of the Id property of the Session resource + in: path + name: SessionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Session.v1_2_0.yaml#/components/schemas/Session + description: The response contains a representation of the Session resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the Session resource + in: path + name: SessionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Session.v1_2_0.yaml#/components/schemas/Session + description: The response contains a representation of the Session resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems: + get: + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystemCollection.yaml#/components/schemas/ComputerSystemCollection + description: The response contains a representation of the ComputerSystemCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.yaml#/components/schemas/ComputerSystem + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.yaml#/components/schemas/ComputerSystem + description: A resource of type ComputerSystem has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + description: The response contains a representation of the ComputerSystem + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + description: The response contains a representation of the ComputerSystem + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + description: The response contains a representation of the ComputerSystem + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ComputerSystem + description: The response contains a representation of the ComputerSystem + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.AddResourceBlock: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/AddResourceBlockRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the AddResourceBlock action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.RemoveResourceBlock: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/RemoveResourceBlockRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the RemoveResourceBlock + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.Reset: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Actions/ComputerSystem.SetDefaultBootOrder: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ComputerSystem.v1_7_0.yaml#/components/schemas/SetDefaultBootOrderRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SetDefaultBootOrder + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Bios: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/Bios + description: The response contains a representation of the Bios resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/Bios + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/Bios + description: The response contains a representation of the Bios resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/Bios + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/Bios + description: The response contains a representation of the Bios resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Bios/Actions/Bios.ChangePassword: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/ChangePasswordRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ChangePassword action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Bios/Actions/Bios.ResetBios: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Bios.v1_0_6.yaml#/components/schemas/ResetBiosRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ResetBios action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Boot/Certificates: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/CertificateCollection.yaml#/components/schemas/CertificateCollection + description: The response contains a representation of the CertificateCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.yaml#/components/schemas/Certificate + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.yaml#/components/schemas/Certificate + description: A resource of type Certificate has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Boot/Certificates/{CertificateId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/Certificate + description: The response contains a representation of the Certificate resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/Certificate + description: The response contains a representation of the Certificate resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Boot/Certificates/{CertificateId}/Actions/Certificate.Rekey: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RekeyRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RekeyResponse + description: The response contains the results of the Rekey action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Boot/Certificates/{CertificateId}/Actions/Certificate.Renew: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Certificate resource + in: path + name: CertificateId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RenewRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Certificate.v1_1_0.yaml#/components/schemas/RenewResponse + description: The response contains the results of the Renew action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/BootOptions: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOptionCollection.yaml#/components/schemas/BootOptionCollection + description: The response contains a representation of the BootOptionCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.yaml#/components/schemas/BootOption + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.yaml#/components/schemas/BootOption + description: A resource of type BootOption has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/BootOptions/{BootOptionId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the BootOption resource + in: path + name: BootOptionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + description: The response contains a representation of the BootOption resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the BootOption resource + in: path + name: BootOptionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + description: The response contains a representation of the BootOption resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the BootOption resource + in: path + name: BootOptionId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + description: The response contains a representation of the BootOption resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the BootOption resource + in: path + name: BootOptionId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/BootOption.v1_0_2.yaml#/components/schemas/BootOption + description: The response contains a representation of the BootOption resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/EthernetInterfaces: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterfaceCollection.yaml#/components/schemas/EthernetInterfaceCollection + description: The response contains a representation of the EthernetInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/EthernetInterfaces/{EthernetInterfaceId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/EthernetInterface.v1_5_0.yaml#/components/schemas/EthernetInterface + description: The response contains a representation of the EthernetInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/EthernetInterfaces/{EthernetInterfaceId}/VLANs: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterfaceCollection.yaml#/components/schemas/VLanNetworkInterfaceCollection + description: The response contains a representation of the VLanNetworkInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.yaml#/components/schemas/VLanNetworkInterface + description: A resource of type VLanNetworkInterface has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/EthernetInterfaces/{EthernetInterfaceId}/VLANs/{VLanNetworkInterfaceId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the EthernetInterface resource + in: path + name: EthernetInterfaceId + required: true + schema: + type: string + - description: The value of the Id property of the VLanNetworkInterface resource + in: path + name: VLanNetworkInterfaceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/VLanNetworkInterface.v1_1_3.yaml#/components/schemas/VLanNetworkInterface + description: The response contains a representation of the VLanNetworkInterface + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/LogServices: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogServiceCollection.yaml#/components/schemas/LogServiceCollection + description: The response contains a representation of the LogServiceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/LogService + description: The response contains a representation of the LogService resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}/Actions/LogService.ClearLog: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogService.v1_1_2.yaml#/components/schemas/ClearLogRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ClearLog action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}/Entries: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntryCollection.yaml#/components/schemas/LogEntryCollection + description: The response contains a representation of the LogEntryCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/LogServices/{LogServiceId}/Entries/{LogEntryId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + - description: The value of the Id property of the LogEntry resource + in: path + name: LogEntryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntry.v1_4_2.yaml#/components/schemas/LogEntry + description: The response contains a representation of the LogEntry resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the LogService resource + in: path + name: LogServiceId + required: true + schema: + type: string + - description: The value of the Id property of the LogEntry resource + in: path + name: LogEntryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/LogEntry.v1_4_2.yaml#/components/schemas/LogEntry + description: The response contains a representation of the LogEntry resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryCollection.yaml#/components/schemas/MemoryCollection + description: The response contains a representation of the MemoryCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/Memory + description: The response contains a representation of the Memory resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Actions/Memory.DisablePassphrase: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/DisablePassphraseRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the DisablePassphrase + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Actions/Memory.OverwriteUnit: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/OverwriteUnitRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the OverwriteUnit action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Actions/Memory.SecureEraseUnit: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/SecureEraseUnitRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SecureEraseUnit action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Actions/Memory.SetPassphrase: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/SetPassphraseRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SetPassphrase action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Actions/Memory.UnlockUnit: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Memory.v1_7_1.yaml#/components/schemas/UnlockUnitRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the UnlockUnit action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/MemoryMetrics: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryMetrics.v1_1_5.yaml#/components/schemas/MemoryMetrics + description: The response contains a representation of the MemoryMetrics + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Memory/{MemoryId}/MemoryMetrics/Actions/MemoryMetrics.ClearCurrentPeriod: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Memory resource + in: path + name: MemoryId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryMetrics.v1_1_5.yaml#/components/schemas/ClearCurrentPeriodRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ClearCurrentPeriod + action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/MemoryDomains: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryDomainCollection.yaml#/components/schemas/MemoryDomainCollection + description: The response contains a representation of the MemoryDomainCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/MemoryDomains/{MemoryDomainId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryDomain.v1_2_2.yaml#/components/schemas/MemoryDomain + description: The response contains a representation of the MemoryDomain + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/MemoryDomains/{MemoryDomainId}/MemoryChunks: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunksCollection.yaml#/components/schemas/MemoryChunksCollection + description: The response contains a representation of the MemoryChunksCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.yaml#/components/schemas/MemoryChunks + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.yaml#/components/schemas/MemoryChunks + description: A resource of type MemoryChunks has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/MemoryDomains/{MemoryDomainId}/MemoryChunks/{MemoryChunksId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryChunks resource + in: path + name: MemoryChunksId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + description: The response contains a representation of the MemoryChunks + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryChunks resource + in: path + name: MemoryChunksId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + description: The response contains a representation of the MemoryChunks + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryChunks resource + in: path + name: MemoryChunksId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + description: The response contains a representation of the MemoryChunks + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryDomain resource + in: path + name: MemoryDomainId + required: true + schema: + type: string + - description: The value of the Id property of the MemoryChunks resource + in: path + name: MemoryChunksId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/MemoryChunks.v1_2_3.yaml#/components/schemas/MemoryChunks + description: The response contains a representation of the MemoryChunks + resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkInterfaceCollection.yaml#/components/schemas/NetworkInterfaceCollection + description: The response contains a representation of the NetworkInterfaceCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkInterface resource + in: path + name: NetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkInterface.v1_1_2.yaml#/components/schemas/NetworkInterface + description: The response contains a representation of the NetworkInterface + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkDeviceFunctions: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkInterface resource + in: path + name: NetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkDeviceFunctionCollection.yaml#/components/schemas/NetworkDeviceFunctionCollection + description: The response contains a representation of the NetworkDeviceFunctionCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/NetworkInterfaces/{NetworkInterfaceId}/NetworkPorts: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the NetworkInterface resource + in: path + name: NetworkInterfaceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/NetworkPortCollection.yaml#/components/schemas/NetworkPortCollection + description: The response contains a representation of the NetworkPortCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/PCIeDevices/{PCIeDeviceId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PCIeDevice.v1_3_1.yaml#/components/schemas/PCIeDevice + description: The response contains a representation of the PCIeDevice resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/PCIeDevices/{PCIeDeviceId}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/PCIeDevices/{PCIeDeviceId}/PCIeFunctions/{PCIeFunctionId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeDevice resource + in: path + name: PCIeDeviceId + required: true + schema: + type: string + - description: The value of the Id property of the PCIeFunction resource + in: path + name: PCIeFunctionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PCIeFunction.v1_2_2.yaml#/components/schemas/PCIeFunction + description: The response contains a representation of the PCIeFunction + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/ProcessorSummary/ProcessorMetrics: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ProcessorMetrics.v1_0_1.yaml#/components/schemas/ProcessorMetrics + description: The response contains a representation of the ProcessorMetrics + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ProcessorCollection.yaml#/components/schemas/ProcessorCollection + description: The response contains a representation of the ProcessorCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Processor.v1_5_0.yaml#/components/schemas/Processor + description: The response contains a representation of the Processor resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/AccelerationFunctions: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/AccelerationFunctionCollection.yaml#/components/schemas/AccelerationFunctionCollection + description: The response contains a representation of the AccelerationFunctionCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/AccelerationFunctions/{AccelerationFunctionId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the AccelerationFunction resource + in: path + name: AccelerationFunctionId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/AccelerationFunction.v1_0_1.yaml#/components/schemas/AccelerationFunction + description: The response contains a representation of the AccelerationFunction + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/ProcessorMetrics: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ProcessorMetrics.v1_0_1.yaml#/components/schemas/ProcessorMetrics + description: The response contains a representation of the ProcessorMetrics + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ProcessorCollection.yaml#/components/schemas/ProcessorCollection + description: The response contains a representation of the ProcessorCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors/{ProcessorId2}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId2 + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Processor.v1_5_0.yaml#/components/schemas/Processor + description: The response contains a representation of the Processor resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors/{ProcessorId2}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId2 + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId2 + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId2 + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Processors/{ProcessorId}/SubProcessors/{ProcessorId2}/ProcessorMetrics: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId + required: true + schema: + type: string + - description: The value of the Id property of the Processor resource + in: path + name: ProcessorId2 + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/ProcessorMetrics.v1_0_1.yaml#/components/schemas/ProcessorMetrics + description: The response contains a representation of the ProcessorMetrics + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/SecureBoot: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/SecureBoot + description: The response contains a representation of the SecureBoot resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/SecureBoot + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/SecureBoot + description: The response contains a representation of the SecureBoot resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/SecureBoot + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/SecureBoot + description: The response contains a representation of the SecureBoot resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/SecureBoot/Actions/SecureBoot.ResetKeys: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SecureBoot.v1_0_5.yaml#/components/schemas/ResetKeysRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the ResetKeys action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/SimpleStorage: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SimpleStorageCollection.yaml#/components/schemas/SimpleStorageCollection + description: The response contains a representation of the SimpleStorageCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/SimpleStorage/{SimpleStorageId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the SimpleStorage resource + in: path + name: SimpleStorageId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/SimpleStorage.v1_2_2.yaml#/components/schemas/SimpleStorage + description: The response contains a representation of the SimpleStorage + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/StorageCollection.yaml#/components/schemas/StorageCollection + description: The response contains a representation of the StorageCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/Storage + description: The response contains a representation of the Storage resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/Storage + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/Storage + description: The response contains a representation of the Storage resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/Storage + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/Storage + description: The response contains a representation of the Storage resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Actions/Storage.SetEncryptionKey: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Storage.v1_7_0.yaml#/components/schemas/SetEncryptionKeyRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SetEncryptionKey action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/Drive + description: The response contains a representation of the Drive resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Actions/Drive.SecureErase: + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Drive.v1_6_0.yaml#/components/schemas/SecureEraseRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the SecureErase action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Drives/{DriveId}/Assembly: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Drive resource + in: path + name: DriveId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Assembly.v1_2_1.yaml#/components/schemas/Assembly + description: The response contains a representation of the Assembly resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/StorageController/{StorageControllerMemberId}/Ports: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the StorageControllerMember resource + in: path + name: StorageControllerMemberId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/PortCollection.yaml#/components/schemas/PortCollection + description: The response contains a representation of the PortCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/StorageControllers/{StorageControllerId}/Ports/{PortId}: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the StorageController resource + in: path + name: StorageControllerId + required: true + schema: + type: string + - description: The value of the Id property of the Port resource + in: path + name: PortId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Port.v1_1_2.yaml#/components/schemas/Port + description: The response contains a representation of the Port resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + ? /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/StorageControllers/{StorageControllerId}/Ports/{PortId}/Actions/Port.Reset + : post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the StorageController resource + in: path + name: StorageControllerId + required: true + schema: + type: string + - description: The value of the Id property of the Port resource + in: path + name: PortId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Port.v1_1_2.yaml#/components/schemas/ResetRequestBody + required: true + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: The response contains the results of the Reset action + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Volumes: + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/swordfish/v1/VolumeCollection.yaml#/components/schemas/VolumeCollection + description: The response contains a representation of the VolumeCollection + resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + post: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/swordfish/v1/Volume.yaml#/components/schemas/Volume + required: true + responses: + '201': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/swordfish/v1/Volume.yaml#/components/schemas/Volume + description: A resource of type Volume has been created + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + /redfish/v1/Systems/{ComputerSystemId}/Storage/{StorageId}/Volumes/{VolumeId}: + delete: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Volume resource + in: path + name: VolumeId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + description: The response contains a representation of the Volume resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + get: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Volume resource + in: path + name: VolumeId + required: true + schema: + type: string + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + description: The response contains a representation of the Volume resource + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + patch: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Volume resource + in: path + name: VolumeId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + description: The response contains a representation of the Volume resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition + put: + parameters: + - description: The value of the Id property of the ComputerSystem resource + in: path + name: ComputerSystemId + required: true + schema: + type: string + - description: The value of the Id property of the Storage resource + in: path + name: StorageId + required: true + schema: + type: string + - description: The value of the Id property of the Volume resource + in: path + name: VolumeId + required: true + schema: + type: string + requestBody: + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + required: true + responses: + '200': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Volume.v1_0_3.yaml#/components/schemas/Volume + description: The response contains a representation of the Volume resource + '202': + content: + application/json: + schema: + $ref: http://redfish.dmtf.org/schemas/v1/Task.v1_4_1.yaml#/components/schemas/Task + description: Accepted; a Task has been generated + '204': + description: Success, but no response data + default: + content: + application/json: + schema: + $ref: '#/components/schemas/RedfishError' + description: Error condition \ No newline at end of file