Oracle Cloud Infrastructure
getProfile
This data source provides details about a specific Profile resource in Oracle Cloud Infrastructure Optimizer service.
Gets the specified profile’s information. Uses the profile’s OCID to determine which profile to retrieve.
Example Usage
using Pulumi;
using Oci = Pulumi.Oci;
class MyStack : Stack
{
public MyStack()
{
var testProfile = Output.Create(Oci.Optimizer.GetProfile.InvokeAsync(new Oci.Optimizer.GetProfileArgs
{
ProfileId = oci_optimizer_profile.Test_profile.Id,
}));
}
}
package main
import (
"github.com/pulumi/pulumi-oci/sdk/go/oci/Optimizer"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := Optimizer.GetProfile(ctx, &optimizer.GetProfileArgs{
ProfileId: oci_optimizer_profile.Test_profile.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_oci as oci
test_profile = oci.Optimizer.get_profile(profile_id=oci_optimizer_profile["test_profile"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProfile = oci.Optimizer.getProfile({
profileId: oci_optimizer_profile.test_profile.id,
});
Coming soon!
Using getProfile
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 getProfile(args: GetProfileArgs, opts?: InvokeOptions): Promise<GetProfileResult>
function getProfileOutput(args: GetProfileOutputArgs, opts?: InvokeOptions): Output<GetProfileResult>
def get_profile(profile_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProfileResult
def get_profile_output(profile_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProfileResult]
func GetProfile(ctx *Context, args *GetProfileArgs, opts ...InvokeOption) (*GetProfileResult, error)
func GetProfileOutput(ctx *Context, args *GetProfileOutputArgs, opts ...InvokeOption) GetProfileResultOutput
> Note: This function is named GetProfile
in the Go SDK.
public static class GetProfile
{
public static Task<GetProfileResult> InvokeAsync(GetProfileArgs args, InvokeOptions? opts = null)
public static Output<GetProfileResult> Invoke(GetProfileInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetProfileResult> getProfile(GetProfileArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: oci:Optimizer/getProfile:getProfile
Arguments:
# Arguments dictionary
The following arguments are supported:
- Profile
Id string The unique OCID of the profile.
- Profile
Id string The unique OCID of the profile.
- profile
Id String The unique OCID of the profile.
- profile
Id string The unique OCID of the profile.
- profile_
id str The unique OCID of the profile.
- profile
Id String The unique OCID of the profile.
getProfile Result
The following output properties are available:
- Aggregation
Interval intIn Days The time period over which to collect data for the recommendations, measured in number of days.
- Compartment
Id string The OCID of the tenancy. The tenancy is the root compartment.
- Dictionary<string, object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Description string
Text describing the profile. Avoid entering confidential information.
- Dictionary<string, object>
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The unique OCID of the profile.
- Levels
Configurations List<GetProfile Levels Configuration> A list of configuration levels for each recommendation.
- Name string
The name assigned to the profile. Avoid entering confidential information.
- Profile
Id string - State string
The profile's current state.
- Target
Compartments List<GetProfile Target Compartment> Optional. The compartments specified in the profile override for a recommendation.
- List<Get
Profile Target Tag> Optional. The tags specified in the profile override for a recommendation.
- Time
Created string The date and time the profile was created, in the format defined by RFC3339.
- Time
Updated string The date and time the profile was last updated, in the format defined by RFC3339.
- Aggregation
Interval intIn Days The time period over which to collect data for the recommendations, measured in number of days.
- Compartment
Id string The OCID of the tenancy. The tenancy is the root compartment.
- map[string]interface{}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- Description string
Text describing the profile. Avoid entering confidential information.
- map[string]interface{}
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Id string
The unique OCID of the profile.
- Levels
Configurations []GetProfile Levels Configuration A list of configuration levels for each recommendation.
- Name string
The name assigned to the profile. Avoid entering confidential information.
- Profile
Id string - State string
The profile's current state.
- Target
Compartments []GetProfile Target Compartment Optional. The compartments specified in the profile override for a recommendation.
- []Get
Profile Target Tag Optional. The tags specified in the profile override for a recommendation.
- Time
Created string The date and time the profile was created, in the format defined by RFC3339.
- Time
Updated string The date and time the profile was last updated, in the format defined by RFC3339.
- aggregation
Interval IntegerIn Days The time period over which to collect data for the recommendations, measured in number of days.
- compartment
Id String The OCID of the tenancy. The tenancy is the root compartment.
- Map<String,Object>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description String
Text describing the profile. Avoid entering confidential information.
- Map<String,Object>
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The unique OCID of the profile.
- levels
Configurations List<GetProfile Levels Configuration> A list of configuration levels for each recommendation.
- name String
The name assigned to the profile. Avoid entering confidential information.
- profile
Id String - state String
The profile's current state.
- target
Compartments List<GetProfile Target Compartment> Optional. The compartments specified in the profile override for a recommendation.
- List<Get
Profile Target Tag> Optional. The tags specified in the profile override for a recommendation.
- time
Created String The date and time the profile was created, in the format defined by RFC3339.
- time
Updated String The date and time the profile was last updated, in the format defined by RFC3339.
- aggregation
Interval numberIn Days The time period over which to collect data for the recommendations, measured in number of days.
- compartment
Id string The OCID of the tenancy. The tenancy is the root compartment.
- {[key: string]: any}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description string
Text describing the profile. Avoid entering confidential information.
- {[key: string]: any}
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id string
The unique OCID of the profile.
- levels
Configurations GetProfile Levels Configuration[] A list of configuration levels for each recommendation.
- name string
The name assigned to the profile. Avoid entering confidential information.
- profile
Id string - state string
The profile's current state.
- target
Compartments GetProfile Target Compartment[] Optional. The compartments specified in the profile override for a recommendation.
- Get
Profile Target Tag[] Optional. The tags specified in the profile override for a recommendation.
- time
Created string The date and time the profile was created, in the format defined by RFC3339.
- time
Updated string The date and time the profile was last updated, in the format defined by RFC3339.
- aggregation_
interval_ intin_ days The time period over which to collect data for the recommendations, measured in number of days.
- compartment_
id str The OCID of the tenancy. The tenancy is the root compartment.
- Mapping[str, Any]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description str
Text describing the profile. Avoid entering confidential information.
- Mapping[str, Any]
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id str
The unique OCID of the profile.
- levels_
configurations GetProfile Levels Configuration] A list of configuration levels for each recommendation.
- name str
The name assigned to the profile. Avoid entering confidential information.
- profile_
id str - state str
The profile's current state.
- target_
compartments GetProfile Target Compartment] Optional. The compartments specified in the profile override for a recommendation.
- Get
Profile Target Tag] Optional. The tags specified in the profile override for a recommendation.
- time_
created str The date and time the profile was created, in the format defined by RFC3339.
- time_
updated str The date and time the profile was last updated, in the format defined by RFC3339.
- aggregation
Interval NumberIn Days The time period over which to collect data for the recommendations, measured in number of days.
- compartment
Id String The OCID of the tenancy. The tenancy is the root compartment.
- Map<Any>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example:
{"foo-namespace.bar-key": "value"}
- description String
Text describing the profile. Avoid entering confidential information.
- Map<Any>
Simple key-value pair applied without any predefined name, type, or namespace. For more information, see Resource Tags. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- id String
The unique OCID of the profile.
- levels
Configurations List<Property Map> A list of configuration levels for each recommendation.
- name String
The name assigned to the profile. Avoid entering confidential information.
- profile
Id String - state String
The profile's current state.
- target
Compartments List<Property Map> Optional. The compartments specified in the profile override for a recommendation.
- List<Property Map>
Optional. The tags specified in the profile override for a recommendation.
- time
Created String The date and time the profile was created, in the format defined by RFC3339.
- time
Updated String The date and time the profile was last updated, in the format defined by RFC3339.
Supporting Types
GetProfileLevelsConfiguration
- Items
List<Get
Profile Levels Configuration Item> The list of tags specified in the current profile override.
- Items
[]Get
Profile Levels Configuration Item The list of tags specified in the current profile override.
- items
List<Get
Profile Levels Configuration Item> The list of tags specified in the current profile override.
- items
Get
Profile Levels Configuration Item[] The list of tags specified in the current profile override.
- items
Get
Profile Levels Configuration Item] The list of tags specified in the current profile override.
- items List<Property Map>
The list of tags specified in the current profile override.
GetProfileLevelsConfigurationItem
- Level string
The pre-defined profile level.
- Recommendation
Id string The unique OCID of the recommendation.
- Level string
The pre-defined profile level.
- Recommendation
Id string The unique OCID of the recommendation.
- level String
The pre-defined profile level.
- recommendation
Id String The unique OCID of the recommendation.
- level string
The pre-defined profile level.
- recommendation
Id string The unique OCID of the recommendation.
- level str
The pre-defined profile level.
- recommendation_
id str The unique OCID of the recommendation.
- level String
The pre-defined profile level.
- recommendation
Id String The unique OCID of the recommendation.
GetProfileTargetCompartment
- Items List<string>
The list of tags specified in the current profile override.
- Items []string
The list of tags specified in the current profile override.
- items List<String>
The list of tags specified in the current profile override.
- items string[]
The list of tags specified in the current profile override.
- items Sequence[str]
The list of tags specified in the current profile override.
- items List<String>
The list of tags specified in the current profile override.
GetProfileTargetTag
- Items
List<Get
Profile Target Tag Item> The list of tags specified in the current profile override.
- Items
[]Get
Profile Target Tag Item The list of tags specified in the current profile override.
- items
List<Get
Profile Target Tag Item> The list of tags specified in the current profile override.
- items
Get
Profile Target Tag Item[] The list of tags specified in the current profile override.
- items
Get
Profile Target Tag Item] The list of tags specified in the current profile override.
- items List<Property Map>
The list of tags specified in the current profile override.
GetProfileTargetTagItem
- Tag
Definition stringName The name you use to refer to the tag, also known as the tag key.
- Tag
Namespace stringName The name of the tag namespace.
- Tag
Value stringType Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- Tag
Values List<string> The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
- Tag
Definition stringName The name you use to refer to the tag, also known as the tag key.
- Tag
Namespace stringName The name of the tag namespace.
- Tag
Value stringType Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- Tag
Values []string The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
- tag
Definition StringName The name you use to refer to the tag, also known as the tag key.
- tag
Namespace StringName The name of the tag namespace.
- tag
Value StringType Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- tag
Values List<String> The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
- tag
Definition stringName The name you use to refer to the tag, also known as the tag key.
- tag
Namespace stringName The name of the tag namespace.
- tag
Value stringType Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- tag
Values string[] The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
- tag_
definition_ strname The name you use to refer to the tag, also known as the tag key.
- tag_
namespace_ strname The name of the tag namespace.
- tag_
value_ strtype Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- tag_
values Sequence[str] The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
- tag
Definition StringName The name you use to refer to the tag, also known as the tag key.
- tag
Namespace StringName The name of the tag namespace.
- tag
Value StringType Specifies which tag value types in the
tagValues
field result in overrides of the recommendation criteria.- tag
Values List<String> The list of tag values. The tag value is the value that the user applying the tag adds to the tag key.
Package Details
- Repository
- https://github.com/pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.