# REST Resource: projects.locations.certificateAuthorities.certificateRevocationLists

- [Resource: CertificateRevocationList](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList)
  - [JSON representation](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList.SCHEMA_REPRESENTATION)
- [RevokedCertificate](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#RevokedCertificate)
  - [JSON representation](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#RevokedCertificate.SCHEMA_REPRESENTATION)
- [State](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#State)
- [Methods](https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#METHODS_SUMMARY)

## Resource: CertificateRevocationList

A `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` corresponds to a signed X.509 certificate Revocation List (CRL). A CRL contains the serial numbers of certificates that should no longer be trusted.

| JSON representation ||
|---|---|
| ``` { "name": string, "sequenceNumber": string, "revokedCertificates": [ { object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#RevokedCertificate`) } ], "pemCrl": string, "accessUrl": string, "state": enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#State`), "createTime": string, "updateTime": string, "labels": { string: string, ... } } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. The resource path for this `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` in the format `projects/*/locations/*/certificateAuthorities/*/ certificateRevocationLists/*`. |
| `sequenceNumber` | `string (https://developers.google.com/discovery/v1/type-format format)` Output only. The CRL sequence number that appears in pemCrl. |
| `revokedCertificates[]` | ``object (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#RevokedCertificate`)`` Output only. The revoked serial numbers that appear in pemCrl. |
| `pemCrl` | `string` Output only. The PEM-encoded X.509 CRL. |
| `accessUrl` | `string` Output only. The location where 'pemCrl' can be accessed. |
| `state` | ``enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#State`)`` Output only. The `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#State` for this `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList`. |
| `createTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The time at which this `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `updateTime` | ``string (`https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.Timestamp` format)`` Output only. The time at which this `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` was updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: `"2014-10-02T15:01:23Z"` and `"2014-10-02T15:01:23.045123456Z"`. |
| `labels` | `map (key: string, value: string)` Optional. Labels with user-defined metadata. An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |

## RevokedCertificate

Describes a revoked `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificates#Certificate`.

| JSON representation ||
|---|---|
| ``` { "certificate": string, "hexSerialNumber": string, "revocationReason": enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/RevocationReason`) } ``` |

| Fields ||
|---|---|
| `certificate` | `string` The resource path for the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificates#Certificate` in the format `projects/*/locations/*/certificateAuthorities/*/certificates/*`. |
| `hexSerialNumber` | `string` The serial number of the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificates#Certificate`. |
| `revocationReason` | ``enum (`https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/RevocationReason`)`` The reason the `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificates#Certificate` was revoked. |

## State

The state of a `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList`, indicating if it is current.

| Enums ||
|---|---|
| `STATE_UNSPECIFIED` | Not specified. |
| `ACTIVE` | The `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` is up to date. |
| `SUPERSEDED` | The `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList` is no longer current. |

| ## Methods ||
|---|---|
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/get` | Returns a `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList`. |
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/getIamPolicy` | Gets the access control policy for a resource. |
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/list` | Lists `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList`. |
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/patch` | Update a `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists#CertificateRevocationList`. |
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/setIamPolicy` | Sets the access control policy on the specified resource. |
| ### `https://docs.cloud.google.com/certificate-authority-service/docs/reference/rest/v1beta1/projects.locations.certificateAuthorities.certificateRevocationLists/testIamPermissions` | Returns permissions that a caller has on the specified resource. |