Class RedirectClient
Service client instance for Redirect.
Implements
Inherited Members
Namespace: Oci.WaasService
Assembly: OCI.DotNetSDK.Waas.dll
Syntax
public class RedirectClient : RegionalClientBase, IDisposable
Constructors
RedirectClient(IBasicAuthenticationDetailsProvider, ClientConfiguration, string)
Creates a new service instance using the given authentication provider and/or client configuration and/or endpoint. A client configuration can also be provided optionally to adjust REST client behaviors.
Declaration
public RedirectClient(IBasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration clientConfiguration = null, string endpoint = null)
Parameters
Type | Name | Description |
---|---|---|
IBasicAuthenticationDetailsProvider | authenticationDetailsProvider | The authentication details provider. Required. |
ClientConfiguration | clientConfiguration | The client configuration that contains settings to adjust REST client behaviors. Optional. |
string | endpoint | The endpoint of the service. If not provided and the client is a regional client, the endpoint will be constructed based on region information. Optional. |
Properties
Paginators
Declaration
public RedirectPaginators Paginators { get; }
Property Value
Type | Description |
---|---|
RedirectPaginators |
Waiters
Declaration
public RedirectWaiters Waiters { get; }
Property Value
Type | Description |
---|---|
RedirectWaiters |
Methods
ChangeHttpRedirectCompartment(ChangeHttpRedirectCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves HTTP Redirect into a different compartment. When provided, If-Match is checked against ETag values of the WAAS policy.
Declaration
public Task<ChangeHttpRedirectCompartmentResponse> ChangeHttpRedirectCompartment(ChangeHttpRedirectCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeHttpRedirectCompartmentRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ChangeHttpRedirectCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeHttpRedirectCompartment API.
CreateHttpRedirect(CreateHttpRedirectRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates a new HTTP Redirect on the WAF edge.
Declaration
public Task<CreateHttpRedirectResponse> CreateHttpRedirect(CreateHttpRedirectRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateHttpRedirectRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<CreateHttpRedirectResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateHttpRedirect API.
DeleteHttpRedirect(DeleteHttpRedirectRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes a redirect.
Declaration
public Task<DeleteHttpRedirectResponse> DeleteHttpRedirect(DeleteHttpRedirectRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteHttpRedirectRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<DeleteHttpRedirectResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteHttpRedirect API.
GetHttpRedirect(GetHttpRedirectRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets the details of a HTTP Redirect.
Declaration
public Task<GetHttpRedirectResponse> GetHttpRedirect(GetHttpRedirectRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetHttpRedirectRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<GetHttpRedirectResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetHttpRedirect API.
ListHttpRedirects(ListHttpRedirectsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets a list of HTTP Redirects.
Declaration
public Task<ListHttpRedirectsResponse> ListHttpRedirects(ListHttpRedirectsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListHttpRedirectsRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<ListHttpRedirectsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListHttpRedirects API.
UpdateHttpRedirect(UpdateHttpRedirectRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates the details of a HTTP Redirect, including target and tags. Only the fields specified in the request body will be updated; all other properties will remain unchanged.
Declaration
public Task<UpdateHttpRedirectResponse> UpdateHttpRedirect(UpdateHttpRedirectRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateHttpRedirectRequest | request | The request object containing the details to send. Required. |
RetryConfiguration | retryConfiguration | The retry configuration that will be used by to send this request. Optional. |
CancellationToken | cancellationToken | The cancellation token to cancel this operation. Optional. |
HttpCompletionOption | completionOption | The completion option for this operation. Optional. |
Returns
Type | Description |
---|---|
Task<UpdateHttpRedirectResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateHttpRedirect API.