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

oci.Optimizer.getRecommendations

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 Recommendations in Oracle Cloud Infrastructure Optimizer service.

    Lists the Cloud Advisor recommendations that are currently supported.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testRecommendations = oci.Optimizer.getRecommendations({
        compartmentId: compartmentId,
        compartmentIdInSubtree: recommendationCompartmentIdInSubtree,
        categoryId: testCategory.id,
        categoryName: testCategory.name,
        childTenancyIds: recommendationChildTenancyIds,
        includeOrganization: recommendationIncludeOrganization,
        name: recommendationName,
        state: recommendationState,
        status: recommendationStatus,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_recommendations = oci.Optimizer.get_recommendations(compartment_id=compartment_id,
        compartment_id_in_subtree=recommendation_compartment_id_in_subtree,
        category_id=test_category["id"],
        category_name=test_category["name"],
        child_tenancy_ids=recommendation_child_tenancy_ids,
        include_organization=recommendation_include_organization,
        name=recommendation_name,
        state=recommendation_state,
        status=recommendation_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.GetRecommendations(ctx, &optimizer.GetRecommendationsArgs{
    			CompartmentId:          compartmentId,
    			CompartmentIdInSubtree: recommendationCompartmentIdInSubtree,
    			CategoryId:             pulumi.StringRef(testCategory.Id),
    			CategoryName:           pulumi.StringRef(testCategory.Name),
    			ChildTenancyIds:        recommendationChildTenancyIds,
    			IncludeOrganization:    pulumi.BoolRef(recommendationIncludeOrganization),
    			Name:                   pulumi.StringRef(recommendationName),
    			State:                  pulumi.StringRef(recommendationState),
    			Status:                 pulumi.StringRef(recommendationStatus),
    		}, 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 testRecommendations = Oci.Optimizer.GetRecommendations.Invoke(new()
        {
            CompartmentId = compartmentId,
            CompartmentIdInSubtree = recommendationCompartmentIdInSubtree,
            CategoryId = testCategory.Id,
            CategoryName = testCategory.Name,
            ChildTenancyIds = recommendationChildTenancyIds,
            IncludeOrganization = recommendationIncludeOrganization,
            Name = recommendationName,
            State = recommendationState,
            Status = recommendationStatus,
        });
    
    });
    
    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.GetRecommendationsArgs;
    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 testRecommendations = OptimizerFunctions.getRecommendations(GetRecommendationsArgs.builder()
                .compartmentId(compartmentId)
                .compartmentIdInSubtree(recommendationCompartmentIdInSubtree)
                .categoryId(testCategory.id())
                .categoryName(testCategory.name())
                .childTenancyIds(recommendationChildTenancyIds)
                .includeOrganization(recommendationIncludeOrganization)
                .name(recommendationName)
                .state(recommendationState)
                .status(recommendationStatus)
                .build());
    
        }
    }
    
    variables:
      testRecommendations:
        fn::invoke:
          Function: oci:Optimizer:getRecommendations
          Arguments:
            compartmentId: ${compartmentId}
            compartmentIdInSubtree: ${recommendationCompartmentIdInSubtree}
            categoryId: ${testCategory.id}
            categoryName: ${testCategory.name}
            childTenancyIds: ${recommendationChildTenancyIds}
            includeOrganization: ${recommendationIncludeOrganization}
            name: ${recommendationName}
            state: ${recommendationState}
            status: ${recommendationStatus}
    

    Using getRecommendations

    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 getRecommendations(args: GetRecommendationsArgs, opts?: InvokeOptions): Promise<GetRecommendationsResult>
    function getRecommendationsOutput(args: GetRecommendationsOutputArgs, opts?: InvokeOptions): Output<GetRecommendationsResult>
    def get_recommendations(category_id: Optional[str] = None,
                            category_name: Optional[str] = None,
                            child_tenancy_ids: Optional[Sequence[str]] = None,
                            compartment_id: Optional[str] = None,
                            compartment_id_in_subtree: Optional[bool] = None,
                            filters: Optional[Sequence[_optimizer.GetRecommendationsFilter]] = None,
                            include_organization: Optional[bool] = None,
                            name: Optional[str] = None,
                            state: Optional[str] = None,
                            status: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetRecommendationsResult
    def get_recommendations_output(category_id: Optional[pulumi.Input[str]] = None,
                            category_name: Optional[pulumi.Input[str]] = None,
                            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.GetRecommendationsFilterArgs]]]] = None,
                            include_organization: Optional[pulumi.Input[bool]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            state: Optional[pulumi.Input[str]] = None,
                            status: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetRecommendationsResult]
    func GetRecommendations(ctx *Context, args *GetRecommendationsArgs, opts ...InvokeOption) (*GetRecommendationsResult, error)
    func GetRecommendationsOutput(ctx *Context, args *GetRecommendationsOutputArgs, opts ...InvokeOption) GetRecommendationsResultOutput

    > Note: This function is named GetRecommendations in the Go SDK.

    public static class GetRecommendations 
    {
        public static Task<GetRecommendationsResult> InvokeAsync(GetRecommendationsArgs args, InvokeOptions? opts = null)
        public static Output<GetRecommendationsResult> Invoke(GetRecommendationsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRecommendationsResult> getRecommendations(GetRecommendationsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Optimizer/getRecommendations:getRecommendations
      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).

    CategoryId string
    The unique OCID associated with the category.
    CategoryName string
    Optional. A filter that returns results that match the category name specified.
    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<GetRecommendationsFilter>
    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.

    Name string
    Optional. A filter that returns results that match the name 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).

    CategoryId string
    The unique OCID associated with the category.
    CategoryName string
    Optional. A filter that returns results that match the category name specified.
    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 []GetRecommendationsFilter
    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.

    Name string
    Optional. A filter that returns results that match the name 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).

    categoryId String
    The unique OCID associated with the category.
    categoryName String
    Optional. A filter that returns results that match the category name specified.
    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<GetRecommendationsFilter>
    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.

    name String
    Optional. A filter that returns results that match the name 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).

    categoryId string
    The unique OCID associated with the category.
    categoryName string
    Optional. A filter that returns results that match the category name specified.
    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 GetRecommendationsFilter[]
    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.

    name string
    Optional. A filter that returns results that match the name 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).

    category_id str
    The unique OCID associated with the category.
    category_name str
    Optional. A filter that returns results that match the category name specified.
    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.GetRecommendationsFilter]
    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.

    name str
    Optional. A filter that returns results that match the name 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).

    categoryId String
    The unique OCID associated with the category.
    categoryName String
    Optional. A filter that returns results that match the category name specified.
    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.

    name String
    Optional. A filter that returns results that match the name 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.

    getRecommendations Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentIdInSubtree bool
    Id string
    The provider-assigned unique ID for this managed resource.
    RecommendationCollections List<GetRecommendationsRecommendationCollection>
    The list of recommendation_collection.
    CategoryId string
    The unique OCID associated with the category.
    CategoryName string
    ChildTenancyIds List<string>
    Filters List<GetRecommendationsFilter>
    IncludeOrganization bool
    Name string
    The name of the profile level.
    State string
    The recommendation's current state.
    Status string
    The current status of the recommendation.
    CompartmentId string
    The OCID of the tenancy. The tenancy is the root compartment.
    CompartmentIdInSubtree bool
    Id string
    The provider-assigned unique ID for this managed resource.
    RecommendationCollections []GetRecommendationsRecommendationCollection
    The list of recommendation_collection.
    CategoryId string
    The unique OCID associated with the category.
    CategoryName string
    ChildTenancyIds []string
    Filters []GetRecommendationsFilter
    IncludeOrganization bool
    Name string
    The name of the profile level.
    State string
    The recommendation's current state.
    Status string
    The current status of the recommendation.
    compartmentId String
    The OCID of the tenancy. The tenancy is the root compartment.
    compartmentIdInSubtree Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    recommendationCollections List<GetRecommendationsRecommendationCollection>
    The list of recommendation_collection.
    categoryId String
    The unique OCID associated with the category.
    categoryName String
    childTenancyIds List<String>
    filters List<GetRecommendationsFilter>
    includeOrganization Boolean
    name String
    The name of the profile level.
    state String
    The recommendation's current state.
    status String
    The current status of the recommendation.
    compartmentId string
    The OCID of the tenancy. The tenancy is the root compartment.
    compartmentIdInSubtree boolean
    id string
    The provider-assigned unique ID for this managed resource.
    recommendationCollections GetRecommendationsRecommendationCollection[]
    The list of recommendation_collection.
    categoryId string
    The unique OCID associated with the category.
    categoryName string
    childTenancyIds string[]
    filters GetRecommendationsFilter[]
    includeOrganization boolean
    name string
    The name of the profile level.
    state string
    The recommendation's current state.
    status string
    The current status of the recommendation.
    compartment_id str
    The OCID of the tenancy. The tenancy is the root compartment.
    compartment_id_in_subtree bool
    id str
    The provider-assigned unique ID for this managed resource.
    recommendation_collections Sequence[optimizer.GetRecommendationsRecommendationCollection]
    The list of recommendation_collection.
    category_id str
    The unique OCID associated with the category.
    category_name str
    child_tenancy_ids Sequence[str]
    filters Sequence[optimizer.GetRecommendationsFilter]
    include_organization bool
    name str
    The name of the profile level.
    state str
    The recommendation's current state.
    status str
    The current status of the recommendation.
    compartmentId String
    The OCID of the tenancy. The tenancy is the root compartment.
    compartmentIdInSubtree Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    recommendationCollections List<Property Map>
    The list of recommendation_collection.
    categoryId String
    The unique OCID associated with the category.
    categoryName String
    childTenancyIds List<String>
    filters List<Property Map>
    includeOrganization Boolean
    name String
    The name of the profile level.
    state String
    The recommendation's current state.
    status String
    The current status of the recommendation.

    Supporting Types

    GetRecommendationsFilter

    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

    GetRecommendationsRecommendationCollection

    items List<Property Map>
    The list of supported levels.

    GetRecommendationsRecommendationCollectionItem

    CategoryId string
    The unique OCID associated with the category.
    CompartmentId string
    The OCID of the compartment.
    Description string
    Text describing the recommendation.
    EstimatedCostSaving double
    The estimated cost savings, in dollars, for the recommendation.
    ExtendedMetadata Dictionary<string, string>
    Additional metadata key/value pairs for the recommendation.
    Id string
    The unique OCID associated with the recommendation.
    Importance string
    The level of importance assigned to the recommendation.
    Name string
    Optional. A filter that returns results that match the name specified.
    RecommendationId string
    ResourceCounts List<GetRecommendationsRecommendationCollectionItemResourceCount>
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    SupportedLevels List<GetRecommendationsRecommendationCollectionItemSupportedLevel>
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    TimeCreated string
    The date and time the recommendation details were created, in the format defined by RFC3339.
    TimeStatusBegin string
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
    CategoryId string
    The unique OCID associated with the category.
    CompartmentId string
    The OCID of the compartment.
    Description string
    Text describing the recommendation.
    EstimatedCostSaving float64
    The estimated cost savings, in dollars, for the recommendation.
    ExtendedMetadata map[string]string
    Additional metadata key/value pairs for the recommendation.
    Id string
    The unique OCID associated with the recommendation.
    Importance string
    The level of importance assigned to the recommendation.
    Name string
    Optional. A filter that returns results that match the name specified.
    RecommendationId string
    ResourceCounts []GetRecommendationsRecommendationCollectionItemResourceCount
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    SupportedLevels []GetRecommendationsRecommendationCollectionItemSupportedLevel
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    TimeCreated string
    The date and time the recommendation details were created, in the format defined by RFC3339.
    TimeStatusBegin string
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
    categoryId String
    The unique OCID associated with the category.
    compartmentId String
    The OCID of the compartment.
    description String
    Text describing the recommendation.
    estimatedCostSaving Double
    The estimated cost savings, in dollars, for the recommendation.
    extendedMetadata Map<String,String>
    Additional metadata key/value pairs for the recommendation.
    id String
    The unique OCID associated with the recommendation.
    importance String
    The level of importance assigned to the recommendation.
    name String
    Optional. A filter that returns results that match the name specified.
    recommendationId String
    resourceCounts List<GetRecommendationsRecommendationCollectionItemResourceCount>
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    supportedLevels List<GetRecommendationsRecommendationCollectionItemSupportedLevel>
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    timeCreated String
    The date and time the recommendation details were created, in the format defined by RFC3339.
    timeStatusBegin String
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
    categoryId string
    The unique OCID associated with the category.
    compartmentId string
    The OCID of the compartment.
    description string
    Text describing the recommendation.
    estimatedCostSaving number
    The estimated cost savings, in dollars, for the recommendation.
    extendedMetadata {[key: string]: string}
    Additional metadata key/value pairs for the recommendation.
    id string
    The unique OCID associated with the recommendation.
    importance string
    The level of importance assigned to the recommendation.
    name string
    Optional. A filter that returns results that match the name specified.
    recommendationId string
    resourceCounts GetRecommendationsRecommendationCollectionItemResourceCount[]
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    supportedLevels GetRecommendationsRecommendationCollectionItemSupportedLevel[]
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    timeCreated string
    The date and time the recommendation details were created, in the format defined by RFC3339.
    timeStatusBegin string
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
    category_id str
    The unique OCID associated with the category.
    compartment_id str
    The OCID of the compartment.
    description str
    Text describing the recommendation.
    estimated_cost_saving float
    The estimated cost savings, in dollars, for the recommendation.
    extended_metadata Mapping[str, str]
    Additional metadata key/value pairs for the recommendation.
    id str
    The unique OCID associated with the recommendation.
    importance str
    The level of importance assigned to the recommendation.
    name str
    Optional. A filter that returns results that match the name specified.
    recommendation_id str
    resource_counts Sequence[optimizer.GetRecommendationsRecommendationCollectionItemResourceCount]
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    supported_levels Sequence[optimizer.GetRecommendationsRecommendationCollectionItemSupportedLevel]
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    time_created str
    The date and time the recommendation details were created, in the format defined by RFC3339.
    time_status_begin str
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
    categoryId String
    The unique OCID associated with the category.
    compartmentId String
    The OCID of the compartment.
    description String
    Text describing the recommendation.
    estimatedCostSaving Number
    The estimated cost savings, in dollars, for the recommendation.
    extendedMetadata Map<String>
    Additional metadata key/value pairs for the recommendation.
    id String
    The unique OCID associated with the recommendation.
    importance String
    The level of importance assigned to the recommendation.
    name String
    Optional. A filter that returns results that match the name specified.
    recommendationId String
    resourceCounts List<Property Map>
    An array of ResourceCount objects grouped by the status of the resource actions.
    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.
    supportedLevels List<Property Map>
    Optional. The profile levels supported by a recommendation. For example, profile level values could be Low, Medium, and High. Not all recommendations support this field.
    timeCreated String
    The date and time the recommendation details were created, in the format defined by RFC3339.
    timeStatusBegin String
    The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.

    GetRecommendationsRecommendationCollectionItemResourceCount

    Count int
    The count of resources.
    Status string
    A filter that returns recommendations that match the status specified.
    Count int
    The count of resources.
    Status string
    A filter that returns recommendations that match the status specified.
    count Integer
    The count of resources.
    status String
    A filter that returns recommendations that match the status specified.
    count number
    The count of resources.
    status string
    A filter that returns recommendations that match the status specified.
    count int
    The count of resources.
    status str
    A filter that returns recommendations that match the status specified.
    count Number
    The count of resources.
    status String
    A filter that returns recommendations that match the status specified.

    GetRecommendationsRecommendationCollectionItemSupportedLevel

    items List<Property Map>
    The list of supported levels.

    GetRecommendationsRecommendationCollectionItemSupportedLevelItem

    Name string
    Optional. A filter that returns results that match the name specified.
    Name string
    Optional. A filter that returns results that match the name specified.
    name String
    Optional. A filter that returns results that match the name specified.
    name string
    Optional. A filter that returns results that match the name specified.
    name str
    Optional. A filter that returns results that match the name specified.
    name String
    Optional. A filter that returns results that match the name specified.

    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