Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 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[_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)
public static Output<GetOsnsResult> getOsns(GetOsnsArgs args, InvokeOptions options)
fn::invoke:
function: oci:Blockchain/getOsns:getOsns
arguments:
# arguments dictionary
The following arguments are supported:
- Blockchain
Platform Id This property is required. string - Unique service identifier.
- Display
Name 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.
Osns Filter>
- Blockchain
Platform Id This property is required. string - Unique service identifier.
- Display
Name 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.
Osns Filter
- blockchain
Platform Id This property is required. String - Unique service identifier.
- display
Name 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.
Osns Filter>
- blockchain
Platform Id This property is required. string - Unique service identifier.
- display
Name 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.
Osns Filter[]
- 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.
Get Osns Filter]
- blockchain
Platform Id This property is required. String - Unique service identifier.
- display
Name 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.
getOsns Result
The following output properties are available:
- Blockchain
Platform stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Osn
Collections List<GetOsns Osn Collection> - The list of osn_collection.
- Display
Name string - Filters
List<Get
Osns Filter>
- Blockchain
Platform stringId - Id string
- The provider-assigned unique ID for this managed resource.
- Osn
Collections []GetOsns Osn Collection - The list of osn_collection.
- Display
Name string - Filters
[]Get
Osns Filter
- blockchain
Platform StringId - id String
- The provider-assigned unique ID for this managed resource.
- osn
Collections List<GetOsns Osn Collection> - The list of osn_collection.
- display
Name String - filters
List<Get
Osns Filter>
- blockchain
Platform stringId - id string
- The provider-assigned unique ID for this managed resource.
- osn
Collections GetOsns Osn Collection[] - The list of osn_collection.
- display
Name string - filters
Get
Osns Filter[]
- blockchain_
platform_ strid - id str
- The provider-assigned unique ID for this managed resource.
- osn_
collections Sequence[blockchain.Get Osns Osn Collection] - The list of osn_collection.
- display_
name str - filters
Sequence[blockchain.
Get Osns Filter]
- blockchain
Platform StringId - id String
- The provider-assigned unique ID for this managed resource.
- osn
Collections List<Property Map> - The list of osn_collection.
- display
Name String - filters List<Property Map>
Supporting Types
GetOsnsFilter
GetOsnsOsnCollection
- Items
This property is required. List<GetOsns Osn Collection Item>
- Items
This property is required. []GetOsns Osn Collection Item
- items
This property is required. List<GetOsns Osn Collection Item>
- items
This property is required. GetOsns Osn Collection Item[]
- items
This property is required. Sequence[blockchain.Get Osns Osn Collection Item]
- items
This property is required. List<Property Map>
GetOsnsOsnCollectionItem
- Ad
This property is required. string - Availability Domain of OSN
- Blockchain
Platform Id This property is required. string - Unique service identifier.
- Ocpu
Allocation Param This property is required. GetOsns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- Osn
Key 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
- Blockchain
Platform Id This property is required. string - Unique service identifier.
- Ocpu
Allocation Param This property is required. GetOsns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- Osn
Key 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
- blockchain
Platform Id This property is required. String - Unique service identifier.
- ocpu
Allocation Param This property is required. GetOsns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- osn
Key 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
- blockchain
Platform Id This property is required. string - Unique service identifier.
- ocpu
Allocation Param This property is required. GetOsns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- osn
Key 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.Get Osns Osn Collection Item Ocpu Allocation Param - 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
- blockchain
Platform Id This property is required. String - Unique service identifier.
- ocpu
Allocation Param This property is required. Property Map - OCPU allocation parameter
- osn
Key This property is required. String - OSN identifier
- state
This property is required. String - The current state of the OSN.
GetOsnsOsnCollectionItemOcpuAllocationParam
- Ocpu
Allocation Number This property is required. double - Number of OCPU allocation
- Ocpu
Allocation Number This property is required. float64 - Number of OCPU allocation
- ocpu
Allocation Number This property is required. Double - Number of OCPU allocation
- ocpu
Allocation Number This property is required. number - Number of OCPU allocation
- ocpu_
allocation_ number This property is required. float - Number of OCPU allocation
- ocpu
Allocation Number 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.