Show / Hide Table of Contents

Class OptimizerClient

Service client instance for Optimizer.

Inheritance
object
ClientBase
RegionalClientBase
OptimizerClient
Implements
IDisposable
Inherited Members
RegionalClientBase.logger
RegionalClientBase.SetRegion(Region)
RegionalClientBase.SetRegion(string)
RegionalClientBase.UseRealmSpecificEndpointTemplate(bool)
RegionalClientBase.PopulateServiceParametersInEndpointTemplate(RestClient, Dictionary<string, object>)
RegionalClientBase.parseEndpointForParameters(string)
ClientBase.restClient
ClientBase.service
ClientBase.userAgent
ClientBase.Dispose()
ClientBase.Dispose(bool)
ClientBase.SetEndpoint(string)
ClientBase.GetEndpoint()
ClientBase.GetUserAgent()
ClientBase.SetRealmSpecificEndpointTemplate(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OptimizerService
Assembly: OCI.DotNetSDK.Optimizer.dll
Syntax
public class OptimizerClient : RegionalClientBase, IDisposable

Constructors

OptimizerClient(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 OptimizerClient(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 OptimizerPaginators Paginators { get; }
Property Value
Type Description
OptimizerPaginators

Waiters

Declaration
public OptimizerWaiters Waiters { get; }
Property Value
Type Description
OptimizerWaiters

Methods

BulkApplyRecommendations(BulkApplyRecommendationsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Applies the specified recommendations to the resources.

Declaration
public Task<BulkApplyRecommendationsResponse> BulkApplyRecommendations(BulkApplyRecommendationsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
BulkApplyRecommendationsRequest 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<BulkApplyRecommendationsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use BulkApplyRecommendations API.

CreateProfile(CreateProfileRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Creates a new profile.

Declaration
public Task<CreateProfileResponse> CreateProfile(CreateProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
CreateProfileRequest 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<CreateProfileResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use CreateProfile API.

DeleteProfile(DeleteProfileRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Deletes the specified profile. Uses the profile's OCID to determine which profile to delete.

Declaration
public Task<DeleteProfileResponse> DeleteProfile(DeleteProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
DeleteProfileRequest 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<DeleteProfileResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use DeleteProfile API.

FilterResourceActions(FilterResourceActionsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Queries the Cloud Advisor resource actions that are supported.

Declaration
public Task<FilterResourceActionsResponse> FilterResourceActions(FilterResourceActionsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
FilterResourceActionsRequest 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<FilterResourceActionsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use FilterResourceActions API.

GetCategory(GetCategoryRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the category that corresponds to the specified OCID.

Declaration
public Task<GetCategoryResponse> GetCategory(GetCategoryRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetCategoryRequest 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<GetCategoryResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetCategory API.

GetEnrollmentStatus(GetEnrollmentStatusRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the Cloud Advisor enrollment status.

Declaration
public Task<GetEnrollmentStatusResponse> GetEnrollmentStatus(GetEnrollmentStatusRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetEnrollmentStatusRequest 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<GetEnrollmentStatusResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetEnrollmentStatus API.

GetProfile(GetProfileRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the specified profile's information. Uses the profile's OCID to determine which profile to retrieve.

Declaration
public Task<GetProfileResponse> GetProfile(GetProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetProfileRequest 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<GetProfileResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetProfile API.

GetRecommendation(GetRecommendationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the recommendation for the specified OCID.

Declaration
public Task<GetRecommendationResponse> GetRecommendation(GetRecommendationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetRecommendationRequest 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<GetRecommendationResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetRecommendation API.

GetResourceAction(GetResourceActionRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the resource action that corresponds to the specified OCID.

Declaration
public Task<GetResourceActionResponse> GetResourceAction(GetResourceActionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetResourceActionRequest 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<GetResourceActionResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetResourceAction API.

GetWorkRequest(GetWorkRequestRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Gets the status of the work request associated with the specified ID.

Declaration
public Task<GetWorkRequestResponse> GetWorkRequest(GetWorkRequestRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
GetWorkRequestRequest 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<GetWorkRequestResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use GetWorkRequest API.

ListCategories(ListCategoriesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the supported Cloud Advisor categories.

Declaration
public Task<ListCategoriesResponse> ListCategories(ListCategoriesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListCategoriesRequest 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<ListCategoriesResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListCategories API.

ListEnrollmentStatuses(ListEnrollmentStatusesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the Cloud Advisor enrollment statuses.

Declaration
public Task<ListEnrollmentStatusesResponse> ListEnrollmentStatuses(ListEnrollmentStatusesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListEnrollmentStatusesRequest 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<ListEnrollmentStatusesResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListEnrollmentStatuses API.

ListHistories(ListHistoriesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists changes to the recommendations based on user activity. For example, lists when recommendations have been implemented, dismissed, postponed, or reactivated.

Declaration
public Task<ListHistoriesResponse> ListHistories(ListHistoriesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListHistoriesRequest 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<ListHistoriesResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListHistories API.

ListProfileLevels(ListProfileLevelsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the existing profile levels.

Declaration
public Task<ListProfileLevelsResponse> ListProfileLevels(ListProfileLevelsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListProfileLevelsRequest 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<ListProfileLevelsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListProfileLevels API.

ListProfiles(ListProfilesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the existing profiles.

Declaration
public Task<ListProfilesResponse> ListProfiles(ListProfilesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListProfilesRequest 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<ListProfilesResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListProfiles API.

ListRecommendationStrategies(ListRecommendationStrategiesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the existing strategies.

Declaration
public Task<ListRecommendationStrategiesResponse> ListRecommendationStrategies(ListRecommendationStrategiesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListRecommendationStrategiesRequest 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<ListRecommendationStrategiesResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListRecommendationStrategies API.

ListRecommendations(ListRecommendationsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the Cloud Advisor recommendations that are currently supported.

Declaration
public Task<ListRecommendationsResponse> ListRecommendations(ListRecommendationsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListRecommendationsRequest 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<ListRecommendationsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListRecommendations API.

ListResourceActionQueryableFields(ListResourceActionQueryableFieldsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the fields that are indexed for querying and their associated value types.

Declaration
public Task<ListResourceActionQueryableFieldsResponse> ListResourceActionQueryableFields(ListResourceActionQueryableFieldsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListResourceActionQueryableFieldsRequest 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<ListResourceActionQueryableFieldsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListResourceActionQueryableFields API.

ListResourceActions(ListResourceActionsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the Cloud Advisor resource actions that are supported.

Declaration
public Task<ListResourceActionsResponse> ListResourceActions(ListResourceActionsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListResourceActionsRequest 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<ListResourceActionsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListResourceActions API.

ListWorkRequestErrors(ListWorkRequestErrorsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists errors associated with the specified work request.

Declaration
public Task<ListWorkRequestErrorsResponse> ListWorkRequestErrors(ListWorkRequestErrorsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListWorkRequestErrorsRequest 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<ListWorkRequestErrorsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListWorkRequestErrors API.

ListWorkRequestLogs(ListWorkRequestLogsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the logs associated with the specified work request.

Declaration
public Task<ListWorkRequestLogsResponse> ListWorkRequestLogs(ListWorkRequestLogsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListWorkRequestLogsRequest 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<ListWorkRequestLogsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListWorkRequestLogs API.

ListWorkRequests(ListWorkRequestsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Lists the work requests in the tenancy. The tenancy is the root compartment.

Declaration
public Task<ListWorkRequestsResponse> ListWorkRequests(ListWorkRequestsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
ListWorkRequestsRequest 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<ListWorkRequestsResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use ListWorkRequests API.

UpdateEnrollmentStatus(UpdateEnrollmentStatusRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Updates the enrollment status of the tenancy.

Declaration
public Task<UpdateEnrollmentStatusResponse> UpdateEnrollmentStatus(UpdateEnrollmentStatusRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
UpdateEnrollmentStatusRequest 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<UpdateEnrollmentStatusResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use UpdateEnrollmentStatus API.

UpdateProfile(UpdateProfileRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Updates the specified profile. Uses the profile's OCID to determine which profile to update.

Declaration
public Task<UpdateProfileResponse> UpdateProfile(UpdateProfileRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
UpdateProfileRequest 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<UpdateProfileResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use UpdateProfile API.

UpdateRecommendation(UpdateRecommendationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Updates the recommendation that corresponds to the specified OCID. Use this operation to implement the following actions: <br/>

  • Postpone recommendation
  • Dismiss recommendation
  • Reactivate recommendation
Declaration
public Task<UpdateRecommendationResponse> UpdateRecommendation(UpdateRecommendationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
UpdateRecommendationRequest 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<UpdateRecommendationResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use UpdateRecommendation API.

UpdateResourceAction(UpdateResourceActionRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)

Updates the resource action that corresponds to the specified OCID. Use this operation to implement the following actions: <br/>

  • Postpone resource action
  • Ignore resource action
  • Reactivate resource action
Declaration
public Task<UpdateResourceActionResponse> UpdateResourceAction(UpdateResourceActionRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type Name Description
UpdateResourceActionRequest 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<UpdateResourceActionResponse>

A response object containing details about the completed operation

Examples

Click here to see an example of how to use UpdateResourceAction API.

Implements

IDisposable
In this article
Back to top