1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Optimizer
  5. getRecommendations
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi

oci.Optimizer.getRecommendations

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
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}
Copy

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>
Copy
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]
Copy
func GetRecommendations(ctx *Context, args *GetRecommendationsArgs, opts ...InvokeOption) (*GetRecommendationsResult, error)
func GetRecommendationsOutput(ctx *Context, args *GetRecommendationsOutputArgs, opts ...InvokeOption) GetRecommendationsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRecommendationsResult> getRecommendations(GetRecommendationsArgs args, InvokeOptions options)
public static Output<GetRecommendationsResult> getRecommendations(GetRecommendationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Optimizer/getRecommendations:getRecommendations
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
CompartmentIdInSubtree This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. string
The OCID of the compartment.
CompartmentIdInSubtree This property is required. 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 Changes to this property will trigger replacement. []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 This property is required. String
The OCID of the compartment.
compartmentIdInSubtree This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. string
The OCID of the compartment.
compartmentIdInSubtree This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. str
The OCID of the compartment.
compartment_id_in_subtree This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. String
The OCID of the compartment.
compartmentIdInSubtree This property is required. 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 Changes to this property will trigger replacement. 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 This property is required. string
Optional. A filter that returns results that match the name specified.
Values This property is required. List<string>
Regex bool
Name This property is required. string
Optional. A filter that returns results that match the name specified.
Values This property is required. []string
Regex bool
name This property is required. String
Optional. A filter that returns results that match the name specified.
values This property is required. List<String>
regex Boolean
name This property is required. string
Optional. A filter that returns results that match the name specified.
values This property is required. string[]
regex boolean
name This property is required. str
Optional. A filter that returns results that match the name specified.
values This property is required. Sequence[str]
regex bool
name This property is required. String
Optional. A filter that returns results that match the name specified.
values This property is required. List<String>
regex Boolean

GetRecommendationsRecommendationCollection

Items This property is required. List<GetRecommendationsRecommendationCollectionItem>
The list of supported levels.
Items This property is required. []GetRecommendationsRecommendationCollectionItem
The list of supported levels.
items This property is required. List<GetRecommendationsRecommendationCollectionItem>
The list of supported levels.
items This property is required. GetRecommendationsRecommendationCollectionItem[]
The list of supported levels.
items This property is required. Sequence[optimizer.GetRecommendationsRecommendationCollectionItem]
The list of supported levels.
items This property is required. List<Property Map>
The list of supported levels.

GetRecommendationsRecommendationCollectionItem

CategoryId This property is required. string
The unique OCID associated with the category.
CompartmentId This property is required. string
The OCID of the compartment.
Description This property is required. string
Text describing the recommendation.
EstimatedCostSaving This property is required. double
The estimated cost savings, in dollars, for the recommendation.
ExtendedMetadata This property is required. Dictionary<string, string>
Additional metadata key/value pairs for the recommendation.
Id This property is required. string
The unique OCID associated with the recommendation.
Importance This property is required. string
The level of importance assigned to the recommendation.
Name This property is required. string
Optional. A filter that returns results that match the name specified.
RecommendationId This property is required. string
ResourceCounts This property is required. List<GetRecommendationsRecommendationCollectionItemResourceCount>
An array of ResourceCount objects grouped by the status of the resource actions.
State This property is required. string
A filter that returns results that match the lifecycle state specified.
Status This property is required. string
A filter that returns recommendations that match the status specified.
SupportedLevels This property is required. 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 This property is required. string
The date and time the recommendation details were created, in the format defined by RFC3339.
TimeStatusBegin This property is required. string
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
TimeStatusEnd This property is required. string
The date and time the current status will change. The format is defined by RFC3339.
TimeUpdated This property is required. string
The date and time the recommendation details were last updated, in the format defined by RFC3339.
CategoryId This property is required. string
The unique OCID associated with the category.
CompartmentId This property is required. string
The OCID of the compartment.
Description This property is required. string
Text describing the recommendation.
EstimatedCostSaving This property is required. float64
The estimated cost savings, in dollars, for the recommendation.
ExtendedMetadata This property is required. map[string]string
Additional metadata key/value pairs for the recommendation.
Id This property is required. string
The unique OCID associated with the recommendation.
Importance This property is required. string
The level of importance assigned to the recommendation.
Name This property is required. string
Optional. A filter that returns results that match the name specified.
RecommendationId This property is required. string
ResourceCounts This property is required. []GetRecommendationsRecommendationCollectionItemResourceCount
An array of ResourceCount objects grouped by the status of the resource actions.
State This property is required. string
A filter that returns results that match the lifecycle state specified.
Status This property is required. string
A filter that returns recommendations that match the status specified.
SupportedLevels This property is required. []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 This property is required. string
The date and time the recommendation details were created, in the format defined by RFC3339.
TimeStatusBegin This property is required. string
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
TimeStatusEnd This property is required. string
The date and time the current status will change. The format is defined by RFC3339.
TimeUpdated This property is required. string
The date and time the recommendation details were last updated, in the format defined by RFC3339.
categoryId This property is required. String
The unique OCID associated with the category.
compartmentId This property is required. String
The OCID of the compartment.
description This property is required. String
Text describing the recommendation.
estimatedCostSaving This property is required. Double
The estimated cost savings, in dollars, for the recommendation.
extendedMetadata This property is required. Map<String,String>
Additional metadata key/value pairs for the recommendation.
id This property is required. String
The unique OCID associated with the recommendation.
importance This property is required. String
The level of importance assigned to the recommendation.
name This property is required. String
Optional. A filter that returns results that match the name specified.
recommendationId This property is required. String
resourceCounts This property is required. List<GetRecommendationsRecommendationCollectionItemResourceCount>
An array of ResourceCount objects grouped by the status of the resource actions.
state This property is required. String
A filter that returns results that match the lifecycle state specified.
status This property is required. String
A filter that returns recommendations that match the status specified.
supportedLevels This property is required. 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 This property is required. String
The date and time the recommendation details were created, in the format defined by RFC3339.
timeStatusBegin This property is required. String
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
timeStatusEnd This property is required. String
The date and time the current status will change. The format is defined by RFC3339.
timeUpdated This property is required. String
The date and time the recommendation details were last updated, in the format defined by RFC3339.
categoryId This property is required. string
The unique OCID associated with the category.
compartmentId This property is required. string
The OCID of the compartment.
description This property is required. string
Text describing the recommendation.
estimatedCostSaving This property is required. number
The estimated cost savings, in dollars, for the recommendation.
extendedMetadata This property is required. {[key: string]: string}
Additional metadata key/value pairs for the recommendation.
id This property is required. string
The unique OCID associated with the recommendation.
importance This property is required. string
The level of importance assigned to the recommendation.
name This property is required. string
Optional. A filter that returns results that match the name specified.
recommendationId This property is required. string
resourceCounts This property is required. GetRecommendationsRecommendationCollectionItemResourceCount[]
An array of ResourceCount objects grouped by the status of the resource actions.
state This property is required. string
A filter that returns results that match the lifecycle state specified.
status This property is required. string
A filter that returns recommendations that match the status specified.
supportedLevels This property is required. 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 This property is required. string
The date and time the recommendation details were created, in the format defined by RFC3339.
timeStatusBegin This property is required. string
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
timeStatusEnd This property is required. string
The date and time the current status will change. The format is defined by RFC3339.
timeUpdated This property is required. string
The date and time the recommendation details were last updated, in the format defined by RFC3339.
category_id This property is required. str
The unique OCID associated with the category.
compartment_id This property is required. str
The OCID of the compartment.
description This property is required. str
Text describing the recommendation.
estimated_cost_saving This property is required. float
The estimated cost savings, in dollars, for the recommendation.
extended_metadata This property is required. Mapping[str, str]
Additional metadata key/value pairs for the recommendation.
id This property is required. str
The unique OCID associated with the recommendation.
importance This property is required. str
The level of importance assigned to the recommendation.
name This property is required. str
Optional. A filter that returns results that match the name specified.
recommendation_id This property is required. str
resource_counts This property is required. Sequence[optimizer.GetRecommendationsRecommendationCollectionItemResourceCount]
An array of ResourceCount objects grouped by the status of the resource actions.
state This property is required. str
A filter that returns results that match the lifecycle state specified.
status This property is required. str
A filter that returns recommendations that match the status specified.
supported_levels This property is required. 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 This property is required. str
The date and time the recommendation details were created, in the format defined by RFC3339.
time_status_begin This property is required. str
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
time_status_end This property is required. str
The date and time the current status will change. The format is defined by RFC3339.
time_updated This property is required. str
The date and time the recommendation details were last updated, in the format defined by RFC3339.
categoryId This property is required. String
The unique OCID associated with the category.
compartmentId This property is required. String
The OCID of the compartment.
description This property is required. String
Text describing the recommendation.
estimatedCostSaving This property is required. Number
The estimated cost savings, in dollars, for the recommendation.
extendedMetadata This property is required. Map<String>
Additional metadata key/value pairs for the recommendation.
id This property is required. String
The unique OCID associated with the recommendation.
importance This property is required. String
The level of importance assigned to the recommendation.
name This property is required. String
Optional. A filter that returns results that match the name specified.
recommendationId This property is required. String
resourceCounts This property is required. List<Property Map>
An array of ResourceCount objects grouped by the status of the resource actions.
state This property is required. String
A filter that returns results that match the lifecycle state specified.
status This property is required. String
A filter that returns recommendations that match the status specified.
supportedLevels This property is required. 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 This property is required. String
The date and time the recommendation details were created, in the format defined by RFC3339.
timeStatusBegin This property is required. String
The date and time that the recommendation entered its current status. The format is defined by RFC3339.
timeStatusEnd This property is required. String
The date and time the current status will change. The format is defined by RFC3339.
timeUpdated This property is required. String
The date and time the recommendation details were last updated, in the format defined by RFC3339.

GetRecommendationsRecommendationCollectionItemResourceCount

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

GetRecommendationsRecommendationCollectionItemSupportedLevel

Items This property is required. List<GetRecommendationsRecommendationCollectionItemSupportedLevelItem>
The list of supported levels.
Items This property is required. []GetRecommendationsRecommendationCollectionItemSupportedLevelItem
The list of supported levels.
items This property is required. List<GetRecommendationsRecommendationCollectionItemSupportedLevelItem>
The list of supported levels.
items This property is required. GetRecommendationsRecommendationCollectionItemSupportedLevelItem[]
The list of supported levels.
items This property is required. List<Property Map>
The list of supported levels.

GetRecommendationsRecommendationCollectionItemSupportedLevelItem

Name This property is required. string
Optional. A filter that returns results that match the name specified.
Name This property is required. string
Optional. A filter that returns results that match the name specified.
name This property is required. String
Optional. A filter that returns results that match the name specified.
name This property is required. string
Optional. A filter that returns results that match the name specified.
name This property is required. str
Optional. A filter that returns results that match the name specified.
name This property is required. 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.
Oracle Cloud Infrastructure v2.31.0 published on Thursday, Apr 17, 2025 by Pulumi