Harbor v3.10.11 published on Wednesday, Jun 19, 2024 by Pulumiverse
harbor.InterrogationServices
Explore with Pulumi AI
Example Usage
resource "harbor_interrogation_services" "main" {
default_scanner = "Clair"
vulnerability_scan_policy = "Daily"
}
Create InterrogationServices Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new InterrogationServices(name: string, args: InterrogationServicesArgs, opts?: CustomResourceOptions);
@overload
def InterrogationServices(resource_name: str,
args: InterrogationServicesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def InterrogationServices(resource_name: str,
opts: Optional[ResourceOptions] = None,
vulnerability_scan_policy: Optional[str] = None,
default_scanner: Optional[str] = None)
func NewInterrogationServices(ctx *Context, name string, args InterrogationServicesArgs, opts ...ResourceOption) (*InterrogationServices, error)
public InterrogationServices(string name, InterrogationServicesArgs args, CustomResourceOptions? opts = null)
public InterrogationServices(String name, InterrogationServicesArgs args)
public InterrogationServices(String name, InterrogationServicesArgs args, CustomResourceOptions options)
type: harbor:InterrogationServices
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 InterrogationServicesArgs
- 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 InterrogationServicesArgs
- 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 InterrogationServicesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args InterrogationServicesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args InterrogationServicesArgs
- 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 interrogationServicesResource = new Harbor.InterrogationServices("interrogationServicesResource", new()
{
VulnerabilityScanPolicy = "string",
DefaultScanner = "string",
});
example, err := harbor.NewInterrogationServices(ctx, "interrogationServicesResource", &harbor.InterrogationServicesArgs{
VulnerabilityScanPolicy: pulumi.String("string"),
DefaultScanner: pulumi.String("string"),
})
var interrogationServicesResource = new InterrogationServices("interrogationServicesResource", InterrogationServicesArgs.builder()
.vulnerabilityScanPolicy("string")
.defaultScanner("string")
.build());
interrogation_services_resource = harbor.InterrogationServices("interrogationServicesResource",
vulnerability_scan_policy="string",
default_scanner="string")
const interrogationServicesResource = new harbor.InterrogationServices("interrogationServicesResource", {
vulnerabilityScanPolicy: "string",
defaultScanner: "string",
});
type: harbor:InterrogationServices
properties:
defaultScanner: string
vulnerabilityScanPolicy: string
InterrogationServices Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The InterrogationServices resource accepts the following input properties:
- Vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - Default
Scanner string - Sets the default interrogation service
"Clair"
- Vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - Default
Scanner string - Sets the default interrogation service
"Clair"
- vulnerability
Scan StringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - default
Scanner String - Sets the default interrogation service
"Clair"
- vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - default
Scanner string - Sets the default interrogation service
"Clair"
- vulnerability_
scan_ strpolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - default_
scanner str - Sets the default interrogation service
"Clair"
- vulnerability
Scan StringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string. - default
Scanner String - Sets the default interrogation service
"Clair"
Outputs
All input properties are implicitly available as output properties. Additionally, the InterrogationServices 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 InterrogationServices Resource
Get an existing InterrogationServices 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?: InterrogationServicesState, opts?: CustomResourceOptions): InterrogationServices
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
default_scanner: Optional[str] = None,
vulnerability_scan_policy: Optional[str] = None) -> InterrogationServices
func GetInterrogationServices(ctx *Context, name string, id IDInput, state *InterrogationServicesState, opts ...ResourceOption) (*InterrogationServices, error)
public static InterrogationServices Get(string name, Input<string> id, InterrogationServicesState? state, CustomResourceOptions? opts = null)
public static InterrogationServices get(String name, Output<String> id, InterrogationServicesState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Default
Scanner string - Sets the default interrogation service
"Clair"
- Vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
- Default
Scanner string - Sets the default interrogation service
"Clair"
- Vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
- default
Scanner String - Sets the default interrogation service
"Clair"
- vulnerability
Scan StringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
- default
Scanner string - Sets the default interrogation service
"Clair"
- vulnerability
Scan stringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
- default_
scanner str - Sets the default interrogation service
"Clair"
- vulnerability_
scan_ strpolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
- default
Scanner String - Sets the default interrogation service
"Clair"
- vulnerability
Scan StringPolicy - The frequency of the vulnerability scanning is done. This can be
Daily
,Weekly
,Monthly
or can be a custom cron string.
Package Details
- Repository
- harbor pulumiverse/pulumi-harbor
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harbor
Terraform Provider.