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 dictionary
The following arguments are supported:
- Compartment
Id string - 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 string - The unique OCID associated with the category.
- Category
Name string - Optional. A filter that returns results that match the category name specified.
- Child
Tenancy 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<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 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 string - 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 string - The unique OCID associated with the category.
- Category
Name string - Optional. A filter that returns results that match the category name specified.
- Child
Tenancy []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
[]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 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 String - The OCID of the compartment.
- compartment
Id 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).
- category
Id String - The unique OCID associated with the category.
- category
Name String - Optional. A filter that returns results that match the category name specified.
- child
Tenancy 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<Get
Recommendations Filter> - include
Organization 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 string - The OCID of the compartment.
- compartment
Id 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).
- category
Id string - The unique OCID associated with the category.
- category
Name string - Optional. A filter that returns results that match the category name specified.
- child
Tenancy 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
Get
Recommendations Filter[] - include
Organization 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.
- compartment
Id String - The OCID of the compartment.
- compartment
Id 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).
- category
Id String - The unique OCID associated with the category.
- category
Name String - Optional. A filter that returns results that match the category name specified.
- child
Tenancy 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>
- include
Organization 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:
- Compartment
Id string - The OCID of the tenancy. The tenancy is the root compartment.
- Compartment
Id boolIn Subtree - Id string
- The provider-assigned unique ID for this managed resource.
- Recommendation
Collections List<GetRecommendations Recommendation Collection> - The list of recommendation_collection.
- Category
Id string - The unique OCID associated with the category.
- Category
Name string - Child
Tenancy List<string>Ids - Filters
List<Get
Recommendations Filter> - Include
Organization bool - 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 string - The OCID of the tenancy. The tenancy is the root compartment.
- Compartment
Id boolIn Subtree - Id string
- The provider-assigned unique ID for this managed resource.
- Recommendation
Collections []GetRecommendations Recommendation Collection - The list of recommendation_collection.
- Category
Id string - The unique OCID associated with the category.
- Category
Name string - Child
Tenancy []stringIds - Filters
[]Get
Recommendations Filter - Include
Organization bool - 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 String - The OCID of the tenancy. The tenancy is the root compartment.
- compartment
Id BooleanIn Subtree - id String
- The provider-assigned unique ID for this managed resource.
- recommendation
Collections List<GetRecommendations Recommendation Collection> - The list of recommendation_collection.
- category
Id String - The unique OCID associated with the category.
- category
Name String - child
Tenancy List<String>Ids - filters
List<Get
Recommendations Filter> - include
Organization 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 string - The OCID of the tenancy. The tenancy is the root compartment.
- compartment
Id booleanIn Subtree - id string
- The provider-assigned unique ID for this managed resource.
- recommendation
Collections GetRecommendations Recommendation Collection[] - The list of recommendation_collection.
- category
Id string - The unique OCID associated with the category.
- category
Name string - child
Tenancy string[]Ids - filters
Get
Recommendations Filter[] - include
Organization 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.
- compartment
Id String - The OCID of the tenancy. The tenancy is the root compartment.
- compartment
Id BooleanIn Subtree - id String
- The provider-assigned unique ID for this managed resource.
- recommendation
Collections List<Property Map> - The list of recommendation_collection.
- category
Id String - The unique OCID associated with the category.
- category
Name String - child
Tenancy List<String>Ids - filters List<Property Map>
- include
Organization 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<Get
Recommendations Recommendation Collection Item> - The list of supported levels.
- Items
[]Get
Recommendations Recommendation Collection Item - The list of supported levels.
- items
List<Get
Recommendations Recommendation Collection Item> - The list of supported levels.
- items
Get
Recommendations 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
- Category
Id string - The unique OCID associated with the category.
- Compartment
Id string - The OCID of the compartment.
- Description string
- Text describing the recommendation.
- Estimated
Cost doubleSaving - The estimated cost savings, in dollars, for the recommendation.
- Extended
Metadata 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.
- Recommendation
Id string - Resource
Counts List<GetRecommendations Recommendation Collection Item Resource Count> - 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.
- Supported
Levels 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. - Time
Created string - The date and time the recommendation details were created, in the format defined by RFC3339.
- Time
Status stringBegin - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- Time
Status stringEnd - The date and time the current status will change. The format is defined by RFC3339.
- Time
Updated string - The date and time the recommendation details were last updated, in the format defined by RFC3339.
- Category
Id string - The unique OCID associated with the category.
- Compartment
Id string - The OCID of the compartment.
- Description string
- Text describing the recommendation.
- Estimated
Cost float64Saving - The estimated cost savings, in dollars, for the recommendation.
- Extended
Metadata 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.
- Recommendation
Id string - Resource
Counts []GetRecommendations Recommendation Collection Item Resource Count - 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.
- Supported
Levels []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. - Time
Created string - The date and time the recommendation details were created, in the format defined by RFC3339.
- Time
Status stringBegin - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- Time
Status stringEnd - The date and time the current status will change. The format is defined by RFC3339.
- Time
Updated string - The date and time the recommendation details were last updated, in the format defined by RFC3339.
- category
Id String - The unique OCID associated with the category.
- compartment
Id String - The OCID of the compartment.
- description String
- Text describing the recommendation.
- estimated
Cost DoubleSaving - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata 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.
- recommendation
Id String - resource
Counts List<GetRecommendations Recommendation Collection Item Resource Count> - 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.
- supported
Levels 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. - time
Created String - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status StringBegin - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status StringEnd - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated String - The date and time the recommendation details were last updated, in the format defined by RFC3339.
- category
Id string - The unique OCID associated with the category.
- compartment
Id string - The OCID of the compartment.
- description string
- Text describing the recommendation.
- estimated
Cost numberSaving - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata {[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.
- recommendation
Id string - resource
Counts GetRecommendations Recommendation Collection Item Resource Count[] - 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.
- supported
Levels 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. - time
Created string - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status stringBegin - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status stringEnd - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated 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
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.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.
- category
Id String - The unique OCID associated with the category.
- compartment
Id String - The OCID of the compartment.
- description String
- Text describing the recommendation.
- estimated
Cost NumberSaving - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata 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.
- recommendation
Id String - resource
Counts 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.
- supported
Levels 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. - time
Created String - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status StringBegin - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status StringEnd - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated String - The date and time the recommendation details were last updated, in the format defined by RFC3339.
GetRecommendationsRecommendationCollectionItemResourceCount
GetRecommendationsRecommendationCollectionItemSupportedLevel
- Items
List<Get
Recommendations Recommendation Collection Item Supported Level Item> - The list of supported levels.
- Items
[]Get
Recommendations Recommendation Collection Item Supported Level Item - The list of supported levels.
- items
List<Get
Recommendations Recommendation Collection Item Supported Level Item> - The list of supported levels.
- items
Get
Recommendations 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
oci
Terraform Provider.