1. Packages
  2. Packages
  3. Cloudflare Provider
  4. API Docs
  5. VulnerabilityScannerCredential
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 = new cloudflare.VulnerabilityScannerCredential("example_vulnerability_scanner_credential", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        credentialSetId: "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        location: "header",
        locationName: "Authorization",
        name: "Admin API key",
        value: "Bearer EXAMPLE_TOKEN",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_vulnerability_scanner_credential = cloudflare.VulnerabilityScannerCredential("example_vulnerability_scanner_credential",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        credential_set_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
        location="header",
        location_name="Authorization",
        name="Admin API key",
        value="Bearer EXAMPLE_TOKEN")
    
    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.NewVulnerabilityScannerCredential(ctx, "example_vulnerability_scanner_credential", &cloudflare.VulnerabilityScannerCredentialArgs{
    			AccountId:       pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			CredentialSetId: pulumi.String("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"),
    			Location:        pulumi.String("header"),
    			LocationName:    pulumi.String("Authorization"),
    			Name:            pulumi.String("Admin API key"),
    			Value:           pulumi.String("Bearer EXAMPLE_TOKEN"),
    		})
    		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 = new Cloudflare.Index.VulnerabilityScannerCredential("example_vulnerability_scanner_credential", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            CredentialSetId = "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
            Location = "header",
            LocationName = "Authorization",
            Name = "Admin API key",
            Value = "Bearer EXAMPLE_TOKEN",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.VulnerabilityScannerCredential;
    import com.pulumi.cloudflare.VulnerabilityScannerCredentialArgs;
    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) {
            var exampleVulnerabilityScannerCredential = new VulnerabilityScannerCredential("exampleVulnerabilityScannerCredential", VulnerabilityScannerCredentialArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .credentialSetId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e")
                .location("header")
                .locationName("Authorization")
                .name("Admin API key")
                .value("Bearer EXAMPLE_TOKEN")
                .build());
    
        }
    }
    
    resources:
      exampleVulnerabilityScannerCredential:
        type: cloudflare:VulnerabilityScannerCredential
        name: example_vulnerability_scanner_credential
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          credentialSetId: 182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e
          location: header
          locationName: Authorization
          name: Admin API key
          value: Bearer EXAMPLE_TOKEN
    

    Create VulnerabilityScannerCredential Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new VulnerabilityScannerCredential(name: string, args: VulnerabilityScannerCredentialArgs, opts?: CustomResourceOptions);
    @overload
    def VulnerabilityScannerCredential(resource_name: str,
                                       args: VulnerabilityScannerCredentialArgs,
                                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def VulnerabilityScannerCredential(resource_name: str,
                                       opts: Optional[ResourceOptions] = None,
                                       credential_set_id: Optional[str] = None,
                                       location: Optional[str] = None,
                                       location_name: Optional[str] = None,
                                       name: Optional[str] = None,
                                       value: Optional[str] = None,
                                       account_id: Optional[str] = None)
    func NewVulnerabilityScannerCredential(ctx *Context, name string, args VulnerabilityScannerCredentialArgs, opts ...ResourceOption) (*VulnerabilityScannerCredential, error)
    public VulnerabilityScannerCredential(string name, VulnerabilityScannerCredentialArgs args, CustomResourceOptions? opts = null)
    public VulnerabilityScannerCredential(String name, VulnerabilityScannerCredentialArgs args)
    public VulnerabilityScannerCredential(String name, VulnerabilityScannerCredentialArgs args, CustomResourceOptions options)
    
    type: cloudflare:VulnerabilityScannerCredential
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VulnerabilityScannerCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VulnerabilityScannerCredentialArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VulnerabilityScannerCredentialArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VulnerabilityScannerCredentialArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VulnerabilityScannerCredentialArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var vulnerabilityScannerCredentialResource = new Cloudflare.VulnerabilityScannerCredential("vulnerabilityScannerCredentialResource", new()
    {
        CredentialSetId = "string",
        Location = "string",
        LocationName = "string",
        Name = "string",
        Value = "string",
        AccountId = "string",
    });
    
    example, err := cloudflare.NewVulnerabilityScannerCredential(ctx, "vulnerabilityScannerCredentialResource", &cloudflare.VulnerabilityScannerCredentialArgs{
    	CredentialSetId: pulumi.String("string"),
    	Location:        pulumi.String("string"),
    	LocationName:    pulumi.String("string"),
    	Name:            pulumi.String("string"),
    	Value:           pulumi.String("string"),
    	AccountId:       pulumi.String("string"),
    })
    
    var vulnerabilityScannerCredentialResource = new VulnerabilityScannerCredential("vulnerabilityScannerCredentialResource", VulnerabilityScannerCredentialArgs.builder()
        .credentialSetId("string")
        .location("string")
        .locationName("string")
        .name("string")
        .value("string")
        .accountId("string")
        .build());
    
    vulnerability_scanner_credential_resource = cloudflare.VulnerabilityScannerCredential("vulnerabilityScannerCredentialResource",
        credential_set_id="string",
        location="string",
        location_name="string",
        name="string",
        value="string",
        account_id="string")
    
    const vulnerabilityScannerCredentialResource = new cloudflare.VulnerabilityScannerCredential("vulnerabilityScannerCredentialResource", {
        credentialSetId: "string",
        location: "string",
        locationName: "string",
        name: "string",
        value: "string",
        accountId: "string",
    });
    
    type: cloudflare:VulnerabilityScannerCredential
    properties:
        accountId: string
        credentialSetId: string
        location: string
        locationName: string
        name: string
        value: string
    

    VulnerabilityScannerCredential Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The VulnerabilityScannerCredential resource accepts the following input properties:

    CredentialSetId string
    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.
    Value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    AccountId string
    Identifier.
    CredentialSetId string
    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.
    Value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    AccountId string
    Identifier.
    credentialSetId String
    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.
    value String
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId String
    Identifier.
    credentialSetId string
    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.
    value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId string
    Identifier.
    credential_set_id str
    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.
    value str
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    account_id str
    Identifier.
    credentialSetId String
    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.
    value String
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId String
    Identifier.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the VulnerabilityScannerCredential resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VulnerabilityScannerCredential Resource

    Get an existing VulnerabilityScannerCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: VulnerabilityScannerCredentialState, opts?: CustomResourceOptions): VulnerabilityScannerCredential
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            credential_set_id: Optional[str] = None,
            location: Optional[str] = None,
            location_name: Optional[str] = None,
            name: Optional[str] = None,
            value: Optional[str] = None) -> VulnerabilityScannerCredential
    func GetVulnerabilityScannerCredential(ctx *Context, name string, id IDInput, state *VulnerabilityScannerCredentialState, opts ...ResourceOption) (*VulnerabilityScannerCredential, error)
    public static VulnerabilityScannerCredential Get(string name, Input<string> id, VulnerabilityScannerCredentialState? state, CustomResourceOptions? opts = null)
    public static VulnerabilityScannerCredential get(String name, Output<String> id, VulnerabilityScannerCredentialState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:VulnerabilityScannerCredential    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Identifier.
    CredentialSetId string
    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.
    Value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    AccountId string
    Identifier.
    CredentialSetId string
    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.
    Value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId String
    Identifier.
    credentialSetId String
    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.
    value String
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId string
    Identifier.
    credentialSetId string
    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.
    value string
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    account_id str
    Identifier.
    credential_set_id str
    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.
    value str
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.
    accountId String
    Identifier.
    credentialSetId String
    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.
    value String
    The credential value (e.g. API key, session token). Write-only. Never returned in responses.

    Import

    $ pulumi import cloudflare:index/vulnerabilityScannerCredential:VulnerabilityScannerCredential example '<account_id>/<credential_set_id>/<credential_id>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.