Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:Blockchain/getOsns:getOsns
arguments:
# arguments dictionary
The following arguments are supported:
- Blockchain
Platform stringId - 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
List<Get
Osns Filter>
- Blockchain
Platform stringId - 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
[]Get
Osns Filter
- blockchain
Platform StringId - 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
List<Get
Osns Filter>
- blockchain
Platform stringId - 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
Get
Osns 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[blockchain.
Get Osns Filter]
- blockchain
Platform StringId - 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 List<Property Map>
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
GetOsnsOsnCollectionItem
- Ad string
- Availability Domain of OSN
- Blockchain
Platform stringId - Unique service identifier.
- Ocpu
Allocation GetParam Osns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- Osn
Key string - OSN identifier
- State string
- The current state of the OSN.
- Ad string
- Availability Domain of OSN
- Blockchain
Platform stringId - Unique service identifier.
- Ocpu
Allocation GetParam Osns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- Osn
Key string - OSN identifier
- State string
- The current state of the OSN.
- ad String
- Availability Domain of OSN
- blockchain
Platform StringId - Unique service identifier.
- ocpu
Allocation GetParam Osns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- osn
Key String - OSN identifier
- state String
- The current state of the OSN.
- ad string
- Availability Domain of OSN
- blockchain
Platform stringId - Unique service identifier.
- ocpu
Allocation GetParam Osns Osn Collection Item Ocpu Allocation Param - OCPU allocation parameter
- osn
Key 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_ blockchain.param Get 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
- blockchain
Platform StringId - Unique service identifier.
- ocpu
Allocation Property MapParam - OCPU allocation parameter
- osn
Key String - OSN identifier
- state String
- The current state of the OSN.
GetOsnsOsnCollectionItemOcpuAllocationParam
- 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.