Oracle Cloud Infrastructure

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

getPeers

This data source provides the list of Peers in Oracle Cloud Infrastructure Blockchain service.

List Blockchain Platform Peers

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testPeers = Output.Create(Oci.Blockchain.GetPeers.InvokeAsync(new Oci.Blockchain.GetPeersArgs
        {
            BlockchainPlatformId = oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
            DisplayName = @var.Peer_display_name,
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := Blockchain.GetPeers(ctx, &blockchain.GetPeersArgs{
			BlockchainPlatformId: oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
			DisplayName:          pulumi.StringRef(_var.Peer_display_name),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_peers = oci.Blockchain.get_peers(blockchain_platform_id=oci_blockchain_blockchain_platform["test_blockchain_platform"]["id"],
    display_name=var["peer_display_name"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testPeers = oci.Blockchain.getPeers({
    blockchainPlatformId: oci_blockchain_blockchain_platform.test_blockchain_platform.id,
    displayName: _var.peer_display_name,
});

Coming soon!

Using getPeers

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 getPeers(args: GetPeersArgs, opts?: InvokeOptions): Promise<GetPeersResult>
function getPeersOutput(args: GetPeersOutputArgs, opts?: InvokeOptions): Output<GetPeersResult>
def get_peers(blockchain_platform_id: Optional[str] = None,
              display_name: Optional[str] = None,
              filters: Optional[Sequence[_blockchain.GetPeersFilter]] = None,
              opts: Optional[InvokeOptions] = None) -> GetPeersResult
def get_peers_output(blockchain_platform_id: Optional[pulumi.Input[str]] = None,
              display_name: Optional[pulumi.Input[str]] = None,
              filters: Optional[pulumi.Input[Sequence[pulumi.Input[_blockchain.GetPeersFilterArgs]]]] = None,
              opts: Optional[InvokeOptions] = None) -> Output[GetPeersResult]
func GetPeers(ctx *Context, args *GetPeersArgs, opts ...InvokeOption) (*GetPeersResult, error)
func GetPeersOutput(ctx *Context, args *GetPeersOutputArgs, opts ...InvokeOption) GetPeersResultOutput

> Note: This function is named GetPeers in the Go SDK.

public static class GetPeers 
{
    public static Task<GetPeersResult> InvokeAsync(GetPeersArgs args, InvokeOptions? opts = null)
    public static Output<GetPeersResult> Invoke(GetPeersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPeersResult> getPeers(GetPeersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: oci:Blockchain/getPeers:getPeers
  Arguments:
    # Arguments dictionary

The following arguments are supported:

BlockchainPlatformId string

Unique service identifier.

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

Filters List<GetPeersFilter>
BlockchainPlatformId string

Unique service identifier.

DisplayName string

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

Filters []GetPeersFilter
blockchainPlatformId String

Unique service identifier.

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

filters List<GetPeersFilter>
blockchainPlatformId string

Unique service identifier.

displayName string

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

filters GetPeersFilter[]
blockchain_platform_id str

Unique service identifier.

display_name str

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

filters GetPeersFilter]
blockchainPlatformId String

Unique service identifier.

displayName String

A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource

filters List<Property Map>

getPeers Result

The following output properties are available:

BlockchainPlatformId string
Id string

The provider-assigned unique ID for this managed resource.

PeerCollections List<GetPeersPeerCollection>

The list of peer_collection.

DisplayName string
Filters List<GetPeersFilter>
BlockchainPlatformId string
Id string

The provider-assigned unique ID for this managed resource.

PeerCollections []GetPeersPeerCollection

The list of peer_collection.

DisplayName string
Filters []GetPeersFilter
blockchainPlatformId String
id String

The provider-assigned unique ID for this managed resource.

peerCollections List<GetPeersPeerCollection>

The list of peer_collection.

displayName String
filters List<GetPeersFilter>
blockchainPlatformId string
id string

The provider-assigned unique ID for this managed resource.

peerCollections GetPeersPeerCollection[]

The list of peer_collection.

displayName string
filters GetPeersFilter[]
blockchain_platform_id str
id str

The provider-assigned unique ID for this managed resource.

peer_collections GetPeersPeerCollection]

The list of peer_collection.

display_name str
filters GetPeersFilter]
blockchainPlatformId String
id String

The provider-assigned unique ID for this managed resource.

peerCollections List<Property Map>

The list of peer_collection.

displayName String
filters List<Property Map>

Supporting Types

GetPeersFilter

Name string
Values List<string>
Regex bool
Name string
Values []string
Regex bool
name String
values List<String>
regex Boolean
name string
values string[]
regex boolean
name str
values Sequence[str]
regex bool
name String
values List<String>
regex Boolean

GetPeersPeerCollection

GetPeersPeerCollectionItem

Ad string

Availability Domain of peer

Alias string

peer alias

BlockchainPlatformId string

Unique service identifier.

Host string

Host on which the Peer exists

OcpuAllocationParam GetPeersPeerCollectionItemOcpuAllocationParam

OCPU allocation parameter

PeerKey string

peer identifier

Role string

Peer role

State string

The current state of the peer.

Ad string

Availability Domain of peer

Alias string

peer alias

BlockchainPlatformId string

Unique service identifier.

Host string

Host on which the Peer exists

OcpuAllocationParam GetPeersPeerCollectionItemOcpuAllocationParam

OCPU allocation parameter

PeerKey string

peer identifier

Role string

Peer role

State string

The current state of the peer.

ad String

Availability Domain of peer

alias String

peer alias

blockchainPlatformId String

Unique service identifier.

host String

Host on which the Peer exists

ocpuAllocationParam GetPeersPeerCollectionItemOcpuAllocationParam

OCPU allocation parameter

peerKey String

peer identifier

role String

Peer role

state String

The current state of the peer.

ad string

Availability Domain of peer

alias string

peer alias

blockchainPlatformId string

Unique service identifier.

host string

Host on which the Peer exists

ocpuAllocationParam GetPeersPeerCollectionItemOcpuAllocationParam

OCPU allocation parameter

peerKey string

peer identifier

role string

Peer role

state string

The current state of the peer.

ad str

Availability Domain of peer

alias str

peer alias

blockchain_platform_id str

Unique service identifier.

host str

Host on which the Peer exists

ocpu_allocation_param GetPeersPeerCollectionItemOcpuAllocationParam

OCPU allocation parameter

peer_key str

peer identifier

role str

Peer role

state str

The current state of the peer.

ad String

Availability Domain of peer

alias String

peer alias

blockchainPlatformId String

Unique service identifier.

host String

Host on which the Peer exists

ocpuAllocationParam Property Map

OCPU allocation parameter

peerKey String

peer identifier

role String

Peer role

state String

The current state of the peer.

GetPeersPeerCollectionItemOcpuAllocationParam

OcpuAllocationNumber double

Number of OCPU allocation

OcpuAllocationNumber float64

Number of OCPU allocation

ocpuAllocationNumber Double

Number of OCPU allocation

ocpuAllocationNumber number

Number of OCPU allocation

ocpu_allocation_number float

Number of OCPU allocation

ocpuAllocationNumber Number

Number of OCPU allocation

Package Details

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

This Pulumi package is based on the oci Terraform Provider.