PublishedPort

class oci.generative_ai_sandbox.models.PublishedPort(**kwargs)

Bases: object

Published port key/value pair. Requests to the published URL may supply X-App-Token with the raw application token, without a Bearer prefix. After the sandbox’s access policy succeeds, the proxy builds the upstream Authorization header as Bearer followed by the unchanged token and removes X-App-Token. This applies to HTTP, SSE, and WebSocket opening handshakes, and does not replace required OCI authentication. Exactly one nonempty printable ASCII token of at most 8192 bytes is accepted; whitespace, commas, control characters, and duplicate values are rejected with HTTP 400. Both header names must be treated as sensitive credentials.

Methods:

__init__(**kwargs)

Initializes a new PublishedPort object with values from keyword arguments.

Attributes:

key

[Required] Gets the key of this PublishedPort.

value

[Required] Gets the value of this PublishedPort.

__init__(**kwargs)

Initializes a new PublishedPort object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • key (str) – The value to assign to the key property of this PublishedPort.

  • value (str) – The value to assign to the value property of this PublishedPort.

property key

[Required] Gets the key of this PublishedPort. Key string.

Returns

The key of this PublishedPort.

Return type

str

property value

[Required] Gets the value of this PublishedPort. Value string.

Returns

The value of this PublishedPort.

Return type

str