1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Optimizer
  5. getResourceActions
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.Optimizer.getResourceActions

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    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[_optimizer.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[_optimizer.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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Optimizer/getResourceActions:getResourceActions
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CompartmentId string
    The OCID of the compartment.
    CompartmentIdInSubtree bool

    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).

    ChildTenancyIds List<string>

    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<GetResourceActionsFilter>
    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.

    IncludeResourceMetadata bool
    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.
    CompartmentIdInSubtree bool

    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).

    ChildTenancyIds []string

    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 []GetResourceActionsFilter
    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.

    IncludeResourceMetadata bool
    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.
    compartmentIdInSubtree Boolean

    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).

    childTenancyIds List<String>

    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<GetResourceActionsFilter>
    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.

    includeResourceMetadata Boolean
    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.
    compartmentIdInSubtree boolean

    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).

    childTenancyIds string[]

    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 GetResourceActionsFilter[]
    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.

    includeResourceMetadata boolean
    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_in_subtree bool

    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_ids Sequence[str]

    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[optimizer.GetResourceActionsFilter]
    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_metadata bool
    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.
    compartmentIdInSubtree Boolean

    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).

    childTenancyIds List<String>

    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.

    includeResourceMetadata Boolean
    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.
    CompartmentIdInSubtree bool
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceActionCollections List<GetResourceActionsResourceActionCollection>
    The list of resource_action_collection.
    ChildTenancyIds List<string>
    Filters List<GetResourceActionsFilter>
    IncludeOrganization bool
    IncludeResourceMetadata bool
    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.
    CompartmentIdInSubtree bool
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceActionCollections []GetResourceActionsResourceActionCollection
    The list of resource_action_collection.
    ChildTenancyIds []string
    Filters []GetResourceActionsFilter
    IncludeOrganization bool
    IncludeResourceMetadata bool
    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.
    compartmentIdInSubtree Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    resourceActionCollections List<GetResourceActionsResourceActionCollection>
    The list of resource_action_collection.
    childTenancyIds List<String>
    filters List<GetResourceActionsFilter>
    includeOrganization Boolean
    includeResourceMetadata Boolean
    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.
    compartmentIdInSubtree boolean
    id string
    The provider-assigned unique ID for this managed resource.
    resourceActionCollections GetResourceActionsResourceActionCollection[]
    The list of resource_action_collection.
    childTenancyIds string[]
    filters GetResourceActionsFilter[]
    includeOrganization boolean
    includeResourceMetadata boolean
    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_in_subtree bool
    id str
    The provider-assigned unique ID for this managed resource.
    resource_action_collections Sequence[optimizer.GetResourceActionsResourceActionCollection]
    The list of resource_action_collection.
    child_tenancy_ids Sequence[str]
    filters Sequence[optimizer.GetResourceActionsFilter]
    include_organization bool
    include_resource_metadata bool
    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.
    compartmentIdInSubtree Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    resourceActionCollections List<Property Map>
    The list of resource_action_collection.
    childTenancyIds List<String>
    filters List<Property Map>
    includeOrganization Boolean
    includeResourceMetadata Boolean
    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

    Name string
    Optional. A filter that returns results that match the name specified.
    Values List<string>
    Regex bool
    Name string
    Optional. A filter that returns results that match the name specified.
    Values []string
    Regex bool
    name String
    Optional. A filter that returns results that match the name specified.
    values List<String>
    regex Boolean
    name string
    Optional. A filter that returns results that match the name specified.
    values string[]
    regex boolean
    name str
    Optional. A filter that returns results that match the name specified.
    values Sequence[str]
    regex bool
    name String
    Optional. A filter that returns results that match the name specified.
    values List<String>
    regex Boolean

    GetResourceActionsResourceActionCollection

    GetResourceActionsResourceActionCollectionItem

    Actions List<GetResourceActionsResourceActionCollectionItemAction>
    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.
    EstimatedCostSaving double
    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 metadata object.
    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.
    ResourceActionId string
    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.
    TimeStatusBegin string
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    TimeStatusEnd string
    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 []GetResourceActionsResourceActionCollectionItemAction
    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.
    EstimatedCostSaving float64
    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 metadata object.
    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.
    ResourceActionId string
    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.
    TimeStatusBegin string
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    TimeStatusEnd string
    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<GetResourceActionsResourceActionCollectionItemAction>
    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.
    estimatedCostSaving Double
    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 metadata object.
    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.
    resourceActionId String
    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.
    timeStatusBegin String
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    timeStatusEnd String
    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 GetResourceActionsResourceActionCollectionItemAction[]
    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.
    estimatedCostSaving number
    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 metadata object.
    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.
    resourceActionId string
    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.
    timeStatusBegin string
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    timeStatusEnd string
    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[optimizer.GetResourceActionsResourceActionCollectionItemAction]
    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_saving float
    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 metadata object.
    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_id str
    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_begin str
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    time_status_end str
    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.
    estimatedCostSaving Number
    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 metadata object.
    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.
    resourceActionId String
    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.
    timeStatusBegin String
    The date and time that the resource action entered its current status. The format is defined by RFC3339.
    timeStatusEnd String
    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 oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi