@Generated(value="OracleSDKGenerator", comments="API Version: 20180917") public interface ResourceManagerAsync extends AutoCloseable
API for the Resource Manager service. Use this API to install, configure, and manage resources via the “infrastructure-as-code” model. For more information, see Overview of Resource Manager.
closevoid setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint - The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
void setRegion(Region region)
Sets the region to call (ex, Region.US_PHOENIX_1).
Note, this will call setEndpoint after resolving the endpoint. If the service is not available in this region, however, an IllegalArgumentException will be raised.
region - The region of the service.void setRegion(String regionId)
Sets the region to call (ex, ‘us-phoenix-1’).
Note, this will first try to map the region ID to a known Region and call
setRegion.
If no known Region could be determined, it will create an endpoint based on the
default endpoint format (Region.formatDefaultRegionEndpoint(Service, String)
and then call setEndpoint.
regionId - The public region ID.Future<CancelJobResponse> cancelJob(CancelJobRequest request, AsyncHandler<CancelJobRequest,CancelJobResponse> handler)
Indicates the intention to cancel the specified job. Cancellation of the job is not immediate, and may be delayed, or may not happen at all.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ChangeConfigurationSourceProviderCompartmentResponse> changeConfigurationSourceProviderCompartment(ChangeConfigurationSourceProviderCompartmentRequest request, AsyncHandler<ChangeConfigurationSourceProviderCompartmentRequest,ChangeConfigurationSourceProviderCompartmentResponse> handler)
Moves a configuration source provider into a different compartment within the same tenancy. For information about moving resources between compartments, see Moving Resources to a Different Compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ChangeStackCompartmentResponse> changeStackCompartment(ChangeStackCompartmentRequest request, AsyncHandler<ChangeStackCompartmentRequest,ChangeStackCompartmentResponse> handler)
Moves a Stack and it’s associated Jobs into a different compartment.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<CreateConfigurationSourceProviderResponse> createConfigurationSourceProvider(CreateConfigurationSourceProviderRequest request, AsyncHandler<CreateConfigurationSourceProviderRequest,CreateConfigurationSourceProviderResponse> handler)
Creates a configuration source provider in the specified compartment. For more information, see To create a configuration source provider.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<CreateJobResponse> createJob(CreateJobRequest request, AsyncHandler<CreateJobRequest,CreateJobResponse> handler)
Creates a job.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<CreateStackResponse> createStack(CreateStackRequest request, AsyncHandler<CreateStackRequest,CreateStackResponse> handler)
Creates a stack in the specified compartment. You can create a stack from a Terraform configuration file. The Terraform configuration file can be directly uploaded or referenced from a source code control system. You can also create a stack from an existing compartment. For more information, see To create a stack.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<DeleteConfigurationSourceProviderResponse> deleteConfigurationSourceProvider(DeleteConfigurationSourceProviderRequest request, AsyncHandler<DeleteConfigurationSourceProviderRequest,DeleteConfigurationSourceProviderResponse> handler)
Deletes the specified configuration source provider.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<DeleteStackResponse> deleteStack(DeleteStackRequest request, AsyncHandler<DeleteStackRequest,DeleteStackResponse> handler)
Deletes the specified stack object.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<DetectStackDriftResponse> detectStackDrift(DetectStackDriftRequest request, AsyncHandler<DetectStackDriftRequest,DetectStackDriftResponse> handler)
Checks drift status for the specified stack.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetConfigurationSourceProviderResponse> getConfigurationSourceProvider(GetConfigurationSourceProviderRequest request, AsyncHandler<GetConfigurationSourceProviderRequest,GetConfigurationSourceProviderResponse> handler)
Gets the properties of the specified configuration source provider.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetJobResponse> getJob(GetJobRequest request, AsyncHandler<GetJobRequest,GetJobResponse> handler)
Returns the specified job along with the job details.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetJobLogsResponse> getJobLogs(GetJobLogsRequest request, AsyncHandler<GetJobLogsRequest,GetJobLogsResponse> handler)
Returns log entries for the specified job in JSON format.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetJobLogsContentResponse> getJobLogsContent(GetJobLogsContentRequest request, AsyncHandler<GetJobLogsContentRequest,GetJobLogsContentResponse> handler)
Returns raw log file for the specified job in text format. Returns a maximum of 100,000 log entries.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetJobTfConfigResponse> getJobTfConfig(GetJobTfConfigRequest request, AsyncHandler<GetJobTfConfigRequest,GetJobTfConfigResponse> handler)
Returns the Terraform configuration file for the specified job in .zip format. Returns an error if no zip file is found.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetJobTfStateResponse> getJobTfState(GetJobTfStateRequest request, AsyncHandler<GetJobTfStateRequest,GetJobTfStateResponse> handler)
Returns the Terraform state for the specified job.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetStackResponse> getStack(GetStackRequest request, AsyncHandler<GetStackRequest,GetStackResponse> handler)
Gets a stack using the stack ID.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetStackTfConfigResponse> getStackTfConfig(GetStackTfConfigRequest request, AsyncHandler<GetStackTfConfigRequest,GetStackTfConfigResponse> handler)
Returns the Terraform configuration file in .zip format for the specified stack. Returns an error if no zip file is found.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetStackTfStateResponse> getStackTfState(GetStackTfStateRequest request, AsyncHandler<GetStackTfStateRequest,GetStackTfStateResponse> handler)
Returns the Terraform state for the specified stack.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<GetWorkRequestResponse> getWorkRequest(GetWorkRequestRequest request, AsyncHandler<GetWorkRequestRequest,GetWorkRequestResponse> handler)
Return the given work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListConfigurationSourceProvidersResponse> listConfigurationSourceProviders(ListConfigurationSourceProvidersRequest request, AsyncHandler<ListConfigurationSourceProvidersRequest,ListConfigurationSourceProvidersResponse> handler)
Lists configuration source providers according to the specified filter.
compartmentId, lists all configuration source providers in the matching compartment.configurationSourceProviderId, lists the matching configuration source provider.request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListJobsResponse> listJobs(ListJobsRequest request, AsyncHandler<ListJobsRequest,ListJobsResponse> handler)
Returns a list of jobs in a stack or compartment, ordered by time created.
- To list all jobs in a stack, provide the stack [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - To list all jobs in a compartment, provide the compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). - To return a specific job, provide the job [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm).
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListResourceDiscoveryServicesResponse> listResourceDiscoveryServices(ListResourceDiscoveryServicesRequest request, AsyncHandler<ListResourceDiscoveryServicesRequest,ListResourceDiscoveryServicesResponse> handler)
Returns a list of supported services for Resource Discovery. For reference on service names, see the Terraform provider documentation.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListStackResourceDriftDetailsResponse> listStackResourceDriftDetails(ListStackResourceDriftDetailsRequest request, AsyncHandler<ListStackResourceDriftDetailsRequest,ListStackResourceDriftDetailsResponse> handler)
Lists drift status details for each resource defined in the specified stack. The drift status details for a given resource indicate differences, if any, between the actual state and the expected (defined) state for that resource.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListStacksResponse> listStacks(ListStacksRequest request, AsyncHandler<ListStacksRequest,ListStacksResponse> handler)
Returns a list of stacks.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListTerraformVersionsResponse> listTerraformVersions(ListTerraformVersionsRequest request, AsyncHandler<ListTerraformVersionsRequest,ListTerraformVersionsResponse> handler)
Returns a list of supported Terraform versions for use with stacks.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestErrorsResponse> listWorkRequestErrors(ListWorkRequestErrorsRequest request, AsyncHandler<ListWorkRequestErrorsRequest,ListWorkRequestErrorsResponse> handler)
Return a (paginated) list of errors for a given work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestLogsResponse> listWorkRequestLogs(ListWorkRequestLogsRequest request, AsyncHandler<ListWorkRequestLogsRequest,ListWorkRequestLogsResponse> handler)
Return a (paginated) list of logs for a given work request.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<ListWorkRequestsResponse> listWorkRequests(ListWorkRequestsRequest request, AsyncHandler<ListWorkRequestsRequest,ListWorkRequestsResponse> handler)
Lists the work requests in a given compartment or for a given resource.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<UpdateConfigurationSourceProviderResponse> updateConfigurationSourceProvider(UpdateConfigurationSourceProviderRequest request, AsyncHandler<UpdateConfigurationSourceProviderRequest,UpdateConfigurationSourceProviderResponse> handler)
Updates the properties of the specified configuration source provider. For more information, see To update a configuration source provider.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<UpdateJobResponse> updateJob(UpdateJobRequest request, AsyncHandler<UpdateJobRequest,UpdateJobResponse> handler)
Updates the specified job.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Future<UpdateStackResponse> updateStack(UpdateStackRequest request, AsyncHandler<UpdateStackRequest,UpdateStackResponse> handler)
Updates the specified stack object.
Use UpdateStack when you update your Terraform configuration
and want your changes to be reflected in the execution plan.
For more information, see
To update a stack and
To edit a stack.
request - The request object containing the details to sendhandler - The request handler to invoke upon completion, may be null.Copyright © 2016–2020. All rights reserved.