octopusdeploy 0.43.2 published on Friday, May 30, 2025 by octopusdeploylabs
octopusdeploy.getCertificates
octopusdeploy 0.43.2 published on Friday, May 30, 2025 by octopusdeploylabs
Provides information about existing certificates.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as octopusdeploy from "@pulumi/octopusdeploy";
const example = octopusdeploy.getCertificates({
archived: "false",
ids: [
"Certificates-123",
"Certificates-321",
],
partialName: "Defau",
skip: 5,
take: 100,
});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.get_certificates(archived="false",
ids=[
"Certificates-123",
"Certificates-321",
],
partial_name="Defau",
skip=5,
take=100)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/octopusdeploy/octopusdeploy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := octopusdeploy.GetCertificates(ctx, &octopusdeploy.GetCertificatesArgs{
Archived: pulumi.StringRef("false"),
Ids: []string{
"Certificates-123",
"Certificates-321",
},
PartialName: pulumi.StringRef("Defau"),
Skip: pulumi.Float64Ref(5),
Take: pulumi.Float64Ref(100),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;
return await Deployment.RunAsync(() =>
{
var example = Octopusdeploy.GetCertificates.Invoke(new()
{
Archived = "false",
Ids = new[]
{
"Certificates-123",
"Certificates-321",
},
PartialName = "Defau",
Skip = 5,
Take = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.OctopusdeployFunctions;
import com.pulumi.octopusdeploy.inputs.GetCertificatesArgs;
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 example = OctopusdeployFunctions.getCertificates(GetCertificatesArgs.builder()
.archived(false)
.ids(
"Certificates-123",
"Certificates-321")
.partialName("Defau")
.skip(5)
.take(100)
.build());
}
}
variables:
example:
fn::invoke:
function: octopusdeploy:getCertificates
arguments:
archived: false
ids:
- Certificates-123
- Certificates-321
partialName: Defau
skip: 5
take: 100
Using getCertificates
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 getCertificates(args: GetCertificatesArgs, opts?: InvokeOptions): Promise<GetCertificatesResult>
function getCertificatesOutput(args: GetCertificatesOutputArgs, opts?: InvokeOptions): Output<GetCertificatesResult>def get_certificates(archived: Optional[str] = None,
first_result: Optional[str] = None,
ids: Optional[Sequence[str]] = None,
order_by: Optional[str] = None,
partial_name: Optional[str] = None,
search: Optional[str] = None,
skip: Optional[float] = None,
space_id: Optional[str] = None,
take: Optional[float] = None,
tenant: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetCertificatesResult
def get_certificates_output(archived: Optional[pulumi.Input[str]] = None,
first_result: Optional[pulumi.Input[str]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
order_by: Optional[pulumi.Input[str]] = None,
partial_name: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
skip: Optional[pulumi.Input[float]] = None,
space_id: Optional[pulumi.Input[str]] = None,
take: Optional[pulumi.Input[float]] = None,
tenant: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetCertificatesResult]func GetCertificates(ctx *Context, args *GetCertificatesArgs, opts ...InvokeOption) (*GetCertificatesResult, error)
func GetCertificatesOutput(ctx *Context, args *GetCertificatesOutputArgs, opts ...InvokeOption) GetCertificatesResultOutput> Note: This function is named GetCertificates in the Go SDK.
public static class GetCertificates
{
public static Task<GetCertificatesResult> InvokeAsync(GetCertificatesArgs args, InvokeOptions? opts = null)
public static Output<GetCertificatesResult> Invoke(GetCertificatesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
public static Output<GetCertificatesResult> getCertificates(GetCertificatesArgs args, InvokeOptions options)
fn::invoke:
function: octopusdeploy:index/getCertificates:getCertificates
arguments:
# arguments dictionaryThe following arguments are supported:
- Archived string
- A filter to search for resources that have been archived.
- First
Result string - A filter to define the first result.
- Ids List<string>
- A filter to search by a list of IDs.
- Order
By string - A filter used to order the search results.
- Partial
Name string - A filter to search by the partial match of a name.
- Search string
- A filter of terms used the search operation.
- Skip double
- A filter to specify the number of items to skip in the response.
- Space
Id string - The space ID associated with this resource.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Tenant string
- A filter to search by a tenant ID.
- Archived string
- A filter to search for resources that have been archived.
- First
Result string - A filter to define the first result.
- Ids []string
- A filter to search by a list of IDs.
- Order
By string - A filter used to order the search results.
- Partial
Name string - A filter to search by the partial match of a name.
- Search string
- A filter of terms used the search operation.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Space
Id string - The space ID associated with this resource.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- Tenant string
- A filter to search by a tenant ID.
- archived String
- A filter to search for resources that have been archived.
- first
Result String - A filter to define the first result.
- ids List<String>
- A filter to search by a list of IDs.
- order
By String - A filter used to order the search results.
- partial
Name String - A filter to search by the partial match of a name.
- search String
- A filter of terms used the search operation.
- skip Double
- A filter to specify the number of items to skip in the response.
- space
Id String - The space ID associated with this resource.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- tenant String
- A filter to search by a tenant ID.
- archived string
- A filter to search for resources that have been archived.
- first
Result string - A filter to define the first result.
- ids string[]
- A filter to search by a list of IDs.
- order
By string - A filter used to order the search results.
- partial
Name string - A filter to search by the partial match of a name.
- search string
- A filter of terms used the search operation.
- skip number
- A filter to specify the number of items to skip in the response.
- space
Id string - The space ID associated with this resource.
- take number
- A filter to specify the number of items to take (or return) in the response.
- tenant string
- A filter to search by a tenant ID.
- archived str
- A filter to search for resources that have been archived.
- first_
result str - A filter to define the first result.
- ids Sequence[str]
- A filter to search by a list of IDs.
- order_
by str - A filter used to order the search results.
- partial_
name str - A filter to search by the partial match of a name.
- search str
- A filter of terms used the search operation.
- skip float
- A filter to specify the number of items to skip in the response.
- space_
id str - The space ID associated with this resource.
- take float
- A filter to specify the number of items to take (or return) in the response.
- tenant str
- A filter to search by a tenant ID.
- archived String
- A filter to search for resources that have been archived.
- first
Result String - A filter to define the first result.
- ids List<String>
- A filter to search by a list of IDs.
- order
By String - A filter used to order the search results.
- partial
Name String - A filter to search by the partial match of a name.
- search String
- A filter of terms used the search operation.
- skip Number
- A filter to specify the number of items to skip in the response.
- space
Id String - The space ID associated with this resource.
- take Number
- A filter to specify the number of items to take (or return) in the response.
- tenant String
- A filter to search by a tenant ID.
getCertificates Result
The following output properties are available:
- Certificates
List<Get
Certificates Certificate> - A list of certificates that match the filter(s).
- Id string
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- Space
Id string - The space ID associated with this resource.
- Archived string
- A filter to search for resources that have been archived.
- First
Result string - A filter to define the first result.
- Ids List<string>
- A filter to search by a list of IDs.
- Order
By string - A filter used to order the search results.
- Partial
Name string - A filter to search by the partial match of a name.
- Search string
- A filter of terms used the search operation.
- Skip double
- A filter to specify the number of items to skip in the response.
- Take double
- A filter to specify the number of items to take (or return) in the response.
- Tenant string
- A filter to search by a tenant ID.
- Certificates
[]Get
Certificates Certificate - A list of certificates that match the filter(s).
- Id string
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- Space
Id string - The space ID associated with this resource.
- Archived string
- A filter to search for resources that have been archived.
- First
Result string - A filter to define the first result.
- Ids []string
- A filter to search by a list of IDs.
- Order
By string - A filter used to order the search results.
- Partial
Name string - A filter to search by the partial match of a name.
- Search string
- A filter of terms used the search operation.
- Skip float64
- A filter to specify the number of items to skip in the response.
- Take float64
- A filter to specify the number of items to take (or return) in the response.
- Tenant string
- A filter to search by a tenant ID.
- certificates
List<Get
Certificates Certificate> - A list of certificates that match the filter(s).
- id String
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- space
Id String - The space ID associated with this resource.
- archived String
- A filter to search for resources that have been archived.
- first
Result String - A filter to define the first result.
- ids List<String>
- A filter to search by a list of IDs.
- order
By String - A filter used to order the search results.
- partial
Name String - A filter to search by the partial match of a name.
- search String
- A filter of terms used the search operation.
- skip Double
- A filter to specify the number of items to skip in the response.
- take Double
- A filter to specify the number of items to take (or return) in the response.
- tenant String
- A filter to search by a tenant ID.
- certificates
Get
Certificates Certificate[] - A list of certificates that match the filter(s).
- id string
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- space
Id string - The space ID associated with this resource.
- archived string
- A filter to search for resources that have been archived.
- first
Result string - A filter to define the first result.
- ids string[]
- A filter to search by a list of IDs.
- order
By string - A filter used to order the search results.
- partial
Name string - A filter to search by the partial match of a name.
- search string
- A filter of terms used the search operation.
- skip number
- A filter to specify the number of items to skip in the response.
- take number
- A filter to specify the number of items to take (or return) in the response.
- tenant string
- A filter to search by a tenant ID.
- certificates
Sequence[Get
Certificates Certificate] - A list of certificates that match the filter(s).
- id str
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- space_
id str - The space ID associated with this resource.
- archived str
- A filter to search for resources that have been archived.
- first_
result str - A filter to define the first result.
- ids Sequence[str]
- A filter to search by a list of IDs.
- order_
by str - A filter used to order the search results.
- partial_
name str - A filter to search by the partial match of a name.
- search str
- A filter of terms used the search operation.
- skip float
- A filter to specify the number of items to skip in the response.
- take float
- A filter to specify the number of items to take (or return) in the response.
- tenant str
- A filter to search by a tenant ID.
- certificates List<Property Map>
- A list of certificates that match the filter(s).
- id String
- An auto-generated identifier that includes the timestamp when this data source was last modified.
- space
Id String - The space ID associated with this resource.
- archived String
- A filter to search for resources that have been archived.
- first
Result String - A filter to define the first result.
- ids List<String>
- A filter to search by a list of IDs.
- order
By String - A filter used to order the search results.
- partial
Name String - A filter to search by the partial match of a name.
- search String
- A filter of terms used the search operation.
- skip Number
- A filter to specify the number of items to skip in the response.
- take Number
- A filter to specify the number of items to take (or return) in the response.
- tenant String
- A filter to search by a tenant ID.
Supporting Types
GetCertificatesCertificate
- Archived string
- Certificate
Data string - Certificate
Data stringFormat - Environments List<string>
- Has
Private boolKey - Id string
- Is
Expired bool - Issuer
Common stringName - Issuer
Distinguished stringName - Issuer
Organization string - Name string
- Not
After string - Not
Before string - Notes string
- Password string
- Replaced
By string - Self
Signed bool - Serial
Number string - Signature
Algorithm stringName - Space
Id string - Subject
Alternative List<string>Names - Subject
Common stringName - Subject
Distinguished stringName - Subject
Organization string - List<string>
- Tenanted
Deployment stringParticipation - Tenants List<string>
- Thumbprint string
- Version double
- Archived string
- Certificate
Data string - Certificate
Data stringFormat - Environments []string
- Has
Private boolKey - Id string
- Is
Expired bool - Issuer
Common stringName - Issuer
Distinguished stringName - Issuer
Organization string - Name string
- Not
After string - Not
Before string - Notes string
- Password string
- Replaced
By string - Self
Signed bool - Serial
Number string - Signature
Algorithm stringName - Space
Id string - Subject
Alternative []stringNames - Subject
Common stringName - Subject
Distinguished stringName - Subject
Organization string - []string
- Tenanted
Deployment stringParticipation - Tenants []string
- Thumbprint string
- Version float64
- archived String
- certificate
Data String - certificate
Data StringFormat - environments List<String>
- has
Private BooleanKey - id String
- is
Expired Boolean - issuer
Common StringName - issuer
Distinguished StringName - issuer
Organization String - name String
- not
After String - not
Before String - notes String
- password String
- replaced
By String - self
Signed Boolean - serial
Number String - signature
Algorithm StringName - space
Id String - subject
Alternative List<String>Names - subject
Common StringName - subject
Distinguished StringName - subject
Organization String - List<String>
- tenanted
Deployment StringParticipation - tenants List<String>
- thumbprint String
- version Double
- archived string
- certificate
Data string - certificate
Data stringFormat - environments string[]
- has
Private booleanKey - id string
- is
Expired boolean - issuer
Common stringName - issuer
Distinguished stringName - issuer
Organization string - name string
- not
After string - not
Before string - notes string
- password string
- replaced
By string - self
Signed boolean - serial
Number string - signature
Algorithm stringName - space
Id string - subject
Alternative string[]Names - subject
Common stringName - subject
Distinguished stringName - subject
Organization string - string[]
- tenanted
Deployment stringParticipation - tenants string[]
- thumbprint string
- version number
- archived str
- certificate_
data str - certificate_
data_ strformat - environments Sequence[str]
- has_
private_ boolkey - id str
- is_
expired bool - issuer_
common_ strname - issuer_
distinguished_ strname - issuer_
organization str - name str
- not_
after str - not_
before str - notes str
- password str
- replaced_
by str - self_
signed bool - serial_
number str - signature_
algorithm_ strname - space_
id str - subject_
alternative_ Sequence[str]names - subject_
common_ strname - subject_
distinguished_ strname - subject_
organization str - Sequence[str]
- tenanted_
deployment_ strparticipation - tenants Sequence[str]
- thumbprint str
- version float
- archived String
- certificate
Data String - certificate
Data StringFormat - environments List<String>
- has
Private BooleanKey - id String
- is
Expired Boolean - issuer
Common StringName - issuer
Distinguished StringName - issuer
Organization String - name String
- not
After String - not
Before String - notes String
- password String
- replaced
By String - self
Signed Boolean - serial
Number String - signature
Algorithm StringName - space
Id String - subject
Alternative List<String>Names - subject
Common StringName - subject
Distinguished StringName - subject
Organization String - List<String>
- tenanted
Deployment StringParticipation - tenants List<String>
- thumbprint String
- version Number
Package Details
- Repository
- octopusdeploy octopusdeploylabs/terraform-provider-octopusdeploy
- License
- Notes
- This Pulumi package is based on the
octopusdeployTerraform Provider.
octopusdeploy 0.43.2 published on Friday, May 30, 2025 by octopusdeploylabs
