oci.Optimizer.getRecommendations
Explore with Pulumi AI
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 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). 
- CategoryId string
- The unique OCID associated with the category.
- CategoryName string
- Optional. A filter that returns results that match the category name specified.
- 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<GetRecommendations 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. 
- 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.
- 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). 
- CategoryId string
- The unique OCID associated with the category.
- CategoryName string
- Optional. A filter that returns results that match the category name specified.
- 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
[]GetRecommendations 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. 
- 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.
- 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). 
- categoryId String
- The unique OCID associated with the category.
- categoryName String
- Optional. A filter that returns results that match the category name specified.
- 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<GetRecommendations 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. 
- 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.
- 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). 
- categoryId string
- The unique OCID associated with the category.
- categoryName string
- Optional. A filter that returns results that match the category name specified.
- 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
GetRecommendations 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. 
- 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_ 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). 
- 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_ 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[optimizer.Get Recommendations 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. 
- 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.
- 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). 
- categoryId String
- The unique OCID associated with the category.
- categoryName String
- Optional. A filter that returns results that match the category name specified.
- 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. 
- 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.
- CompartmentId boolIn Subtree 
- Id string
- The provider-assigned unique ID for this managed resource.
- RecommendationCollections List<GetRecommendations Recommendation Collection> 
- The list of recommendation_collection.
- CategoryId string
- The unique OCID associated with the category.
- CategoryName string
- ChildTenancy List<string>Ids 
- Filters
List<GetRecommendations Filter> 
- 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.
- CompartmentId boolIn Subtree 
- Id string
- The provider-assigned unique ID for this managed resource.
- RecommendationCollections []GetRecommendations Recommendation Collection 
- The list of recommendation_collection.
- CategoryId string
- The unique OCID associated with the category.
- CategoryName string
- ChildTenancy []stringIds 
- Filters
[]GetRecommendations Filter 
- 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.
- compartmentId BooleanIn Subtree 
- id String
- The provider-assigned unique ID for this managed resource.
- recommendationCollections List<GetRecommendations Recommendation Collection> 
- The list of recommendation_collection.
- categoryId String
- The unique OCID associated with the category.
- categoryName String
- childTenancy List<String>Ids 
- filters
List<GetRecommendations Filter> 
- 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.
- compartmentId booleanIn Subtree 
- id string
- The provider-assigned unique ID for this managed resource.
- recommendationCollections GetRecommendations Recommendation Collection[] 
- The list of recommendation_collection.
- categoryId string
- The unique OCID associated with the category.
- categoryName string
- childTenancy string[]Ids 
- filters
GetRecommendations Filter[] 
- 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_ boolin_ subtree 
- id str
- The provider-assigned unique ID for this managed resource.
- recommendation_collections Sequence[optimizer.Get Recommendations Recommendation Collection] 
- The list of recommendation_collection.
- category_id str
- The unique OCID associated with the category.
- category_name str
- child_tenancy_ Sequence[str]ids 
- filters
Sequence[optimizer.Get Recommendations Filter] 
- 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.
- compartmentId BooleanIn Subtree 
- 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
- childTenancy List<String>Ids 
- 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  
GetRecommendationsRecommendationCollection   
- Items
List<GetRecommendations Recommendation Collection Item> 
- The list of supported levels.
- Items
[]GetRecommendations Recommendation Collection Item 
- The list of supported levels.
- items
List<GetRecommendations Recommendation Collection Item> 
- The list of supported levels.
- items
GetRecommendations Recommendation Collection Item[] 
- The list of supported levels.
- items
Sequence[optimizer.Get Recommendations Recommendation Collection Item] 
- The list of supported levels.
- 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.
- EstimatedCost doubleSaving 
- 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<GetRecommendations Recommendation Collection Item Resource Count> 
- An array of ResourceCountobjects 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<GetRecommendations Recommendation Collection Item Supported Level> 
- Optional. The profile levels supported by a recommendation. For example, profile level values could be Low,Medium, andHigh. Not all recommendations support this field.
- TimeCreated string
- The date and time the recommendation details were created, in the format defined by RFC3339.
- TimeStatus stringBegin 
- The date and time that the recommendation 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 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.
- EstimatedCost float64Saving 
- 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 []GetRecommendations Recommendation Collection Item Resource Count 
- An array of ResourceCountobjects 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 []GetRecommendations Recommendation Collection Item Supported Level 
- Optional. The profile levels supported by a recommendation. For example, profile level values could be Low,Medium, andHigh. Not all recommendations support this field.
- TimeCreated string
- The date and time the recommendation details were created, in the format defined by RFC3339.
- TimeStatus stringBegin 
- The date and time that the recommendation 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 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.
- estimatedCost DoubleSaving 
- 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<GetRecommendations Recommendation Collection Item Resource Count> 
- An array of ResourceCountobjects 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<GetRecommendations Recommendation Collection Item Supported Level> 
- Optional. The profile levels supported by a recommendation. For example, profile level values could be Low,Medium, andHigh. Not all recommendations support this field.
- timeCreated String
- The date and time the recommendation details were created, in the format defined by RFC3339.
- timeStatus StringBegin 
- The date and time that the recommendation 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 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.
- estimatedCost numberSaving 
- 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 GetRecommendations Recommendation Collection Item Resource Count[] 
- An array of ResourceCountobjects 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 GetRecommendations Recommendation Collection Item Supported Level[] 
- Optional. The profile levels supported by a recommendation. For example, profile level values could be Low,Medium, andHigh. Not all recommendations support this field.
- timeCreated string
- The date and time the recommendation details were created, in the format defined by RFC3339.
- timeStatus stringBegin 
- The date and time that the recommendation 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 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_ floatsaving 
- 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.Get Recommendations Recommendation Collection Item Resource Count] 
- An array of ResourceCountobjects 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.Get Recommendations Recommendation Collection Item Supported Level] 
- Optional. The profile levels supported by a recommendation. For example, profile level values could be Low,Medium, andHigh. 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_ strbegin 
- The date and time that the recommendation 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 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.
- estimatedCost NumberSaving 
- 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 ResourceCountobjects 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, andHigh. Not all recommendations support this field.
- timeCreated String
- The date and time the recommendation details were created, in the format defined by RFC3339.
- timeStatus StringBegin 
- The date and time that the recommendation 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 recommendation details were last updated, in the format defined by RFC3339.
GetRecommendationsRecommendationCollectionItemResourceCount      
GetRecommendationsRecommendationCollectionItemSupportedLevel      
- Items
List<GetRecommendations Recommendation Collection Item Supported Level Item> 
- The list of supported levels.
- Items
[]GetRecommendations Recommendation Collection Item Supported Level Item 
- The list of supported levels.
- items
List<GetRecommendations Recommendation Collection Item Supported Level Item> 
- The list of supported levels.
- items
GetRecommendations Recommendation Collection Item Supported Level Item[] 
- The list of supported levels.
- items
Sequence[optimizer.Get Recommendations Recommendation Collection Item Supported Level Item] 
- The list of supported levels.
- 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 ociTerraform Provider.