published on Monday, Aug 10, 2026 by akeyless-community
published on Monday, Aug 10, 2026 by akeyless-community
Create CertificateDiscovery Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CertificateDiscovery(name: string, args: CertificateDiscoveryArgs, opts?: CustomResourceOptions);@overload
def CertificateDiscovery(resource_name: str,
args: CertificateDiscoveryArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CertificateDiscovery(resource_name: str,
opts: Optional[ResourceOptions] = None,
hosts: Optional[str] = None,
target_location: Optional[str] = None,
certificate_discovery_id: Optional[str] = None,
expiration_event_ins: Optional[Sequence[str]] = None,
port_ranges: Optional[str] = None,
protection_key: Optional[str] = None)func NewCertificateDiscovery(ctx *Context, name string, args CertificateDiscoveryArgs, opts ...ResourceOption) (*CertificateDiscovery, error)public CertificateDiscovery(string name, CertificateDiscoveryArgs args, CustomResourceOptions? opts = null)
public CertificateDiscovery(String name, CertificateDiscoveryArgs args)
public CertificateDiscovery(String name, CertificateDiscoveryArgs args, CustomResourceOptions options)
type: akeyless:CertificateDiscovery
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "akeyless_certificate_discovery" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args CertificateDiscoveryArgs
- 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 CertificateDiscoveryArgs
- 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 CertificateDiscoveryArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateDiscoveryArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateDiscoveryArgs
- 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 certificateDiscoveryResource = new Akeyless.CertificateDiscovery("certificateDiscoveryResource", new()
{
Hosts = "string",
TargetLocation = "string",
CertificateDiscoveryId = "string",
ExpirationEventIns = new[]
{
"string",
},
PortRanges = "string",
ProtectionKey = "string",
});
example, err := akeyless.NewCertificateDiscovery(ctx, "certificateDiscoveryResource", &akeyless.CertificateDiscoveryArgs{
Hosts: pulumi.String("string"),
TargetLocation: pulumi.String("string"),
CertificateDiscoveryId: pulumi.String("string"),
ExpirationEventIns: pulumi.StringArray{
pulumi.String("string"),
},
PortRanges: pulumi.String("string"),
ProtectionKey: pulumi.String("string"),
})
resource "akeyless_certificate_discovery" "certificateDiscoveryResource" {
lifecycle {
create_before_destroy = true
}
hosts = "string"
target_location = "string"
certificate_discovery_id = "string"
expiration_event_ins = ["string"]
port_ranges = "string"
protection_key = "string"
}
var certificateDiscoveryResource = new CertificateDiscovery("certificateDiscoveryResource", CertificateDiscoveryArgs.builder()
.hosts("string")
.targetLocation("string")
.certificateDiscoveryId("string")
.expirationEventIns("string")
.portRanges("string")
.protectionKey("string")
.build());
certificate_discovery_resource = akeyless.CertificateDiscovery("certificateDiscoveryResource",
hosts="string",
target_location="string",
certificate_discovery_id="string",
expiration_event_ins=["string"],
port_ranges="string",
protection_key="string")
const certificateDiscoveryResource = new akeyless.CertificateDiscovery("certificateDiscoveryResource", {
hosts: "string",
targetLocation: "string",
certificateDiscoveryId: "string",
expirationEventIns: ["string"],
portRanges: "string",
protectionKey: "string",
});
type: akeyless:CertificateDiscovery
properties:
certificateDiscoveryId: string
expirationEventIns:
- string
hosts: string
portRanges: string
protectionKey: string
targetLocation: string
CertificateDiscovery 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 CertificateDiscovery resource accepts the following input properties:
- Hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- Target
Location string - The results will be saved in this folder
- Certificate
Discovery stringId - The ID of this resource.
- Expiration
Event List<string>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- Port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- Protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- Hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- Target
Location string - The results will be saved in this folder
- Certificate
Discovery stringId - The ID of this resource.
- Expiration
Event []stringIns - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- Port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- Protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- target_
location string - The results will be saved in this folder
- certificate_
discovery_ stringid - The ID of this resource.
- expiration_
event_ list(string)ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- port_
ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- protection_
key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- hosts String
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- target
Location String - The results will be saved in this folder
- certificate
Discovery StringId - The ID of this resource.
- expiration
Event List<String>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- port
Ranges String - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key String - The name of the key that protects the certificate value (if empty, the account default key will be used)
- hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- target
Location string - The results will be saved in this folder
- certificate
Discovery stringId - The ID of this resource.
- expiration
Event string[]Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- hosts str
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- target_
location str - The results will be saved in this folder
- certificate_
discovery_ strid - The ID of this resource.
- expiration_
event_ Sequence[str]ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- port_
ranges str - A comma separated list of port ranges. Example: 80,8080-8085
- protection_
key str - The name of the key that protects the certificate value (if empty, the account default key will be used)
- hosts String
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- target
Location String - The results will be saved in this folder
- certificate
Discovery StringId - The ID of this resource.
- expiration
Event List<String>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- port
Ranges String - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key String - The name of the key that protects the certificate value (if empty, the account default key will be used)
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateDiscovery resource produces the following output properties:
- Count
Existing double - Number of existing certificates updated
- Count
Failed double - Number of failed scan targets
- Count
Hosts double - Number of hosts scanned
- Count
New double - Number of new certificates discovered
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Names List<string> - Names of certificate items created or updated by the discovery
- Count
Existing float64 - Number of existing certificates updated
- Count
Failed float64 - Number of failed scan targets
- Count
Hosts float64 - Number of hosts scanned
- Count
New float64 - Number of new certificates discovered
- Id string
- The provider-assigned unique ID for this managed resource.
- Item
Names []string - Names of certificate items created or updated by the discovery
- count_
existing number - Number of existing certificates updated
- count_
failed number - Number of failed scan targets
- count_
hosts number - Number of hosts scanned
- count_
new number - Number of new certificates discovered
- id string
- The provider-assigned unique ID for this managed resource.
- item_
names list(string) - Names of certificate items created or updated by the discovery
- count
Existing Double - Number of existing certificates updated
- count
Failed Double - Number of failed scan targets
- count
Hosts Double - Number of hosts scanned
- count
New Double - Number of new certificates discovered
- id String
- The provider-assigned unique ID for this managed resource.
- item
Names List<String> - Names of certificate items created or updated by the discovery
- count
Existing number - Number of existing certificates updated
- count
Failed number - Number of failed scan targets
- count
Hosts number - Number of hosts scanned
- count
New number - Number of new certificates discovered
- id string
- The provider-assigned unique ID for this managed resource.
- item
Names string[] - Names of certificate items created or updated by the discovery
- count_
existing float - Number of existing certificates updated
- count_
failed float - Number of failed scan targets
- count_
hosts float - Number of hosts scanned
- count_
new float - Number of new certificates discovered
- id str
- The provider-assigned unique ID for this managed resource.
- item_
names Sequence[str] - Names of certificate items created or updated by the discovery
- count
Existing Number - Number of existing certificates updated
- count
Failed Number - Number of failed scan targets
- count
Hosts Number - Number of hosts scanned
- count
New Number - Number of new certificates discovered
- id String
- The provider-assigned unique ID for this managed resource.
- item
Names List<String> - Names of certificate items created or updated by the discovery
Look up Existing CertificateDiscovery Resource
Get an existing CertificateDiscovery 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?: CertificateDiscoveryState, opts?: CustomResourceOptions): CertificateDiscovery@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
certificate_discovery_id: Optional[str] = None,
count_existing: Optional[float] = None,
count_failed: Optional[float] = None,
count_hosts: Optional[float] = None,
count_new: Optional[float] = None,
expiration_event_ins: Optional[Sequence[str]] = None,
hosts: Optional[str] = None,
item_names: Optional[Sequence[str]] = None,
port_ranges: Optional[str] = None,
protection_key: Optional[str] = None,
target_location: Optional[str] = None) -> CertificateDiscoveryfunc GetCertificateDiscovery(ctx *Context, name string, id IDInput, state *CertificateDiscoveryState, opts ...ResourceOption) (*CertificateDiscovery, error)public static CertificateDiscovery Get(string name, Input<string> id, CertificateDiscoveryState? state, CustomResourceOptions? opts = null)public static CertificateDiscovery get(String name, Output<String> id, CertificateDiscoveryState state, CustomResourceOptions options)resources: _: type: akeyless:CertificateDiscovery get: id: ${id}import {
to = akeyless_certificate_discovery.example
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.
- Certificate
Discovery stringId - The ID of this resource.
- Count
Existing double - Number of existing certificates updated
- Count
Failed double - Number of failed scan targets
- Count
Hosts double - Number of hosts scanned
- Count
New double - Number of new certificates discovered
- Expiration
Event List<string>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- Hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- Item
Names List<string> - Names of certificate items created or updated by the discovery
- Port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- Protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- Target
Location string - The results will be saved in this folder
- Certificate
Discovery stringId - The ID of this resource.
- Count
Existing float64 - Number of existing certificates updated
- Count
Failed float64 - Number of failed scan targets
- Count
Hosts float64 - Number of hosts scanned
- Count
New float64 - Number of new certificates discovered
- Expiration
Event []stringIns - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- Hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- Item
Names []string - Names of certificate items created or updated by the discovery
- Port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- Protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- Target
Location string - The results will be saved in this folder
- certificate_
discovery_ stringid - The ID of this resource.
- count_
existing number - Number of existing certificates updated
- count_
failed number - Number of failed scan targets
- count_
hosts number - Number of hosts scanned
- count_
new number - Number of new certificates discovered
- expiration_
event_ list(string)ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- item_
names list(string) - Names of certificate items created or updated by the discovery
- port_
ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- protection_
key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- target_
location string - The results will be saved in this folder
- certificate
Discovery StringId - The ID of this resource.
- count
Existing Double - Number of existing certificates updated
- count
Failed Double - Number of failed scan targets
- count
Hosts Double - Number of hosts scanned
- count
New Double - Number of new certificates discovered
- expiration
Event List<String>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- hosts String
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- item
Names List<String> - Names of certificate items created or updated by the discovery
- port
Ranges String - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key String - The name of the key that protects the certificate value (if empty, the account default key will be used)
- target
Location String - The results will be saved in this folder
- certificate
Discovery stringId - The ID of this resource.
- count
Existing number - Number of existing certificates updated
- count
Failed number - Number of failed scan targets
- count
Hosts number - Number of hosts scanned
- count
New number - Number of new certificates discovered
- expiration
Event string[]Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- hosts string
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- item
Names string[] - Names of certificate items created or updated by the discovery
- port
Ranges string - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key string - The name of the key that protects the certificate value (if empty, the account default key will be used)
- target
Location string - The results will be saved in this folder
- certificate_
discovery_ strid - The ID of this resource.
- count_
existing float - Number of existing certificates updated
- count_
failed float - Number of failed scan targets
- count_
hosts float - Number of hosts scanned
- count_
new float - Number of new certificates discovered
- expiration_
event_ Sequence[str]ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- hosts str
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- item_
names Sequence[str] - Names of certificate items created or updated by the discovery
- port_
ranges str - A comma separated list of port ranges. Example: 80,8080-8085
- protection_
key str - The name of the key that protects the certificate value (if empty, the account default key will be used)
- target_
location str - The results will be saved in this folder
- certificate
Discovery StringId - The ID of this resource.
- count
Existing Number - Number of existing certificates updated
- count
Failed Number - Number of failed scan targets
- count
Hosts Number - Number of hosts scanned
- count
New Number - Number of new certificates discovered
- expiration
Event List<String>Ins - How many days before the expiration of the certificate would you like to be notified. To specify multiple events, repeat this argument.
- hosts String
- A comma separated list of IPs, CIDR ranges, or DNS names to scan
- item
Names List<String> - Names of certificate items created or updated by the discovery
- port
Ranges String - A comma separated list of port ranges. Example: 80,8080-8085
- protection
Key String - The name of the key that protects the certificate value (if empty, the account default key will be used)
- target
Location String - The results will be saved in this folder
Package Details
- Repository
- akeyless akeyless-community/terraform-provider-akeyless
- License
- Notes
- This Pulumi package is based on the
akeylessTerraform Provider.
published on Monday, Aug 10, 2026 by akeyless-community