published on Wednesday, Aug 19, 2026 by shirasakaren
published on Wednesday, Aug 19, 2026 by shirasakaren
Create BaremetalKeypair Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BaremetalKeypair(name: string, args: BaremetalKeypairArgs, opts?: CustomResourceOptions);@overload
def BaremetalKeypair(resource_name: str,
args: BaremetalKeypairArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BaremetalKeypair(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
public_key: Optional[str] = None)func NewBaremetalKeypair(ctx *Context, name string, args BaremetalKeypairArgs, opts ...ResourceOption) (*BaremetalKeypair, error)public BaremetalKeypair(string name, BaremetalKeypairArgs args, CustomResourceOptions? opts = null)
public BaremetalKeypair(String name, BaremetalKeypairArgs args)
public BaremetalKeypair(String name, BaremetalKeypairArgs args, CustomResourceOptions options)
type: biznetgio:BaremetalKeypair
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "biznetgio_baremetal_keypair" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BaremetalKeypairArgs
- 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 BaremetalKeypairArgs
- 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 BaremetalKeypairArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BaremetalKeypairArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BaremetalKeypairArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var baremetalKeypairResource = new Biznetgio.BaremetalKeypair("baremetalKeypairResource", new()
{
Name = "string",
PublicKey = "string",
});
example, err := biznetgio.NewBaremetalKeypair(ctx, "baremetalKeypairResource", &biznetgio.BaremetalKeypairArgs{
Name: pulumi.String("string"),
PublicKey: pulumi.String("string"),
})
resource "biznetgio_baremetal_keypair" "baremetalKeypairResource" {
lifecycle {
create_before_destroy = true
}
name = "string"
public_key = "string"
}
var baremetalKeypairResource = new BaremetalKeypair("baremetalKeypairResource", BaremetalKeypairArgs.builder()
.name("string")
.publicKey("string")
.build());
baremetal_keypair_resource = biznetgio.BaremetalKeypair("baremetalKeypairResource",
name="string",
public_key="string")
const baremetalKeypairResource = new biznetgio.BaremetalKeypair("baremetalKeypairResource", {
name: "string",
publicKey: "string",
});
type: biznetgio:BaremetalKeypair
properties:
name: string
publicKey: string
BaremetalKeypair Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BaremetalKeypair resource accepts the following input properties:
- name string
- Name of the keypair.
- public_
key string - When set, the keypair is imported via
POST /baremetals/keypairs/import. When empty, the keypair is generated server-side. Create-only, changing it replaces the keypair.
- name str
- Name of the keypair.
- public_
key str - When set, the keypair is imported via
POST /baremetals/keypairs/import. When empty, the keypair is generated server-side. Create-only, changing it replaces the keypair.
Outputs
All input properties are implicitly available as output properties. Additionally, the BaremetalKeypair resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Keypair
Id int - Keypair id in BiznetGIO.
- Private
Key string - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- Raw string
- Raw JSON of the keypair item from the list API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Keypair
Id int - Keypair id in BiznetGIO.
- Private
Key string - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- Raw string
- Raw JSON of the keypair item from the list API.
- id string
- The provider-assigned unique ID for this managed resource.
- keypair_
id number - Keypair id in BiznetGIO.
- private_
key string - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- raw string
- Raw JSON of the keypair item from the list API.
- id String
- The provider-assigned unique ID for this managed resource.
- keypair
Id Integer - Keypair id in BiznetGIO.
- private
Key String - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- raw String
- Raw JSON of the keypair item from the list API.
- id string
- The provider-assigned unique ID for this managed resource.
- keypair
Id number - Keypair id in BiznetGIO.
- private
Key string - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- raw string
- Raw JSON of the keypair item from the list API.
- id str
- The provider-assigned unique ID for this managed resource.
- keypair_
id int - Keypair id in BiznetGIO.
- private_
key str - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- raw str
- Raw JSON of the keypair item from the list API.
- id String
- The provider-assigned unique ID for this managed resource.
- keypair
Id Number - Keypair id in BiznetGIO.
- private
Key String - Private key from the creation response, when the API returns one. Only appears once; preserved across refreshes.
- raw String
- Raw JSON of the keypair item from the list API.
Look up Existing BaremetalKeypair Resource
Get an existing BaremetalKeypair 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>, opts?: CustomResourceOptions): BaremetalKeypair@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> BaremetalKeypairfunc GetBaremetalKeypair(ctx *Context, name string, id IDInput, state *BaremetalKeypairState, opts ...ResourceOption) (*BaremetalKeypair, error)public static BaremetalKeypair Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static BaremetalKeypair get(String name, Output<String> id, CustomResourceOptions options)resources: existingBaremetalKeypair: type: biznetgio:BaremetalKeypair get: id: ${id}import {
to = biznetgio_baremetal_keypair.example
id = "${id}"
}
- name string
- The unique name of the resulting resource.
- id Input<ID>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resulting resource.
- id str
- The unique provider ID of the resource to look up.
- 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 resulting resource.
- id IDInput
- The unique provider ID of the resource to look up.
- state BaremetalKeypairState
- Pass nil. This resource has no state arguments.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resulting resource.
- id Input<string>
- The unique provider ID of the resource to look up.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resulting resource.
- id Output<String>
- The unique provider ID of the resource to look up.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Package Details
- Repository
- biznetgio github.com/shirasakaren/pulumi-biznetgio
- License
- Apache-2.0
published on Wednesday, Aug 19, 2026 by shirasakaren