1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Blockchain
  5. getOsns
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

oci.Blockchain.getOsns

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi

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

List Blockchain Platform OSNs

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testOsns = oci.Blockchain.getOsns({
    blockchainPlatformId: testBlockchainPlatform.id,
    displayName: osnDisplayName,
});
Copy
import pulumi
import pulumi_oci as oci

test_osns = oci.Blockchain.get_osns(blockchain_platform_id=test_blockchain_platform["id"],
    display_name=osn_display_name)
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := blockchain.GetOsns(ctx, &blockchain.GetOsnsArgs{
			BlockchainPlatformId: testBlockchainPlatform.Id,
			DisplayName:          pulumi.StringRef(osnDisplayName),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;

return await Deployment.RunAsync(() => 
{
    var testOsns = Oci.Blockchain.GetOsns.Invoke(new()
    {
        BlockchainPlatformId = testBlockchainPlatform.Id,
        DisplayName = osnDisplayName,
    });

});
Copy
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.GetOsnsArgs;
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 testOsns = BlockchainFunctions.getOsns(GetOsnsArgs.builder()
            .blockchainPlatformId(testBlockchainPlatform.id())
            .displayName(osnDisplayName)
            .build());

    }
}
Copy
variables:
  testOsns:
    fn::invoke:
      function: oci:Blockchain:getOsns
      arguments:
        blockchainPlatformId: ${testBlockchainPlatform.id}
        displayName: ${osnDisplayName}
Copy

Using getOsns

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 getOsns(args: GetOsnsArgs, opts?: InvokeOptions): Promise<GetOsnsResult>
function getOsnsOutput(args: GetOsnsOutputArgs, opts?: InvokeOptions): Output<GetOsnsResult>
Copy
def get_osns(blockchain_platform_id: Optional[str] = None,
             display_name: Optional[str] = None,
             filters: Optional[Sequence[_blockchain.GetOsnsFilter]] = None,
             opts: Optional[InvokeOptions] = None) -> GetOsnsResult
def get_osns_output(blockchain_platform_id: Optional[pulumi.Input[str]] = None,
             display_name: Optional[pulumi.Input[str]] = None,
             filters: Optional[pulumi.Input[Sequence[pulumi.Input[_blockchain.GetOsnsFilterArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetOsnsResult]
Copy
func GetOsns(ctx *Context, args *GetOsnsArgs, opts ...InvokeOption) (*GetOsnsResult, error)
func GetOsnsOutput(ctx *Context, args *GetOsnsOutputArgs, opts ...InvokeOption) GetOsnsResultOutput
Copy

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

public static class GetOsns 
{
    public static Task<GetOsnsResult> InvokeAsync(GetOsnsArgs args, InvokeOptions? opts = null)
    public static Output<GetOsnsResult> Invoke(GetOsnsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOsnsResult> getOsns(GetOsnsArgs args, InvokeOptions options)
public static Output<GetOsnsResult> getOsns(GetOsnsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:Blockchain/getOsns:getOsns
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

BlockchainPlatformId This property is required. 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 Changes to this property will trigger replacement. List<GetOsnsFilter>
BlockchainPlatformId This property is required. 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 Changes to this property will trigger replacement. []GetOsnsFilter
blockchainPlatformId This property is required. 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 Changes to this property will trigger replacement. List<GetOsnsFilter>
blockchainPlatformId This property is required. 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 Changes to this property will trigger replacement. GetOsnsFilter[]
blockchain_platform_id This property is required. 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 Changes to this property will trigger replacement. Sequence[blockchain.GetOsnsFilter]
blockchainPlatformId This property is required. 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 Changes to this property will trigger replacement. List<Property Map>

getOsns Result

The following output properties are available:

BlockchainPlatformId string
Id string
The provider-assigned unique ID for this managed resource.
OsnCollections List<GetOsnsOsnCollection>
The list of osn_collection.
DisplayName string
Filters List<GetOsnsFilter>
BlockchainPlatformId string
Id string
The provider-assigned unique ID for this managed resource.
OsnCollections []GetOsnsOsnCollection
The list of osn_collection.
DisplayName string
Filters []GetOsnsFilter
blockchainPlatformId String
id String
The provider-assigned unique ID for this managed resource.
osnCollections List<GetOsnsOsnCollection>
The list of osn_collection.
displayName String
filters List<GetOsnsFilter>
blockchainPlatformId string
id string
The provider-assigned unique ID for this managed resource.
osnCollections GetOsnsOsnCollection[]
The list of osn_collection.
displayName string
filters GetOsnsFilter[]
blockchain_platform_id str
id str
The provider-assigned unique ID for this managed resource.
osn_collections Sequence[blockchain.GetOsnsOsnCollection]
The list of osn_collection.
display_name str
filters Sequence[blockchain.GetOsnsFilter]
blockchainPlatformId String
id String
The provider-assigned unique ID for this managed resource.
osnCollections List<Property Map>
The list of osn_collection.
displayName String
filters List<Property Map>

Supporting Types

GetOsnsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetOsnsOsnCollection

Items This property is required. List<GetOsnsOsnCollectionItem>
Items This property is required. []GetOsnsOsnCollectionItem
items This property is required. List<GetOsnsOsnCollectionItem>
items This property is required. GetOsnsOsnCollectionItem[]
items This property is required. List<Property Map>

GetOsnsOsnCollectionItem

Ad This property is required. string
Availability Domain of OSN
BlockchainPlatformId This property is required. string
Unique service identifier.
OcpuAllocationParam This property is required. GetOsnsOsnCollectionItemOcpuAllocationParam
OCPU allocation parameter
OsnKey This property is required. string
OSN identifier
State This property is required. string
The current state of the OSN.
Ad This property is required. string
Availability Domain of OSN
BlockchainPlatformId This property is required. string
Unique service identifier.
OcpuAllocationParam This property is required. GetOsnsOsnCollectionItemOcpuAllocationParam
OCPU allocation parameter
OsnKey This property is required. string
OSN identifier
State This property is required. string
The current state of the OSN.
ad This property is required. String
Availability Domain of OSN
blockchainPlatformId This property is required. String
Unique service identifier.
ocpuAllocationParam This property is required. GetOsnsOsnCollectionItemOcpuAllocationParam
OCPU allocation parameter
osnKey This property is required. String
OSN identifier
state This property is required. String
The current state of the OSN.
ad This property is required. string
Availability Domain of OSN
blockchainPlatformId This property is required. string
Unique service identifier.
ocpuAllocationParam This property is required. GetOsnsOsnCollectionItemOcpuAllocationParam
OCPU allocation parameter
osnKey This property is required. string
OSN identifier
state This property is required. string
The current state of the OSN.
ad This property is required. str
Availability Domain of OSN
blockchain_platform_id This property is required. str
Unique service identifier.
ocpu_allocation_param This property is required. blockchain.GetOsnsOsnCollectionItemOcpuAllocationParam
OCPU allocation parameter
osn_key This property is required. str
OSN identifier
state This property is required. str
The current state of the OSN.
ad This property is required. String
Availability Domain of OSN
blockchainPlatformId This property is required. String
Unique service identifier.
ocpuAllocationParam This property is required. Property Map
OCPU allocation parameter
osnKey This property is required. String
OSN identifier
state This property is required. String
The current state of the OSN.

GetOsnsOsnCollectionItemOcpuAllocationParam

OcpuAllocationNumber This property is required. double
Number of OCPU allocation
OcpuAllocationNumber This property is required. float64
Number of OCPU allocation
ocpuAllocationNumber This property is required. Double
Number of OCPU allocation
ocpuAllocationNumber This property is required. number
Number of OCPU allocation
ocpu_allocation_number This property is required. float
Number of OCPU allocation
ocpuAllocationNumber This property is required. Number
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.
Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi