CreateHttpRedirectDetails¶
- class oci.waas.models.CreateHttpRedirectDetails(**kwargs)¶
Bases:
objectThe details of a HTTP Redirect configured to redirect traffic from one hostname to another. Warning: Oracle recommends that you avoid using any confidential information when you supply string values using the API.
Methods:
__init__(**kwargs)Initializes a new CreateHttpRedirectDetails object with values from keyword arguments.
Attributes:
[Required] Gets the compartment_id of this CreateHttpRedirectDetails.
Gets the defined_tags of this CreateHttpRedirectDetails.
Gets the display_name of this CreateHttpRedirectDetails.
[Required] Gets the domain of this CreateHttpRedirectDetails.
Gets the freeform_tags of this CreateHttpRedirectDetails.
Gets the response_code of this CreateHttpRedirectDetails.
[Required] Gets the target of this CreateHttpRedirectDetails.
- __init__(**kwargs)¶
Initializes a new CreateHttpRedirectDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
compartment_id (str) – The value to assign to the compartment_id property of this CreateHttpRedirectDetails.
display_name (str) – The value to assign to the display_name property of this CreateHttpRedirectDetails.
domain (str) – The value to assign to the domain property of this CreateHttpRedirectDetails.
target (oci.waas.models.HttpRedirectTarget) – The value to assign to the target property of this CreateHttpRedirectDetails.
response_code (int) – The value to assign to the response_code property of this CreateHttpRedirectDetails.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateHttpRedirectDetails.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateHttpRedirectDetails.
- property compartment_id¶
[Required] Gets the compartment_id of this CreateHttpRedirectDetails. The OCID of the HTTP Redirects compartment.
- Returns
The compartment_id of this CreateHttpRedirectDetails.
- Return type
str
- property defined_tags¶
Gets the defined_tags of this CreateHttpRedirectDetails. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {“Operations”: {“CostCenter”: “42”}}
- Returns
The defined_tags of this CreateHttpRedirectDetails.
- Return type
dict(str, dict(str, object))
- property display_name¶
Gets the display_name of this CreateHttpRedirectDetails. The user-friendly name of the HTTP Redirect. The name can be changed and does not need to be unique.
- Returns
The display_name of this CreateHttpRedirectDetails.
- Return type
str
- property domain¶
[Required] Gets the domain of this CreateHttpRedirectDetails. The domain from which traffic will be redirected.
- Returns
The domain of this CreateHttpRedirectDetails.
- Return type
str
- property freeform_tags¶
Gets the freeform_tags of this CreateHttpRedirectDetails. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {“Department”: “Finance”}
- Returns
The freeform_tags of this CreateHttpRedirectDetails.
- Return type
dict(str, str)
- property response_code¶
Gets the response_code of this CreateHttpRedirectDetails. The response code returned for the redirect to the client. For more information, see RFC 7231.
- Returns
The response_code of this CreateHttpRedirectDetails.
- Return type
int
- property target¶
[Required] Gets the target of this CreateHttpRedirectDetails. The redirect target object including all the redirect data.
- Returns
The target of this CreateHttpRedirectDetails.
- Return type