oci.Blockchain.Osn
Explore with Pulumi AI
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)
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
- Blockchain
Platform stringId Unique service identifier.
- Ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- Ad string
Availability Domain to place new OSN
- Blockchain
Platform stringId Unique service identifier.
- Ocpu
Allocation OsnParam Ocpu Allocation Param Args (Updatable) OCPU allocation parameter
- ad String
Availability Domain to place new OSN
- blockchain
Platform StringId Unique service identifier.
- ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- ad string
Availability Domain to place new OSN
- blockchain
Platform stringId Unique service identifier.
- ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- ad str
Availability Domain to place new OSN
- blockchain_
platform_ strid Unique service identifier.
- ocpu_
allocation_ Osnparam Ocpu Allocation Param Args (Updatable) OCPU allocation parameter
- ad String
Availability Domain to place new OSN
- blockchain
Platform StringId Unique service identifier.
- ocpu
Allocation Property MapParam (Updatable) OCPU allocation parameter
Outputs
All input properties are implicitly available as output properties. Additionally, the Osn resource produces the following output properties:
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.
- Ad string
Availability Domain to place new OSN
- Blockchain
Platform stringId Unique service identifier.
- Ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- Osn
Key string OSN identifier
- State string
The current state of the OSN.
- Ad string
Availability Domain to place new OSN
- Blockchain
Platform stringId Unique service identifier.
- Ocpu
Allocation OsnParam Ocpu Allocation Param Args (Updatable) OCPU allocation parameter
- Osn
Key string OSN identifier
- State string
The current state of the OSN.
- ad String
Availability Domain to place new OSN
- blockchain
Platform StringId Unique service identifier.
- ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- osn
Key String OSN identifier
- state String
The current state of the OSN.
- ad string
Availability Domain to place new OSN
- blockchain
Platform stringId Unique service identifier.
- ocpu
Allocation OsnParam Ocpu Allocation Param (Updatable) OCPU allocation parameter
- osn
Key string OSN identifier
- state string
The current state of the OSN.
- ad str
Availability Domain to place new OSN
- blockchain_
platform_ strid Unique service identifier.
- ocpu_
allocation_ Osnparam Ocpu Allocation Param Args (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
- blockchain
Platform StringId Unique service identifier.
- ocpu
Allocation Property MapParam (Updatable) OCPU allocation parameter
- osn
Key String OSN identifier
- state String
The current state of the OSN.
Supporting Types
OsnOcpuAllocationParam, OsnOcpuAllocationParamArgs
- Ocpu
Allocation doubleNumber (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 float64Number (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 DoubleNumber (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 numberNumber (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_ floatnumber (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 NumberNumber (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.