Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.Blockchain.getOsns
Explore with Pulumi AI
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,
});
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)
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
	})
}
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,
    });
});
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());
    }
}
variables:
  testOsns:
    fn::invoke:
      function: oci:Blockchain:getOsns
      arguments:
        blockchainPlatformId: ${testBlockchainPlatform.id}
        displayName: ${osnDisplayName}
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>def get_osns(blockchain_platform_id: Optional[str] = None,
             display_name: Optional[str] = None,
             filters: Optional[Sequence[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[GetOsnsFilterArgs]]]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetOsnsResult]func GetOsns(ctx *Context, args *GetOsnsArgs, opts ...InvokeOption) (*GetOsnsResult, error)
func GetOsnsOutput(ctx *Context, args *GetOsnsOutputArgs, opts ...InvokeOption) GetOsnsResultOutput> 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)
}public static CompletableFuture<GetOsnsResult> getOsns(GetOsnsArgs args, InvokeOptions options)
public static Output<GetOsnsResult> getOsns(GetOsnsArgs args, InvokeOptions options)
fn::invoke:
  function: oci:Blockchain/getOsns:getOsns
  arguments:
    # arguments dictionaryThe following arguments are supported:
- BlockchainPlatform stringId 
- 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<GetOsns Filter> 
- BlockchainPlatform stringId 
- Unique service identifier.
- DisplayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- Filters
[]GetOsns Filter 
- blockchainPlatform StringId 
- 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<GetOsns Filter> 
- blockchainPlatform stringId 
- Unique service identifier.
- displayName string
- A user-friendly name. Does not have to be unique, and it's changeable. Example: My new resource
- filters
GetOsns Filter[] 
- blockchain_platform_ strid 
- 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
Sequence[GetOsns Filter] 
- blockchainPlatform StringId 
- 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>
getOsns Result
The following output properties are available:
- BlockchainPlatform stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- OsnCollections List<GetOsns Osn Collection> 
- The list of osn_collection.
- DisplayName string
- Filters
List<GetOsns Filter> 
- BlockchainPlatform stringId 
- Id string
- The provider-assigned unique ID for this managed resource.
- OsnCollections []GetOsns Osn Collection 
- The list of osn_collection.
- DisplayName string
- Filters
[]GetOsns Filter 
- blockchainPlatform StringId 
- id String
- The provider-assigned unique ID for this managed resource.
- osnCollections List<GetOsns Osn Collection> 
- The list of osn_collection.
- displayName String
- filters
List<GetOsns Filter> 
- blockchainPlatform stringId 
- id string
- The provider-assigned unique ID for this managed resource.
- osnCollections GetOsns Osn Collection[] 
- The list of osn_collection.
- displayName string
- filters
GetOsns Filter[] 
- blockchain_platform_ strid 
- id str
- The provider-assigned unique ID for this managed resource.
- osn_collections Sequence[GetOsns Osn Collection] 
- The list of osn_collection.
- display_name str
- filters
Sequence[GetOsns Filter] 
- blockchainPlatform StringId 
- 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  
GetOsnsOsnCollection   
GetOsnsOsnCollectionItem    
- Ad string
- Availability Domain of OSN
- BlockchainPlatform stringId 
- Unique service identifier.
- OcpuAllocation GetParam Osns Osn Collection Item Ocpu Allocation Param 
- OCPU allocation parameter
- OsnKey string
- OSN identifier
- State string
- The current state of the OSN.
- Ad string
- Availability Domain of OSN
- BlockchainPlatform stringId 
- Unique service identifier.
- OcpuAllocation GetParam Osns Osn Collection Item Ocpu Allocation Param 
- OCPU allocation parameter
- OsnKey string
- OSN identifier
- State string
- The current state of the OSN.
- ad String
- Availability Domain of OSN
- blockchainPlatform StringId 
- Unique service identifier.
- ocpuAllocation GetParam Osns Osn Collection Item Ocpu Allocation Param 
- OCPU allocation parameter
- osnKey String
- OSN identifier
- state String
- The current state of the OSN.
- ad string
- Availability Domain of OSN
- blockchainPlatform stringId 
- Unique service identifier.
- ocpuAllocation GetParam Osns Osn Collection Item Ocpu Allocation Param 
- OCPU allocation parameter
- osnKey string
- OSN identifier
- state string
- The current state of the OSN.
- ad str
- Availability Domain of OSN
- blockchain_platform_ strid 
- Unique service identifier.
- ocpu_allocation_ Getparam Osns Osn Collection Item Ocpu Allocation Param 
- OCPU allocation parameter
- osn_key str
- OSN identifier
- state str
- The current state of the OSN.
- ad String
- Availability Domain of OSN
- blockchainPlatform StringId 
- Unique service identifier.
- ocpuAllocation Property MapParam 
- OCPU allocation parameter
- osnKey String
- OSN identifier
- state String
- The current state of the OSN.
GetOsnsOsnCollectionItemOcpuAllocationParam       
- OcpuAllocation doubleNumber 
- Number of OCPU allocation
- OcpuAllocation float64Number 
- Number of OCPU allocation
- ocpuAllocation DoubleNumber 
- Number of OCPU allocation
- ocpuAllocation numberNumber 
- Number of OCPU allocation
- ocpu_allocation_ floatnumber 
- Number of OCPU allocation
- ocpuAllocation NumberNumber 
- Number of OCPU allocation
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ociTerraform Provider.