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)
public static Output<GetRecommendationsResult> getRecommendations(GetRecommendationsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Optimizer/getRecommendations:getRecommendations
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id This property is required. string - 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 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
Changes to this property will trigger replacement.
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 This property is required. string - 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 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
Changes to this property will trigger replacement.
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 This property is required. String - The OCID of the compartment.
- compartment
Id In Subtree 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).
- 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
Changes to this property will trigger replacement.
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 This property is required. string - The OCID of the compartment.
- compartment
Id In Subtree 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).
- 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
Changes to this property will trigger replacement.
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 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_ 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
Changes to this property will trigger replacement.
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 This property is required. String - The OCID of the compartment.
- compartment
Id In Subtree 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).
- 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
Changes to this property will trigger replacement.
- 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
This property is required. List<GetRecommendations Recommendation Collection Item> - The list of supported levels.
- Items
This property is required. []GetRecommendations Recommendation Collection Item - The list of supported levels.
- items
This property is required. List<GetRecommendations Recommendation Collection Item> - The list of supported levels.
- items
This property is required. GetRecommendations Recommendation Collection Item[] - The list of supported levels.
- items
This property is required. Sequence[optimizer.Get Recommendations Recommendation Collection Item] - The list of supported levels.
- items
This property is required. List<Property Map> - The list of supported levels.
GetRecommendationsRecommendationCollectionItem
- Category
Id This property is required. string - The unique OCID associated with the category.
- Compartment
Id This property is required. string - The OCID of the compartment.
- Description
This property is required. string - Text describing the recommendation.
- Estimated
Cost Saving This property is required. double - The estimated cost savings, in dollars, for the recommendation.
- Extended
Metadata 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.
- Recommendation
Id This property is required. string - Resource
Counts This property is required. List<GetRecommendations Recommendation Collection Item Resource Count> - 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.
- Supported
Levels This property is required. 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 This property is required. string - The date and time the recommendation details were created, in the format defined by RFC3339.
- Time
Status Begin This property is required. string - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- Time
Status End This property is required. string - The date and time the current status will change. The format is defined by RFC3339.
- Time
Updated 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. string - The unique OCID associated with the category.
- Compartment
Id This property is required. string - The OCID of the compartment.
- Description
This property is required. string - Text describing the recommendation.
- Estimated
Cost Saving This property is required. float64 - The estimated cost savings, in dollars, for the recommendation.
- Extended
Metadata 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.
- Recommendation
Id This property is required. string - Resource
Counts This property is required. []GetRecommendations Recommendation Collection Item Resource Count - 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.
- Supported
Levels This property is required. []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 This property is required. string - The date and time the recommendation details were created, in the format defined by RFC3339.
- Time
Status Begin This property is required. string - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- Time
Status End This property is required. string - The date and time the current status will change. The format is defined by RFC3339.
- Time
Updated 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. String - The unique OCID associated with the category.
- compartment
Id This property is required. String - The OCID of the compartment.
- description
This property is required. String - Text describing the recommendation.
- estimated
Cost Saving This property is required. Double - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata 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.
- recommendation
Id This property is required. String - resource
Counts This property is required. List<GetRecommendations Recommendation Collection Item Resource Count> - 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.
- supported
Levels This property is required. 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 This property is required. String - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status Begin This property is required. String - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status End This property is required. String - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated 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. string - The unique OCID associated with the category.
- compartment
Id This property is required. string - The OCID of the compartment.
- description
This property is required. string - Text describing the recommendation.
- estimated
Cost Saving This property is required. number - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata 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.
- recommendation
Id This property is required. string - resource
Counts This property is required. GetRecommendations Recommendation Collection Item Resource Count[] - 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.
- supported
Levels This property is required. 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 This property is required. string - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status Begin This property is required. string - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status End This property is required. string - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated 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.Get Recommendations Recommendation Collection Item Resource Count] - 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.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 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.
- category
Id This property is required. String - The unique OCID associated with the category.
- compartment
Id This property is required. String - The OCID of the compartment.
- description
This property is required. String - Text describing the recommendation.
- estimated
Cost Saving This property is required. Number - The estimated cost savings, in dollars, for the recommendation.
- extended
Metadata 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.
- recommendation
Id This property is required. String - resource
Counts 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.
- supported
Levels This property is required. 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 This property is required. String - The date and time the recommendation details were created, in the format defined by RFC3339.
- time
Status Begin This property is required. String - The date and time that the recommendation entered its current status. The format is defined by RFC3339.
- time
Status End This property is required. String - The date and time the current status will change. The format is defined by RFC3339.
- time
Updated This property is required. String - The date and time the recommendation details were last updated, in the format defined by RFC3339.
GetRecommendationsRecommendationCollectionItemResourceCount
GetRecommendationsRecommendationCollectionItemSupportedLevel
- Items
This property is required. List<GetRecommendations Recommendation Collection Item Supported Level Item> - The list of supported levels.
- Items
This property is required. []GetRecommendations Recommendation Collection Item Supported Level Item - The list of supported levels.
- items
This property is required. List<GetRecommendations Recommendation Collection Item Supported Level Item> - The list of supported levels.
- items
This property is required. GetRecommendations Recommendation Collection Item Supported Level Item[] - The list of supported levels.
- items
This property is required. Sequence[optimizer.Get Recommendations Recommendation Collection Item Supported Level Item] - 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.