Oracle Cloud Infrastructure

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

getOsn

This data source provides details about a specific Osn resource in Oracle Cloud Infrastructure Blockchain service.

Gets information about an OSN identified by the specific id

Example Usage

using Pulumi;
using Oci = Pulumi.Oci;

class MyStack : Stack
{
    public MyStack()
    {
        var testOsn = Output.Create(Oci.Blockchain.GetOsn.InvokeAsync(new Oci.Blockchain.GetOsnArgs
        {
            BlockchainPlatformId = oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
            OsnId = oci_blockchain_osn.Test_osn.Id,
        }));
    }

}
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.GetOsn(ctx, &blockchain.GetOsnArgs{
			BlockchainPlatformId: oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
			OsnId:                oci_blockchain_osn.Test_osn.Id,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_oci as oci

test_osn = oci.Blockchain.get_osn(blockchain_platform_id=oci_blockchain_blockchain_platform["test_blockchain_platform"]["id"],
    osn_id=oci_blockchain_osn["test_osn"]["id"])
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOsn = oci.Blockchain.getOsn({
    blockchainPlatformId: oci_blockchain_blockchain_platform.test_blockchain_platform.id,
    osnId: oci_blockchain_osn.test_osn.id,
});

Coming soon!

Using getOsn

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 getOsn(args: GetOsnArgs, opts?: InvokeOptions): Promise<GetOsnResult>
function getOsnOutput(args: GetOsnOutputArgs, opts?: InvokeOptions): Output<GetOsnResult>
def get_osn(blockchain_platform_id: Optional[str] = None,
            osn_id: Optional[str] = None,
            opts: Optional[InvokeOptions] = None) -> GetOsnResult
def get_osn_output(blockchain_platform_id: Optional[pulumi.Input[str]] = None,
            osn_id: Optional[pulumi.Input[str]] = None,
            opts: Optional[InvokeOptions] = None) -> Output[GetOsnResult]
func GetOsn(ctx *Context, args *GetOsnArgs, opts ...InvokeOption) (*GetOsnResult, error)
func GetOsnOutput(ctx *Context, args *GetOsnOutputArgs, opts ...InvokeOption) GetOsnResultOutput

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

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

The following arguments are supported:

BlockchainPlatformId string

Unique service identifier.

OsnId string

OSN identifier.

BlockchainPlatformId string

Unique service identifier.

OsnId string

OSN identifier.

blockchainPlatformId String

Unique service identifier.

osnId String

OSN identifier.

blockchainPlatformId string

Unique service identifier.

osnId string

OSN identifier.

blockchain_platform_id str

Unique service identifier.

osn_id str

OSN identifier.

blockchainPlatformId String

Unique service identifier.

osnId String

OSN identifier.

getOsn Result

The following output properties are available:

Ad string

Availability Domain of OSN

BlockchainPlatformId string
Id string
OcpuAllocationParams List<GetOsnOcpuAllocationParam>

OCPU allocation parameter

OsnId string
OsnKey string

OSN identifier

State string

The current state of the OSN.

Ad string

Availability Domain of OSN

BlockchainPlatformId string
Id string
OcpuAllocationParams []GetOsnOcpuAllocationParam

OCPU allocation parameter

OsnId string
OsnKey string

OSN identifier

State string

The current state of the OSN.

ad String

Availability Domain of OSN

blockchainPlatformId String
id String
ocpuAllocationParams List<GetOsnOcpuAllocationParam>

OCPU allocation parameter

osnId String
osnKey String

OSN identifier

state String

The current state of the OSN.

ad string

Availability Domain of OSN

blockchainPlatformId string
id string
ocpuAllocationParams GetOsnOcpuAllocationParam[]

OCPU allocation parameter

osnId string
osnKey string

OSN identifier

state string

The current state of the OSN.

ad str

Availability Domain of OSN

blockchain_platform_id str
id str
ocpu_allocation_params GetOsnOcpuAllocationParam]

OCPU allocation parameter

osn_id str
osn_key str

OSN identifier

state str

The current state of the OSN.

ad String

Availability Domain of OSN

blockchainPlatformId String
id String
ocpuAllocationParams List<Property Map>

OCPU allocation parameter

osnId String
osnKey String

OSN identifier

state String

The current state of the OSN.

Supporting Types

GetOsnOcpuAllocationParam

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.