1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Blockchain
  5. getOsns
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi

oci.Blockchain.getOsns

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 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: oci_blockchain_blockchain_platform.test_blockchain_platform.id,
        displayName: _var.osn_display_name,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_osns = oci.Blockchain.get_osns(blockchain_platform_id=oci_blockchain_blockchain_platform["test_blockchain_platform"]["id"],
        display_name=var["osn_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.GetOsns(ctx, &blockchain.GetOsnsArgs{
    			BlockchainPlatformId: oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
    			DisplayName:          pulumi.StringRef(_var.Osn_display_name),
    		}, 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 = oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
            DisplayName = @var.Osn_display_name,
        });
    
    });
    
    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(oci_blockchain_blockchain_platform.test_blockchain_platform().id())
                .displayName(var_.osn_display_name())
                .build());
    
        }
    }
    
    variables:
      testOsns:
        fn::invoke:
          Function: oci:Blockchain:getOsns
          Arguments:
            blockchainPlatformId: ${oci_blockchain_blockchain_platform.test_blockchain_platform.id}
            displayName: ${var.osn_display_name}
    

    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[_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]
    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:Blockchain/getOsns:getOsns
      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<GetOsnsFilter>
    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 []GetOsnsFilter
    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<GetOsnsFilter>
    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 GetOsnsFilter[]
    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 GetOsnsFilter]
    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>

    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 GetOsnsOsnCollection]
    The list of osn_collection.
    display_name str
    filters 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 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

    GetOsnsOsnCollection

    GetOsnsOsnCollectionItem

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

    GetOsnsOsnCollectionItemOcpuAllocationParam

    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
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.29.0 published on Thursday, Mar 28, 2024 by Pulumi