# Certificate Authority Service V1 API - Module Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::State (v2.8.0)

2.8.0 (latest) 2.7.0 2.6.1 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.13.0 0.12.0 0.11.0 0.10.2 0.9.0 0.8.1 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.6 Reference documentation and code samples for the Certificate Authority Service V1 API module Google::Cloud::Security::PrivateCA::V1::CertificateAuthority::State.

The state of a
[CertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority (class)"),
indicating if it can be used.

## Constants

### STATE_UNSPECIFIED

**value:** 0  
Not specified.

### ENABLED

**value:** 1  
Certificates can be issued from this CA. CRLs will be generated for this
CA. The CA will be part of the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s trust anchor, and
will be used to issue certificates from the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

### DISABLED

**value:** 2  
Certificates cannot be issued from this CA. CRLs will still be generated.
The CA will be part of the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s trust anchor, but
will not be used to issue certificates from the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

### STAGED

**value:** 3  
Certificates can be issued from this CA. CRLs will be generated for this
CA. The CA will be part of the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s trust anchor, but
will not be used to issue certificates from the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

### AWAITING_USER_ACTIVATION

**value:** 4  
Certificates cannot be issued from this CA. CRLs will not be generated.
The CA will not be part of the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s trust anchor, and
will not be used to issue certificates from the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").

### DELETED

**value:** 5  
Certificates cannot be issued from this CA. CRLs will not be generated.
The CA may still be recovered by calling
[CertificateAuthorityService.UndeleteCertificateAuthority](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthorityService-Client#Google__Cloud__Security__PrivateCA__V1__CertificateAuthorityService__Client_undelete_certificate_authority_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateAuthorityService::Client#undelete_certificate_authority (method)")
before
[expire_time](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CertificateAuthority#Google__Cloud__Security__PrivateCA__V1__CertificateAuthority_expire_time_instance_ "Google::Cloud::Security::PrivateCA::V1::CertificateAuthority#expire_time (method)").
The CA will not be part of the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)")'s trust anchor, and
will not be used to issue certificates from the
[CaPool](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-security-private_ca-v1/latest/Google-Cloud-Security-PrivateCA-V1-CaPool "Google::Cloud::Security::PrivateCA::V1::CaPool (class)").