Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.OsManagementHub.getProfileVersion
Explore with Pulumi AI
This data source provides details about a specific Profile Version resource in Oracle Cloud Infrastructure Os Management Hub service.
Returns information about the version of the specified registration profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testProfileVersion = oci.OsManagementHub.getProfileVersion({
    profileId: testProfile.id,
    profileVersion: profileVersionProfileVersion,
});
import pulumi
import pulumi_oci as oci
test_profile_version = oci.OsManagementHub.get_profile_version(profile_id=test_profile["id"],
    profile_version=profile_version_profile_version)
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.GetProfileVersion(ctx, &osmanagementhub.GetProfileVersionArgs{
			ProfileId:      testProfile.Id,
			ProfileVersion: profileVersionProfileVersion,
		}, 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 testProfileVersion = Oci.OsManagementHub.GetProfileVersion.Invoke(new()
    {
        ProfileId = testProfile.Id,
        ProfileVersion = profileVersionProfileVersion,
    });
});
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.GetProfileVersionArgs;
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 testProfileVersion = OsManagementHubFunctions.getProfileVersion(GetProfileVersionArgs.builder()
            .profileId(testProfile.id())
            .profileVersion(profileVersionProfileVersion)
            .build());
    }
}
variables:
  testProfileVersion:
    fn::invoke:
      function: oci:OsManagementHub:getProfileVersion
      arguments:
        profileId: ${testProfile.id}
        profileVersion: ${profileVersionProfileVersion}
Using getProfileVersion
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 getProfileVersion(args: GetProfileVersionArgs, opts?: InvokeOptions): Promise<GetProfileVersionResult>
function getProfileVersionOutput(args: GetProfileVersionOutputArgs, opts?: InvokeOptions): Output<GetProfileVersionResult>def get_profile_version(profile_id: Optional[str] = None,
                        profile_version: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetProfileVersionResult
def get_profile_version_output(profile_id: Optional[pulumi.Input[str]] = None,
                        profile_version: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetProfileVersionResult]func GetProfileVersion(ctx *Context, args *GetProfileVersionArgs, opts ...InvokeOption) (*GetProfileVersionResult, error)
func GetProfileVersionOutput(ctx *Context, args *GetProfileVersionOutputArgs, opts ...InvokeOption) GetProfileVersionResultOutput> Note: This function is named GetProfileVersion in the Go SDK.
public static class GetProfileVersion 
{
    public static Task<GetProfileVersionResult> InvokeAsync(GetProfileVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetProfileVersionResult> Invoke(GetProfileVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProfileVersionResult> getProfileVersion(GetProfileVersionArgs args, InvokeOptions options)
public static Output<GetProfileVersionResult> getProfileVersion(GetProfileVersionArgs args, InvokeOptions options)
fn::invoke:
  function: oci:OsManagementHub/getProfileVersion:getProfileVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- ProfileId string
- The OCID of the registration profile.
- ProfileVersion string
- The version of the registration profile.
- ProfileId string
- The OCID of the registration profile.
- ProfileVersion string
- The version of the registration profile.
- profileId String
- The OCID of the registration profile.
- profileVersion String
- The version of the registration profile.
- profileId string
- The OCID of the registration profile.
- profileVersion string
- The version of the registration profile.
- profile_id str
- The OCID of the registration profile.
- profile_version str
- The version of the registration profile.
- profileId String
- The OCID of the registration profile.
- profileVersion String
- The version of the registration profile.
getProfileVersion Result
The following output properties are available:
- ArchType string
- The architecture type.
- CompartmentId string
- The OCID of the compartment that contains the registration profile.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault boolProfile 
- 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.
- IsService boolProvided Profile 
- 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<GetProfile Version Lifecycle Environment> 
- Provides identifying information for the specified lifecycle environment.
- LifecycleStages List<GetProfile Version Lifecycle Stage> 
- Provides identifying information for the specified lifecycle stage.
- ManagedInstance List<GetGroups Profile Version Managed Instance Group> 
- Provides identifying information for the specified managed instance group.
- ManagementStation stringId 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with non-OCI instances.
- OsFamily string
- The operating system family.
- ProfileId string
- ProfileType string
- The type of profile.
- ProfileVersion string
- The version of the profile.
- RegistrationType string
- The type of instance to register.
- SoftwareSources List<GetProfile Version Software Source> 
- The list of software sources that the registration profile will use.
- State string
- The current state of the registration profile.
- 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.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The provider-assigned unique ID for this managed resource.
- IsDefault boolProfile 
- 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.
- IsService boolProvided Profile 
- 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 []GetProfile Version Lifecycle Environment 
- Provides identifying information for the specified lifecycle environment.
- LifecycleStages []GetProfile Version Lifecycle Stage 
- Provides identifying information for the specified lifecycle stage.
- ManagedInstance []GetGroups Profile Version Managed Instance Group 
- Provides identifying information for the specified managed instance group.
- ManagementStation stringId 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with non-OCI instances.
- OsFamily string
- The operating system family.
- ProfileId string
- ProfileType string
- The type of profile.
- ProfileVersion string
- The version of the profile.
- RegistrationType string
- The type of instance to register.
- SoftwareSources []GetProfile Version Software Source 
- The list of software sources that the registration profile will use.
- State string
- The current state of the registration profile.
- 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.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault BooleanProfile 
- 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.
- isService BooleanProvided Profile 
- 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<GetProfile Version Lifecycle Environment> 
- Provides identifying information for the specified lifecycle environment.
- lifecycleStages List<GetProfile Version Lifecycle Stage> 
- Provides identifying information for the specified lifecycle stage.
- managedInstance List<GetGroups Profile Version Managed Instance Group> 
- Provides identifying information for the specified managed instance group.
- managementStation StringId 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with non-OCI instances.
- osFamily String
- The operating system family.
- profileId String
- profileType String
- The type of profile.
- profileVersion String
- The version of the profile.
- registrationType String
- The type of instance to register.
- softwareSources List<GetProfile Version Software Source> 
- The list of software sources that the registration profile will use.
- state String
- The current state of the registration profile.
- 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.
- description string
- Software source description.
- displayName string
- Software source name.
- id string
- The provider-assigned unique ID for this managed resource.
- isDefault booleanProfile 
- 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.
- isService booleanProvided Profile 
- 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 GetProfile Version Lifecycle Environment[] 
- Provides identifying information for the specified lifecycle environment.
- lifecycleStages GetProfile Version Lifecycle Stage[] 
- Provides identifying information for the specified lifecycle stage.
- managedInstance GetGroups Profile Version Managed Instance Group[] 
- Provides identifying information for the specified managed instance group.
- managementStation stringId 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with non-OCI instances.
- osFamily string
- The operating system family.
- profileId string
- profileType string
- The type of profile.
- profileVersion string
- The version of the profile.
- registrationType string
- The type of instance to register.
- softwareSources GetProfile Version Software Source[] 
- The list of software sources that the registration profile will use.
- state string
- The current state of the registration profile.
- 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.
- description str
- Software source description.
- display_name str
- Software source name.
- id str
- The provider-assigned unique ID for this managed resource.
- is_default_ boolprofile 
- 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_ boolprovided_ profile 
- 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[GetProfile Version Lifecycle Environment] 
- Provides identifying information for the specified lifecycle environment.
- lifecycle_stages Sequence[GetProfile Version Lifecycle Stage] 
- Provides identifying information for the specified lifecycle stage.
- managed_instance_ Sequence[Getgroups Profile Version Managed Instance Group] 
- Provides identifying information for the specified managed instance group.
- management_station_ strid 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with 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.
- registration_type str
- The type of instance to register.
- software_sources Sequence[GetProfile Version Software Source] 
- The list of software sources that the registration profile will use.
- state str
- The current state of the registration profile.
- 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.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The provider-assigned unique ID for this managed resource.
- isDefault BooleanProfile 
- 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.
- isService BooleanProvided Profile 
- 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.
- lifecycleStages List<Property Map>
- Provides identifying information for the specified lifecycle stage.
- managedInstance List<Property Map>Groups 
- Provides identifying information for the specified managed instance group.
- managementStation StringId 
- The OCID of the management station to associate with an instance once registered. Management stations are only used with non-OCI instances.
- osFamily String
- The operating system family.
- profileId String
- profileType String
- The type of profile.
- profileVersion String
- The version of the profile.
- registrationType String
- The type of instance to register.
- softwareSources List<Property Map>
- The list of software sources that the registration profile will use.
- state String
- The current state of the registration profile.
- 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
GetProfileVersionLifecycleEnvironment    
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
GetProfileVersionLifecycleStage    
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
GetProfileVersionManagedInstanceGroup     
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
GetProfileVersionSoftwareSource    
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- Description string
- Software source description.
- DisplayName string
- Software source name.
- Id string
- The OCID of the software source.
- IsMandatory boolFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- SoftwareSource stringType 
- Type of the software source.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
- description string
- Software source description.
- displayName string
- Software source name.
- id string
- The OCID of the software source.
- isMandatory booleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource stringType 
- Type of the software source.
- description str
- Software source description.
- display_name str
- Software source name.
- id str
- The OCID of the software source.
- is_mandatory_ boolfor_ autonomous_ linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software_source_ strtype 
- Type of the software source.
- description String
- Software source description.
- displayName String
- Software source name.
- id String
- The OCID of the software source.
- isMandatory BooleanFor Autonomous Linux 
- Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- softwareSource StringType 
- Type of the software source.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.