Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 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[_goldengate.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[_goldengate.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 dictionary
The following arguments are supported:
- Deployment
Id string - A unique Deployment identifier.
- Display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- Filters
List<Get
Deployment Peers Filter> - State string
- A filter to return only the resources that match the 'lifecycleState' given.
- Deployment
Id string - A unique Deployment identifier.
- Display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- Filters
[]Get
Deployment Peers Filter - State string
- A filter to return only the resources that match the 'lifecycleState' given.
- deployment
Id String - A unique Deployment identifier.
- display
Name String - A filter to return only the resources that match the entire 'displayName' given.
- filters
List<Get
Deployment Peers Filter> - state String
- A filter to return only the resources that match the 'lifecycleState' given.
- deployment
Id string - A unique Deployment identifier.
- display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- filters
Get
Deployment 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[goldengate.
Get Deployment Peers Filter] - state str
- A filter to return only the resources that match the 'lifecycleState' given.
- deployment
Id String - A unique Deployment identifier.
- display
Name 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:
- Deployment
Id string - The OCID of the deployment being referenced.
- Deployment
Peer List<GetCollections Deployment Peers Deployment Peer Collection> - The list of deployment_peer_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - An object's Display Name.
- Filters
List<Get
Deployment Peers Filter> - State string
- Possible lifecycle states for deployment peer.
- Deployment
Id string - The OCID of the deployment being referenced.
- Deployment
Peer []GetCollections Deployment Peers Deployment Peer Collection - The list of deployment_peer_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - An object's Display Name.
- Filters
[]Get
Deployment Peers Filter - State string
- Possible lifecycle states for deployment peer.
- deployment
Id String - The OCID of the deployment being referenced.
- deployment
Peer List<GetCollections Deployment Peers Deployment Peer Collection> - The list of deployment_peer_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - An object's Display Name.
- filters
List<Get
Deployment Peers Filter> - state String
- Possible lifecycle states for deployment peer.
- deployment
Id string - The OCID of the deployment being referenced.
- deployment
Peer GetCollections Deployment Peers Deployment Peer Collection[] - The list of deployment_peer_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - An object's Display Name.
- filters
Get
Deployment Peers Filter[] - state string
- Possible lifecycle states for deployment peer.
- deployment_
id str - The OCID of the deployment being referenced.
- deployment_
peer_ Sequence[goldengate.collections Get 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[goldengate.
Get Deployment Peers Filter] - state str
- Possible lifecycle states for deployment peer.
- deployment
Id String - The OCID of the deployment being referenced.
- deployment
Peer List<Property Map>Collections - The list of deployment_peer_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - An object's Display Name.
- filters List<Property Map>
- state String
- Possible lifecycle states for deployment peer.
Supporting Types
GetDeploymentPeersDeploymentPeerCollection
- Items
List<Get
Deployment Peers Deployment Peer Collection Item> - An array of DeploymentPeers.
- Items
[]Get
Deployment Peers Deployment Peer Collection Item - An array of DeploymentPeers.
- items
List<Get
Deployment Peers Deployment Peer Collection Item> - An array of DeploymentPeers.
- items
Get
Deployment Peers Deployment Peer Collection Item[] - An array of DeploymentPeers.
- items
Sequence[goldengate.
Get Deployment Peers Deployment Peer Collection Item] - An array of DeploymentPeers.
- items List<Property Map>
- An array of DeploymentPeers.
GetDeploymentPeersDeploymentPeerCollectionItem
- Availability
Domain string - The availability domain of a placement.
- Deployment
Id string - A unique Deployment identifier.
- Display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- Fault
Domain string - The fault domain of a placement.
- Peer
Role string - The type of the deployment role.
- Peer
Type 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.
- Time
Created string - The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - Time
Role stringChanged - The time of the last role change. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - Time
Updated string - The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- Availability
Domain string - The availability domain of a placement.
- Deployment
Id string - A unique Deployment identifier.
- Display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- Fault
Domain string - The fault domain of a placement.
- Peer
Role string - The type of the deployment role.
- Peer
Type 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.
- Time
Created string - The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - Time
Role stringChanged - The time of the last role change. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - Time
Updated string - The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- availability
Domain String - The availability domain of a placement.
- deployment
Id String - A unique Deployment identifier.
- display
Name String - A filter to return only the resources that match the entire 'displayName' given.
- fault
Domain String - The fault domain of a placement.
- peer
Role String - The type of the deployment role.
- peer
Type 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.
- time
Created String - The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Role StringChanged - The time of the last role change. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Updated String - The time the resource was last updated. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
.
- availability
Domain string - The availability domain of a placement.
- deployment
Id string - A unique Deployment identifier.
- display
Name string - A filter to return only the resources that match the entire 'displayName' given.
- fault
Domain string - The fault domain of a placement.
- peer
Role string - The type of the deployment role.
- peer
Type 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.
- time
Created string - The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Role stringChanged - The time of the last role change. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Updated 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
.
- availability
Domain String - The availability domain of a placement.
- deployment
Id String - A unique Deployment identifier.
- display
Name String - A filter to return only the resources that match the entire 'displayName' given.
- fault
Domain String - The fault domain of a placement.
- peer
Role String - The type of the deployment role.
- peer
Type 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.
- time
Created String - The time the resource was created. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Role StringChanged - The time of the last role change. The format is defined by RFC3339, such as
2016-08-25T21:10:29.600Z
. - time
Updated 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
oci
Terraform Provider.