• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Python SDK)
  4. Data Types
  5. Details About a Redirection Request

Details About a Redirection Request

Namespace

Class

Module

Redirect

com.obs.models.redirect

Parameter Description

Field

Type

Optional or Mandatory

Description

protocol

str

Optional when used as a request parameter

Protocol used for redirection. Possible values are:

  • http
  • https

hostName

str

Optional when used as a request parameter

Host name used for redirection

replaceKeyPrefixWith

str

Optional when used as a request parameter

Object name prefix used in the redirection request

replaceKeyWith

str

Optional when used as a request parameter

Object name used in the redirection request. This parameter cannot be used together with replaceKeyPrefixWith.

httpRedirectCode

int

Optional when used as a request parameter

HTTP status code in the response to the redirection request