oci.OsManagementHub.ManagedInstanceGroup
Explore with Pulumi AI
This resource provides the Managed Instance Group resource in Oracle Cloud Infrastructure Os Management Hub service.
Creates a new managed instance group.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testManagedInstanceGroup = new oci.osmanagementhub.ManagedInstanceGroup("test_managed_instance_group", {
softwareSourceIds: [{}],
archType: managedInstanceGroupArchType,
compartmentId: compartmentId,
displayName: managedInstanceGroupDisplayName,
osFamily: managedInstanceGroupOsFamily,
vendorName: managedInstanceGroupVendorName,
autonomousSettings: {
isDataCollectionAuthorized: managedInstanceGroupAutonomousSettingsIsDataCollectionAuthorized,
},
definedTags: {
"Operations.CostCenter": "42",
},
description: managedInstanceGroupDescription,
freeformTags: {
Department: "Finance",
},
location: managedInstanceGroupLocation,
managedInstanceIds: managedInstanceGroupManagedInstanceIds,
notificationTopicId: testNotificationTopic.id,
});
import pulumi
import pulumi_oci as oci
test_managed_instance_group = oci.os_management_hub.ManagedInstanceGroup("test_managed_instance_group",
software_source_ids=[{}],
arch_type=managed_instance_group_arch_type,
compartment_id=compartment_id,
display_name=managed_instance_group_display_name,
os_family=managed_instance_group_os_family,
vendor_name=managed_instance_group_vendor_name,
autonomous_settings={
"is_data_collection_authorized": managed_instance_group_autonomous_settings_is_data_collection_authorized,
},
defined_tags={
"Operations.CostCenter": "42",
},
description=managed_instance_group_description,
freeform_tags={
"Department": "Finance",
},
location=managed_instance_group_location,
managed_instance_ids=managed_instance_group_managed_instance_ids,
notification_topic_id=test_notification_topic["id"])
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.NewManagedInstanceGroup(ctx, "test_managed_instance_group", &OsManagementHub.ManagedInstanceGroupArgs{
SoftwareSourceIds: pulumi.StringArray{
nil,
},
ArchType: pulumi.Any(managedInstanceGroupArchType),
CompartmentId: pulumi.Any(compartmentId),
DisplayName: pulumi.Any(managedInstanceGroupDisplayName),
OsFamily: pulumi.Any(managedInstanceGroupOsFamily),
VendorName: pulumi.Any(managedInstanceGroupVendorName),
AutonomousSettings: &osmanagementhub.ManagedInstanceGroupAutonomousSettingsArgs{
IsDataCollectionAuthorized: pulumi.Any(managedInstanceGroupAutonomousSettingsIsDataCollectionAuthorized),
},
DefinedTags: pulumi.StringMap{
"Operations.CostCenter": pulumi.String("42"),
},
Description: pulumi.Any(managedInstanceGroupDescription),
FreeformTags: pulumi.StringMap{
"Department": pulumi.String("Finance"),
},
Location: pulumi.Any(managedInstanceGroupLocation),
ManagedInstanceIds: pulumi.Any(managedInstanceGroupManagedInstanceIds),
NotificationTopicId: pulumi.Any(testNotificationTopic.Id),
})
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 testManagedInstanceGroup = new Oci.OsManagementHub.ManagedInstanceGroup("test_managed_instance_group", new()
{
SoftwareSourceIds = new[]
{
null,
},
ArchType = managedInstanceGroupArchType,
CompartmentId = compartmentId,
DisplayName = managedInstanceGroupDisplayName,
OsFamily = managedInstanceGroupOsFamily,
VendorName = managedInstanceGroupVendorName,
AutonomousSettings = new Oci.OsManagementHub.Inputs.ManagedInstanceGroupAutonomousSettingsArgs
{
IsDataCollectionAuthorized = managedInstanceGroupAutonomousSettingsIsDataCollectionAuthorized,
},
DefinedTags =
{
{ "Operations.CostCenter", "42" },
},
Description = managedInstanceGroupDescription,
FreeformTags =
{
{ "Department", "Finance" },
},
Location = managedInstanceGroupLocation,
ManagedInstanceIds = managedInstanceGroupManagedInstanceIds,
NotificationTopicId = testNotificationTopic.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.OsManagementHub.ManagedInstanceGroup;
import com.pulumi.oci.OsManagementHub.ManagedInstanceGroupArgs;
import com.pulumi.oci.OsManagementHub.inputs.ManagedInstanceGroupAutonomousSettingsArgs;
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) {
var testManagedInstanceGroup = new ManagedInstanceGroup("testManagedInstanceGroup", ManagedInstanceGroupArgs.builder()
.softwareSourceIds()
.archType(managedInstanceGroupArchType)
.compartmentId(compartmentId)
.displayName(managedInstanceGroupDisplayName)
.osFamily(managedInstanceGroupOsFamily)
.vendorName(managedInstanceGroupVendorName)
.autonomousSettings(ManagedInstanceGroupAutonomousSettingsArgs.builder()
.isDataCollectionAuthorized(managedInstanceGroupAutonomousSettingsIsDataCollectionAuthorized)
.build())
.definedTags(Map.of("Operations.CostCenter", "42"))
.description(managedInstanceGroupDescription)
.freeformTags(Map.of("Department", "Finance"))
.location(managedInstanceGroupLocation)
.managedInstanceIds(managedInstanceGroupManagedInstanceIds)
.notificationTopicId(testNotificationTopic.id())
.build());
}
}
resources:
testManagedInstanceGroup:
type: oci:OsManagementHub:ManagedInstanceGroup
name: test_managed_instance_group
properties:
softwareSourceIds:
- {}
archType: ${managedInstanceGroupArchType}
compartmentId: ${compartmentId}
displayName: ${managedInstanceGroupDisplayName}
osFamily: ${managedInstanceGroupOsFamily}
vendorName: ${managedInstanceGroupVendorName}
autonomousSettings:
isDataCollectionAuthorized: ${managedInstanceGroupAutonomousSettingsIsDataCollectionAuthorized}
definedTags:
Operations.CostCenter: '42'
description: ${managedInstanceGroupDescription}
freeformTags:
Department: Finance
location: ${managedInstanceGroupLocation}
managedInstanceIds: ${managedInstanceGroupManagedInstanceIds}
notificationTopicId: ${testNotificationTopic.id}
Create ManagedInstanceGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ManagedInstanceGroup(name: string, args: ManagedInstanceGroupArgs, opts?: CustomResourceOptions);
@overload
def ManagedInstanceGroup(resource_name: str,
args: ManagedInstanceGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ManagedInstanceGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
vendor_name: Optional[str] = None,
compartment_id: Optional[str] = None,
os_family: Optional[str] = None,
arch_type: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
location: Optional[str] = None,
managed_instance_ids: Optional[Sequence[str]] = None,
notification_topic_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
software_source_ids: Optional[Sequence[str]] = None,
autonomous_settings: Optional[_osmanagementhub.ManagedInstanceGroupAutonomousSettingsArgs] = None)
func NewManagedInstanceGroup(ctx *Context, name string, args ManagedInstanceGroupArgs, opts ...ResourceOption) (*ManagedInstanceGroup, error)
public ManagedInstanceGroup(string name, ManagedInstanceGroupArgs args, CustomResourceOptions? opts = null)
public ManagedInstanceGroup(String name, ManagedInstanceGroupArgs args)
public ManagedInstanceGroup(String name, ManagedInstanceGroupArgs args, CustomResourceOptions options)
type: oci:OsManagementHub:ManagedInstanceGroup
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ManagedInstanceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ManagedInstanceGroupArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ManagedInstanceGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ManagedInstanceGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ManagedInstanceGroupArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var ociManagedInstanceGroupResource = new Oci.OsManagementHub.ManagedInstanceGroup("ociManagedInstanceGroupResource", new()
{
DisplayName = "string",
VendorName = "string",
CompartmentId = "string",
OsFamily = "string",
ArchType = "string",
FreeformTags =
{
{ "string", "string" },
},
Description = "string",
Location = "string",
ManagedInstanceIds = new[]
{
"string",
},
NotificationTopicId = "string",
DefinedTags =
{
{ "string", "string" },
},
SoftwareSourceIds = new[]
{
"string",
},
AutonomousSettings = new Oci.OsManagementHub.Inputs.ManagedInstanceGroupAutonomousSettingsArgs
{
IsDataCollectionAuthorized = false,
ScheduledJobId = "string",
},
});
example, err := OsManagementHub.NewManagedInstanceGroup(ctx, "ociManagedInstanceGroupResource", &OsManagementHub.ManagedInstanceGroupArgs{
DisplayName: pulumi.String("string"),
VendorName: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
OsFamily: pulumi.String("string"),
ArchType: pulumi.String("string"),
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Location: pulumi.String("string"),
ManagedInstanceIds: pulumi.StringArray{
pulumi.String("string"),
},
NotificationTopicId: pulumi.String("string"),
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
SoftwareSourceIds: pulumi.StringArray{
pulumi.String("string"),
},
AutonomousSettings: &osmanagementhub.ManagedInstanceGroupAutonomousSettingsArgs{
IsDataCollectionAuthorized: pulumi.Bool(false),
ScheduledJobId: pulumi.String("string"),
},
})
var ociManagedInstanceGroupResource = new ManagedInstanceGroup("ociManagedInstanceGroupResource", ManagedInstanceGroupArgs.builder()
.displayName("string")
.vendorName("string")
.compartmentId("string")
.osFamily("string")
.archType("string")
.freeformTags(Map.of("string", "string"))
.description("string")
.location("string")
.managedInstanceIds("string")
.notificationTopicId("string")
.definedTags(Map.of("string", "string"))
.softwareSourceIds("string")
.autonomousSettings(ManagedInstanceGroupAutonomousSettingsArgs.builder()
.isDataCollectionAuthorized(false)
.scheduledJobId("string")
.build())
.build());
oci_managed_instance_group_resource = oci.os_management_hub.ManagedInstanceGroup("ociManagedInstanceGroupResource",
display_name="string",
vendor_name="string",
compartment_id="string",
os_family="string",
arch_type="string",
freeform_tags={
"string": "string",
},
description="string",
location="string",
managed_instance_ids=["string"],
notification_topic_id="string",
defined_tags={
"string": "string",
},
software_source_ids=["string"],
autonomous_settings=oci.os_management_hub.ManagedInstanceGroupAutonomousSettingsArgs(
is_data_collection_authorized=False,
scheduled_job_id="string",
))
const ociManagedInstanceGroupResource = new oci.osmanagementhub.ManagedInstanceGroup("ociManagedInstanceGroupResource", {
displayName: "string",
vendorName: "string",
compartmentId: "string",
osFamily: "string",
archType: "string",
freeformTags: {
string: "string",
},
description: "string",
location: "string",
managedInstanceIds: ["string"],
notificationTopicId: "string",
definedTags: {
string: "string",
},
softwareSourceIds: ["string"],
autonomousSettings: {
isDataCollectionAuthorized: false,
scheduledJobId: "string",
},
});
type: oci:OsManagementHub:ManagedInstanceGroup
properties:
archType: string
autonomousSettings:
isDataCollectionAuthorized: false
scheduledJobId: string
compartmentId: string
definedTags:
string: string
description: string
displayName: string
freeformTags:
string: string
location: string
managedInstanceIds:
- string
notificationTopicId: string
osFamily: string
softwareSourceIds:
- string
vendorName: string
ManagedInstanceGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ManagedInstanceGroup resource accepts the following input properties:
- Arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Os
Family string - The operating system type of the managed instances that will be attached to this group.
- Vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- Managed
Instance List<string>Ids - The list of managed instance OCIDs to be added to the group.
- Notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- Software
Source List<string>Ids - The list of software source OCIDs available to the managed instances in the group.
- Arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Os
Family string - The operating system type of the managed instances that will be attached to this group.
- Vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Autonomous
Settings ManagedInstance Group Autonomous Settings Args - (Updatable) Updatable settings for the Autonomous Linux service.
- map[string]string
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- Managed
Instance []stringIds - The list of managed instance OCIDs to be added to the group.
- Notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- Software
Source []stringIds - The list of software source OCIDs available to the managed instances in the group.
- arch
Type String - The CPU architecture type of the managed instances that will be attached to this group.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the managed instance group.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- os
Family String - The operating system type of the managed instances that will be attached to this group.
- vendor
Name String The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- Map<String,String>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- location String
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance List<String>Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic StringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- software
Source List<String>Ids - The list of software source OCIDs available to the managed instances in the group.
- arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- os
Family string - The operating system type of the managed instances that will be attached to this group.
- vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance string[]Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- software
Source string[]Ids - The list of software source OCIDs available to the managed instances in the group.
- arch_
type str - The CPU architecture type of the managed instances that will be attached to this group.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the managed instance group.
- display_
name str - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- os_
family str - The operating system type of the managed instances that will be attached to this group.
- vendor_
name str The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous_
settings osmanagementhub.Managed Instance Group Autonomous Settings Args - (Updatable) Updatable settings for the Autonomous Linux service.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- location str
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed_
instance_ Sequence[str]ids - The list of managed instance OCIDs to be added to the group.
- notification_
topic_ strid - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- software_
source_ Sequence[str]ids - The list of software source OCIDs available to the managed instances in the group.
- arch
Type String - The CPU architecture type of the managed instances that will be attached to this group.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the managed instance group.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- os
Family String - The operating system type of the managed instances that will be attached to this group.
- vendor
Name String The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- autonomous
Settings Property Map - (Updatable) Updatable settings for the Autonomous Linux service.
- Map<String>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- location String
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance List<String>Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic StringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- software
Source List<String>Ids - The list of software source OCIDs available to the managed instances in the group.
Outputs
All input properties are implicitly available as output properties. Additionally, the ManagedInstanceGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Managed boolBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- Managed
Instance intCount - The number of managed instances in the group.
- Pending
Job intCount - The number of scheduled jobs pending against the managed instance group.
- Software
Sources List<ManagedInstance Group Software Source> - The list of software sources that the managed instance group will use.
- State string
- The current state of the managed instance group.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the managed instance group was created (in RFC 3339 format).
- Time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Managed boolBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- Managed
Instance intCount - The number of managed instances in the group.
- Pending
Job intCount - The number of scheduled jobs pending against the managed instance group.
- Software
Sources []ManagedInstance Group Software Source - The list of software sources that the managed instance group will use.
- State string
- The current state of the managed instance group.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the managed instance group was created (in RFC 3339 format).
- Time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- is
Managed BooleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- managed
Instance IntegerCount - The number of managed instances in the group.
- pending
Job IntegerCount - The number of scheduled jobs pending against the managed instance group.
- software
Sources List<ManagedInstance Group Software Source> - The list of software sources that the managed instance group will use.
- state String
- The current state of the managed instance group.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the managed instance group was created (in RFC 3339 format).
- time
Modified String - The time the managed instance group was last modified (in RFC 3339 format).
- id string
- The provider-assigned unique ID for this managed resource.
- is
Managed booleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- managed
Instance numberCount - The number of managed instances in the group.
- pending
Job numberCount - The number of scheduled jobs pending against the managed instance group.
- software
Sources ManagedInstance Group Software Source[] - The list of software sources that the managed instance group will use.
- state string
- The current state of the managed instance group.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the managed instance group was created (in RFC 3339 format).
- time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- id str
- The provider-assigned unique ID for this managed resource.
- is_
managed_ boolby_ autonomous_ linux - Indicates whether the Autonomous Linux service manages the group.
- managed_
instance_ intcount - The number of managed instances in the group.
- pending_
job_ intcount - The number of scheduled jobs pending against the managed instance group.
- software_
sources Sequence[osmanagementhub.Managed Instance Group Software Source] - The list of software sources that the managed instance group will use.
- state str
- The current state of the managed instance group.
- 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 managed instance group was created (in RFC 3339 format).
- time_
modified str - The time the managed instance group was last modified (in RFC 3339 format).
- id String
- The provider-assigned unique ID for this managed resource.
- is
Managed BooleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- managed
Instance NumberCount - The number of managed instances in the group.
- pending
Job NumberCount - The number of scheduled jobs pending against the managed instance group.
- software
Sources List<Property Map> - The list of software sources that the managed instance group will use.
- state String
- The current state of the managed instance group.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the managed instance group was created (in RFC 3339 format).
- time
Modified String - The time the managed instance group was last modified (in RFC 3339 format).
Look up Existing ManagedInstanceGroup Resource
Get an existing ManagedInstanceGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ManagedInstanceGroupState, opts?: CustomResourceOptions): ManagedInstanceGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arch_type: Optional[str] = None,
autonomous_settings: Optional[_osmanagementhub.ManagedInstanceGroupAutonomousSettingsArgs] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
is_managed_by_autonomous_linux: Optional[bool] = None,
location: Optional[str] = None,
managed_instance_count: Optional[int] = None,
managed_instance_ids: Optional[Sequence[str]] = None,
notification_topic_id: Optional[str] = None,
os_family: Optional[str] = None,
pending_job_count: Optional[int] = None,
software_source_ids: Optional[Sequence[str]] = None,
software_sources: Optional[Sequence[_osmanagementhub.ManagedInstanceGroupSoftwareSourceArgs]] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_modified: Optional[str] = None,
vendor_name: Optional[str] = None) -> ManagedInstanceGroup
func GetManagedInstanceGroup(ctx *Context, name string, id IDInput, state *ManagedInstanceGroupState, opts ...ResourceOption) (*ManagedInstanceGroup, error)
public static ManagedInstanceGroup Get(string name, Input<string> id, ManagedInstanceGroupState? state, CustomResourceOptions? opts = null)
public static ManagedInstanceGroup get(String name, Output<String> id, ManagedInstanceGroupState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- Autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- Dictionary<string, string>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Dictionary<string, string>
- (Updatable) 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"}
- Is
Managed boolBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- Location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- Managed
Instance intCount - The number of managed instances in the group.
- Managed
Instance List<string>Ids - The list of managed instance OCIDs to be added to the group.
- Notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- Os
Family string - The operating system type of the managed instances that will be attached to this group.
- Pending
Job intCount - The number of scheduled jobs pending against the managed instance group.
- Software
Source List<string>Ids - The list of software source OCIDs available to the managed instances in the group.
- Software
Sources List<ManagedInstance Group Software Source> - The list of software sources that the managed instance group will use.
- State string
- The current state of the managed instance group.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the managed instance group was created (in RFC 3339 format).
- Time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- Vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- Arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- Autonomous
Settings ManagedInstance Group Autonomous Settings Args - (Updatable) Updatable settings for the Autonomous Linux service.
- Compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- map[string]string
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- map[string]string
- (Updatable) 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"}
- Is
Managed boolBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- Location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- Managed
Instance intCount - The number of managed instances in the group.
- Managed
Instance []stringIds - The list of managed instance OCIDs to be added to the group.
- Notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- Os
Family string - The operating system type of the managed instances that will be attached to this group.
- Pending
Job intCount - The number of scheduled jobs pending against the managed instance group.
- Software
Source []stringIds - The list of software source OCIDs available to the managed instances in the group.
- Software
Sources []ManagedInstance Group Software Source Args - The list of software sources that the managed instance group will use.
- State string
- The current state of the managed instance group.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- Time
Created string - The time the managed instance group was created (in RFC 3339 format).
- Time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- Vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- arch
Type String - The CPU architecture type of the managed instances that will be attached to this group.
- autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the managed instance group.
- Map<String,String>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Map<String,String>
- (Updatable) 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"}
- is
Managed BooleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- location String
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance IntegerCount - The number of managed instances in the group.
- managed
Instance List<String>Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic StringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- os
Family String - The operating system type of the managed instances that will be attached to this group.
- pending
Job IntegerCount - The number of scheduled jobs pending against the managed instance group.
- software
Source List<String>Ids - The list of software source OCIDs available to the managed instances in the group.
- software
Sources List<ManagedInstance Group Software Source> - The list of software sources that the managed instance group will use.
- state String
- The current state of the managed instance group.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the managed instance group was created (in RFC 3339 format).
- time
Modified String - The time the managed instance group was last modified (in RFC 3339 format).
- vendor
Name String The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- arch
Type string - The CPU architecture type of the managed instances that will be attached to this group.
- autonomous
Settings ManagedInstance Group Autonomous Settings - (Updatable) Updatable settings for the Autonomous Linux service.
- compartment
Id string - (Updatable) The OCID of the compartment that contains the managed instance group.
- {[key: string]: string}
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- {[key: string]: string}
- (Updatable) 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"}
- is
Managed booleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- location string
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance numberCount - The number of managed instances in the group.
- managed
Instance string[]Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic stringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- os
Family string - The operating system type of the managed instances that will be attached to this group.
- pending
Job numberCount - The number of scheduled jobs pending against the managed instance group.
- software
Source string[]Ids - The list of software source OCIDs available to the managed instances in the group.
- software
Sources ManagedInstance Group Software Source[] - The list of software sources that the managed instance group will use.
- state string
- The current state of the managed instance group.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created string - The time the managed instance group was created (in RFC 3339 format).
- time
Modified string - The time the managed instance group was last modified (in RFC 3339 format).
- vendor
Name string The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- arch_
type str - The CPU architecture type of the managed instances that will be attached to this group.
- autonomous_
settings osmanagementhub.Managed Instance Group Autonomous Settings Args - (Updatable) Updatable settings for the Autonomous Linux service.
- compartment_
id str - (Updatable) The OCID of the compartment that contains the managed instance group.
- Mapping[str, str]
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display_
name str - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Mapping[str, str]
- (Updatable) 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"}
- is_
managed_ boolby_ autonomous_ linux - Indicates whether the Autonomous Linux service manages the group.
- location str
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed_
instance_ intcount - The number of managed instances in the group.
- managed_
instance_ Sequence[str]ids - The list of managed instance OCIDs to be added to the group.
- notification_
topic_ strid - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- os_
family str - The operating system type of the managed instances that will be attached to this group.
- pending_
job_ intcount - The number of scheduled jobs pending against the managed instance group.
- software_
source_ Sequence[str]ids - The list of software source OCIDs available to the managed instances in the group.
- software_
sources Sequence[osmanagementhub.Managed Instance Group Software Source Args] - The list of software sources that the managed instance group will use.
- state str
- The current state of the managed instance group.
- 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 managed instance group was created (in RFC 3339 format).
- time_
modified str - The time the managed instance group was last modified (in RFC 3339 format).
- vendor_
name str The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
- arch
Type String - The CPU architecture type of the managed instances that will be attached to this group.
- autonomous
Settings Property Map - (Updatable) Updatable settings for the Autonomous Linux service.
- compartment
Id String - (Updatable) The OCID of the compartment that contains the managed instance group.
- Map<String>
- (Updatable) 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Map<String>
- (Updatable) 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"}
- is
Managed BooleanBy Autonomous Linux - Indicates whether the Autonomous Linux service manages the group.
- location String
- The location of managed instances attached to the group. If no location is provided, the default is on premises.
- managed
Instance NumberCount - The number of managed instances in the group.
- managed
Instance List<String>Ids - The list of managed instance OCIDs to be added to the group.
- notification
Topic StringId - (Updatable) The OCID for the Oracle Notifications service (ONS) topic. ONS is the channel used to send notifications to the customer.
- os
Family String - The operating system type of the managed instances that will be attached to this group.
- pending
Job NumberCount - The number of scheduled jobs pending against the managed instance group.
- software
Source List<String>Ids - The list of software source OCIDs available to the managed instances in the group.
- software
Sources List<Property Map> - The list of software sources that the managed instance group will use.
- state String
- The current state of the managed instance group.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"}
- time
Created String - The time the managed instance group was created (in RFC 3339 format).
- time
Modified String - The time the managed instance group was last modified (in RFC 3339 format).
- vendor
Name String The vendor of the operating system that will be used by the managed instances in the group.
** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values
Supporting Types
ManagedInstanceGroupAutonomousSettings, ManagedInstanceGroupAutonomousSettingsArgs
- bool
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- Scheduled
Job stringId - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
- bool
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- Scheduled
Job stringId - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
- Boolean
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- scheduled
Job StringId - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
- boolean
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- scheduled
Job stringId - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
- bool
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- scheduled_
job_ strid - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
- Boolean
- (Updatable) Indicates whether Autonomous Linux will collect crash files.
- scheduled
Job StringId - The OCID of the restricted scheduled job associated with this instance. This value cannot be deleted by the user.
ManagedInstanceGroupSoftwareSource, ManagedInstanceGroupSoftwareSourceArgs
- Description string
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Id string
- 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 stringType - Type of the software source.
- Description string
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- Display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- Id string
- 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 stringType - Type of the software source.
- description String
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source StringType - Type of the software source.
- description string
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name string - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- id string
- The OCID of the software source.
- is
Mandatory booleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source stringType - Type of the software source.
- description str
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display_
name str - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- 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
- (Updatable) User-specified description of the managed instance group. Avoid entering confidential information.
- display
Name String - (Updatable) A user-friendly name for the managed instance group. Does not have to be unique and you can change the name later. Avoid entering confidential information.
- id String
- The OCID of the software source.
- is
Mandatory BooleanFor Autonomous Linux - Indicates whether this is a required software source for Autonomous Linux instances. If true, the user can't unselect it.
- software
Source StringType - Type of the software source.
Import
ManagedInstanceGroups can be imported using the id
, e.g.
$ pulumi import oci:OsManagementHub/managedInstanceGroup:ManagedInstanceGroup test_managed_instance_group "id"
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.