1. Packages
  2. Outscale Provider
  3. API Docs
  4. Ca
outscale 1.1.0 published on Thursday, Apr 3, 2025 by outscale

outscale.Ca

Explore with Pulumi AI

Manages a Certificate Authority (CA).

For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as fs from "fs";
import * as outscale from "@pulumi/outscale";

const ca01 = new outscale.Ca("ca01", {
    caPem: fs.readFileSync("<PATH>", "utf8"),
    description: "Terraform certificate authority",
});
Copy
import pulumi
import pulumi_outscale as outscale

ca01 = outscale.Ca("ca01",
    ca_pem=(lambda path: open(path).read())("<PATH>"),
    description="Terraform certificate authority")
Copy
package main

import (
	"os"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func readFileOrPanic(path string) pulumi.StringPtrInput {
	data, err := os.ReadFile(path)
	if err != nil {
		panic(err.Error())
	}
	return pulumi.String(string(data))
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.NewCa(ctx, "ca01", &outscale.CaArgs{
			CaPem:       pulumi.String(readFileOrPanic("<PATH>")),
			Description: pulumi.String("Terraform certificate authority"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var ca01 = new Outscale.Ca("ca01", new()
    {
        CaPem = File.ReadAllText("<PATH>"),
        Description = "Terraform certificate authority",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Ca;
import com.pulumi.outscale.CaArgs;
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 ca01 = new Ca("ca01", CaArgs.builder()
            .caPem(Files.readString(Paths.get("<PATH>")))
            .description("Terraform certificate authority")
            .build());

    }
}
Copy
resources:
  ca01:
    type: outscale:Ca
    properties:
      caPem:
        fn::readFile: <PATH>
      description: Terraform certificate authority
Copy

Create Ca Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new Ca(name: string, args?: CaArgs, opts?: CustomResourceOptions);
@overload
def Ca(resource_name: str,
       args: Optional[CaArgs] = None,
       opts: Optional[ResourceOptions] = None)

@overload
def Ca(resource_name: str,
       opts: Optional[ResourceOptions] = None,
       ca_pem: Optional[str] = None,
       description: Optional[str] = None,
       outscale_ca_id: Optional[str] = None)
func NewCa(ctx *Context, name string, args *CaArgs, opts ...ResourceOption) (*Ca, error)
public Ca(string name, CaArgs? args = null, CustomResourceOptions? opts = null)
public Ca(String name, CaArgs args)
public Ca(String name, CaArgs args, CustomResourceOptions options)
type: outscale:Ca
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args CaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args CaArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args CaArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args CaArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CaArgs
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 caResource = new Outscale.Ca("caResource", new()
{
    CaPem = "string",
    Description = "string",
    OutscaleCaId = "string",
});
Copy
example, err := outscale.NewCa(ctx, "caResource", &outscale.CaArgs{
	CaPem:        pulumi.String("string"),
	Description:  pulumi.String("string"),
	OutscaleCaId: pulumi.String("string"),
})
Copy
var caResource = new Ca("caResource", CaArgs.builder()
    .caPem("string")
    .description("string")
    .outscaleCaId("string")
    .build());
Copy
ca_resource = outscale.Ca("caResource",
    ca_pem="string",
    description="string",
    outscale_ca_id="string")
Copy
const caResource = new outscale.Ca("caResource", {
    caPem: "string",
    description: "string",
    outscaleCaId: "string",
});
Copy
type: outscale:Ca
properties:
    caPem: string
    description: string
    outscaleCaId: string
Copy

Ca 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 Ca resource accepts the following input properties:

CaPem string
The CA in PEM format.
Description string
The description of the CA.
OutscaleCaId string
CaPem string
The CA in PEM format.
Description string
The description of the CA.
OutscaleCaId string
caPem String
The CA in PEM format.
description String
The description of the CA.
outscaleCaId String
caPem string
The CA in PEM format.
description string
The description of the CA.
outscaleCaId string
ca_pem str
The CA in PEM format.
description str
The description of the CA.
outscale_ca_id str
caPem String
The CA in PEM format.
description String
The description of the CA.
outscaleCaId String

Outputs

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

CaFingerprint string
The fingerprint of the CA.
CaId string
The ID of the CA.
Id string
The provider-assigned unique ID for this managed resource.
RequestId string
CaFingerprint string
The fingerprint of the CA.
CaId string
The ID of the CA.
Id string
The provider-assigned unique ID for this managed resource.
RequestId string
caFingerprint String
The fingerprint of the CA.
caId String
The ID of the CA.
id String
The provider-assigned unique ID for this managed resource.
requestId String
caFingerprint string
The fingerprint of the CA.
caId string
The ID of the CA.
id string
The provider-assigned unique ID for this managed resource.
requestId string
ca_fingerprint str
The fingerprint of the CA.
ca_id str
The ID of the CA.
id str
The provider-assigned unique ID for this managed resource.
request_id str
caFingerprint String
The fingerprint of the CA.
caId String
The ID of the CA.
id String
The provider-assigned unique ID for this managed resource.
requestId String

Look up Existing Ca Resource

Get an existing Ca 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?: CaState, opts?: CustomResourceOptions): Ca
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        ca_fingerprint: Optional[str] = None,
        ca_id: Optional[str] = None,
        ca_pem: Optional[str] = None,
        description: Optional[str] = None,
        outscale_ca_id: Optional[str] = None,
        request_id: Optional[str] = None) -> Ca
func GetCa(ctx *Context, name string, id IDInput, state *CaState, opts ...ResourceOption) (*Ca, error)
public static Ca Get(string name, Input<string> id, CaState? state, CustomResourceOptions? opts = null)
public static Ca get(String name, Output<String> id, CaState state, CustomResourceOptions options)
resources:  _:    type: outscale:Ca    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CaFingerprint string
The fingerprint of the CA.
CaId string
The ID of the CA.
CaPem string
The CA in PEM format.
Description string
The description of the CA.
OutscaleCaId string
RequestId string
CaFingerprint string
The fingerprint of the CA.
CaId string
The ID of the CA.
CaPem string
The CA in PEM format.
Description string
The description of the CA.
OutscaleCaId string
RequestId string
caFingerprint String
The fingerprint of the CA.
caId String
The ID of the CA.
caPem String
The CA in PEM format.
description String
The description of the CA.
outscaleCaId String
requestId String
caFingerprint string
The fingerprint of the CA.
caId string
The ID of the CA.
caPem string
The CA in PEM format.
description string
The description of the CA.
outscaleCaId string
requestId string
ca_fingerprint str
The fingerprint of the CA.
ca_id str
The ID of the CA.
ca_pem str
The CA in PEM format.
description str
The description of the CA.
outscale_ca_id str
request_id str
caFingerprint String
The fingerprint of the CA.
caId String
The ID of the CA.
caPem String
The CA in PEM format.
description String
The description of the CA.
outscaleCaId String
requestId String

Import

A CA can be imported using its ID. For example:

console

$ pulumi import outscale:index/ca:Ca ImportedCa ca-12345678
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
outscale outscale/terraform-provider-outscale
License
Notes
This Pulumi package is based on the outscale Terraform Provider.