1. Packages
  2. OpenStack
  3. API Docs
  4. keymanager
  5. OrderV1
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

openstack.keymanager.OrderV1

Explore with Pulumi AI

openstack logo
OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi

    Manages a V1 Barbican order resource within OpenStack.

    Example Usage

    Symmetric key order

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var order1 = new OpenStack.KeyManager.OrderV1("order1", new()
        {
            Meta = new OpenStack.KeyManager.Inputs.OrderV1MetaArgs
            {
                Algorithm = "aes",
                BitLength = 256,
                Mode = "cbc",
                Name = "mysecret",
            },
            Type = "key",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/keymanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := keymanager.NewOrderV1(ctx, "order1", &keymanager.OrderV1Args{
    			Meta: &keymanager.OrderV1MetaArgs{
    				Algorithm: pulumi.String("aes"),
    				BitLength: pulumi.Int(256),
    				Mode:      pulumi.String("cbc"),
    				Name:      pulumi.String("mysecret"),
    			},
    			Type: pulumi.String("key"),
    		})
    		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.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()        
                .meta(OrderV1MetaArgs.builder()
                    .algorithm("aes")
                    .bitLength(256)
                    .mode("cbc")
                    .name("mysecret")
                    .build())
                .type("key")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_openstack as openstack
    
    order1 = openstack.keymanager.OrderV1("order1",
        meta=openstack.keymanager.OrderV1MetaArgs(
            algorithm="aes",
            bit_length=256,
            mode="cbc",
            name="mysecret",
        ),
        type="key")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const order1 = new openstack.keymanager.OrderV1("order1", {
        meta: {
            algorithm: "aes",
            bitLength: 256,
            mode: "cbc",
            name: "mysecret",
        },
        type: "key",
    });
    
    resources:
      order1:
        type: openstack:keymanager:OrderV1
        properties:
          meta:
            algorithm: aes
            bitLength: 256
            mode: cbc
            name: mysecret
          type: key
    

    Asymmetric key pair order

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using OpenStack = Pulumi.OpenStack;
    
    return await Deployment.RunAsync(() => 
    {
        var order1 = new OpenStack.KeyManager.OrderV1("order1", new()
        {
            Meta = new OpenStack.KeyManager.Inputs.OrderV1MetaArgs
            {
                Algorithm = "rsa",
                BitLength = 4096,
                Name = "mysecret",
            },
            Type = "asymmetric",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-openstack/sdk/v3/go/openstack/keymanager"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := keymanager.NewOrderV1(ctx, "order1", &keymanager.OrderV1Args{
    			Meta: &keymanager.OrderV1MetaArgs{
    				Algorithm: pulumi.String("rsa"),
    				BitLength: pulumi.Int(4096),
    				Name:      pulumi.String("mysecret"),
    			},
    			Type: pulumi.String("asymmetric"),
    		})
    		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.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()        
                .meta(OrderV1MetaArgs.builder()
                    .algorithm("rsa")
                    .bitLength(4096)
                    .name("mysecret")
                    .build())
                .type("asymmetric")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_openstack as openstack
    
    order1 = openstack.keymanager.OrderV1("order1",
        meta=openstack.keymanager.OrderV1MetaArgs(
            algorithm="rsa",
            bit_length=4096,
            name="mysecret",
        ),
        type="asymmetric")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as openstack from "@pulumi/openstack";
    
    const order1 = new openstack.keymanager.OrderV1("order1", {
        meta: {
            algorithm: "rsa",
            bitLength: 4096,
            name: "mysecret",
        },
        type: "asymmetric",
    });
    
    resources:
      order1:
        type: openstack:keymanager:OrderV1
        properties:
          meta:
            algorithm: rsa
            bitLength: 4096
            name: mysecret
          type: asymmetric
    

    Create OrderV1 Resource

    new OrderV1(name: string, args: OrderV1Args, opts?: CustomResourceOptions);
    @overload
    def OrderV1(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                meta: Optional[OrderV1MetaArgs] = None,
                region: Optional[str] = None,
                type: Optional[str] = None)
    @overload
    def OrderV1(resource_name: str,
                args: OrderV1Args,
                opts: Optional[ResourceOptions] = 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.
    
    
    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.

    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

    The OrderV1 resource accepts the following input properties:

    Meta Pulumi.OpenStack.KeyManager.Inputs.OrderV1Meta
    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 OrderV1MetaArgs
    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 OrderV1Meta
    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 OrderV1Meta
    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 OrderV1MetaArgs
    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:

    ContainerRef string
    The container reference / where to find the container.
    Created string
    The date the order was created.
    CreatorId string
    The creator of the order.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrderRef string
    The order reference / where to find the order.
    SecretRef string
    The secret reference / where to find the secret.
    Status string
    The status of the order.
    SubStatus string
    The sub status of the order.
    SubStatusMessage string
    The sub status message of the order.
    Updated string
    The date the order was last updated.
    ContainerRef string
    The container reference / where to find the container.
    Created string
    The date the order was created.
    CreatorId string
    The creator of the order.
    Id string
    The provider-assigned unique ID for this managed resource.
    OrderRef string
    The order reference / where to find the order.
    SecretRef string
    The secret reference / where to find the secret.
    Status string
    The status of the order.
    SubStatus string
    The sub status of the order.
    SubStatusMessage string
    The sub status message of the order.
    Updated string
    The date the order was last updated.
    containerRef String
    The container reference / where to find the container.
    created String
    The date the order was created.
    creatorId String
    The creator of the order.
    id String
    The provider-assigned unique ID for this managed resource.
    orderRef String
    The order reference / where to find the order.
    secretRef String
    The secret reference / where to find the secret.
    status String
    The status of the order.
    subStatus String
    The sub status of the order.
    subStatusMessage String
    The sub status message of the order.
    updated String
    The date the order was last updated.
    containerRef string
    The container reference / where to find the container.
    created string
    The date the order was created.
    creatorId string
    The creator of the order.
    id string
    The provider-assigned unique ID for this managed resource.
    orderRef string
    The order reference / where to find the order.
    secretRef string
    The secret reference / where to find the secret.
    status string
    The status of the order.
    subStatus string
    The sub status of the order.
    subStatusMessage string
    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_message str
    The sub status message of the order.
    updated str
    The date the order was last updated.
    containerRef String
    The container reference / where to find the container.
    created String
    The date the order was created.
    creatorId String
    The creator of the order.
    id String
    The provider-assigned unique ID for this managed resource.
    orderRef String
    The order reference / where to find the order.
    secretRef String
    The secret reference / where to find the secret.
    status String
    The status of the order.
    subStatus String
    The sub status of the order.
    subStatusMessage String
    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.
    The following state arguments are supported:
    ContainerRef string
    The container reference / where to find the container.
    Created string
    The date the order was created.
    CreatorId string
    The creator of the order.
    Meta Pulumi.OpenStack.KeyManager.Inputs.OrderV1Meta
    Dictionary containing the order metadata used to generate the order. The structure is described below.
    OrderRef 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.
    SecretRef string
    The secret reference / where to find the secret.
    Status string
    The status of the order.
    SubStatus string
    The sub status of the order.
    SubStatusMessage string
    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.
    ContainerRef string
    The container reference / where to find the container.
    Created string
    The date the order was created.
    CreatorId string
    The creator of the order.
    Meta OrderV1MetaArgs
    Dictionary containing the order metadata used to generate the order. The structure is described below.
    OrderRef 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.
    SecretRef string
    The secret reference / where to find the secret.
    Status string
    The status of the order.
    SubStatus string
    The sub status of the order.
    SubStatusMessage string
    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.
    containerRef String
    The container reference / where to find the container.
    created String
    The date the order was created.
    creatorId String
    The creator of the order.
    meta OrderV1Meta
    Dictionary containing the order metadata used to generate the order. The structure is described below.
    orderRef 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.
    secretRef String
    The secret reference / where to find the secret.
    status String
    The status of the order.
    subStatus String
    The sub status of the order.
    subStatusMessage String
    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.
    containerRef string
    The container reference / where to find the container.
    created string
    The date the order was created.
    creatorId string
    The creator of the order.
    meta OrderV1Meta
    Dictionary containing the order metadata used to generate the order. The structure is described below.
    orderRef 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.
    secretRef string
    The secret reference / where to find the secret.
    status string
    The status of the order.
    subStatus string
    The sub status of the order.
    subStatusMessage string
    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 OrderV1MetaArgs
    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_message str
    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.
    containerRef String
    The container reference / where to find the container.
    created String
    The date the order was created.
    creatorId String
    The creator of the order.
    meta Property Map
    Dictionary containing the order metadata used to generate the order. The structure is described below.
    orderRef 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.
    secretRef String
    The secret reference / where to find the secret.
    status String
    The status of the order.
    subStatus String
    The sub status of the order.
    subStatusMessage String
    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.
    BitLength 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.
    PayloadContentType string
    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.
    BitLength 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.
    PayloadContentType string
    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.
    bitLength 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.
    payloadContentType String
    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.
    bitLength 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.
    payloadContentType string
    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_type str
    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.
    bitLength 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.
    payloadContentType String
    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
    

    Package Details

    Repository
    OpenStack pulumi/pulumi-openstack
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the openstack Terraform Provider.
    openstack logo
    OpenStack v3.15.1 published on Thursday, Feb 1, 2024 by Pulumi