Google Cloud v9.4.0 published on Tuesday, Nov 4, 2025 by Pulumi
gcp.compute.getSSLPolicy
Start a Neo task
Explain and create a gcp.compute.getSSLPolicy resource
Gets an SSL Policy within GCE from its name, for use with Target HTTPS and Target SSL Proxies. For more information see the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const my_ssl_policy = gcp.compute.getSSLPolicy({
name: "production-ssl-policy",
});
import pulumi
import pulumi_gcp as gcp
my_ssl_policy = gcp.compute.get_ssl_policy(name="production-ssl-policy")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/compute"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := compute.LookupSSLPolicy(ctx, &compute.LookupSSLPolicyArgs{
Name: "production-ssl-policy",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var my_ssl_policy = Gcp.Compute.GetSSLPolicy.Invoke(new()
{
Name = "production-ssl-policy",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.compute.ComputeFunctions;
import com.pulumi.gcp.compute.inputs.GetSSLPolicyArgs;
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 my-ssl-policy = ComputeFunctions.getSSLPolicy(GetSSLPolicyArgs.builder()
.name("production-ssl-policy")
.build());
}
}
variables:
my-ssl-policy:
fn::invoke:
function: gcp:compute:getSSLPolicy
arguments:
name: production-ssl-policy
Using getSSLPolicy
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 getSSLPolicy(args: GetSSLPolicyArgs, opts?: InvokeOptions): Promise<GetSSLPolicyResult>
function getSSLPolicyOutput(args: GetSSLPolicyOutputArgs, opts?: InvokeOptions): Output<GetSSLPolicyResult>def get_ssl_policy(name: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetSSLPolicyResult
def get_ssl_policy_output(name: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetSSLPolicyResult]func LookupSSLPolicy(ctx *Context, args *LookupSSLPolicyArgs, opts ...InvokeOption) (*LookupSSLPolicyResult, error)
func LookupSSLPolicyOutput(ctx *Context, args *LookupSSLPolicyOutputArgs, opts ...InvokeOption) LookupSSLPolicyResultOutput> Note: This function is named LookupSSLPolicy in the Go SDK.
public static class GetSSLPolicy
{
public static Task<GetSSLPolicyResult> InvokeAsync(GetSSLPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetSSLPolicyResult> Invoke(GetSSLPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSSLPolicyResult> getSSLPolicy(GetSSLPolicyArgs args, InvokeOptions options)
public static Output<GetSSLPolicyResult> getSSLPolicy(GetSSLPolicyArgs args, InvokeOptions options)
fn::invoke:
function: gcp:compute/getSSLPolicy:getSSLPolicy
arguments:
# arguments dictionaryThe following arguments are supported:
getSSLPolicy Result
The following output properties are available:
- Creation
Timestamp string - Custom
Features List<string> - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - Description string
- Description of this SSL Policy.
- Enabled
Features List<string> - The set of enabled encryption ciphers as a result of the policy config
- Fingerprint string
- Fingerprint of this resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Min
Tls stringVersion - The minimum supported TLS version of this policy.
- Name string
- Profile string
- The Google-curated or custom profile used by this policy.
- Self
Link string - The URI of the created resource.
- Project string
- Creation
Timestamp string - Custom
Features []string - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - Description string
- Description of this SSL Policy.
- Enabled
Features []string - The set of enabled encryption ciphers as a result of the policy config
- Fingerprint string
- Fingerprint of this resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Min
Tls stringVersion - The minimum supported TLS version of this policy.
- Name string
- Profile string
- The Google-curated or custom profile used by this policy.
- Self
Link string - The URI of the created resource.
- Project string
- creation
Timestamp String - custom
Features List<String> - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - description String
- Description of this SSL Policy.
- enabled
Features List<String> - The set of enabled encryption ciphers as a result of the policy config
- fingerprint String
- Fingerprint of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- min
Tls StringVersion - The minimum supported TLS version of this policy.
- name String
- profile String
- The Google-curated or custom profile used by this policy.
- self
Link String - The URI of the created resource.
- project String
- creation
Timestamp string - custom
Features string[] - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - description string
- Description of this SSL Policy.
- enabled
Features string[] - The set of enabled encryption ciphers as a result of the policy config
- fingerprint string
- Fingerprint of this resource.
- id string
- The provider-assigned unique ID for this managed resource.
- min
Tls stringVersion - The minimum supported TLS version of this policy.
- name string
- profile string
- The Google-curated or custom profile used by this policy.
- self
Link string - The URI of the created resource.
- project string
- creation_
timestamp str - custom_
features Sequence[str] - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - description str
- Description of this SSL Policy.
- enabled_
features Sequence[str] - The set of enabled encryption ciphers as a result of the policy config
- fingerprint str
- Fingerprint of this resource.
- id str
- The provider-assigned unique ID for this managed resource.
- min_
tls_ strversion - The minimum supported TLS version of this policy.
- name str
- profile str
- The Google-curated or custom profile used by this policy.
- self_
link str - The URI of the created resource.
- project str
- creation
Timestamp String - custom
Features List<String> - If the
profileisCUSTOM, these are the custom encryption ciphers supported by the profile. If theprofileis notCUSTOM, this attribute will be empty. - description String
- Description of this SSL Policy.
- enabled
Features List<String> - The set of enabled encryption ciphers as a result of the policy config
- fingerprint String
- Fingerprint of this resource.
- id String
- The provider-assigned unique ID for this managed resource.
- min
Tls StringVersion - The minimum supported TLS version of this policy.
- name String
- profile String
- The Google-curated or custom profile used by this policy.
- self
Link String - The URI of the created resource.
- project String
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
