openstack.keymanager.OrderV1
Explore with Pulumi AI
Manages a V1 Barbican order resource within OpenStack.
Example Usage
Symmetric key order
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const order1 = new openstack.keymanager.OrderV1("order_1", {
type: "key",
meta: {
algorithm: "aes",
bitLength: 256,
name: "mysecret",
mode: "cbc",
},
});
import pulumi
import pulumi_openstack as openstack
order1 = openstack.keymanager.OrderV1("order_1",
type="key",
meta={
"algorithm": "aes",
"bit_length": 256,
"name": "mysecret",
"mode": "cbc",
})
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/keymanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := keymanager.NewOrderV1(ctx, "order_1", &keymanager.OrderV1Args{
Type: pulumi.String("key"),
Meta: &keymanager.OrderV1MetaArgs{
Algorithm: pulumi.String("aes"),
BitLength: pulumi.Int(256),
Name: pulumi.String("mysecret"),
Mode: pulumi.String("cbc"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var order1 = new OpenStack.KeyManager.OrderV1("order_1", new()
{
Type = "key",
Meta = new OpenStack.KeyManager.Inputs.OrderV1MetaArgs
{
Algorithm = "aes",
BitLength = 256,
Name = "mysecret",
Mode = "cbc",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.keymanager.OrderV1;
import com.pulumi.openstack.keymanager.OrderV1Args;
import com.pulumi.openstack.keymanager.inputs.OrderV1MetaArgs;
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 order1 = new OrderV1("order1", OrderV1Args.builder()
.type("key")
.meta(OrderV1MetaArgs.builder()
.algorithm("aes")
.bitLength(256)
.name("mysecret")
.mode("cbc")
.build())
.build());
}
}
resources:
order1:
type: openstack:keymanager:OrderV1
name: order_1
properties:
type: key
meta:
algorithm: aes
bitLength: 256
name: mysecret
mode: cbc
Asymmetric key pair order
import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const order1 = new openstack.keymanager.OrderV1("order_1", {
type: "asymmetric",
meta: {
algorithm: "rsa",
bitLength: 4096,
name: "mysecret",
},
});
import pulumi
import pulumi_openstack as openstack
order1 = openstack.keymanager.OrderV1("order_1",
type="asymmetric",
meta={
"algorithm": "rsa",
"bit_length": 4096,
"name": "mysecret",
})
package main
import (
"github.com/pulumi/pulumi-openstack/sdk/v5/go/openstack/keymanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := keymanager.NewOrderV1(ctx, "order_1", &keymanager.OrderV1Args{
Type: pulumi.String("asymmetric"),
Meta: &keymanager.OrderV1MetaArgs{
Algorithm: pulumi.String("rsa"),
BitLength: pulumi.Int(4096),
Name: pulumi.String("mysecret"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using OpenStack = Pulumi.OpenStack;
return await Deployment.RunAsync(() =>
{
var order1 = new OpenStack.KeyManager.OrderV1("order_1", new()
{
Type = "asymmetric",
Meta = new OpenStack.KeyManager.Inputs.OrderV1MetaArgs
{
Algorithm = "rsa",
BitLength = 4096,
Name = "mysecret",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.openstack.keymanager.OrderV1;
import com.pulumi.openstack.keymanager.OrderV1Args;
import com.pulumi.openstack.keymanager.inputs.OrderV1MetaArgs;
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 order1 = new OrderV1("order1", OrderV1Args.builder()
.type("asymmetric")
.meta(OrderV1MetaArgs.builder()
.algorithm("rsa")
.bitLength(4096)
.name("mysecret")
.build())
.build());
}
}
resources:
order1:
type: openstack:keymanager:OrderV1
name: order_1
properties:
type: asymmetric
meta:
algorithm: rsa
bitLength: 4096
name: mysecret
Create OrderV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OrderV1(name: string, args: OrderV1Args, opts?: CustomResourceOptions);
@overload
def OrderV1(resource_name: str,
args: OrderV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def OrderV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
meta: Optional[OrderV1MetaArgs] = None,
type: Optional[str] = None,
region: Optional[str] = None)
func NewOrderV1(ctx *Context, name string, args OrderV1Args, opts ...ResourceOption) (*OrderV1, error)
public OrderV1(string name, OrderV1Args args, CustomResourceOptions? opts = null)
public OrderV1(String name, OrderV1Args args)
public OrderV1(String name, OrderV1Args args, CustomResourceOptions options)
type: openstack:keymanager:OrderV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args OrderV1Args
- 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 OrderV1Args
- 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 OrderV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OrderV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OrderV1Args
- 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 orderV1Resource = new OpenStack.KeyManager.OrderV1("orderV1Resource", new()
{
Meta = new OpenStack.KeyManager.Inputs.OrderV1MetaArgs
{
Algorithm = "string",
BitLength = 0,
Expiration = "string",
Mode = "string",
Name = "string",
PayloadContentType = "string",
},
Type = "string",
Region = "string",
});
example, err := keymanager.NewOrderV1(ctx, "orderV1Resource", &keymanager.OrderV1Args{
Meta: &keymanager.OrderV1MetaArgs{
Algorithm: pulumi.String("string"),
BitLength: pulumi.Int(0),
Expiration: pulumi.String("string"),
Mode: pulumi.String("string"),
Name: pulumi.String("string"),
PayloadContentType: pulumi.String("string"),
},
Type: pulumi.String("string"),
Region: pulumi.String("string"),
})
var orderV1Resource = new OrderV1("orderV1Resource", OrderV1Args.builder()
.meta(OrderV1MetaArgs.builder()
.algorithm("string")
.bitLength(0)
.expiration("string")
.mode("string")
.name("string")
.payloadContentType("string")
.build())
.type("string")
.region("string")
.build());
order_v1_resource = openstack.keymanager.OrderV1("orderV1Resource",
meta={
"algorithm": "string",
"bit_length": 0,
"expiration": "string",
"mode": "string",
"name": "string",
"payload_content_type": "string",
},
type="string",
region="string")
const orderV1Resource = new openstack.keymanager.OrderV1("orderV1Resource", {
meta: {
algorithm: "string",
bitLength: 0,
expiration: "string",
mode: "string",
name: "string",
payloadContentType: "string",
},
type: "string",
region: "string",
});
type: openstack:keymanager:OrderV1
properties:
meta:
algorithm: string
bitLength: 0
expiration: string
mode: string
name: string
payloadContentType: string
region: string
type: string
OrderV1 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 OrderV1 resource accepts the following input properties:
- Meta
Pulumi.
Open Stack. Key Manager. Inputs. Order V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- Type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - Region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
- Meta
Order
V1Meta Args - Dictionary containing the order metadata used to generate the order. The structure is described below.
- Type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - Region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
- meta
Order
V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- type String
- The type of key to be generated. Must be one of
asymmetric
,key
. - region String
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
- meta
Order
V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
- meta
Order
V1Meta Args - Dictionary containing the order metadata used to generate the order. The structure is described below.
- type str
- The type of key to be generated. Must be one of
asymmetric
,key
. - region str
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
- meta Property Map
- Dictionary containing the order metadata used to generate the order. The structure is described below.
- type String
- The type of key to be generated. Must be one of
asymmetric
,key
. - region String
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order.
Outputs
All input properties are implicitly available as output properties. Additionally, the OrderV1 resource produces the following output properties:
- Container
Ref string - The container reference / where to find the container.
- Created string
- The date the order was created.
- Creator
Id string - The creator of the order.
- Id string
- The provider-assigned unique ID for this managed resource.
- Order
Ref string - The order reference / where to find the order.
- Secret
Ref string - The secret reference / where to find the secret.
- Status string
- The status of the order.
- Sub
Status string - The sub status of the order.
- Sub
Status stringMessage - The sub status message of the order.
- Updated string
- The date the order was last updated.
- Container
Ref string - The container reference / where to find the container.
- Created string
- The date the order was created.
- Creator
Id string - The creator of the order.
- Id string
- The provider-assigned unique ID for this managed resource.
- Order
Ref string - The order reference / where to find the order.
- Secret
Ref string - The secret reference / where to find the secret.
- Status string
- The status of the order.
- Sub
Status string - The sub status of the order.
- Sub
Status stringMessage - The sub status message of the order.
- Updated string
- The date the order was last updated.
- container
Ref String - The container reference / where to find the container.
- created String
- The date the order was created.
- creator
Id String - The creator of the order.
- id String
- The provider-assigned unique ID for this managed resource.
- order
Ref String - The order reference / where to find the order.
- secret
Ref String - The secret reference / where to find the secret.
- status String
- The status of the order.
- sub
Status String - The sub status of the order.
- sub
Status StringMessage - The sub status message of the order.
- updated String
- The date the order was last updated.
- container
Ref string - The container reference / where to find the container.
- created string
- The date the order was created.
- creator
Id string - The creator of the order.
- id string
- The provider-assigned unique ID for this managed resource.
- order
Ref string - The order reference / where to find the order.
- secret
Ref string - The secret reference / where to find the secret.
- status string
- The status of the order.
- sub
Status string - The sub status of the order.
- sub
Status stringMessage - The sub status message of the order.
- updated string
- The date the order was last updated.
- container_
ref str - The container reference / where to find the container.
- created str
- The date the order was created.
- creator_
id str - The creator of the order.
- id str
- The provider-assigned unique ID for this managed resource.
- order_
ref str - The order reference / where to find the order.
- secret_
ref str - The secret reference / where to find the secret.
- status str
- The status of the order.
- sub_
status str - The sub status of the order.
- sub_
status_ strmessage - The sub status message of the order.
- updated str
- The date the order was last updated.
- container
Ref String - The container reference / where to find the container.
- created String
- The date the order was created.
- creator
Id String - The creator of the order.
- id String
- The provider-assigned unique ID for this managed resource.
- order
Ref String - The order reference / where to find the order.
- secret
Ref String - The secret reference / where to find the secret.
- status String
- The status of the order.
- sub
Status String - The sub status of the order.
- sub
Status StringMessage - The sub status message of the order.
- updated String
- The date the order was last updated.
Look up Existing OrderV1 Resource
Get an existing OrderV1 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?: OrderV1State, opts?: CustomResourceOptions): OrderV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
container_ref: Optional[str] = None,
created: Optional[str] = None,
creator_id: Optional[str] = None,
meta: Optional[OrderV1MetaArgs] = None,
order_ref: Optional[str] = None,
region: Optional[str] = None,
secret_ref: Optional[str] = None,
status: Optional[str] = None,
sub_status: Optional[str] = None,
sub_status_message: Optional[str] = None,
type: Optional[str] = None,
updated: Optional[str] = None) -> OrderV1
func GetOrderV1(ctx *Context, name string, id IDInput, state *OrderV1State, opts ...ResourceOption) (*OrderV1, error)
public static OrderV1 Get(string name, Input<string> id, OrderV1State? state, CustomResourceOptions? opts = null)
public static OrderV1 get(String name, Output<String> id, OrderV1State 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.
- Container
Ref string - The container reference / where to find the container.
- Created string
- The date the order was created.
- Creator
Id string - The creator of the order.
- Meta
Pulumi.
Open Stack. Key Manager. Inputs. Order V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- Order
Ref string - The order reference / where to find the order.
- Region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - Secret
Ref string - The secret reference / where to find the secret.
- Status string
- The status of the order.
- Sub
Status string - The sub status of the order.
- Sub
Status stringMessage - The sub status message of the order.
- Type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - Updated string
- The date the order was last updated.
- Container
Ref string - The container reference / where to find the container.
- Created string
- The date the order was created.
- Creator
Id string - The creator of the order.
- Meta
Order
V1Meta Args - Dictionary containing the order metadata used to generate the order. The structure is described below.
- Order
Ref string - The order reference / where to find the order.
- Region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - Secret
Ref string - The secret reference / where to find the secret.
- Status string
- The status of the order.
- Sub
Status string - The sub status of the order.
- Sub
Status stringMessage - The sub status message of the order.
- Type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - Updated string
- The date the order was last updated.
- container
Ref String - The container reference / where to find the container.
- created String
- The date the order was created.
- creator
Id String - The creator of the order.
- meta
Order
V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- order
Ref String - The order reference / where to find the order.
- region String
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - secret
Ref String - The secret reference / where to find the secret.
- status String
- The status of the order.
- sub
Status String - The sub status of the order.
- sub
Status StringMessage - The sub status message of the order.
- type String
- The type of key to be generated. Must be one of
asymmetric
,key
. - updated String
- The date the order was last updated.
- container
Ref string - The container reference / where to find the container.
- created string
- The date the order was created.
- creator
Id string - The creator of the order.
- meta
Order
V1Meta - Dictionary containing the order metadata used to generate the order. The structure is described below.
- order
Ref string - The order reference / where to find the order.
- region string
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - secret
Ref string - The secret reference / where to find the secret.
- status string
- The status of the order.
- sub
Status string - The sub status of the order.
- sub
Status stringMessage - The sub status message of the order.
- type string
- The type of key to be generated. Must be one of
asymmetric
,key
. - updated string
- The date the order was last updated.
- container_
ref str - The container reference / where to find the container.
- created str
- The date the order was created.
- creator_
id str - The creator of the order.
- meta
Order
V1Meta Args - Dictionary containing the order metadata used to generate the order. The structure is described below.
- order_
ref str - The order reference / where to find the order.
- region str
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - secret_
ref str - The secret reference / where to find the secret.
- status str
- The status of the order.
- sub_
status str - The sub status of the order.
- sub_
status_ strmessage - The sub status message of the order.
- type str
- The type of key to be generated. Must be one of
asymmetric
,key
. - updated str
- The date the order was last updated.
- container
Ref String - The container reference / where to find the container.
- created String
- The date the order was created.
- creator
Id String - The creator of the order.
- meta Property Map
- Dictionary containing the order metadata used to generate the order. The structure is described below.
- order
Ref String - The order reference / where to find the order.
- region String
- The region in which to obtain the V1 KeyManager client.
A KeyManager client is needed to create a order. If omitted, the
region
argument of the provider is used. Changing this creates a new V1 order. - secret
Ref String - The secret reference / where to find the secret.
- status String
- The status of the order.
- sub
Status String - The sub status of the order.
- sub
Status StringMessage - The sub status message of the order.
- type String
- The type of key to be generated. Must be one of
asymmetric
,key
. - updated String
- The date the order was last updated.
Supporting Types
OrderV1Meta, OrderV1MetaArgs
- Algorithm string
- Algorithm to use for key generation.
- Bit
Length int - Bit lenght of key to be generated.
- Expiration string
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- Mode string
- The mode to use for key generation.
- Name string
- The name of the secret set by the user.
- Payload
Content stringType - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
- Algorithm string
- Algorithm to use for key generation.
- Bit
Length int - Bit lenght of key to be generated.
- Expiration string
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- Mode string
- The mode to use for key generation.
- Name string
- The name of the secret set by the user.
- Payload
Content stringType - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
- algorithm String
- Algorithm to use for key generation.
- bit
Length Integer - Bit lenght of key to be generated.
- expiration String
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- mode String
- The mode to use for key generation.
- name String
- The name of the secret set by the user.
- payload
Content StringType - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
- algorithm string
- Algorithm to use for key generation.
- bit
Length number - Bit lenght of key to be generated.
- expiration string
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- mode string
- The mode to use for key generation.
- name string
- The name of the secret set by the user.
- payload
Content stringType - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
- algorithm str
- Algorithm to use for key generation.
- bit_
length int - Bit lenght of key to be generated.
- expiration str
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- mode str
- The mode to use for key generation.
- name str
- The name of the secret set by the user.
- payload_
content_ strtype - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
- algorithm String
- Algorithm to use for key generation.
- bit
Length Number - Bit lenght of key to be generated.
- expiration String
- This is a UTC timestamp in ISO 8601 format YYYY-MM-DDTHH:MM:SSZ. If set, the secret will not be available after this time.
- mode String
- The mode to use for key generation.
- name String
- The name of the secret set by the user.
- payload
Content StringType - The media type for the content of the secrets payload. Must be one of
text/plain
,text/plain;charset=utf-8
,text/plain; charset=utf-8
,application/octet-stream
,application/pkcs8
.
Import
Orders can be imported using the order id (the last part of the order reference), e.g.:
$ pulumi import openstack:keymanager/orderV1:OrderV1 order_1 0c6cd26a-c012-4d7b-8034-057c0f1c2953
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- OpenStack pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstack
Terraform Provider.