1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. getWafCertificate
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.getWafCertificate

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Get the certificate in the WAF, including the one pushed from SCM.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const certificate1 = flexibleengine.getWafCertificate({
        name: "certificate name",
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    certificate1 = flexibleengine.get_waf_certificate(name="certificate name")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := flexibleengine.LookupWafCertificate(ctx, &flexibleengine.LookupWafCertificateArgs{
    			Name: "certificate name",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var certificate1 = Flexibleengine.GetWafCertificate.Invoke(new()
        {
            Name = "certificate name",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.FlexibleengineFunctions;
    import com.pulumi.flexibleengine.inputs.GetWafCertificateArgs;
    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 certificate1 = FlexibleengineFunctions.getWafCertificate(GetWafCertificateArgs.builder()
                .name("certificate name")
                .build());
    
        }
    }
    
    variables:
      certificate1:
        fn::invoke:
          function: flexibleengine:getWafCertificate
          arguments:
            name: certificate name
    

    Using getWafCertificate

    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 getWafCertificate(args: GetWafCertificateArgs, opts?: InvokeOptions): Promise<GetWafCertificateResult>
    function getWafCertificateOutput(args: GetWafCertificateOutputArgs, opts?: InvokeOptions): Output<GetWafCertificateResult>
    def get_waf_certificate(enterprise_project_id: Optional[str] = None,
                            expire_status: Optional[float] = None,
                            id: Optional[str] = None,
                            name: Optional[str] = None,
                            region: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetWafCertificateResult
    def get_waf_certificate_output(enterprise_project_id: Optional[pulumi.Input[str]] = None,
                            expire_status: Optional[pulumi.Input[float]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            region: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetWafCertificateResult]
    func LookupWafCertificate(ctx *Context, args *LookupWafCertificateArgs, opts ...InvokeOption) (*LookupWafCertificateResult, error)
    func LookupWafCertificateOutput(ctx *Context, args *LookupWafCertificateOutputArgs, opts ...InvokeOption) LookupWafCertificateResultOutput

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

    public static class GetWafCertificate 
    {
        public static Task<GetWafCertificateResult> InvokeAsync(GetWafCertificateArgs args, InvokeOptions? opts = null)
        public static Output<GetWafCertificateResult> Invoke(GetWafCertificateInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetWafCertificateResult> getWafCertificate(GetWafCertificateArgs args, InvokeOptions options)
    public static Output<GetWafCertificateResult> getWafCertificate(GetWafCertificateArgs args, InvokeOptions options)
    
    fn::invoke:
      function: flexibleengine:index/getWafCertificate:getWafCertificate
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    EnterpriseProjectId string
    ExpireStatus double
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    Id string
    The certificate ID in UUID format.
    Region string
    The region in which to query the WAF. If omitted, the provider-level region will be used.
    Name string
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    EnterpriseProjectId string
    ExpireStatus float64
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    Id string
    The certificate ID in UUID format.
    Region string
    The region in which to query the WAF. If omitted, the provider-level region will be used.
    name String
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    enterpriseProjectId String
    expireStatus Double
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    id String
    The certificate ID in UUID format.
    region String
    The region in which to query the WAF. If omitted, the provider-level region will be used.
    name string
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    enterpriseProjectId string
    expireStatus number
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    id string
    The certificate ID in UUID format.
    region string
    The region in which to query the WAF. If omitted, the provider-level region will be used.
    name str
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    enterprise_project_id str
    expire_status float
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    id str
    The certificate ID in UUID format.
    region str
    The region in which to query the WAF. If omitted, the provider-level region will be used.
    name String
    The name of certificate. The value is case-sensitive and supports fuzzy matching. The certificate name is not unique. Only returns the last created one when matched multiple certificates.
    enterpriseProjectId String
    expireStatus Number
    The expired status of certificate. Defaults is 0. The value can be:

    • 0: not expire.
    • 1: has expired.
    • 2: will be expired soon.
    id String
    The certificate ID in UUID format.
    region String
    The region in which to query the WAF. If omitted, the provider-level region will be used.

    getWafCertificate Result

    The following output properties are available:

    Expiration string
    Indicates the time when the certificate expires.
    Id string
    The certificate ID in UUID format.
    Name string
    Region string
    EnterpriseProjectId string
    ExpireStatus double
    Expiration string
    Indicates the time when the certificate expires.
    Id string
    The certificate ID in UUID format.
    Name string
    Region string
    EnterpriseProjectId string
    ExpireStatus float64
    expiration String
    Indicates the time when the certificate expires.
    id String
    The certificate ID in UUID format.
    name String
    region String
    enterpriseProjectId String
    expireStatus Double
    expiration string
    Indicates the time when the certificate expires.
    id string
    The certificate ID in UUID format.
    name string
    region string
    enterpriseProjectId string
    expireStatus number
    expiration str
    Indicates the time when the certificate expires.
    id str
    The certificate ID in UUID format.
    name str
    region str
    enterprise_project_id str
    expire_status float
    expiration String
    Indicates the time when the certificate expires.
    id String
    The certificate ID in UUID format.
    name String
    region String
    enterpriseProjectId String
    expireStatus Number

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud