1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. getVulnerabilityScannerCredential
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi
cloudflare logo
Viewing docs for Cloudflare v6.15.0
published on Saturday, May 2, 2026 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleVulnerabilityScannerCredential = cloudflare.getVulnerabilityScannerCredential({
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        credentialSetId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        credentialId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_vulnerability_scanner_credential = cloudflare.get_vulnerability_scanner_credential(account_id="023e105f4ecef8ad9ca31a8372d0c353",
        credential_set_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        credential_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.GetVulnerabilityScannerCredential(ctx, &cloudflare.LookupVulnerabilityScannerCredentialArgs{
    			AccountId:       pulumi.StringRef("023e105f4ecef8ad9ca31a8372d0c353"),
    			CredentialSetId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    			CredentialId:    "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleVulnerabilityScannerCredential = Cloudflare.Index.GetVulnerabilityScannerCredential.Invoke(new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            CredentialSetId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            CredentialId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.CloudflareFunctions;
    import com.pulumi.cloudflare.inputs.GetVulnerabilityScannerCredentialArgs;
    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 exampleVulnerabilityScannerCredential = CloudflareFunctions.getVulnerabilityScannerCredential(GetVulnerabilityScannerCredentialArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .credentialSetId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .credentialId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .build());
    
        }
    }
    
    variables:
      exampleVulnerabilityScannerCredential:
        fn::invoke:
          function: cloudflare:getVulnerabilityScannerCredential
          arguments:
            accountId: 023e105f4ecef8ad9ca31a8372d0c353
            credentialSetId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
            credentialId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
    

    Using getVulnerabilityScannerCredential

    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 getVulnerabilityScannerCredential(args: GetVulnerabilityScannerCredentialArgs, opts?: InvokeOptions): Promise<GetVulnerabilityScannerCredentialResult>
    function getVulnerabilityScannerCredentialOutput(args: GetVulnerabilityScannerCredentialOutputArgs, opts?: InvokeOptions): Output<GetVulnerabilityScannerCredentialResult>
    def get_vulnerability_scanner_credential(account_id: Optional[str] = None,
                                             credential_id: Optional[str] = None,
                                             credential_set_id: Optional[str] = None,
                                             opts: Optional[InvokeOptions] = None) -> GetVulnerabilityScannerCredentialResult
    def get_vulnerability_scanner_credential_output(account_id: Optional[pulumi.Input[str]] = None,
                                             credential_id: Optional[pulumi.Input[str]] = None,
                                             credential_set_id: Optional[pulumi.Input[str]] = None,
                                             opts: Optional[InvokeOptions] = None) -> Output[GetVulnerabilityScannerCredentialResult]
    func LookupVulnerabilityScannerCredential(ctx *Context, args *LookupVulnerabilityScannerCredentialArgs, opts ...InvokeOption) (*LookupVulnerabilityScannerCredentialResult, error)
    func LookupVulnerabilityScannerCredentialOutput(ctx *Context, args *LookupVulnerabilityScannerCredentialOutputArgs, opts ...InvokeOption) LookupVulnerabilityScannerCredentialResultOutput

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

    public static class GetVulnerabilityScannerCredential 
    {
        public static Task<GetVulnerabilityScannerCredentialResult> InvokeAsync(GetVulnerabilityScannerCredentialArgs args, InvokeOptions? opts = null)
        public static Output<GetVulnerabilityScannerCredentialResult> Invoke(GetVulnerabilityScannerCredentialInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVulnerabilityScannerCredentialResult> getVulnerabilityScannerCredential(GetVulnerabilityScannerCredentialArgs args, InvokeOptions options)
    public static Output<GetVulnerabilityScannerCredentialResult> getVulnerabilityScannerCredential(GetVulnerabilityScannerCredentialArgs args, InvokeOptions options)
    
    fn::invoke:
      function: cloudflare:index/getVulnerabilityScannerCredential:getVulnerabilityScannerCredential
      arguments:
        # arguments dictionary

    The following arguments are supported:

    CredentialId string
    CredentialSetId string
    AccountId string
    Identifier.
    CredentialId string
    CredentialSetId string
    AccountId string
    Identifier.
    credentialId String
    credentialSetId String
    accountId String
    Identifier.
    credentialId string
    credentialSetId string
    accountId string
    Identifier.
    credentialId String
    credentialSetId String
    accountId String
    Identifier.

    getVulnerabilityScannerCredential Result

    The following output properties are available:

    CredentialId string
    CredentialSetId string
    Id string
    The ID of this resource.
    Location string
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    LocationName string
    Name of the header or cookie where the credential is attached.
    Name string
    Human-readable name.
    AccountId string
    Identifier.
    CredentialId string
    CredentialSetId string
    Id string
    The ID of this resource.
    Location string
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    LocationName string
    Name of the header or cookie where the credential is attached.
    Name string
    Human-readable name.
    AccountId string
    Identifier.
    credentialId String
    credentialSetId String
    id String
    The ID of this resource.
    location String
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    locationName String
    Name of the header or cookie where the credential is attached.
    name String
    Human-readable name.
    accountId String
    Identifier.
    credentialId string
    credentialSetId string
    id string
    The ID of this resource.
    location string
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    locationName string
    Name of the header or cookie where the credential is attached.
    name string
    Human-readable name.
    accountId string
    Identifier.
    credential_id str
    credential_set_id str
    id str
    The ID of this resource.
    location str
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    location_name str
    Name of the header or cookie where the credential is attached.
    name str
    Human-readable name.
    account_id str
    Identifier.
    credentialId String
    credentialSetId String
    id String
    The ID of this resource.
    location String
    Where the credential is attached in outgoing requests. Available values: "header", "cookie".
    locationName String
    Name of the header or cookie where the credential is attached.
    name String
    Human-readable name.
    accountId String
    Identifier.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Viewing docs for Cloudflare v6.15.0
    published on Saturday, May 2, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.