1. Packages
  2. Outscale Provider
  3. API Docs
  4. getServerCertificates
outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale

outscale.getServerCertificates

Explore with Pulumi AI

Provides information about server certificates.

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

Example Usage

Read specific server certificates

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

const serverCertificates01 = outscale.getServerCertificates({
    filters: [{
        name: "paths",
        values: [
            "<PATH01>",
            "<PATH02>",
        ],
    }],
});
Copy
import pulumi
import pulumi_outscale as outscale

server_certificates01 = outscale.get_server_certificates(filters=[{
    "name": "paths",
    "values": [
        "<PATH01>",
        "<PATH02>",
    ],
}])
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetServerCertificates(ctx, &outscale.GetServerCertificatesArgs{
			Filters: []outscale.GetServerCertificatesFilter{
				{
					Name: "paths",
					Values: []string{
						"<PATH01>",
						"<PATH02>",
					},
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var serverCertificates01 = Outscale.GetServerCertificates.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetServerCertificatesFilterInputArgs
            {
                Name = "paths",
                Values = new[]
                {
                    "<PATH01>",
                    "<PATH02>",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetServerCertificatesArgs;
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) {
        final var serverCertificates01 = OutscaleFunctions.getServerCertificates(GetServerCertificatesArgs.builder()
            .filters(GetServerCertificatesFilterArgs.builder()
                .name("paths")
                .values(                
                    "<PATH01>",
                    "<PATH02>")
                .build())
            .build());

    }
}
Copy
variables:
  serverCertificates01:
    fn::invoke:
      function: outscale:getServerCertificates
      arguments:
        filters:
          - name: paths
            values:
              - <PATH01>
              - <PATH02>
Copy

Read all server certificates

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

const allServerCertificates = outscale.getServerCertificates({});
Copy
import pulumi
import pulumi_outscale as outscale

all_server_certificates = outscale.get_server_certificates()
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetServerCertificates(ctx, &outscale.GetServerCertificatesArgs{}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;

return await Deployment.RunAsync(() => 
{
    var allServerCertificates = Outscale.GetServerCertificates.Invoke();

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetServerCertificatesArgs;
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) {
        final var allServerCertificates = OutscaleFunctions.getServerCertificates();

    }
}
Copy
variables:
  allServerCertificates:
    fn::invoke:
      function: outscale:getServerCertificates
      arguments: {}
Copy

Using getServerCertificates

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getServerCertificates(args: GetServerCertificatesArgs, opts?: InvokeOptions): Promise<GetServerCertificatesResult>
function getServerCertificatesOutput(args: GetServerCertificatesOutputArgs, opts?: InvokeOptions): Output<GetServerCertificatesResult>
Copy
def get_server_certificates(filters: Optional[Sequence[GetServerCertificatesFilter]] = None,
                            id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetServerCertificatesResult
def get_server_certificates_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetServerCertificatesFilterArgs]]]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetServerCertificatesResult]
Copy
func GetServerCertificates(ctx *Context, args *GetServerCertificatesArgs, opts ...InvokeOption) (*GetServerCertificatesResult, error)
func GetServerCertificatesOutput(ctx *Context, args *GetServerCertificatesOutputArgs, opts ...InvokeOption) GetServerCertificatesResultOutput
Copy

> Note: This function is named GetServerCertificates in the Go SDK.

public static class GetServerCertificates 
{
    public static Task<GetServerCertificatesResult> InvokeAsync(GetServerCertificatesArgs args, InvokeOptions? opts = null)
    public static Output<GetServerCertificatesResult> Invoke(GetServerCertificatesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetServerCertificatesResult> getServerCertificates(GetServerCertificatesArgs args, InvokeOptions options)
public static Output<GetServerCertificatesResult> getServerCertificates(GetServerCertificatesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getServerCertificates:getServerCertificates
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filters List<GetServerCertificatesFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
The ID of the server certificate.
Filters []GetServerCertificatesFilter
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
Id string
The ID of the server certificate.
filters List<GetServerCertificatesFilter>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String
The ID of the server certificate.
filters GetServerCertificatesFilter[]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id string
The ID of the server certificate.
filters Sequence[GetServerCertificatesFilter]
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id str
The ID of the server certificate.
filters List<Property Map>
A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following:
id String
The ID of the server certificate.

getServerCertificates Result

The following output properties are available:

Id string
The ID of the server certificate.
RequestId string
ServerCertificates List<GetServerCertificatesServerCertificate>
Information about one or more server certificates.
Filters List<GetServerCertificatesFilter>
Id string
The ID of the server certificate.
RequestId string
ServerCertificates []GetServerCertificatesServerCertificate
Information about one or more server certificates.
Filters []GetServerCertificatesFilter
id String
The ID of the server certificate.
requestId String
serverCertificates List<GetServerCertificatesServerCertificate>
Information about one or more server certificates.
filters List<GetServerCertificatesFilter>
id string
The ID of the server certificate.
requestId string
serverCertificates GetServerCertificatesServerCertificate[]
Information about one or more server certificates.
filters GetServerCertificatesFilter[]
id str
The ID of the server certificate.
request_id str
server_certificates Sequence[GetServerCertificatesServerCertificate]
Information about one or more server certificates.
filters Sequence[GetServerCertificatesFilter]
id String
The ID of the server certificate.
requestId String
serverCertificates List<Property Map>
Information about one or more server certificates.
filters List<Property Map>

Supporting Types

GetServerCertificatesFilter

Name This property is required. string
The name of the server certificate.
Values This property is required. List<string>
Name This property is required. string
The name of the server certificate.
Values This property is required. []string
name This property is required. String
The name of the server certificate.
values This property is required. List<String>
name This property is required. string
The name of the server certificate.
values This property is required. string[]
name This property is required. str
The name of the server certificate.
values This property is required. Sequence[str]
name This property is required. String
The name of the server certificate.
values This property is required. List<String>

GetServerCertificatesServerCertificate

ExpirationDate This property is required. string
The date on which the server certificate expires.
Id This property is required. string
The ID of the server certificate.
Name This property is required. string
The name of the server certificate.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
Path This property is required. string
The path to the server certificate.
UploadDate This property is required. string
The date on which the server certificate has been uploaded.
ExpirationDate This property is required. string
The date on which the server certificate expires.
Id This property is required. string
The ID of the server certificate.
Name This property is required. string
The name of the server certificate.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
Path This property is required. string
The path to the server certificate.
UploadDate This property is required. string
The date on which the server certificate has been uploaded.
expirationDate This property is required. String
The date on which the server certificate expires.
id This property is required. String
The ID of the server certificate.
name This property is required. String
The name of the server certificate.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
path This property is required. String
The path to the server certificate.
uploadDate This property is required. String
The date on which the server certificate has been uploaded.
expirationDate This property is required. string
The date on which the server certificate expires.
id This property is required. string
The ID of the server certificate.
name This property is required. string
The name of the server certificate.
orn This property is required. string
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
path This property is required. string
The path to the server certificate.
uploadDate This property is required. string
The date on which the server certificate has been uploaded.
expiration_date This property is required. str
The date on which the server certificate expires.
id This property is required. str
The ID of the server certificate.
name This property is required. str
The name of the server certificate.
orn This property is required. str
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
path This property is required. str
The path to the server certificate.
upload_date This property is required. str
The date on which the server certificate has been uploaded.
expirationDate This property is required. String
The date on which the server certificate expires.
id This property is required. String
The ID of the server certificate.
name This property is required. String
The name of the server certificate.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
path This property is required. String
The path to the server certificate.
uploadDate This property is required. String
The date on which the server certificate has been uploaded.

Package Details

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