0
# Listing Operations
1
2
Efficiently browse and discover certificates with filtering, paging, and version management. List active certificates, deleted certificates, and certificate versions.
3
4
## Capabilities
5
6
### Certificate Listing
7
8
```python { .api }
9
def list_properties_of_certificates(
10
*,
11
include_pending: Optional[bool] = None,
12
max_page_size: Optional[int] = None,
13
**kwargs: Any
14
) -> ItemPaged[CertificateProperties]:
15
"""List all certificates in the vault."""
16
17
def list_deleted_certificates(
18
*, max_page_size: Optional[int] = None, **kwargs: Any
19
) -> ItemPaged[DeletedCertificate]:
20
"""List soft-deleted certificates."""
21
22
def list_properties_of_certificate_versions(
23
certificate_name: str,
24
*, max_page_size: Optional[int] = None,
25
**kwargs: Any
26
) -> ItemPaged[CertificateProperties]:
27
"""List all versions of a certificate."""
28
```
29
30
## Usage Examples
31
32
```python
33
# List all certificates
34
for cert_props in client.list_properties_of_certificates():
35
print(f"Name: {cert_props.name}")
36
print(f"Expires: {cert_props.expires_on}")
37
print(f"Enabled: {cert_props.enabled}")
38
39
# List with paging
40
for cert_props in client.list_properties_of_certificates(max_page_size=10):
41
print(cert_props.name)
42
43
# List deleted certificates
44
for deleted_cert in client.list_deleted_certificates():
45
print(f"Deleted: {deleted_cert.name} on {deleted_cert.deleted_on}")
46
```