oci.Optimizer.getResourceActions
Explore with Pulumi AI
This data source provides the list of Resource Actions in Oracle Cloud Infrastructure Optimizer service.
Lists the Cloud Advisor resource actions that are supported.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testResourceActions = oci.Optimizer.getResourceActions({
    compartmentId: compartmentId,
    compartmentIdInSubtree: resourceActionCompartmentIdInSubtree,
    childTenancyIds: resourceActionChildTenancyIds,
    includeOrganization: resourceActionIncludeOrganization,
    includeResourceMetadata: resourceActionIncludeResourceMetadata,
    name: resourceActionName,
    recommendationId: testRecommendation.id,
    recommendationName: testRecommendation.name,
    resourceType: resourceActionResourceType,
    state: resourceActionState,
    status: resourceActionStatus,
});
import pulumi
import pulumi_oci as oci
test_resource_actions = oci.Optimizer.get_resource_actions(compartment_id=compartment_id,
    compartment_id_in_subtree=resource_action_compartment_id_in_subtree,
    child_tenancy_ids=resource_action_child_tenancy_ids,
    include_organization=resource_action_include_organization,
    include_resource_metadata=resource_action_include_resource_metadata,
    name=resource_action_name,
    recommendation_id=test_recommendation["id"],
    recommendation_name=test_recommendation["name"],
    resource_type=resource_action_resource_type,
    state=resource_action_state,
    status=resource_action_status)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/optimizer"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := optimizer.GetResourceActions(ctx, &optimizer.GetResourceActionsArgs{
			CompartmentId:           compartmentId,
			CompartmentIdInSubtree:  resourceActionCompartmentIdInSubtree,
			ChildTenancyIds:         resourceActionChildTenancyIds,
			IncludeOrganization:     pulumi.BoolRef(resourceActionIncludeOrganization),
			IncludeResourceMetadata: pulumi.BoolRef(resourceActionIncludeResourceMetadata),
			Name:                    pulumi.StringRef(resourceActionName),
			RecommendationId:        pulumi.StringRef(testRecommendation.Id),
			RecommendationName:      pulumi.StringRef(testRecommendation.Name),
			ResourceType:            pulumi.StringRef(resourceActionResourceType),
			State:                   pulumi.StringRef(resourceActionState),
			Status:                  pulumi.StringRef(resourceActionStatus),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testResourceActions = Oci.Optimizer.GetResourceActions.Invoke(new()
    {
        CompartmentId = compartmentId,
        CompartmentIdInSubtree = resourceActionCompartmentIdInSubtree,
        ChildTenancyIds = resourceActionChildTenancyIds,
        IncludeOrganization = resourceActionIncludeOrganization,
        IncludeResourceMetadata = resourceActionIncludeResourceMetadata,
        Name = resourceActionName,
        RecommendationId = testRecommendation.Id,
        RecommendationName = testRecommendation.Name,
        ResourceType = resourceActionResourceType,
        State = resourceActionState,
        Status = resourceActionStatus,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Optimizer.OptimizerFunctions;
import com.pulumi.oci.Optimizer.inputs.GetResourceActionsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testResourceActions = OptimizerFunctions.getResourceActions(GetResourceActionsArgs.builder()
            .compartmentId(compartmentId)
            .compartmentIdInSubtree(resourceActionCompartmentIdInSubtree)
            .childTenancyIds(resourceActionChildTenancyIds)
            .includeOrganization(resourceActionIncludeOrganization)
            .includeResourceMetadata(resourceActionIncludeResourceMetadata)
            .name(resourceActionName)
            .recommendationId(testRecommendation.id())
            .recommendationName(testRecommendation.name())
            .resourceType(resourceActionResourceType)
            .state(resourceActionState)
            .status(resourceActionStatus)
            .build());
    }
}
variables:
  testResourceActions:
    fn::invoke:
      function: oci:Optimizer:getResourceActions
      arguments:
        compartmentId: ${compartmentId}
        compartmentIdInSubtree: ${resourceActionCompartmentIdInSubtree}
        childTenancyIds: ${resourceActionChildTenancyIds}
        includeOrganization: ${resourceActionIncludeOrganization}
        includeResourceMetadata: ${resourceActionIncludeResourceMetadata}
        name: ${resourceActionName}
        recommendationId: ${testRecommendation.id}
        recommendationName: ${testRecommendation.name}
        resourceType: ${resourceActionResourceType}
        state: ${resourceActionState}
        status: ${resourceActionStatus}
Using getResourceActions
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getResourceActions(args: GetResourceActionsArgs, opts?: InvokeOptions): Promise<GetResourceActionsResult>
function getResourceActionsOutput(args: GetResourceActionsOutputArgs, opts?: InvokeOptions): Output<GetResourceActionsResult>def get_resource_actions(child_tenancy_ids: Optional[Sequence[str]] = None,
                         compartment_id: Optional[str] = None,
                         compartment_id_in_subtree: Optional[bool] = None,
                         filters: Optional[Sequence[GetResourceActionsFilter]] = None,
                         include_organization: Optional[bool] = None,
                         include_resource_metadata: Optional[bool] = None,
                         name: Optional[str] = None,
                         recommendation_id: Optional[str] = None,
                         recommendation_name: Optional[str] = None,
                         resource_type: Optional[str] = None,
                         state: Optional[str] = None,
                         status: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetResourceActionsResult
def get_resource_actions_output(child_tenancy_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                         compartment_id: Optional[pulumi.Input[str]] = None,
                         compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetResourceActionsFilterArgs]]]] = None,
                         include_organization: Optional[pulumi.Input[bool]] = None,
                         include_resource_metadata: Optional[pulumi.Input[bool]] = None,
                         name: Optional[pulumi.Input[str]] = None,
                         recommendation_id: Optional[pulumi.Input[str]] = None,
                         recommendation_name: Optional[pulumi.Input[str]] = None,
                         resource_type: Optional[pulumi.Input[str]] = None,
                         state: Optional[pulumi.Input[str]] = None,
                         status: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetResourceActionsResult]func GetResourceActions(ctx *Context, args *GetResourceActionsArgs, opts ...InvokeOption) (*GetResourceActionsResult, error)
func GetResourceActionsOutput(ctx *Context, args *GetResourceActionsOutputArgs, opts ...InvokeOption) GetResourceActionsResultOutput> Note: This function is named GetResourceActions in the Go SDK.
public static class GetResourceActions 
{
    public static Task<GetResourceActionsResult> InvokeAsync(GetResourceActionsArgs args, InvokeOptions? opts = null)
    public static Output<GetResourceActionsResult> Invoke(GetResourceActionsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetResourceActionsResult> getResourceActions(GetResourceActionsArgs args, InvokeOptions options)
public static Output<GetResourceActionsResult> getResourceActions(GetResourceActionsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Optimizer/getResourceActions:getResourceActions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- CompartmentId boolIn Subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- ChildTenancy List<string>Ids 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- Filters
List<GetResource Actions Filter> 
- IncludeOrganization bool
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- IncludeResource boolMetadata 
- Supplement additional resource information in extended metadata response.
- Name string
- Optional. A filter that returns results that match the name specified.
- RecommendationId string
- The unique OCID associated with the recommendation.
- RecommendationName string
- Optional. A filter that returns results that match the recommendation name specified.
- ResourceType string
- Optional. A filter that returns results that match the resource type specified.
- State string
- A filter that returns results that match the lifecycle state specified.
- Status string
- A filter that returns recommendations that match the status specified.
- CompartmentId string
- The OCID of the compartment.
- CompartmentId boolIn Subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- ChildTenancy []stringIds 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- Filters
[]GetResource Actions Filter 
- IncludeOrganization bool
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- IncludeResource boolMetadata 
- Supplement additional resource information in extended metadata response.
- Name string
- Optional. A filter that returns results that match the name specified.
- RecommendationId string
- The unique OCID associated with the recommendation.
- RecommendationName string
- Optional. A filter that returns results that match the recommendation name specified.
- ResourceType string
- Optional. A filter that returns results that match the resource type specified.
- State string
- A filter that returns results that match the lifecycle state specified.
- Status string
- A filter that returns recommendations that match the status specified.
- compartmentId String
- The OCID of the compartment.
- compartmentId BooleanIn Subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- childTenancy List<String>Ids 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- filters
List<GetResource Actions Filter> 
- includeOrganization Boolean
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- includeResource BooleanMetadata 
- Supplement additional resource information in extended metadata response.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendationId String
- The unique OCID associated with the recommendation.
- recommendationName String
- Optional. A filter that returns results that match the recommendation name specified.
- resourceType String
- Optional. A filter that returns results that match the resource type specified.
- state String
- A filter that returns results that match the lifecycle state specified.
- status String
- A filter that returns recommendations that match the status specified.
- compartmentId string
- The OCID of the compartment.
- compartmentId booleanIn Subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- childTenancy string[]Ids 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- filters
GetResource Actions Filter[] 
- includeOrganization boolean
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- includeResource booleanMetadata 
- Supplement additional resource information in extended metadata response.
- name string
- Optional. A filter that returns results that match the name specified.
- recommendationId string
- The unique OCID associated with the recommendation.
- recommendationName string
- Optional. A filter that returns results that match the recommendation name specified.
- resourceType string
- Optional. A filter that returns results that match the resource type specified.
- state string
- A filter that returns results that match the lifecycle state specified.
- status string
- A filter that returns recommendations that match the status specified.
- compartment_id str
- The OCID of the compartment.
- compartment_id_ boolin_ subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- child_tenancy_ Sequence[str]ids 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- filters
Sequence[GetResource Actions Filter] 
- include_organization bool
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- include_resource_ boolmetadata 
- Supplement additional resource information in extended metadata response.
- name str
- Optional. A filter that returns results that match the name specified.
- recommendation_id str
- The unique OCID associated with the recommendation.
- recommendation_name str
- Optional. A filter that returns results that match the recommendation name specified.
- resource_type str
- Optional. A filter that returns results that match the resource type specified.
- state str
- A filter that returns results that match the lifecycle state specified.
- status str
- A filter that returns recommendations that match the status specified.
- compartmentId String
- The OCID of the compartment.
- compartmentId BooleanIn Subtree 
- When set to true, the hierarchy of compartments is traversed and all compartments and subcompartments in the tenancy are returned depending on the the setting of - accessLevel.- Can only be set to true when performing ListCompartments on the tenancy (root compartment). 
- childTenancy List<String>Ids 
- A list of child tenancies for which the respective data will be returned. Please note that the parent tenancy id can also be included in this list. For example, if there is a parent P with two children A and B, to return results of only parent P and child A, this list should be populated with tenancy id of parent P and child A. - If this list contains a tenancy id that isn't part of the organization of parent P, the request will fail. That is, let's say there is an organization with parent P with children A and B, and also one other tenant T that isn't part of the organization. If T is included in the list of childTenancyIds, the request will fail. - It is important to note that if you are setting the includeOrganization parameter value as true and also populating the childTenancyIds parameter with a list of child tenancies, the request will fail. The childTenancyIds and includeOrganization should be used exclusively. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- filters List<Property Map>
- includeOrganization Boolean
- When set to true, the data for all child tenancies including the parent is returned. That is, if there is an organization with parent P and children A and B, to return the data for the parent P, child A and child B, this parameter value should be set to true. - Please note that this parameter shouldn't be used along with childTenancyIds parameter. If you would like to get results specifically for parent P and only child A, use the childTenancyIds parameter and populate the list with tenancy id of P and A. - When using this parameter, please make sure to set the compartmentId with the parent tenancy ID. 
- includeResource BooleanMetadata 
- Supplement additional resource information in extended metadata response.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendationId String
- The unique OCID associated with the recommendation.
- recommendationName String
- Optional. A filter that returns results that match the recommendation name specified.
- resourceType String
- Optional. A filter that returns results that match the resource type specified.
- state String
- A filter that returns results that match the lifecycle state specified.
- status String
- A filter that returns recommendations that match the status specified.
getResourceActions Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment.
- CompartmentId boolIn Subtree 
- Id string
- The provider-assigned unique ID for this managed resource.
- ResourceAction List<GetCollections Resource Actions Resource Action Collection> 
- The list of resource_action_collection.
- ChildTenancy List<string>Ids 
- Filters
List<GetResource Actions Filter> 
- IncludeOrganization bool
- IncludeResource boolMetadata 
- Name string
- The name assigned to the resource.
- RecommendationId string
- The unique OCID associated with the recommendation.
- RecommendationName string
- ResourceType string
- The kind of resource.
- State string
- The resource action's current state.
- Status string
- The current status of the resource action.
- CompartmentId string
- The OCID of the compartment.
- CompartmentId boolIn Subtree 
- Id string
- The provider-assigned unique ID for this managed resource.
- ResourceAction []GetCollections Resource Actions Resource Action Collection 
- The list of resource_action_collection.
- ChildTenancy []stringIds 
- Filters
[]GetResource Actions Filter 
- IncludeOrganization bool
- IncludeResource boolMetadata 
- Name string
- The name assigned to the resource.
- RecommendationId string
- The unique OCID associated with the recommendation.
- RecommendationName string
- ResourceType string
- The kind of resource.
- State string
- The resource action's current state.
- Status string
- The current status of the resource action.
- compartmentId String
- The OCID of the compartment.
- compartmentId BooleanIn Subtree 
- id String
- The provider-assigned unique ID for this managed resource.
- resourceAction List<GetCollections Resource Actions Resource Action Collection> 
- The list of resource_action_collection.
- childTenancy List<String>Ids 
- filters
List<GetResource Actions Filter> 
- includeOrganization Boolean
- includeResource BooleanMetadata 
- name String
- The name assigned to the resource.
- recommendationId String
- The unique OCID associated with the recommendation.
- recommendationName String
- resourceType String
- The kind of resource.
- state String
- The resource action's current state.
- status String
- The current status of the resource action.
- compartmentId string
- The OCID of the compartment.
- compartmentId booleanIn Subtree 
- id string
- The provider-assigned unique ID for this managed resource.
- resourceAction GetCollections Resource Actions Resource Action Collection[] 
- The list of resource_action_collection.
- childTenancy string[]Ids 
- filters
GetResource Actions Filter[] 
- includeOrganization boolean
- includeResource booleanMetadata 
- name string
- The name assigned to the resource.
- recommendationId string
- The unique OCID associated with the recommendation.
- recommendationName string
- resourceType string
- The kind of resource.
- state string
- The resource action's current state.
- status string
- The current status of the resource action.
- compartment_id str
- The OCID of the compartment.
- compartment_id_ boolin_ subtree 
- id str
- The provider-assigned unique ID for this managed resource.
- resource_action_ Sequence[Getcollections Resource Actions Resource Action Collection] 
- The list of resource_action_collection.
- child_tenancy_ Sequence[str]ids 
- filters
Sequence[GetResource Actions Filter] 
- include_organization bool
- include_resource_ boolmetadata 
- name str
- The name assigned to the resource.
- recommendation_id str
- The unique OCID associated with the recommendation.
- recommendation_name str
- resource_type str
- The kind of resource.
- state str
- The resource action's current state.
- status str
- The current status of the resource action.
- compartmentId String
- The OCID of the compartment.
- compartmentId BooleanIn Subtree 
- id String
- The provider-assigned unique ID for this managed resource.
- resourceAction List<Property Map>Collections 
- The list of resource_action_collection.
- childTenancy List<String>Ids 
- filters List<Property Map>
- includeOrganization Boolean
- includeResource BooleanMetadata 
- name String
- The name assigned to the resource.
- recommendationId String
- The unique OCID associated with the recommendation.
- recommendationName String
- resourceType String
- The kind of resource.
- state String
- The resource action's current state.
- status String
- The current status of the resource action.
Supporting Types
GetResourceActionsFilter   
GetResourceActionsResourceActionCollection     
GetResourceActionsResourceActionCollectionItem      
- Actions
List<GetResource Actions Resource Action Collection Item Action> 
- Details about the recommended action.
- CategoryId string
- The unique OCID associated with the category.
- CompartmentId string
- The OCID of the compartment.
- CompartmentName string
- The name associated with the compartment.
- EstimatedCost doubleSaving 
- The estimated cost savings, in dollars, for the resource action.
- ExtendedMetadata Dictionary<string, string>
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- Id string
- The unique OCID associated with the resource action.
- Metadata Dictionary<string, string>
- Custom metadata key/value pairs for the resource action.
- Name string
- Optional. A filter that returns results that match the name specified.
- RecommendationId string
- The unique OCID associated with the recommendation.
- ResourceAction stringId 
- ResourceId string
- The unique OCID associated with the resource.
- ResourceType string
- Optional. A filter that returns results that match the resource type specified.
- State string
- A filter that returns results that match the lifecycle state specified.
- Status string
- A filter that returns recommendations that match the status specified.
- TimeCreated string
- The date and time the resource action details were created, in the format defined by RFC3339.
- TimeStatus stringBegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- TimeStatus stringEnd 
- The date and time the current status will change. The format is defined by RFC3339.
- TimeUpdated string
- The date and time the resource action details were last updated, in the format defined by RFC3339.
- Actions
[]GetResource Actions Resource Action Collection Item Action 
- Details about the recommended action.
- CategoryId string
- The unique OCID associated with the category.
- CompartmentId string
- The OCID of the compartment.
- CompartmentName string
- The name associated with the compartment.
- EstimatedCost float64Saving 
- The estimated cost savings, in dollars, for the resource action.
- ExtendedMetadata map[string]string
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- Id string
- The unique OCID associated with the resource action.
- Metadata map[string]string
- Custom metadata key/value pairs for the resource action.
- Name string
- Optional. A filter that returns results that match the name specified.
- RecommendationId string
- The unique OCID associated with the recommendation.
- ResourceAction stringId 
- ResourceId string
- The unique OCID associated with the resource.
- ResourceType string
- Optional. A filter that returns results that match the resource type specified.
- State string
- A filter that returns results that match the lifecycle state specified.
- Status string
- A filter that returns recommendations that match the status specified.
- TimeCreated string
- The date and time the resource action details were created, in the format defined by RFC3339.
- TimeStatus stringBegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- TimeStatus stringEnd 
- The date and time the current status will change. The format is defined by RFC3339.
- TimeUpdated string
- The date and time the resource action details were last updated, in the format defined by RFC3339.
- actions
List<GetResource Actions Resource Action Collection Item Action> 
- Details about the recommended action.
- categoryId String
- The unique OCID associated with the category.
- compartmentId String
- The OCID of the compartment.
- compartmentName String
- The name associated with the compartment.
- estimatedCost DoubleSaving 
- The estimated cost savings, in dollars, for the resource action.
- extendedMetadata Map<String,String>
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- id String
- The unique OCID associated with the resource action.
- metadata Map<String,String>
- Custom metadata key/value pairs for the resource action.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendationId String
- The unique OCID associated with the recommendation.
- resourceAction StringId 
- resourceId String
- The unique OCID associated with the resource.
- resourceType String
- Optional. A filter that returns results that match the resource type specified.
- state String
- A filter that returns results that match the lifecycle state specified.
- status String
- A filter that returns recommendations that match the status specified.
- timeCreated String
- The date and time the resource action details were created, in the format defined by RFC3339.
- timeStatus StringBegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- timeStatus StringEnd 
- The date and time the current status will change. The format is defined by RFC3339.
- timeUpdated String
- The date and time the resource action details were last updated, in the format defined by RFC3339.
- actions
GetResource Actions Resource Action Collection Item Action[] 
- Details about the recommended action.
- categoryId string
- The unique OCID associated with the category.
- compartmentId string
- The OCID of the compartment.
- compartmentName string
- The name associated with the compartment.
- estimatedCost numberSaving 
- The estimated cost savings, in dollars, for the resource action.
- extendedMetadata {[key: string]: string}
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- id string
- The unique OCID associated with the resource action.
- metadata {[key: string]: string}
- Custom metadata key/value pairs for the resource action.
- name string
- Optional. A filter that returns results that match the name specified.
- recommendationId string
- The unique OCID associated with the recommendation.
- resourceAction stringId 
- resourceId string
- The unique OCID associated with the resource.
- resourceType string
- Optional. A filter that returns results that match the resource type specified.
- state string
- A filter that returns results that match the lifecycle state specified.
- status string
- A filter that returns recommendations that match the status specified.
- timeCreated string
- The date and time the resource action details were created, in the format defined by RFC3339.
- timeStatus stringBegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- timeStatus stringEnd 
- The date and time the current status will change. The format is defined by RFC3339.
- timeUpdated string
- The date and time the resource action details were last updated, in the format defined by RFC3339.
- actions
Sequence[GetResource Actions Resource Action Collection Item Action] 
- Details about the recommended action.
- category_id str
- The unique OCID associated with the category.
- compartment_id str
- The OCID of the compartment.
- compartment_name str
- The name associated with the compartment.
- estimated_cost_ floatsaving 
- The estimated cost savings, in dollars, for the resource action.
- extended_metadata Mapping[str, str]
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- id str
- The unique OCID associated with the resource action.
- metadata Mapping[str, str]
- Custom metadata key/value pairs for the resource action.
- name str
- Optional. A filter that returns results that match the name specified.
- recommendation_id str
- The unique OCID associated with the recommendation.
- resource_action_ strid 
- resource_id str
- The unique OCID associated with the resource.
- resource_type str
- Optional. A filter that returns results that match the resource type specified.
- state str
- A filter that returns results that match the lifecycle state specified.
- status str
- A filter that returns recommendations that match the status specified.
- time_created str
- The date and time the resource action details were created, in the format defined by RFC3339.
- time_status_ strbegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- time_status_ strend 
- The date and time the current status will change. The format is defined by RFC3339.
- time_updated str
- The date and time the resource action details were last updated, in the format defined by RFC3339.
- actions List<Property Map>
- Details about the recommended action.
- categoryId String
- The unique OCID associated with the category.
- compartmentId String
- The OCID of the compartment.
- compartmentName String
- The name associated with the compartment.
- estimatedCost NumberSaving 
- The estimated cost savings, in dollars, for the resource action.
- extendedMetadata Map<String>
- Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the metadataobject.
- id String
- The unique OCID associated with the resource action.
- metadata Map<String>
- Custom metadata key/value pairs for the resource action.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendationId String
- The unique OCID associated with the recommendation.
- resourceAction StringId 
- resourceId String
- The unique OCID associated with the resource.
- resourceType String
- Optional. A filter that returns results that match the resource type specified.
- state String
- A filter that returns results that match the lifecycle state specified.
- status String
- A filter that returns recommendations that match the status specified.
- timeCreated String
- The date and time the resource action details were created, in the format defined by RFC3339.
- timeStatus StringBegin 
- The date and time that the resource action entered its current status. The format is defined by RFC3339.
- timeStatus StringEnd 
- The date and time the current status will change. The format is defined by RFC3339.
- timeUpdated String
- The date and time the resource action details were last updated, in the format defined by RFC3339.
GetResourceActionsResourceActionCollectionItemAction       
- Description string
- Text describing the recommended action.
- Type string
- The status of the resource action.
- Url string
- The URL path to documentation that explains how to perform the action.
- Description string
- Text describing the recommended action.
- Type string
- The status of the resource action.
- Url string
- The URL path to documentation that explains how to perform the action.
- description String
- Text describing the recommended action.
- type String
- The status of the resource action.
- url String
- The URL path to documentation that explains how to perform the action.
- description string
- Text describing the recommended action.
- type string
- The status of the resource action.
- url string
- The URL path to documentation that explains how to perform the action.
- description str
- Text describing the recommended action.
- type str
- The status of the resource action.
- url str
- The URL path to documentation that explains how to perform the action.
- description String
- Text describing the recommended action.
- type String
- The status of the resource action.
- url String
- The URL path to documentation that explains how to perform the action.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.