Creating an HTTP Redirect
Create an HTTP redirect that lets you redirect HTTP traffic to another URL.
See HTTP Redirects for a feature overview and more information.
For general service information, see the DNS service overview.
Use the http-redirect create command and required parameters to create an HTTP redirect:
oci waas http-redirect create --compartment-id compartment_id --domain domain --target file://target.jsonThe
--generate-full-command-json-inputoption can be used to generate a sample.jsonfile to be used with this command option. The key names are already populated and match the command option names, converted tocamelCaseformat. For example,compartment-idbecomescompartmentId. The values of the keys need to be populated by the user before using the sample file as an input to this command. For any command option that accepts more than one value, the value of the key can be aJSONarray.For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Run the CreateHttpRedirect operation to create an HTTP redirect.