1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. Blockchain
  5. Osn
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

oci.Blockchain.Osn

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.16.1 published on Wednesday, Nov 22, 2023 by Pulumi

    This resource provides the Osn resource in Oracle Cloud Infrastructure Blockchain service.

    Create Blockchain Platform Osn

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testOsn = new Oci.Blockchain.Osn("testOsn", new()
        {
            Ad = @var.Osn_ad,
            BlockchainPlatformId = oci_blockchain_blockchain_platform.Test_blockchain_platform.Id,
            OcpuAllocationParam = new Oci.Blockchain.Inputs.OsnOcpuAllocationParamArgs
            {
                OcpuAllocationNumber = @var.Osn_ocpu_allocation_param_ocpu_allocation_number,
            },
        });
    
    });
    
    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.NewOsn(ctx, "testOsn", &Blockchain.OsnArgs{
    			Ad:                   pulumi.Any(_var.Osn_ad),
    			BlockchainPlatformId: pulumi.Any(oci_blockchain_blockchain_platform.Test_blockchain_platform.Id),
    			OcpuAllocationParam: &blockchain.OsnOcpuAllocationParamArgs{
    				OcpuAllocationNumber: pulumi.Any(_var.Osn_ocpu_allocation_param_ocpu_allocation_number),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.Blockchain.Osn;
    import com.pulumi.oci.Blockchain.OsnArgs;
    import com.pulumi.oci.Blockchain.inputs.OsnOcpuAllocationParamArgs;
    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) {
            var testOsn = new Osn("testOsn", OsnArgs.builder()        
                .ad(var_.osn_ad())
                .blockchainPlatformId(oci_blockchain_blockchain_platform.test_blockchain_platform().id())
                .ocpuAllocationParam(OsnOcpuAllocationParamArgs.builder()
                    .ocpuAllocationNumber(var_.osn_ocpu_allocation_param_ocpu_allocation_number())
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_oci as oci
    
    test_osn = oci.blockchain.Osn("testOsn",
        ad=var["osn_ad"],
        blockchain_platform_id=oci_blockchain_blockchain_platform["test_blockchain_platform"]["id"],
        ocpu_allocation_param=oci.blockchain.OsnOcpuAllocationParamArgs(
            ocpu_allocation_number=var["osn_ocpu_allocation_param_ocpu_allocation_number"],
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testOsn = new oci.blockchain.Osn("testOsn", {
        ad: _var.osn_ad,
        blockchainPlatformId: oci_blockchain_blockchain_platform.test_blockchain_platform.id,
        ocpuAllocationParam: {
            ocpuAllocationNumber: _var.osn_ocpu_allocation_param_ocpu_allocation_number,
        },
    });
    
    resources:
      testOsn:
        type: oci:Blockchain:Osn
        properties:
          #Required
          ad: ${var.osn_ad}
          blockchainPlatformId: ${oci_blockchain_blockchain_platform.test_blockchain_platform.id}
          ocpuAllocationParam:
            ocpuAllocationNumber: ${var.osn_ocpu_allocation_param_ocpu_allocation_number}
    

    Create Osn Resource

    new Osn(name: string, args: OsnArgs, opts?: CustomResourceOptions);
    @overload
    def Osn(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            ad: Optional[str] = None,
            blockchain_platform_id: Optional[str] = None,
            ocpu_allocation_param: Optional[_blockchain.OsnOcpuAllocationParamArgs] = None)
    @overload
    def Osn(resource_name: str,
            args: OsnArgs,
            opts: Optional[ResourceOptions] = None)
    func NewOsn(ctx *Context, name string, args OsnArgs, opts ...ResourceOption) (*Osn, error)
    public Osn(string name, OsnArgs args, CustomResourceOptions? opts = null)
    public Osn(String name, OsnArgs args)
    public Osn(String name, OsnArgs args, CustomResourceOptions options)
    
    type: oci:Blockchain:Osn
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args OsnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args OsnArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args OsnArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OsnArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OsnArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Osn Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Osn resource accepts the following input properties:

    Ad string

    Availability Domain to place new OSN

    BlockchainPlatformId string

    Unique service identifier.

    OcpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    Ad string

    Availability Domain to place new OSN

    BlockchainPlatformId string

    Unique service identifier.

    OcpuAllocationParam OsnOcpuAllocationParamArgs

    (Updatable) OCPU allocation parameter

    ad String

    Availability Domain to place new OSN

    blockchainPlatformId String

    Unique service identifier.

    ocpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    ad string

    Availability Domain to place new OSN

    blockchainPlatformId string

    Unique service identifier.

    ocpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    ad str

    Availability Domain to place new OSN

    blockchain_platform_id str

    Unique service identifier.

    ocpu_allocation_param OsnOcpuAllocationParamArgs

    (Updatable) OCPU allocation parameter

    ad String

    Availability Domain to place new OSN

    blockchainPlatformId String

    Unique service identifier.

    ocpuAllocationParam Property Map

    (Updatable) OCPU allocation parameter

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Osn resource produces the following output properties:

    Id string

    The provider-assigned unique ID for this managed resource.

    OsnKey string

    OSN identifier

    State string

    The current state of the OSN.

    Id string

    The provider-assigned unique ID for this managed resource.

    OsnKey string

    OSN identifier

    State string

    The current state of the OSN.

    id String

    The provider-assigned unique ID for this managed resource.

    osnKey String

    OSN identifier

    state String

    The current state of the OSN.

    id string

    The provider-assigned unique ID for this managed resource.

    osnKey string

    OSN identifier

    state string

    The current state of the OSN.

    id str

    The provider-assigned unique ID for this managed resource.

    osn_key str

    OSN identifier

    state str

    The current state of the OSN.

    id String

    The provider-assigned unique ID for this managed resource.

    osnKey String

    OSN identifier

    state String

    The current state of the OSN.

    Look up Existing Osn Resource

    Get an existing Osn resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: OsnState, opts?: CustomResourceOptions): Osn
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ad: Optional[str] = None,
            blockchain_platform_id: Optional[str] = None,
            ocpu_allocation_param: Optional[_blockchain.OsnOcpuAllocationParamArgs] = None,
            osn_key: Optional[str] = None,
            state: Optional[str] = None) -> Osn
    func GetOsn(ctx *Context, name string, id IDInput, state *OsnState, opts ...ResourceOption) (*Osn, error)
    public static Osn Get(string name, Input<string> id, OsnState? state, CustomResourceOptions? opts = null)
    public static Osn get(String name, Output<String> id, OsnState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Ad string

    Availability Domain to place new OSN

    BlockchainPlatformId string

    Unique service identifier.

    OcpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    OsnKey string

    OSN identifier

    State string

    The current state of the OSN.

    Ad string

    Availability Domain to place new OSN

    BlockchainPlatformId string

    Unique service identifier.

    OcpuAllocationParam OsnOcpuAllocationParamArgs

    (Updatable) OCPU allocation parameter

    OsnKey string

    OSN identifier

    State string

    The current state of the OSN.

    ad String

    Availability Domain to place new OSN

    blockchainPlatformId String

    Unique service identifier.

    ocpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    osnKey String

    OSN identifier

    state String

    The current state of the OSN.

    ad string

    Availability Domain to place new OSN

    blockchainPlatformId string

    Unique service identifier.

    ocpuAllocationParam OsnOcpuAllocationParam

    (Updatable) OCPU allocation parameter

    osnKey string

    OSN identifier

    state string

    The current state of the OSN.

    ad str

    Availability Domain to place new OSN

    blockchain_platform_id str

    Unique service identifier.

    ocpu_allocation_param OsnOcpuAllocationParamArgs

    (Updatable) OCPU allocation parameter

    osn_key str

    OSN identifier

    state str

    The current state of the OSN.

    ad String

    Availability Domain to place new OSN

    blockchainPlatformId String

    Unique service identifier.

    ocpuAllocationParam Property Map

    (Updatable) OCPU allocation parameter

    osnKey String

    OSN identifier

    state String

    The current state of the OSN.

    Supporting Types

    OsnOcpuAllocationParam, OsnOcpuAllocationParamArgs

    OcpuAllocationNumber double

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    OcpuAllocationNumber float64

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ocpuAllocationNumber Double

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ocpuAllocationNumber number

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ocpu_allocation_number float

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    ocpuAllocationNumber Number

    (Updatable) Number of OCPU allocation

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Import

    Osns can be imported using the id, e.g.

     $ pulumi import oci:Blockchain/osn:Osn test_osn "blockchainPlatforms/{blockchainPlatformId}/osns/{osnId}"
    

    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.16.1 published on Wednesday, Nov 22, 2023 by Pulumi