Required. The ID to use for the key, which becomes the final component of the resource name. This value must be 4-32 characters, and may contain the characters [a-z0-9-].
[[["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-05-21 UTC."],[[["\u003cp\u003eThis endpoint creates a new WorkforcePoolProviderKey within a specified WorkforcePoolProvider.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method with a URL that follows gRPC Transcoding syntax, targeting a specific parent location and workforce pool provider.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter, and a \u003ccode\u003eworkforcePoolProviderKeyId\u003c/code\u003e query parameter to identify the provider and define the ID for the new key.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must contain an instance of the WorkforcePoolProviderKey, and the response body returns an Operation upon successful creation.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization requires one of two OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/iam\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: locations.workforcePools.providers.keys.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Examples](#examples)\n- [Try it!](#try-it)\n\nCreates a new [WorkforcePoolProviderKey](/iam/docs/reference/rest/v1/locations.workforcePools.providers.keys#WorkforcePoolProviderKey) in a [WorkforcePoolProvider](/iam/docs/reference/rest/v1/locations.workforcePools.providers#WorkforcePoolProvider).\n\n### HTTP request\n\n`POST https://iam.googleapis.com/v1/{parent=locations/*/workforcePools/*/providers/*}/keys`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Query parameters\n\n### Request body\n\nThe request body contains an instance of [WorkforcePoolProviderKey](/iam/docs/reference/rest/v1/locations.workforcePools.providers.keys#WorkforcePoolProviderKey).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/iam/docs/reference/rest/Shared.Types/Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `\n https://www.googleapis.com/auth/iam`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]