Optional. Specify how the results should be sorted. If not specified, the results will be sorted in the default order. For more information, seeSorting and filtering list results.
getParent
Required. The resource name of theCryptoKeyto list, in the formatprojects/*/locations/*/keyRings/*/cryptoKeys/*.
Returns
Type
Description
string
setParent
Required. The resource name of theCryptoKeyto list, in the formatprojects/*/locations/*/keyRings/*/cryptoKeys/*.
Optional. Specify how the results should be sorted. If not specified, the
results will be sorted in the default order. For more information, seeSorting and filtering list
results.
Returns
Type
Description
string
setOrderBy
Optional. Specify how the results should be sorted. If not specified, the
results will be sorted in the default order. For more information, seeSorting and filtering list
results.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
static::build
Parameter
Name
Description
parent
string
Required. The resource name of theCryptoKeyto list, in the formatprojects/*/locations/*/keyRings/*/cryptoKeys/*. Please seeKeyManagementServiceClient::cryptoKeyName()for help formatting this field.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud KMS V1 Client - Class ListCryptoKeyVersionsRequest (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-kms/latest/V1.ListCryptoKeyVersionsRequest)\n- [2.3.0](/php/docs/reference/cloud-kms/2.3.0/V1.ListCryptoKeyVersionsRequest)\n- [2.2.0](/php/docs/reference/cloud-kms/2.2.0/V1.ListCryptoKeyVersionsRequest)\n- [2.1.6](/php/docs/reference/cloud-kms/2.1.6/V1.ListCryptoKeyVersionsRequest)\n- [2.0.0](/php/docs/reference/cloud-kms/2.0.0/V1.ListCryptoKeyVersionsRequest)\n- [1.23.0](/php/docs/reference/cloud-kms/1.23.0/V1.ListCryptoKeyVersionsRequest)\n- [1.22.1](/php/docs/reference/cloud-kms/1.22.1/V1.ListCryptoKeyVersionsRequest)\n- [1.21.4](/php/docs/reference/cloud-kms/1.21.4/V1.ListCryptoKeyVersionsRequest)\n- [1.20.3](/php/docs/reference/cloud-kms/1.20.3/V1.ListCryptoKeyVersionsRequest)\n- [1.19.0](/php/docs/reference/cloud-kms/1.19.0/V1.ListCryptoKeyVersionsRequest)\n- [1.18.1](/php/docs/reference/cloud-kms/1.18.1/V1.ListCryptoKeyVersionsRequest)\n- [1.17.0](/php/docs/reference/cloud-kms/1.17.0/V1.ListCryptoKeyVersionsRequest)\n- [1.16.4](/php/docs/reference/cloud-kms/1.16.4/V1.ListCryptoKeyVersionsRequest)\n- [1.15.3](/php/docs/reference/cloud-kms/1.15.3/V1.ListCryptoKeyVersionsRequest) \nReference documentation and code samples for the Cloud KMS V1 Client class ListCryptoKeyVersionsRequest.\n\nRequest message for\n[KeyManagementService.ListCryptoKeyVersions](/php/docs/reference/cloud-kms/latest/V1.Client.KeyManagementServiceClient#_Google_Cloud_Kms_V1_Client_KeyManagementServiceClient__listCryptoKeyVersions__).\n\nGenerated from protobuf message `google.cloud.kms.v1.ListCryptoKeyVersionsRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Kms \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getParent\n\nRequired. The resource name of the\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey) to list, in the format\n`projects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n### setParent\n\nRequired. The resource name of the\n[CryptoKey](/php/docs/reference/cloud-kms/latest/V1.CryptoKey) to list, in the format\n`projects/*/locations/*/keyRings/*/cryptoKeys/*`.\n\n### getPageSize\n\nOptional. Optional limit on the number of\n[CryptoKeyVersions](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) to include in the\nresponse. Further [CryptoKeyVersions](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion)\ncan subsequently be obtained by including the\n[ListCryptoKeyVersionsResponse.next_page_token](/php/docs/reference/cloud-kms/latest/V1.ListCryptoKeyVersionsResponse#_Google_Cloud_Kms_V1_ListCryptoKeyVersionsResponse__getNextPageToken__)\nin a subsequent request. If unspecified, the server will pick an\nappropriate default.\n\n### setPageSize\n\nOptional. Optional limit on the number of\n[CryptoKeyVersions](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion) to include in the\nresponse. Further [CryptoKeyVersions](/php/docs/reference/cloud-kms/latest/V1.CryptoKeyVersion)\ncan subsequently be obtained by including the\n[ListCryptoKeyVersionsResponse.next_page_token](/php/docs/reference/cloud-kms/latest/V1.ListCryptoKeyVersionsResponse#_Google_Cloud_Kms_V1_ListCryptoKeyVersionsResponse__getNextPageToken__)\nin a subsequent request. If unspecified, the server will pick an\nappropriate default.\n\n### getPageToken\n\nOptional. Optional pagination token, returned earlier via\n[ListCryptoKeyVersionsResponse.next_page_token](/php/docs/reference/cloud-kms/latest/V1.ListCryptoKeyVersionsResponse#_Google_Cloud_Kms_V1_ListCryptoKeyVersionsResponse__getNextPageToken__).\n\n### setPageToken\n\nOptional. Optional pagination token, returned earlier via\n[ListCryptoKeyVersionsResponse.next_page_token](/php/docs/reference/cloud-kms/latest/V1.ListCryptoKeyVersionsResponse#_Google_Cloud_Kms_V1_ListCryptoKeyVersionsResponse__getNextPageToken__).\n\n### getView\n\nThe fields to include in the response.\n\n### setView\n\nThe fields to include in the response.\n\n### getFilter\n\nOptional. Only include resources that match the filter in the response. For\nmore information, see\n[Sorting and filtering list\nresults](https://cloud.google.com/kms/docs/sorting-and-filtering).\n\n### setFilter\n\nOptional. Only include resources that match the filter in the response. For\nmore information, see\n[Sorting and filtering list\nresults](https://cloud.google.com/kms/docs/sorting-and-filtering).\n\n### getOrderBy\n\nOptional. Specify how the results should be sorted. If not specified, the\nresults will be sorted in the default order. For more information, see\n[Sorting and filtering list\nresults](https://cloud.google.com/kms/docs/sorting-and-filtering).\n\n### setOrderBy\n\nOptional. Specify how the results should be sorted. If not specified, the\nresults will be sorted in the default order. For more information, see\n[Sorting and filtering list\nresults](https://cloud.google.com/kms/docs/sorting-and-filtering).\n\n### static::build"]]