Oracle Cloud Infrastructure

Pulumi Official
Package maintained by Pulumi
v0.1.1 published on Tuesday, May 3, 2022 by Pulumi

DomainReplicationToRegion

This resource provides the Domain Replication To Region resource in Oracle Cloud Infrastructure Identity service.

Replicate domain to a new region. This is an asynchronous call - where, at start, {@code state} of this domain in replica region is set to ENABLING_REPLICATION. On domain replication completion the {@code state} will be set to REPLICATION_ENABLED.

To track progress, HTTP GET on /iamWorkRequests/{iamWorkRequestsId} endpoint will provide the async operation’s status.

If the replica region’s {@code state} is already ENABLING_REPLICATION or REPLICATION_ENABLED, returns 409 CONFLICT.

  • If the domain doesn’t exists, returns 404 NOT FOUND.
  • If home region is same as replication region, return 400 BAD REQUEST.
  • If Domain is not active or being updated, returns 400 BAD REQUEST.
  • If any internal error occurs, return 500 INTERNAL SERVER ERROR.

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testDomainReplicationToRegion = new Oci.Identity.DomainReplicationToRegion("testDomainReplicationToRegion", new Oci.Identity.DomainReplicationToRegionArgs
        {
            DomainId = oci_identity_domain.Test_domain.Id,
            ReplicaRegion = @var.Domain_replication_to_region_replica_region,
        });
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Identity.NewDomainReplicationToRegion(ctx, "testDomainReplicationToRegion", &Identity.DomainReplicationToRegionArgs{
			DomainId:      pulumi.Any(oci_identity_domain.Test_domain.Id),
			ReplicaRegion: pulumi.Any(_var.Domain_replication_to_region_replica_region),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_domain_replication_to_region = oci.identity.DomainReplicationToRegion("testDomainReplicationToRegion",
    domain_id=oci_identity_domain["test_domain"]["id"],
    replica_region=var["domain_replication_to_region_replica_region"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDomainReplicationToRegion = new oci.identity.DomainReplicationToRegion("testDomainReplicationToRegion", {
    domainId: oci_identity_domain.test_domain.id,
    replicaRegion: _var.domain_replication_to_region_replica_region,
});

Coming soon!

Create a DomainReplicationToRegion Resource

new DomainReplicationToRegion(name: string, args: DomainReplicationToRegionArgs, opts?: CustomResourceOptions);
@overload
def DomainReplicationToRegion(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              domain_id: Optional[str] = None,
                              replica_region: Optional[str] = None)
@overload
def DomainReplicationToRegion(resource_name: str,
                              args: DomainReplicationToRegionArgs,
                              opts: Optional[ResourceOptions] = None)
func NewDomainReplicationToRegion(ctx *Context, name string, args DomainReplicationToRegionArgs, opts ...ResourceOption) (*DomainReplicationToRegion, error)
public DomainReplicationToRegion(string name, DomainReplicationToRegionArgs args, CustomResourceOptions? opts = null)
public DomainReplicationToRegion(String name, DomainReplicationToRegionArgs args)
public DomainReplicationToRegion(String name, DomainReplicationToRegionArgs args, CustomResourceOptions options)
type: oci:Identity:DomainReplicationToRegion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args DomainReplicationToRegionArgs
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 DomainReplicationToRegionArgs
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 DomainReplicationToRegionArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DomainReplicationToRegionArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args DomainReplicationToRegionArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

DomainReplicationToRegion 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 DomainReplicationToRegion resource accepts the following input properties:

DomainId string

The OCID of the domain

ReplicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

DomainId string

The OCID of the domain

ReplicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId String

The OCID of the domain

replicaRegion String

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId string

The OCID of the domain

replicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domain_id str

The OCID of the domain

replica_region str

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId String

The OCID of the domain

replicaRegion String

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

Outputs

All input properties are implicitly available as output properties. Additionally, the DomainReplicationToRegion resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing DomainReplicationToRegion Resource

Get an existing DomainReplicationToRegion 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?: DomainReplicationToRegionState, opts?: CustomResourceOptions): DomainReplicationToRegion
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        domain_id: Optional[str] = None,
        replica_region: Optional[str] = None) -> DomainReplicationToRegion
func GetDomainReplicationToRegion(ctx *Context, name string, id IDInput, state *DomainReplicationToRegionState, opts ...ResourceOption) (*DomainReplicationToRegion, error)
public static DomainReplicationToRegion Get(string name, Input<string> id, DomainReplicationToRegionState? state, CustomResourceOptions? opts = null)
public static DomainReplicationToRegion get(String name, Output<String> id, DomainReplicationToRegionState 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.
The following state arguments are supported:
DomainId string

The OCID of the domain

ReplicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

DomainId string

The OCID of the domain

ReplicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId String

The OCID of the domain

replicaRegion String

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId string

The OCID of the domain

replicaRegion string

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domain_id str

The OCID of the domain

replica_region str

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

domainId String

The OCID of the domain

replicaRegion String

A region for which domain replication is requested for. See Regions and Availability Domains for the full list of supported region names. Example: us-phoenix-1

Import

Import is not supported for this resource.

Package Details

Repository
https://github.com/pulumi/pulumi-oci
License
Apache-2.0
Notes

This Pulumi package is based on the oci Terraform Provider.