oci.Optimizer.getResourceActions
Explore with Pulumi AI
This data source provides the list of Resource Actions in Oracle Cloud Infrastructure Optimizer service.
Lists the Cloud Advisor resource actions that are supported.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testResourceActions = oci.Optimizer.getResourceActions({
compartmentId: compartmentId,
compartmentIdInSubtree: resourceActionCompartmentIdInSubtree,
childTenancyIds: resourceActionChildTenancyIds,
includeOrganization: resourceActionIncludeOrganization,
includeResourceMetadata: resourceActionIncludeResourceMetadata,
name: resourceActionName,
recommendationId: testRecommendation.id,
recommendationName: testRecommendation.name,
resourceType: resourceActionResourceType,
state: resourceActionState,
status: resourceActionStatus,
});
import pulumi
import pulumi_oci as oci
test_resource_actions = oci.Optimizer.get_resource_actions(compartment_id=compartment_id,
compartment_id_in_subtree=resource_action_compartment_id_in_subtree,
child_tenancy_ids=resource_action_child_tenancy_ids,
include_organization=resource_action_include_organization,
include_resource_metadata=resource_action_include_resource_metadata,
name=resource_action_name,
recommendation_id=test_recommendation["id"],
recommendation_name=test_recommendation["name"],
resource_type=resource_action_resource_type,
state=resource_action_state,
status=resource_action_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.GetResourceActions(ctx, &optimizer.GetResourceActionsArgs{
CompartmentId: compartmentId,
CompartmentIdInSubtree: resourceActionCompartmentIdInSubtree,
ChildTenancyIds: resourceActionChildTenancyIds,
IncludeOrganization: pulumi.BoolRef(resourceActionIncludeOrganization),
IncludeResourceMetadata: pulumi.BoolRef(resourceActionIncludeResourceMetadata),
Name: pulumi.StringRef(resourceActionName),
RecommendationId: pulumi.StringRef(testRecommendation.Id),
RecommendationName: pulumi.StringRef(testRecommendation.Name),
ResourceType: pulumi.StringRef(resourceActionResourceType),
State: pulumi.StringRef(resourceActionState),
Status: pulumi.StringRef(resourceActionStatus),
}, 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 testResourceActions = Oci.Optimizer.GetResourceActions.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = resourceActionCompartmentIdInSubtree,
ChildTenancyIds = resourceActionChildTenancyIds,
IncludeOrganization = resourceActionIncludeOrganization,
IncludeResourceMetadata = resourceActionIncludeResourceMetadata,
Name = resourceActionName,
RecommendationId = testRecommendation.Id,
RecommendationName = testRecommendation.Name,
ResourceType = resourceActionResourceType,
State = resourceActionState,
Status = resourceActionStatus,
});
});
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.GetResourceActionsArgs;
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 testResourceActions = OptimizerFunctions.getResourceActions(GetResourceActionsArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(resourceActionCompartmentIdInSubtree)
.childTenancyIds(resourceActionChildTenancyIds)
.includeOrganization(resourceActionIncludeOrganization)
.includeResourceMetadata(resourceActionIncludeResourceMetadata)
.name(resourceActionName)
.recommendationId(testRecommendation.id())
.recommendationName(testRecommendation.name())
.resourceType(resourceActionResourceType)
.state(resourceActionState)
.status(resourceActionStatus)
.build());
}
}
variables:
testResourceActions:
fn::invoke:
Function: oci:Optimizer:getResourceActions
Arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${resourceActionCompartmentIdInSubtree}
childTenancyIds: ${resourceActionChildTenancyIds}
includeOrganization: ${resourceActionIncludeOrganization}
includeResourceMetadata: ${resourceActionIncludeResourceMetadata}
name: ${resourceActionName}
recommendationId: ${testRecommendation.id}
recommendationName: ${testRecommendation.name}
resourceType: ${resourceActionResourceType}
state: ${resourceActionState}
status: ${resourceActionStatus}
Using getResourceActions
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 getResourceActions(args: GetResourceActionsArgs, opts?: InvokeOptions): Promise<GetResourceActionsResult>
function getResourceActionsOutput(args: GetResourceActionsOutputArgs, opts?: InvokeOptions): Output<GetResourceActionsResult>
def get_resource_actions(child_tenancy_ids: Optional[Sequence[str]] = None,
compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[_optimizer.GetResourceActionsFilter]] = None,
include_organization: Optional[bool] = None,
include_resource_metadata: Optional[bool] = None,
name: Optional[str] = None,
recommendation_id: Optional[str] = None,
recommendation_name: Optional[str] = None,
resource_type: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResourceActionsResult
def get_resource_actions_output(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.GetResourceActionsFilterArgs]]]] = None,
include_organization: Optional[pulumi.Input[bool]] = None,
include_resource_metadata: Optional[pulumi.Input[bool]] = None,
name: Optional[pulumi.Input[str]] = None,
recommendation_id: Optional[pulumi.Input[str]] = None,
recommendation_name: Optional[pulumi.Input[str]] = None,
resource_type: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
status: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResourceActionsResult]
func GetResourceActions(ctx *Context, args *GetResourceActionsArgs, opts ...InvokeOption) (*GetResourceActionsResult, error)
func GetResourceActionsOutput(ctx *Context, args *GetResourceActionsOutputArgs, opts ...InvokeOption) GetResourceActionsResultOutput
> Note: This function is named GetResourceActions
in the Go SDK.
public static class GetResourceActions
{
public static Task<GetResourceActionsResult> InvokeAsync(GetResourceActionsArgs args, InvokeOptions? opts = null)
public static Output<GetResourceActionsResult> Invoke(GetResourceActionsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResourceActionsResult> getResourceActions(GetResourceActionsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Optimizer/getResourceActions:getResourceActions
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).
- 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
Resource Actions 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.
- Include
Resource boolMetadata - Supplement additional resource information in extended metadata response.
- Name string
- Optional. A filter that returns results that match the name specified.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Recommendation
Name string - Optional. A filter that returns results that match the recommendation name specified.
- Resource
Type string - Optional. A filter that returns results that match the resource type 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).
- 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
Resource Actions 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.
- Include
Resource boolMetadata - Supplement additional resource information in extended metadata response.
- Name string
- Optional. A filter that returns results that match the name specified.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Recommendation
Name string - Optional. A filter that returns results that match the recommendation name specified.
- Resource
Type string - Optional. A filter that returns results that match the resource type 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).
- 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
Resource Actions 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.
- include
Resource BooleanMetadata - Supplement additional resource information in extended metadata response.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendation
Id String - The unique OCID associated with the recommendation.
- recommendation
Name String - Optional. A filter that returns results that match the recommendation name specified.
- resource
Type String - Optional. A filter that returns results that match the resource type 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).
- 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
Resource Actions 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.
- include
Resource booleanMetadata - Supplement additional resource information in extended metadata response.
- name string
- Optional. A filter that returns results that match the name specified.
- recommendation
Id string - The unique OCID associated with the recommendation.
- recommendation
Name string - Optional. A filter that returns results that match the recommendation name specified.
- resource
Type string - Optional. A filter that returns results that match the resource type 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).
- 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 Resource Actions 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.
- include_
resource_ boolmetadata - Supplement additional resource information in extended metadata response.
- name str
- Optional. A filter that returns results that match the name specified.
- recommendation_
id str - The unique OCID associated with the recommendation.
- recommendation_
name str - Optional. A filter that returns results that match the recommendation name specified.
- resource_
type str - Optional. A filter that returns results that match the resource type 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).
- 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.
- include
Resource BooleanMetadata - Supplement additional resource information in extended metadata response.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendation
Id String - The unique OCID associated with the recommendation.
- recommendation
Name String - Optional. A filter that returns results that match the recommendation name specified.
- resource
Type String - Optional. A filter that returns results that match the resource type 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.
getResourceActions Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Action List<GetCollections Resource Actions Resource Action Collection> - The list of resource_action_collection.
- Child
Tenancy List<string>Ids - Filters
List<Get
Resource Actions Filter> - Include
Organization bool - Include
Resource boolMetadata - Name string
- The name assigned to the resource.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Recommendation
Name string - Resource
Type string - The kind of resource.
- State string
- The resource action's current state.
- Status string
- The current status of the resource action.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Id boolIn Subtree - Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Action []GetCollections Resource Actions Resource Action Collection - The list of resource_action_collection.
- Child
Tenancy []stringIds - Filters
[]Get
Resource Actions Filter - Include
Organization bool - Include
Resource boolMetadata - Name string
- The name assigned to the resource.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Recommendation
Name string - Resource
Type string - The kind of resource.
- State string
- The resource action's current state.
- Status string
- The current status of the resource action.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - id String
- The provider-assigned unique ID for this managed resource.
- resource
Action List<GetCollections Resource Actions Resource Action Collection> - The list of resource_action_collection.
- child
Tenancy List<String>Ids - filters
List<Get
Resource Actions Filter> - include
Organization Boolean - include
Resource BooleanMetadata - name String
- The name assigned to the resource.
- recommendation
Id String - The unique OCID associated with the recommendation.
- recommendation
Name String - resource
Type String - The kind of resource.
- state String
- The resource action's current state.
- status String
- The current status of the resource action.
- compartment
Id string - The OCID of the compartment.
- compartment
Id booleanIn Subtree - id string
- The provider-assigned unique ID for this managed resource.
- resource
Action GetCollections Resource Actions Resource Action Collection[] - The list of resource_action_collection.
- child
Tenancy string[]Ids - filters
Get
Resource Actions Filter[] - include
Organization boolean - include
Resource booleanMetadata - name string
- The name assigned to the resource.
- recommendation
Id string - The unique OCID associated with the recommendation.
- recommendation
Name string - resource
Type string - The kind of resource.
- state string
- The resource action's current state.
- status string
- The current status of the resource action.
- compartment_
id str - The OCID of the compartment.
- compartment_
id_ boolin_ subtree - id str
- The provider-assigned unique ID for this managed resource.
- resource_
action_ Sequence[optimizer.collections Get Resource Actions Resource Action Collection] - The list of resource_action_collection.
- child_
tenancy_ Sequence[str]ids - filters
Sequence[optimizer.
Get Resource Actions Filter] - include_
organization bool - include_
resource_ boolmetadata - name str
- The name assigned to the resource.
- recommendation_
id str - The unique OCID associated with the recommendation.
- recommendation_
name str - resource_
type str - The kind of resource.
- state str
- The resource action's current state.
- status str
- The current status of the resource action.
- compartment
Id String - The OCID of the compartment.
- compartment
Id BooleanIn Subtree - id String
- The provider-assigned unique ID for this managed resource.
- resource
Action List<Property Map>Collections - The list of resource_action_collection.
- child
Tenancy List<String>Ids - filters List<Property Map>
- include
Organization Boolean - include
Resource BooleanMetadata - name String
- The name assigned to the resource.
- recommendation
Id String - The unique OCID associated with the recommendation.
- recommendation
Name String - resource
Type String - The kind of resource.
- state String
- The resource action's current state.
- status String
- The current status of the resource action.
Supporting Types
GetResourceActionsFilter
GetResourceActionsResourceActionCollection
GetResourceActionsResourceActionCollectionItem
- Actions
List<Get
Resource Actions Resource Action Collection Item Action> - Details about the recommended action.
- Category
Id string - The unique OCID associated with the category.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Name string - The name associated with the compartment.
- Estimated
Cost doubleSaving - The estimated cost savings, in dollars, for the resource action.
- Extended
Metadata Dictionary<string, string> - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - Id string
- The unique OCID associated with the resource action.
- Metadata Dictionary<string, string>
- Custom metadata key/value pairs for the resource action.
- Name string
- Optional. A filter that returns results that match the name specified.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Resource
Action stringId - Resource
Id string - The unique OCID associated with the resource.
- Resource
Type string - Optional. A filter that returns results that match the resource type 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.
- Time
Created string - The date and time the resource action details were created, in the format defined by RFC3339.
- Time
Status stringBegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
- Actions
[]Get
Resource Actions Resource Action Collection Item Action - Details about the recommended action.
- Category
Id string - The unique OCID associated with the category.
- Compartment
Id string - The OCID of the compartment.
- Compartment
Name string - The name associated with the compartment.
- Estimated
Cost float64Saving - The estimated cost savings, in dollars, for the resource action.
- Extended
Metadata map[string]string - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - Id string
- The unique OCID associated with the resource action.
- Metadata map[string]string
- Custom metadata key/value pairs for the resource action.
- Name string
- Optional. A filter that returns results that match the name specified.
- Recommendation
Id string - The unique OCID associated with the recommendation.
- Resource
Action stringId - Resource
Id string - The unique OCID associated with the resource.
- Resource
Type string - Optional. A filter that returns results that match the resource type 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.
- Time
Created string - The date and time the resource action details were created, in the format defined by RFC3339.
- Time
Status stringBegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
- actions
List<Get
Resource Actions Resource Action Collection Item Action> - Details about the recommended action.
- category
Id String - The unique OCID associated with the category.
- compartment
Id String - The OCID of the compartment.
- compartment
Name String - The name associated with the compartment.
- estimated
Cost DoubleSaving - The estimated cost savings, in dollars, for the resource action.
- extended
Metadata Map<String,String> - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - id String
- The unique OCID associated with the resource action.
- metadata Map<String,String>
- Custom metadata key/value pairs for the resource action.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendation
Id String - The unique OCID associated with the recommendation.
- resource
Action StringId - resource
Id String - The unique OCID associated with the resource.
- resource
Type String - Optional. A filter that returns results that match the resource type 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.
- time
Created String - The date and time the resource action details were created, in the format defined by RFC3339.
- time
Status StringBegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
- actions
Get
Resource Actions Resource Action Collection Item Action[] - Details about the recommended action.
- category
Id string - The unique OCID associated with the category.
- compartment
Id string - The OCID of the compartment.
- compartment
Name string - The name associated with the compartment.
- estimated
Cost numberSaving - The estimated cost savings, in dollars, for the resource action.
- extended
Metadata {[key: string]: string} - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - id string
- The unique OCID associated with the resource action.
- metadata {[key: string]: string}
- Custom metadata key/value pairs for the resource action.
- name string
- Optional. A filter that returns results that match the name specified.
- recommendation
Id string - The unique OCID associated with the recommendation.
- resource
Action stringId - resource
Id string - The unique OCID associated with the resource.
- resource
Type string - Optional. A filter that returns results that match the resource type 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.
- time
Created string - The date and time the resource action details were created, in the format defined by RFC3339.
- time
Status stringBegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
- actions
Sequence[optimizer.
Get Resource Actions Resource Action Collection Item Action] - Details about the recommended action.
- category_
id str - The unique OCID associated with the category.
- compartment_
id str - The OCID of the compartment.
- compartment_
name str - The name associated with the compartment.
- estimated_
cost_ floatsaving - The estimated cost savings, in dollars, for the resource action.
- extended_
metadata Mapping[str, str] - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - id str
- The unique OCID associated with the resource action.
- metadata Mapping[str, str]
- Custom metadata key/value pairs for the resource action.
- name str
- Optional. A filter that returns results that match the name specified.
- recommendation_
id str - The unique OCID associated with the recommendation.
- resource_
action_ strid - resource_
id str - The unique OCID associated with the resource.
- resource_
type str - Optional. A filter that returns results that match the resource type 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.
- time_
created str - The date and time the resource action details were created, in the format defined by RFC3339.
- time_
status_ strbegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
- actions List<Property Map>
- Details about the recommended action.
- category
Id String - The unique OCID associated with the category.
- compartment
Id String - The OCID of the compartment.
- compartment
Name String - The name associated with the compartment.
- estimated
Cost NumberSaving - The estimated cost savings, in dollars, for the resource action.
- extended
Metadata Map<String> - Additional metadata key/value pairs that you provide. They serve the same purpose and functionality as fields in the
metadata
object. - id String
- The unique OCID associated with the resource action.
- metadata Map<String>
- Custom metadata key/value pairs for the resource action.
- name String
- Optional. A filter that returns results that match the name specified.
- recommendation
Id String - The unique OCID associated with the recommendation.
- resource
Action StringId - resource
Id String - The unique OCID associated with the resource.
- resource
Type String - Optional. A filter that returns results that match the resource type 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.
- time
Created String - The date and time the resource action details were created, in the format defined by RFC3339.
- time
Status StringBegin - The date and time that the resource action 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 resource action details were last updated, in the format defined by RFC3339.
GetResourceActionsResourceActionCollectionItemAction
- Description string
- Text describing the recommended action.
- Type string
- The status of the resource action.
- Url string
- The URL path to documentation that explains how to perform the action.
- Description string
- Text describing the recommended action.
- Type string
- The status of the resource action.
- Url string
- The URL path to documentation that explains how to perform the action.
- description String
- Text describing the recommended action.
- type String
- The status of the resource action.
- url String
- The URL path to documentation that explains how to perform the action.
- description string
- Text describing the recommended action.
- type string
- The status of the resource action.
- url string
- The URL path to documentation that explains how to perform the action.
- description str
- Text describing the recommended action.
- type str
- The status of the resource action.
- url str
- The URL path to documentation that explains how to perform the action.
- description String
- Text describing the recommended action.
- type String
- The status of the resource action.
- url String
- The URL path to documentation that explains how to perform the action.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.