oci.ClusterPlacementGroups.ClusterPlacementGroup
Explore with Pulumi AI
This resource provides the Cluster Placement Group resource in Oracle Cloud Infrastructure Cluster Placement Groups service.
Creates a new cluster placement group in the specified compartment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testClusterPlacementGroup = new oci.clusterplacementgroups.ClusterPlacementGroup("test_cluster_placement_group", {
availabilityDomain: clusterPlacementGroupAvailabilityDomain,
clusterPlacementGroupType: clusterPlacementGroupClusterPlacementGroupType,
compartmentId: compartmentId,
description: clusterPlacementGroupDescription,
name: clusterPlacementGroupName,
capabilities: {
items: [{
name: clusterPlacementGroupCapabilitiesItemsName,
service: clusterPlacementGroupCapabilitiesItemsService,
}],
},
definedTags: {
"foo-namespace.bar-key": "value",
},
freeformTags: {
"bar-key": "value",
},
opcDryRun: clusterPlacementGroupOpcDryRun,
placementInstruction: {
type: clusterPlacementGroupPlacementInstructionType,
value: clusterPlacementGroupPlacementInstructionValue,
},
});
import pulumi
import pulumi_oci as oci
test_cluster_placement_group = oci.cluster_placement_groups.ClusterPlacementGroup("test_cluster_placement_group",
availability_domain=cluster_placement_group_availability_domain,
cluster_placement_group_type=cluster_placement_group_cluster_placement_group_type,
compartment_id=compartment_id,
description=cluster_placement_group_description,
name=cluster_placement_group_name,
capabilities={
"items": [{
"name": cluster_placement_group_capabilities_items_name,
"service": cluster_placement_group_capabilities_items_service,
}],
},
defined_tags={
"foo-namespace.bar-key": "value",
},
freeform_tags={
"bar-key": "value",
},
opc_dry_run=cluster_placement_group_opc_dry_run,
placement_instruction={
"type": cluster_placement_group_placement_instruction_type,
"value": cluster_placement_group_placement_instruction_value,
})
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/ClusterPlacementGroups"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ClusterPlacementGroups.NewClusterPlacementGroup(ctx, "test_cluster_placement_group", &ClusterPlacementGroups.ClusterPlacementGroupArgs{
AvailabilityDomain: pulumi.Any(clusterPlacementGroupAvailabilityDomain),
ClusterPlacementGroupType: pulumi.Any(clusterPlacementGroupClusterPlacementGroupType),
CompartmentId: pulumi.Any(compartmentId),
Description: pulumi.Any(clusterPlacementGroupDescription),
Name: pulumi.Any(clusterPlacementGroupName),
Capabilities: &clusterplacementgroups.ClusterPlacementGroupCapabilitiesArgs{
Items: clusterplacementgroups.ClusterPlacementGroupCapabilitiesItemArray{
&clusterplacementgroups.ClusterPlacementGroupCapabilitiesItemArgs{
Name: pulumi.Any(clusterPlacementGroupCapabilitiesItemsName),
Service: pulumi.Any(clusterPlacementGroupCapabilitiesItemsService),
},
},
},
DefinedTags: pulumi.StringMap{
"foo-namespace.bar-key": pulumi.String("value"),
},
FreeformTags: pulumi.StringMap{
"bar-key": pulumi.String("value"),
},
OpcDryRun: pulumi.Any(clusterPlacementGroupOpcDryRun),
PlacementInstruction: &clusterplacementgroups.ClusterPlacementGroupPlacementInstructionArgs{
Type: pulumi.Any(clusterPlacementGroupPlacementInstructionType),
Value: pulumi.Any(clusterPlacementGroupPlacementInstructionValue),
},
})
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 testClusterPlacementGroup = new Oci.ClusterPlacementGroups.ClusterPlacementGroup("test_cluster_placement_group", new()
{
AvailabilityDomain = clusterPlacementGroupAvailabilityDomain,
ClusterPlacementGroupType = clusterPlacementGroupClusterPlacementGroupType,
CompartmentId = compartmentId,
Description = clusterPlacementGroupDescription,
Name = clusterPlacementGroupName,
Capabilities = new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupCapabilitiesArgs
{
Items = new[]
{
new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupCapabilitiesItemArgs
{
Name = clusterPlacementGroupCapabilitiesItemsName,
Service = clusterPlacementGroupCapabilitiesItemsService,
},
},
},
DefinedTags =
{
{ "foo-namespace.bar-key", "value" },
},
FreeformTags =
{
{ "bar-key", "value" },
},
OpcDryRun = clusterPlacementGroupOpcDryRun,
PlacementInstruction = new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupPlacementInstructionArgs
{
Type = clusterPlacementGroupPlacementInstructionType,
Value = clusterPlacementGroupPlacementInstructionValue,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.ClusterPlacementGroups.ClusterPlacementGroup;
import com.pulumi.oci.ClusterPlacementGroups.ClusterPlacementGroupArgs;
import com.pulumi.oci.ClusterPlacementGroups.inputs.ClusterPlacementGroupCapabilitiesArgs;
import com.pulumi.oci.ClusterPlacementGroups.inputs.ClusterPlacementGroupPlacementInstructionArgs;
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 testClusterPlacementGroup = new ClusterPlacementGroup("testClusterPlacementGroup", ClusterPlacementGroupArgs.builder()
.availabilityDomain(clusterPlacementGroupAvailabilityDomain)
.clusterPlacementGroupType(clusterPlacementGroupClusterPlacementGroupType)
.compartmentId(compartmentId)
.description(clusterPlacementGroupDescription)
.name(clusterPlacementGroupName)
.capabilities(ClusterPlacementGroupCapabilitiesArgs.builder()
.items(ClusterPlacementGroupCapabilitiesItemArgs.builder()
.name(clusterPlacementGroupCapabilitiesItemsName)
.service(clusterPlacementGroupCapabilitiesItemsService)
.build())
.build())
.definedTags(Map.of("foo-namespace.bar-key", "value"))
.freeformTags(Map.of("bar-key", "value"))
.opcDryRun(clusterPlacementGroupOpcDryRun)
.placementInstruction(ClusterPlacementGroupPlacementInstructionArgs.builder()
.type(clusterPlacementGroupPlacementInstructionType)
.value(clusterPlacementGroupPlacementInstructionValue)
.build())
.build());
}
}
resources:
testClusterPlacementGroup:
type: oci:ClusterPlacementGroups:ClusterPlacementGroup
name: test_cluster_placement_group
properties:
availabilityDomain: ${clusterPlacementGroupAvailabilityDomain}
clusterPlacementGroupType: ${clusterPlacementGroupClusterPlacementGroupType}
compartmentId: ${compartmentId}
description: ${clusterPlacementGroupDescription}
name: ${clusterPlacementGroupName}
capabilities:
items:
- name: ${clusterPlacementGroupCapabilitiesItemsName}
service: ${clusterPlacementGroupCapabilitiesItemsService}
definedTags:
foo-namespace.bar-key: value
freeformTags:
bar-key: value
opcDryRun: ${clusterPlacementGroupOpcDryRun}
placementInstruction:
type: ${clusterPlacementGroupPlacementInstructionType}
value: ${clusterPlacementGroupPlacementInstructionValue}
Create ClusterPlacementGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ClusterPlacementGroup(name: string, args: ClusterPlacementGroupArgs, opts?: CustomResourceOptions);
@overload
def ClusterPlacementGroup(resource_name: str,
args: ClusterPlacementGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ClusterPlacementGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
cluster_placement_group_type: Optional[str] = None,
compartment_id: Optional[str] = None,
description: Optional[str] = None,
capabilities: Optional[_clusterplacementgroups.ClusterPlacementGroupCapabilitiesArgs] = None,
defined_tags: Optional[Mapping[str, str]] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
opc_dry_run: Optional[bool] = None,
placement_instruction: Optional[_clusterplacementgroups.ClusterPlacementGroupPlacementInstructionArgs] = None,
state: Optional[str] = None)
func NewClusterPlacementGroup(ctx *Context, name string, args ClusterPlacementGroupArgs, opts ...ResourceOption) (*ClusterPlacementGroup, error)
public ClusterPlacementGroup(string name, ClusterPlacementGroupArgs args, CustomResourceOptions? opts = null)
public ClusterPlacementGroup(String name, ClusterPlacementGroupArgs args)
public ClusterPlacementGroup(String name, ClusterPlacementGroupArgs args, CustomResourceOptions options)
type: oci:ClusterPlacementGroups:ClusterPlacementGroup
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 ClusterPlacementGroupArgs
- 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 ClusterPlacementGroupArgs
- 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 ClusterPlacementGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ClusterPlacementGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ClusterPlacementGroupArgs
- 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 clusterPlacementGroupResource = new Oci.ClusterPlacementGroups.ClusterPlacementGroup("clusterPlacementGroupResource", new()
{
AvailabilityDomain = "string",
ClusterPlacementGroupType = "string",
CompartmentId = "string",
Description = "string",
Capabilities = new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupCapabilitiesArgs
{
Items = new[]
{
new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupCapabilitiesItemArgs
{
Name = "string",
Service = "string",
},
},
},
DefinedTags =
{
{ "string", "string" },
},
FreeformTags =
{
{ "string", "string" },
},
Name = "string",
OpcDryRun = false,
PlacementInstruction = new Oci.ClusterPlacementGroups.Inputs.ClusterPlacementGroupPlacementInstructionArgs
{
Type = "string",
Value = "string",
},
State = "string",
});
example, err := ClusterPlacementGroups.NewClusterPlacementGroup(ctx, "clusterPlacementGroupResource", &ClusterPlacementGroups.ClusterPlacementGroupArgs{
AvailabilityDomain: pulumi.String("string"),
ClusterPlacementGroupType: pulumi.String("string"),
CompartmentId: pulumi.String("string"),
Description: pulumi.String("string"),
Capabilities: &clusterplacementgroups.ClusterPlacementGroupCapabilitiesArgs{
Items: clusterplacementgroups.ClusterPlacementGroupCapabilitiesItemArray{
&clusterplacementgroups.ClusterPlacementGroupCapabilitiesItemArgs{
Name: pulumi.String("string"),
Service: pulumi.String("string"),
},
},
},
DefinedTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
FreeformTags: pulumi.StringMap{
"string": pulumi.String("string"),
},
Name: pulumi.String("string"),
OpcDryRun: pulumi.Bool(false),
PlacementInstruction: &clusterplacementgroups.ClusterPlacementGroupPlacementInstructionArgs{
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
State: pulumi.String("string"),
})
var clusterPlacementGroupResource = new ClusterPlacementGroup("clusterPlacementGroupResource", ClusterPlacementGroupArgs.builder()
.availabilityDomain("string")
.clusterPlacementGroupType("string")
.compartmentId("string")
.description("string")
.capabilities(ClusterPlacementGroupCapabilitiesArgs.builder()
.items(ClusterPlacementGroupCapabilitiesItemArgs.builder()
.name("string")
.service("string")
.build())
.build())
.definedTags(Map.of("string", "string"))
.freeformTags(Map.of("string", "string"))
.name("string")
.opcDryRun(false)
.placementInstruction(ClusterPlacementGroupPlacementInstructionArgs.builder()
.type("string")
.value("string")
.build())
.state("string")
.build());
cluster_placement_group_resource = oci.cluster_placement_groups.ClusterPlacementGroup("clusterPlacementGroupResource",
availability_domain="string",
cluster_placement_group_type="string",
compartment_id="string",
description="string",
capabilities={
"items": [{
"name": "string",
"service": "string",
}],
},
defined_tags={
"string": "string",
},
freeform_tags={
"string": "string",
},
name="string",
opc_dry_run=False,
placement_instruction={
"type": "string",
"value": "string",
},
state="string")
const clusterPlacementGroupResource = new oci.clusterplacementgroups.ClusterPlacementGroup("clusterPlacementGroupResource", {
availabilityDomain: "string",
clusterPlacementGroupType: "string",
compartmentId: "string",
description: "string",
capabilities: {
items: [{
name: "string",
service: "string",
}],
},
definedTags: {
string: "string",
},
freeformTags: {
string: "string",
},
name: "string",
opcDryRun: false,
placementInstruction: {
type: "string",
value: "string",
},
state: "string",
});
type: oci:ClusterPlacementGroups:ClusterPlacementGroup
properties:
availabilityDomain: string
capabilities:
items:
- name: string
service: string
clusterPlacementGroupType: string
compartmentId: string
definedTags:
string: string
description: string
freeformTags:
string: string
name: string
opcDryRun: false
placementInstruction:
type: string
value: string
state: string
ClusterPlacementGroup Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ClusterPlacementGroup resource accepts the following input properties:
- Availability
Domain string - The availability domain where you want to create the cluster placement group.
- Cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Description string
- (Updatable) A description of the cluster placement group.
- Capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- The friendly name of the cluster placement group.
- Opc
Dry boolRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - Placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- State string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- Availability
Domain string - The availability domain where you want to create the cluster placement group.
- Cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Description string
- (Updatable) A description of the cluster placement group.
- Capabilities
Cluster
Placement Group Capabilities Args - A list of resources that you can create in a cluster placement group.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Name string
- The friendly name of the cluster placement group.
- Opc
Dry boolRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - Placement
Instruction ClusterPlacement Group Placement Instruction Args - Details that inform cluster placement group provisioning.
- State string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- availability
Domain String - The availability domain where you want to create the cluster placement group.
- cluster
Placement StringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- description String
- (Updatable) A description of the cluster placement group.
- capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- The friendly name of the cluster placement group.
- opc
Dry BooleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- state String
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- availability
Domain string - The availability domain where you want to create the cluster placement group.
- cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- description string
- (Updatable) A description of the cluster placement group.
- capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name string
- The friendly name of the cluster placement group.
- opc
Dry booleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- state string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- availability_
domain str - The availability domain where you want to create the cluster placement group.
- cluster_
placement_ strgroup_ type - ClusterPlacementGroup Identifier.
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- description str
- (Updatable) A description of the cluster placement group.
- capabilities
clusterplacementgroups.
Cluster Placement Group Capabilities Args - A list of resources that you can create in a cluster placement group.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name str
- The friendly name of the cluster placement group.
- opc_
dry_ boolrun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement_
instruction clusterplacementgroups.Cluster Placement Group Placement Instruction Args - Details that inform cluster placement group provisioning.
- state str
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- availability
Domain String - The availability domain where you want to create the cluster placement group.
- cluster
Placement StringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- description String
- (Updatable) A description of the cluster placement group.
- capabilities Property Map
- A list of resources that you can create in a cluster placement group.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- name String
- The friendly name of the cluster placement group.
- opc
Dry BooleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction Property Map - Details that inform cluster placement group provisioning.
- state String
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
Outputs
All input properties are implicitly available as output properties. Additionally, the ClusterPlacementGroup resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- id string
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- {[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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- id str
- The provider-assigned unique ID for this managed resource.
- lifecycle_
details str - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- id String
- The provider-assigned unique ID for this managed resource.
- lifecycle
Details String - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
Look up Existing ClusterPlacementGroup Resource
Get an existing ClusterPlacementGroup 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?: ClusterPlacementGroupState, opts?: CustomResourceOptions): ClusterPlacementGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_domain: Optional[str] = None,
capabilities: Optional[_clusterplacementgroups.ClusterPlacementGroupCapabilitiesArgs] = None,
cluster_placement_group_type: Optional[str] = None,
compartment_id: Optional[str] = None,
defined_tags: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
freeform_tags: Optional[Mapping[str, str]] = None,
lifecycle_details: Optional[str] = None,
name: Optional[str] = None,
opc_dry_run: Optional[bool] = None,
placement_instruction: Optional[_clusterplacementgroups.ClusterPlacementGroupPlacementInstructionArgs] = None,
state: Optional[str] = None,
system_tags: Optional[Mapping[str, str]] = None,
time_created: Optional[str] = None,
time_updated: Optional[str] = None) -> ClusterPlacementGroup
func GetClusterPlacementGroup(ctx *Context, name string, id IDInput, state *ClusterPlacementGroupState, opts ...ResourceOption) (*ClusterPlacementGroup, error)
public static ClusterPlacementGroup Get(string name, Input<string> id, ClusterPlacementGroupState? state, CustomResourceOptions? opts = null)
public static ClusterPlacementGroup get(String name, Output<String> id, ClusterPlacementGroupState 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.
- Availability
Domain string - The availability domain where you want to create the cluster placement group.
- Capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- Cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Dictionary<string, string>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description of the cluster placement group.
- Dictionary<string, string>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- Name string
- The friendly name of the cluster placement group.
- Opc
Dry boolRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - Placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- State string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- Availability
Domain string - The availability domain where you want to create the cluster placement group.
- Capabilities
Cluster
Placement Group Capabilities Args - A list of resources that you can create in a cluster placement group.
- Cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- Compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- map[string]string
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- Description string
- (Updatable) A description of the cluster placement group.
- map[string]string
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- Lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- Name string
- The friendly name of the cluster placement group.
- Opc
Dry boolRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - Placement
Instruction ClusterPlacement Group Placement Instruction Args - Details that inform cluster placement group provisioning.
- State string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- Time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- availability
Domain String - The availability domain where you want to create the cluster placement group.
- capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- cluster
Placement StringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Map<String,String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description of the cluster placement group.
- Map<String,String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details String - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- name String
- The friendly name of the cluster placement group.
- opc
Dry BooleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- state String
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- availability
Domain string - The availability domain where you want to create the cluster placement group.
- capabilities
Cluster
Placement Group Capabilities - A list of resources that you can create in a cluster placement group.
- cluster
Placement stringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id string - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- {[key: string]: string}
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description string
- (Updatable) A description of the cluster placement group.
- {[key: string]: string}
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details string - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- name string
- The friendly name of the cluster placement group.
- opc
Dry booleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction ClusterPlacement Group Placement Instruction - Details that inform cluster placement group provisioning.
- state string
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- {[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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated string - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- availability_
domain str - The availability domain where you want to create the cluster placement group.
- capabilities
clusterplacementgroups.
Cluster Placement Group Capabilities Args - A list of resources that you can create in a cluster placement group.
- cluster_
placement_ strgroup_ type - ClusterPlacementGroup Identifier.
- compartment_
id str - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Mapping[str, str]
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description str
- (Updatable) A description of the cluster placement group.
- Mapping[str, str]
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle_
details str - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- name str
- The friendly name of the cluster placement group.
- opc_
dry_ boolrun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement_
instruction clusterplacementgroups.Cluster Placement Group Placement Instruction Args - Details that inform cluster placement group provisioning.
- state str
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time_
updated str - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
- availability
Domain String - The availability domain where you want to create the cluster placement group.
- capabilities Property Map
- A list of resources that you can create in a cluster placement group.
- cluster
Placement StringGroup Type - ClusterPlacementGroup Identifier.
- compartment
Id String - (Updatable) The OCID of the compartment where you want to create the cluster placement group.
- Map<String>
- (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"foo-namespace.bar-key": "value"}
- description String
- (Updatable) A description of the cluster placement group.
- Map<String>
- (Updatable) Simple key-value pair that is applied without any predefined name, type, or scope. Exists for cross-compatibility only. Example:
{"bar-key": "value"}
- lifecycle
Details String - A message describing the current state in more detail. For example, lifecycle details for a resource in a Failed state might include information to act on.
- name String
- The friendly name of the cluster placement group.
- opc
Dry BooleanRun - When set to
true
, the request performs validation on the submitted data without modifying configuration item details. - placement
Instruction Property Map - Details that inform cluster placement group provisioning.
- state String
(Updatable) The target state for the Cluster Placement Group. Could be set to
ACTIVE
orINACTIVE
.** 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
- 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 cluster placement group was created, expressed in RFC 3339 timestamp format.
- time
Updated String - The time the cluster placement group was updated, expressed in RFC 3339 timestamp format.
Supporting Types
ClusterPlacementGroupCapabilities, ClusterPlacementGroupCapabilitiesArgs
- Items
List<Cluster
Placement Group Capabilities Item> - The supported resources.
- Items
[]Cluster
Placement Group Capabilities Item - The supported resources.
- items
List<Cluster
Placement Group Capabilities Item> - The supported resources.
- items
Cluster
Placement Group Capabilities Item[] - The supported resources.
- items
Sequence[clusterplacementgroups.
Cluster Placement Group Capabilities Item] - The supported resources.
- items List<Property Map>
- The supported resources.
ClusterPlacementGroupCapabilitiesItem, ClusterPlacementGroupCapabilitiesItemArgs
ClusterPlacementGroupPlacementInstruction, ClusterPlacementGroupPlacementInstructionArgs
Import
ClusterPlacementGroups can be imported using the id
, e.g.
$ pulumi import oci:ClusterPlacementGroups/clusterPlacementGroup:ClusterPlacementGroup test_cluster_placement_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.