1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. OsManagementHub
  5. getProfile
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.OsManagementHub.getProfile

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

This data source provides details about a specific Profile resource in Oracle Cloud Infrastructure Os Management Hub service.

Returns information about the specified registration profile.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testProfile = oci.OsManagementHub.getProfile({
    profileId: testProfileOciOsManagementHubProfile.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_profile = oci.OsManagementHub.get_profile(profile_id=test_profile_oci_os_management_hub_profile["id"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/osmanagementhub"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := osmanagementhub.GetProfile(ctx, &osmanagementhub.GetProfileArgs{
			ProfileId: testProfileOciOsManagementHubProfile.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testProfile = Oci.OsManagementHub.GetProfile.Invoke(new()
    {
        ProfileId = testProfileOciOsManagementHubProfile.Id,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.OsManagementHubFunctions;
import com.pulumi.oci.OsManagementHub.inputs.GetProfileArgs;
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 testProfile = OsManagementHubFunctions.getProfile(GetProfileArgs.builder()
            .profileId(testProfileOciOsManagementHubProfile.id())
            .build());

    }
}
Copy
variables:
  testProfile:
    fn::invoke:
      function: oci:OsManagementHub:getProfile
      arguments:
        profileId: ${testProfileOciOsManagementHubProfile.id}
Copy

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>
Copy
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]
Copy
func GetProfile(ctx *Context, args *GetProfileArgs, opts ...InvokeOption) (*GetProfileResult, error)
func GetProfileOutput(ctx *Context, args *GetProfileOutputArgs, opts ...InvokeOption) GetProfileResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProfileResult> getProfile(GetProfileArgs args, InvokeOptions options)
public static Output<GetProfileResult> getProfile(GetProfileArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:OsManagementHub/getProfile:getProfile
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProfileId This property is required. string
The OCID of the registration profile.
ProfileId This property is required. string
The OCID of the registration profile.
profileId This property is required. String
The OCID of the registration profile.
profileId This property is required. string
The OCID of the registration profile.
profile_id This property is required. str
The OCID of the registration profile.
profileId This property is required. String
The OCID of the registration profile.

getProfile Result

The following output properties are available:

ArchType string
The architecture type.
CompartmentId string
The OCID of the compartment that contains the registration profile.
DefinedTags Dictionary<string, string>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
Software source description.
DisplayName string
Software source name.
FreeformTags Dictionary<string, string>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the software source.
IsDefaultProfile bool
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
IsServiceProvidedProfile bool
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
LifecycleEnvironments List<GetProfileLifecycleEnvironment>
Provides identifying information for the specified lifecycle environment.
LifecycleStageId string
LifecycleStages List<GetProfileLifecycleStage>
Provides identifying information for the specified lifecycle stage.
ManagedInstanceGroupId string
ManagedInstanceGroups List<GetProfileManagedInstanceGroup>
Provides identifying information for the specified managed instance group.
ManagementStationId string
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
OsFamily string
The operating system family.
ProfileId string
ProfileType string
The type of profile.
ProfileVersion string
The version of the profile. The version is automatically incremented each time the profiled is edited.
RegistrationType string
The type of instance to register.
SoftwareSourceIds List<string>
SoftwareSources List<GetProfileSoftwareSource>
The list of software sources that the registration profile will use.
State string
The current state of the registration profile.
SystemTags Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the registration profile was created (in RFC 3339 format).
TimeModified string
The time the registration profile was last modified (in RFC 3339 format).
VendorName string
The vendor of the operating system for the instance.
ArchType string
The architecture type.
CompartmentId string
The OCID of the compartment that contains the registration profile.
DefinedTags map[string]string
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
Description string
Software source description.
DisplayName string
Software source name.
FreeformTags map[string]string
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
Id string
The OCID of the software source.
IsDefaultProfile bool
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
IsServiceProvidedProfile bool
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
LifecycleEnvironments []GetProfileLifecycleEnvironment
Provides identifying information for the specified lifecycle environment.
LifecycleStageId string
LifecycleStages []GetProfileLifecycleStage
Provides identifying information for the specified lifecycle stage.
ManagedInstanceGroupId string
ManagedInstanceGroups []GetProfileManagedInstanceGroup
Provides identifying information for the specified managed instance group.
ManagementStationId string
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
OsFamily string
The operating system family.
ProfileId string
ProfileType string
The type of profile.
ProfileVersion string
The version of the profile. The version is automatically incremented each time the profiled is edited.
RegistrationType string
The type of instance to register.
SoftwareSourceIds []string
SoftwareSources []GetProfileSoftwareSource
The list of software sources that the registration profile will use.
State string
The current state of the registration profile.
SystemTags map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TimeCreated string
The time the registration profile was created (in RFC 3339 format).
TimeModified string
The time the registration profile was last modified (in RFC 3339 format).
VendorName string
The vendor of the operating system for the instance.
archType String
The architecture type.
compartmentId String
The OCID of the compartment that contains the registration profile.
definedTags Map<String,String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
Software source description.
displayName String
Software source name.
freeformTags Map<String,String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the software source.
isDefaultProfile Boolean
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
isServiceProvidedProfile Boolean
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
lifecycleEnvironments List<GetProfileLifecycleEnvironment>
Provides identifying information for the specified lifecycle environment.
lifecycleStageId String
lifecycleStages List<GetProfileLifecycleStage>
Provides identifying information for the specified lifecycle stage.
managedInstanceGroupId String
managedInstanceGroups List<GetProfileManagedInstanceGroup>
Provides identifying information for the specified managed instance group.
managementStationId String
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
osFamily String
The operating system family.
profileId String
profileType String
The type of profile.
profileVersion String
The version of the profile. The version is automatically incremented each time the profiled is edited.
registrationType String
The type of instance to register.
softwareSourceIds List<String>
softwareSources List<GetProfileSoftwareSource>
The list of software sources that the registration profile will use.
state String
The current state of the registration profile.
systemTags Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the registration profile was created (in RFC 3339 format).
timeModified String
The time the registration profile was last modified (in RFC 3339 format).
vendorName String
The vendor of the operating system for the instance.
archType string
The architecture type.
compartmentId string
The OCID of the compartment that contains the registration profile.
definedTags {[key: string]: string}
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description string
Software source description.
displayName string
Software source name.
freeformTags {[key: string]: string}
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id string
The OCID of the software source.
isDefaultProfile boolean
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
isServiceProvidedProfile boolean
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
lifecycleEnvironments GetProfileLifecycleEnvironment[]
Provides identifying information for the specified lifecycle environment.
lifecycleStageId string
lifecycleStages GetProfileLifecycleStage[]
Provides identifying information for the specified lifecycle stage.
managedInstanceGroupId string
managedInstanceGroups GetProfileManagedInstanceGroup[]
Provides identifying information for the specified managed instance group.
managementStationId string
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
osFamily string
The operating system family.
profileId string
profileType string
The type of profile.
profileVersion string
The version of the profile. The version is automatically incremented each time the profiled is edited.
registrationType string
The type of instance to register.
softwareSourceIds string[]
softwareSources GetProfileSoftwareSource[]
The list of software sources that the registration profile will use.
state string
The current state of the registration profile.
systemTags {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated string
The time the registration profile was created (in RFC 3339 format).
timeModified string
The time the registration profile was last modified (in RFC 3339 format).
vendorName string
The vendor of the operating system for the instance.
arch_type str
The architecture type.
compartment_id str
The OCID of the compartment that contains the registration profile.
defined_tags Mapping[str, str]
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description str
Software source description.
display_name str
Software source name.
freeform_tags Mapping[str, str]
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id str
The OCID of the software source.
is_default_profile bool
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
is_service_provided_profile bool
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
lifecycle_environments Sequence[osmanagementhub.GetProfileLifecycleEnvironment]
Provides identifying information for the specified lifecycle environment.
lifecycle_stage_id str
lifecycle_stages Sequence[osmanagementhub.GetProfileLifecycleStage]
Provides identifying information for the specified lifecycle stage.
managed_instance_group_id str
managed_instance_groups Sequence[osmanagementhub.GetProfileManagedInstanceGroup]
Provides identifying information for the specified managed instance group.
management_station_id str
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
os_family str
The operating system family.
profile_id str
profile_type str
The type of profile.
profile_version str
The version of the profile. The version is automatically incremented each time the profiled is edited.
registration_type str
The type of instance to register.
software_source_ids Sequence[str]
software_sources Sequence[osmanagementhub.GetProfileSoftwareSource]
The list of software sources that the registration profile will use.
state str
The current state of the registration profile.
system_tags Mapping[str, str]
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
time_created str
The time the registration profile was created (in RFC 3339 format).
time_modified str
The time the registration profile was last modified (in RFC 3339 format).
vendor_name str
The vendor of the operating system for the instance.
archType String
The architecture type.
compartmentId String
The OCID of the compartment that contains the registration profile.
definedTags Map<String>
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
description String
Software source description.
displayName String
Software source name.
freeformTags Map<String>
Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
id String
The OCID of the software source.
isDefaultProfile Boolean
Indicates if the profile is set as the default. There is exactly one default profile for a specified architecture, OS family, registration type, and vendor. When registering an instance with the corresonding characteristics, the default profile is used, unless another profile is specified.
isServiceProvidedProfile Boolean
Indicates if the profile was created by the service. OS Management Hub provides a limited set of standardized profiles that can be used to register Autonomous Linux or Windows instances.
lifecycleEnvironments List<Property Map>
Provides identifying information for the specified lifecycle environment.
lifecycleStageId String
lifecycleStages List<Property Map>
Provides identifying information for the specified lifecycle stage.
managedInstanceGroupId String
managedInstanceGroups List<Property Map>
Provides identifying information for the specified managed instance group.
managementStationId String
The OCID of the management station to associate with an instance once registered. Management stations are only used by non-OCI instances.
osFamily String
The operating system family.
profileId String
profileType String
The type of profile.
profileVersion String
The version of the profile. The version is automatically incremented each time the profiled is edited.
registrationType String
The type of instance to register.
softwareSourceIds List<String>
softwareSources List<Property Map>
The list of software sources that the registration profile will use.
state String
The current state of the registration profile.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated String
The time the registration profile was created (in RFC 3339 format).
timeModified String
The time the registration profile was last modified (in RFC 3339 format).
vendorName String
The vendor of the operating system for the instance.

Supporting Types

GetProfileLifecycleEnvironment

DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
displayName This property is required. string
Software source name.
id This property is required. string
The OCID of the software source.
display_name This property is required. str
Software source name.
id This property is required. str
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.

GetProfileLifecycleStage

DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
displayName This property is required. string
Software source name.
id This property is required. string
The OCID of the software source.
display_name This property is required. str
Software source name.
id This property is required. str
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.

GetProfileManagedInstanceGroup

DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
displayName This property is required. string
Software source name.
id This property is required. string
The OCID of the software source.
display_name This property is required. str
Software source name.
id This property is required. str
The OCID of the software source.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.

GetProfileSoftwareSource

Description This property is required. string
Software source description.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
IsMandatoryForAutonomousLinux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
SoftwareSourceType This property is required. string
Type of the software source.
Description This property is required. string
Software source description.
DisplayName This property is required. string
Software source name.
Id This property is required. string
The OCID of the software source.
IsMandatoryForAutonomousLinux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
SoftwareSourceType This property is required. string
Type of the software source.
description This property is required. String
Software source description.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. Boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. String
Type of the software source.
description This property is required. string
Software source description.
displayName This property is required. string
Software source name.
id This property is required. string
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. string
Type of the software source.
description This property is required. str
Software source description.
display_name This property is required. str
Software source name.
id This property is required. str
The OCID of the software source.
is_mandatory_for_autonomous_linux This property is required. bool
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
software_source_type This property is required. str
Type of the software source.
description This property is required. String
Software source description.
displayName This property is required. String
Software source name.
id This property is required. String
The OCID of the software source.
isMandatoryForAutonomousLinux This property is required. Boolean
Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
softwareSourceType This property is required. String
Type of the software source.

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi