# Associations ## List mTLS certificate associations `mtls_certificates.associations.get(strmtls_certificate_id, AssociationGetParams**kwargs) -> SyncSinglePage[CertificateAsssociation]` **get** `/accounts/{account_id}/mtls_certificates/{mtls_certificate_id}/associations` Lists all active associations between the certificate and Cloudflare services. ### Parameters - `account_id: str` Identifier. - `mtls_certificate_id: str` Identifier. ### Returns - `class CertificateAsssociation: …` - `service: Optional[str]` The service using the certificate. - `status: Optional[str]` Certificate deployment status for the given service. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) page = client.mtls_certificates.associations.get( mtls_certificate_id="023e105f4ecef8ad9ca31a8372d0c353", account_id="023e105f4ecef8ad9ca31a8372d0c353", ) page = page.result[0] print(page.service) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": [ { "service": "gateway", "status": "pending_deployment" } ], "result_info": { "count": 1, "page": 1, "per_page": 20, "total_count": 2000, "total_pages": 100 } } ``` ## Domain Types ### Certificate Asssociation - `class CertificateAsssociation: …` - `service: Optional[str]` The service using the certificate. - `status: Optional[str]` Certificate deployment status for the given service.