Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.GoldenGate.getDeploymentPeers
Explore with Pulumi AI
This data source provides the list of Deployment Peers in Oracle Cloud Infrastructure Golden Gate service.
Lists the local and remote peers in a deployment.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDeploymentPeers = oci.GoldenGate.getDeploymentPeers({
    deploymentId: testDeployment.id,
    displayName: deploymentPeerDisplayName,
    state: deploymentPeerState,
});
import pulumi
import pulumi_oci as oci
test_deployment_peers = oci.GoldenGate.get_deployment_peers(deployment_id=test_deployment["id"],
    display_name=deployment_peer_display_name,
    state=deployment_peer_state)
package main
import (
	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/goldengate"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := goldengate.GetDeploymentPeers(ctx, &goldengate.GetDeploymentPeersArgs{
			DeploymentId: testDeployment.Id,
			DisplayName:  pulumi.StringRef(deploymentPeerDisplayName),
			State:        pulumi.StringRef(deploymentPeerState),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() => 
{
    var testDeploymentPeers = Oci.GoldenGate.GetDeploymentPeers.Invoke(new()
    {
        DeploymentId = testDeployment.Id,
        DisplayName = deploymentPeerDisplayName,
        State = deploymentPeerState,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.GoldenGate.GoldenGateFunctions;
import com.pulumi.oci.GoldenGate.inputs.GetDeploymentPeersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var testDeploymentPeers = GoldenGateFunctions.getDeploymentPeers(GetDeploymentPeersArgs.builder()
            .deploymentId(testDeployment.id())
            .displayName(deploymentPeerDisplayName)
            .state(deploymentPeerState)
            .build());
    }
}
variables:
  testDeploymentPeers:
    fn::invoke:
      function: oci:GoldenGate:getDeploymentPeers
      arguments:
        deploymentId: ${testDeployment.id}
        displayName: ${deploymentPeerDisplayName}
        state: ${deploymentPeerState}
Using getDeploymentPeers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDeploymentPeers(args: GetDeploymentPeersArgs, opts?: InvokeOptions): Promise<GetDeploymentPeersResult>
function getDeploymentPeersOutput(args: GetDeploymentPeersOutputArgs, opts?: InvokeOptions): Output<GetDeploymentPeersResult>def get_deployment_peers(deployment_id: Optional[str] = None,
                         display_name: Optional[str] = None,
                         filters: Optional[Sequence[GetDeploymentPeersFilter]] = None,
                         state: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetDeploymentPeersResult
def get_deployment_peers_output(deployment_id: Optional[pulumi.Input[str]] = None,
                         display_name: Optional[pulumi.Input[str]] = None,
                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDeploymentPeersFilterArgs]]]] = None,
                         state: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetDeploymentPeersResult]func GetDeploymentPeers(ctx *Context, args *GetDeploymentPeersArgs, opts ...InvokeOption) (*GetDeploymentPeersResult, error)
func GetDeploymentPeersOutput(ctx *Context, args *GetDeploymentPeersOutputArgs, opts ...InvokeOption) GetDeploymentPeersResultOutput> Note: This function is named GetDeploymentPeers in the Go SDK.
public static class GetDeploymentPeers 
{
    public static Task<GetDeploymentPeersResult> InvokeAsync(GetDeploymentPeersArgs args, InvokeOptions? opts = null)
    public static Output<GetDeploymentPeersResult> Invoke(GetDeploymentPeersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDeploymentPeersResult> getDeploymentPeers(GetDeploymentPeersArgs args, InvokeOptions options)
public static Output<GetDeploymentPeersResult> getDeploymentPeers(GetDeploymentPeersArgs args, InvokeOptions options)
fn::invoke:
  function: oci:GoldenGate/getDeploymentPeers:getDeploymentPeers
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DeploymentId string
- A unique Deployment identifier.
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- Filters
List<GetDeployment Peers Filter> 
- State string
- A filter to return only the resources that match the 'lifecycleState' given.
- DeploymentId string
- A unique Deployment identifier.
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- Filters
[]GetDeployment Peers Filter 
- State string
- A filter to return only the resources that match the 'lifecycleState' given.
- deploymentId String
- A unique Deployment identifier.
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- filters
List<GetDeployment Peers Filter> 
- state String
- A filter to return only the resources that match the 'lifecycleState' given.
- deploymentId string
- A unique Deployment identifier.
- displayName string
- A filter to return only the resources that match the entire 'displayName' given.
- filters
GetDeployment Peers Filter[] 
- state string
- A filter to return only the resources that match the 'lifecycleState' given.
- deployment_id str
- A unique Deployment identifier.
- display_name str
- A filter to return only the resources that match the entire 'displayName' given.
- filters
Sequence[GetDeployment Peers Filter] 
- state str
- A filter to return only the resources that match the 'lifecycleState' given.
- deploymentId String
- A unique Deployment identifier.
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- filters List<Property Map>
- state String
- A filter to return only the resources that match the 'lifecycleState' given.
getDeploymentPeers Result
The following output properties are available:
- DeploymentId string
- The OCID of the deployment being referenced.
- DeploymentPeer List<GetCollections Deployment Peers Deployment Peer Collection> 
- The list of deployment_peer_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- An object's Display Name.
- Filters
List<GetDeployment Peers Filter> 
- State string
- Possible lifecycle states for deployment peer.
- DeploymentId string
- The OCID of the deployment being referenced.
- DeploymentPeer []GetCollections Deployment Peers Deployment Peer Collection 
- The list of deployment_peer_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- DisplayName string
- An object's Display Name.
- Filters
[]GetDeployment Peers Filter 
- State string
- Possible lifecycle states for deployment peer.
- deploymentId String
- The OCID of the deployment being referenced.
- deploymentPeer List<GetCollections Deployment Peers Deployment Peer Collection> 
- The list of deployment_peer_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- An object's Display Name.
- filters
List<GetDeployment Peers Filter> 
- state String
- Possible lifecycle states for deployment peer.
- deploymentId string
- The OCID of the deployment being referenced.
- deploymentPeer GetCollections Deployment Peers Deployment Peer Collection[] 
- The list of deployment_peer_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- displayName string
- An object's Display Name.
- filters
GetDeployment Peers Filter[] 
- state string
- Possible lifecycle states for deployment peer.
- deployment_id str
- The OCID of the deployment being referenced.
- deployment_peer_ Sequence[Getcollections Deployment Peers Deployment Peer Collection] 
- The list of deployment_peer_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- display_name str
- An object's Display Name.
- filters
Sequence[GetDeployment Peers Filter] 
- state str
- Possible lifecycle states for deployment peer.
- deploymentId String
- The OCID of the deployment being referenced.
- deploymentPeer List<Property Map>Collections 
- The list of deployment_peer_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- displayName String
- An object's Display Name.
- filters List<Property Map>
- state String
- Possible lifecycle states for deployment peer.
Supporting Types
GetDeploymentPeersDeploymentPeerCollection     
- Items
List<GetDeployment Peers Deployment Peer Collection Item> 
- An array of DeploymentPeers.
- Items
[]GetDeployment Peers Deployment Peer Collection Item 
- An array of DeploymentPeers.
- items
List<GetDeployment Peers Deployment Peer Collection Item> 
- An array of DeploymentPeers.
- items
GetDeployment Peers Deployment Peer Collection Item[] 
- An array of DeploymentPeers.
- items
Sequence[GetDeployment Peers Deployment Peer Collection Item] 
- An array of DeploymentPeers.
- items List<Property Map>
- An array of DeploymentPeers.
GetDeploymentPeersDeploymentPeerCollectionItem      
- AvailabilityDomain string
- The availability domain of a placement.
- DeploymentId string
- A unique Deployment identifier.
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- FaultDomain string
- The fault domain of a placement.
- PeerRole string
- The type of the deployment role.
- PeerType string
- The type of the deployment peer.
- Region string
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- State string
- A filter to return only the resources that match the 'lifecycleState' given.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeRole stringChanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- AvailabilityDomain string
- The availability domain of a placement.
- DeploymentId string
- A unique Deployment identifier.
- DisplayName string
- A filter to return only the resources that match the entire 'displayName' given.
- FaultDomain string
- The fault domain of a placement.
- PeerRole string
- The type of the deployment role.
- PeerType string
- The type of the deployment peer.
- Region string
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- State string
- A filter to return only the resources that match the 'lifecycleState' given.
- TimeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeRole stringChanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- TimeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- availabilityDomain String
- The availability domain of a placement.
- deploymentId String
- A unique Deployment identifier.
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- faultDomain String
- The fault domain of a placement.
- peerRole String
- The type of the deployment role.
- peerType String
- The type of the deployment peer.
- region String
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- state String
- A filter to return only the resources that match the 'lifecycleState' given.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeRole StringChanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- availabilityDomain string
- The availability domain of a placement.
- deploymentId string
- A unique Deployment identifier.
- displayName string
- A filter to return only the resources that match the entire 'displayName' given.
- faultDomain string
- The fault domain of a placement.
- peerRole string
- The type of the deployment role.
- peerType string
- The type of the deployment peer.
- region string
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- state string
- A filter to return only the resources that match the 'lifecycleState' given.
- timeCreated string
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeRole stringChanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated string
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- availability_domain str
- The availability domain of a placement.
- deployment_id str
- A unique Deployment identifier.
- display_name str
- A filter to return only the resources that match the entire 'displayName' given.
- fault_domain str
- The fault domain of a placement.
- peer_role str
- The type of the deployment role.
- peer_type str
- The type of the deployment peer.
- region str
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- state str
- A filter to return only the resources that match the 'lifecycleState' given.
- time_created str
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- time_role_ strchanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- time_updated str
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- availabilityDomain String
- The availability domain of a placement.
- deploymentId String
- A unique Deployment identifier.
- displayName String
- A filter to return only the resources that match the entire 'displayName' given.
- faultDomain String
- The fault domain of a placement.
- peerRole String
- The type of the deployment role.
- peerType String
- The type of the deployment peer.
- region String
- The name of the region. e.g.: us-ashburn-1 If the region is not provided, backend will default to the default region.
- state String
- A filter to return only the resources that match the 'lifecycleState' given.
- timeCreated String
- The time the resource was created. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeRole StringChanged 
- The time of the last role change. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
- timeUpdated String
- The time the resource was last updated. The format is defined by RFC3339, such as 2016-08-25T21:10:29.600Z.
GetDeploymentPeersFilter   
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.