Class AutoScalingClient
Service client instance for AutoScaling.
Implements
Inherited Members
Namespace: Oci.AutoscalingService
Assembly: OCI.DotNetSDK.Autoscaling.dll
Syntax
public class AutoScalingClient : RegionalClientBase, IDisposable
Constructors
AutoScalingClient(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 AutoScalingClient(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 AutoScalingPaginators Paginators { get; }
Property Value
Type | Description |
---|---|
AutoScalingPaginators |
Methods
ChangeAutoScalingConfigurationCompartment(ChangeAutoScalingConfigurationCompartmentRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Moves an autoscaling configuration into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment. <br/> When you move an autoscaling configuration to a different compartment, associated resources such as instance pools are not moved.
Declaration
public Task<ChangeAutoScalingConfigurationCompartmentResponse> ChangeAutoScalingConfigurationCompartment(ChangeAutoScalingConfigurationCompartmentRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ChangeAutoScalingConfigurationCompartmentRequest | 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<ChangeAutoScalingConfigurationCompartmentResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ChangeAutoScalingConfigurationCompartment API.
CreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates an autoscaling configuration.
Declaration
public Task<CreateAutoScalingConfigurationResponse> CreateAutoScalingConfiguration(CreateAutoScalingConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateAutoScalingConfigurationRequest | 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<CreateAutoScalingConfigurationResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateAutoScalingConfiguration API.
CreateAutoScalingPolicy(CreateAutoScalingPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Creates an autoscaling policy for the specified autoscaling configuration. <br/> You can create the following types of autoscaling policies: <br/>
- Schedule-based: Autoscaling events take place at the specific times that you schedule.
- Threshold-based: An autoscaling action is triggered when a performance metric meets or exceeds a threshold. <br/> An autoscaling configuration can either have multiple schedule-based autoscaling policies, or one threshold-based autoscaling policy.
Declaration
public Task<CreateAutoScalingPolicyResponse> CreateAutoScalingPolicy(CreateAutoScalingPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
CreateAutoScalingPolicyRequest | 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<CreateAutoScalingPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use CreateAutoScalingPolicy API.
DeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes an autoscaling configuration.
Declaration
public Task<DeleteAutoScalingConfigurationResponse> DeleteAutoScalingConfiguration(DeleteAutoScalingConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteAutoScalingConfigurationRequest | 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<DeleteAutoScalingConfigurationResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteAutoScalingConfiguration API.
DeleteAutoScalingPolicy(DeleteAutoScalingPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Deletes an autoscaling policy for the specified autoscaling configuration.
Declaration
public Task<DeleteAutoScalingPolicyResponse> DeleteAutoScalingPolicy(DeleteAutoScalingPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
DeleteAutoScalingPolicyRequest | 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<DeleteAutoScalingPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use DeleteAutoScalingPolicy API.
GetAutoScalingConfiguration(GetAutoScalingConfigurationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about the specified autoscaling configuration.
Declaration
public Task<GetAutoScalingConfigurationResponse> GetAutoScalingConfiguration(GetAutoScalingConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetAutoScalingConfigurationRequest | 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<GetAutoScalingConfigurationResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetAutoScalingConfiguration API.
GetAutoScalingPolicy(GetAutoScalingPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Gets information about the specified autoscaling policy in the specified autoscaling configuration.
Declaration
public Task<GetAutoScalingPolicyResponse> GetAutoScalingPolicy(GetAutoScalingPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
GetAutoScalingPolicyRequest | 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<GetAutoScalingPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use GetAutoScalingPolicy API.
ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Lists autoscaling configurations in the specifed compartment.
Declaration
public Task<ListAutoScalingConfigurationsResponse> ListAutoScalingConfigurations(ListAutoScalingConfigurationsRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListAutoScalingConfigurationsRequest | 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<ListAutoScalingConfigurationsResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListAutoScalingConfigurations API.
ListAutoScalingPolicies(ListAutoScalingPoliciesRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Lists the autoscaling policies in the specified autoscaling configuration.
Declaration
public Task<ListAutoScalingPoliciesResponse> ListAutoScalingPolicies(ListAutoScalingPoliciesRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
ListAutoScalingPoliciesRequest | 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<ListAutoScalingPoliciesResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use ListAutoScalingPolicies API.
UpdateAutoScalingConfiguration(UpdateAutoScalingConfigurationRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates certain fields on the specified autoscaling configuration, such as the name, the cooldown period, and whether the autoscaling configuration is enabled.
Declaration
public Task<UpdateAutoScalingConfigurationResponse> UpdateAutoScalingConfiguration(UpdateAutoScalingConfigurationRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateAutoScalingConfigurationRequest | 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<UpdateAutoScalingConfigurationResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateAutoScalingConfiguration API.
UpdateAutoScalingPolicy(UpdateAutoScalingPolicyRequest, RetryConfiguration, CancellationToken, HttpCompletionOption)
Updates an autoscaling policy in the specified autoscaling configuration.
Declaration
public Task<UpdateAutoScalingPolicyResponse> UpdateAutoScalingPolicy(UpdateAutoScalingPolicyRequest request, RetryConfiguration retryConfiguration = null, CancellationToken cancellationToken = default, HttpCompletionOption completionOption = HttpCompletionOption.ResponseContentRead)
Parameters
Type | Name | Description |
---|---|---|
UpdateAutoScalingPolicyRequest | 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<UpdateAutoScalingPolicyResponse> | A response object containing details about the completed operation |
Examples
Click here to see an example of how to use UpdateAutoScalingPolicy API.