oci.Blockchain.getOsn
Explore with Pulumi AI
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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testOsn = Oci.Blockchain.GetOsn.Invoke(new()
{
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
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.Blockchain.BlockchainFunctions;
import com.pulumi.oci.Blockchain.inputs.GetOsnArgs;
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 testOsn = BlockchainFunctions.getOsn(GetOsnArgs.builder()
.blockchainPlatformId(oci_blockchain_blockchain_platform.test_blockchain_platform().id())
.osnId(oci_blockchain_osn.test_osn().id())
.build());
}
}
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,
});
variables:
testOsn:
fn::invoke:
Function: oci:Blockchain:getOsn
Arguments:
blockchainPlatformId: ${oci_blockchain_blockchain_platform.test_blockchain_platform.id}
osnId: ${oci_blockchain_osn.test_osn.id}
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:
- Blockchain
Platform stringId Unique service identifier.
- Osn
Id string OSN identifier.
- Blockchain
Platform stringId Unique service identifier.
- Osn
Id string OSN identifier.
- blockchain
Platform StringId Unique service identifier.
- osn
Id String OSN identifier.
- blockchain
Platform stringId Unique service identifier.
- osn
Id string OSN identifier.
- blockchain_
platform_ strid Unique service identifier.
- osn_
id str OSN identifier.
- blockchain
Platform StringId Unique service identifier.
- osn
Id String OSN identifier.
getOsn Result
The following output properties are available:
- Ad string
Availability Domain of OSN
- Blockchain
Platform stringId - Id string
- Ocpu
Allocation List<GetParams Osn Ocpu Allocation Param> OCPU allocation parameter
- Osn
Id string - Osn
Key string OSN identifier
- State string
The current state of the OSN.
- Ad string
Availability Domain of OSN
- Blockchain
Platform stringId - Id string
- Ocpu
Allocation []GetParams Osn Ocpu Allocation Param OCPU allocation parameter
- Osn
Id string - Osn
Key string OSN identifier
- State string
The current state of the OSN.
- ad String
Availability Domain of OSN
- blockchain
Platform StringId - id String
- ocpu
Allocation List<GetParams Osn Ocpu Allocation Param> OCPU allocation parameter
- osn
Id String - osn
Key String OSN identifier
- state String
The current state of the OSN.
- ad string
Availability Domain of OSN
- blockchain
Platform stringId - id string
- ocpu
Allocation GetParams Osn Ocpu Allocation Param[] OCPU allocation parameter
- osn
Id string - osn
Key string OSN identifier
- state string
The current state of the OSN.
- ad str
Availability Domain of OSN
- blockchain_
platform_ strid - id str
- ocpu_
allocation_ Getparams Osn Ocpu Allocation Param] 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
- blockchain
Platform StringId - id String
- ocpu
Allocation List<Property Map>Params OCPU allocation parameter
- osn
Id String - osn
Key String OSN identifier
- state String
The current state of the OSN.
Supporting Types
GetOsnOcpuAllocationParam
- Ocpu
Allocation doubleNumber Number of OCPU allocation
- Ocpu
Allocation float64Number Number of OCPU allocation
- ocpu
Allocation DoubleNumber Number of OCPU allocation
- ocpu
Allocation numberNumber Number of OCPU allocation
- ocpu_
allocation_ floatnumber Number of OCPU allocation
- ocpu
Allocation NumberNumber Number of OCPU allocation
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
oci
Terraform Provider.