# VulnerabilityScanner

## CredentialSets

Types:

```python
from cloudflare.types.vulnerability_scanner import (
    CredentialSetCreateResponse,
    CredentialSetUpdateResponse,
    CredentialSetListResponse,
    CredentialSetEditResponse,
    CredentialSetGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/vuln_scanner/credential_sets">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_set_create_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_set_create_response.py">Optional[CredentialSetCreateResponse]</a></code>
- <code title="put /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">update</a>(credential_set_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_set_update_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_set_update_response.py">Optional[CredentialSetUpdateResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/credential_sets">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_set_list_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_set_list_response.py">SyncV4PagePaginationArray[CredentialSetListResponse]</a></code>
- <code title="delete /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">delete</a>(credential_set_id, \*, account_id) -> object</code>
- <code title="patch /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">edit</a>(credential_set_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_set_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_set_edit_response.py">Optional[CredentialSetEditResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}">client.vulnerability_scanner.credential_sets.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credential_sets.py">get</a>(credential_set_id, \*, account_id) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_set_get_response.py">Optional[CredentialSetGetResponse]</a></code>

### Credentials

Types:

```python
from cloudflare.types.vulnerability_scanner.credential_sets import (
    CredentialCreateResponse,
    CredentialUpdateResponse,
    CredentialListResponse,
    CredentialEditResponse,
    CredentialGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">create</a>(credential_set_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_sets/credential_create_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_sets/credential_create_response.py">Optional[CredentialCreateResponse]</a></code>
- <code title="put /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials/{credential_id}">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">update</a>(credential_id, \*, account_id, credential_set_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_sets/credential_update_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_sets/credential_update_response.py">Optional[CredentialUpdateResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">list</a>(credential_set_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_sets/credential_list_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_sets/credential_list_response.py">SyncV4PagePaginationArray[CredentialListResponse]</a></code>
- <code title="delete /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials/{credential_id}">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">delete</a>(credential_id, \*, account_id, credential_set_id) -> object</code>
- <code title="patch /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials/{credential_id}">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">edit</a>(credential_id, \*, account_id, credential_set_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/credential_sets/credential_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_sets/credential_edit_response.py">Optional[CredentialEditResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/credential_sets/{credential_set_id}/credentials/{credential_id}">client.vulnerability_scanner.credential_sets.credentials.<a href="./src/cloudflare/resources/vulnerability_scanner/credential_sets/credentials.py">get</a>(credential_id, \*, account_id, credential_set_id) -> <a href="./src/cloudflare/types/vulnerability_scanner/credential_sets/credential_get_response.py">Optional[CredentialGetResponse]</a></code>

## Scans

Types:

```python
from cloudflare.types.vulnerability_scanner import (
    ScanCreateResponse,
    ScanListResponse,
    ScanGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/vuln_scanner/scans">client.vulnerability_scanner.scans.<a href="./src/cloudflare/resources/vulnerability_scanner/scans.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/scan_create_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/scan_create_response.py">Optional[ScanCreateResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/scans">client.vulnerability_scanner.scans.<a href="./src/cloudflare/resources/vulnerability_scanner/scans.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/scan_list_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/scan_list_response.py">SyncV4PagePaginationArray[ScanListResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/scans/{scan_id}">client.vulnerability_scanner.scans.<a href="./src/cloudflare/resources/vulnerability_scanner/scans.py">get</a>(scan_id, \*, account_id) -> <a href="./src/cloudflare/types/vulnerability_scanner/scan_get_response.py">Optional[ScanGetResponse]</a></code>

## TargetEnvironments

Types:

```python
from cloudflare.types.vulnerability_scanner import (
    TargetEnvironmentCreateResponse,
    TargetEnvironmentUpdateResponse,
    TargetEnvironmentListResponse,
    TargetEnvironmentEditResponse,
    TargetEnvironmentGetResponse,
)
```

Methods:

- <code title="post /accounts/{account_id}/vuln_scanner/target_environments">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/target_environment_create_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/target_environment_create_response.py">Optional[TargetEnvironmentCreateResponse]</a></code>
- <code title="put /accounts/{account_id}/vuln_scanner/target_environments/{target_environment_id}">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">update</a>(target_environment_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/target_environment_update_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/target_environment_update_response.py">Optional[TargetEnvironmentUpdateResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/target_environments">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/target_environment_list_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/target_environment_list_response.py">SyncV4PagePaginationArray[TargetEnvironmentListResponse]</a></code>
- <code title="delete /accounts/{account_id}/vuln_scanner/target_environments/{target_environment_id}">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">delete</a>(target_environment_id, \*, account_id) -> object</code>
- <code title="patch /accounts/{account_id}/vuln_scanner/target_environments/{target_environment_id}">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">edit</a>(target_environment_id, \*, account_id, \*\*<a href="src/cloudflare/types/vulnerability_scanner/target_environment_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/vulnerability_scanner/target_environment_edit_response.py">Optional[TargetEnvironmentEditResponse]</a></code>
- <code title="get /accounts/{account_id}/vuln_scanner/target_environments/{target_environment_id}">client.vulnerability_scanner.target_environments.<a href="./src/cloudflare/resources/vulnerability_scanner/target_environments.py">get</a>(target_environment_id, \*, account_id) -> <a href="./src/cloudflare/types/vulnerability_scanner/target_environment_get_response.py">Optional[TargetEnvironmentGetResponse]</a></code>
