Creates anattestor, and returns a copy of the newattestor. Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if theattestoralready exists.
HTTP request
POST https://binaryauthorization.googleapis.com/v1alpha2/{parent=projects/*}/attestors
[[["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-30 UTC."],[[["\u003cp\u003eThis page details how to create a new Attestor, using a POST request to the specified URL, \u003ccode\u003ehttps://binaryauthorization.googleapis.com/v1alpha2/{parent=projects/*}/attestors\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eCreating an Attestor requires you to specify a \u003ccode\u003eparent\u003c/code\u003e path parameter, and an \u003ccode\u003eattestorId\u003c/code\u003e query parameter, along with a request body that is an instance of an Attestor.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created Attestor instance in the response body, while various error codes such as NOT_FOUND, INVALID_ARGUMENT, or ALREADY_EXISTS may occur.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to create an Attestor requires the \u003ccode\u003ebinaryauthorization.attestors.create\u003c/code\u003e IAM permission on the parent resource and the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: projects.attestors.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\nCreates an [attestor](/binary-authorization/docs/reference/rest/Shared.Types/Attestor), and returns a copy of the new [attestor](/binary-authorization/docs/reference/rest/Shared.Types/Attestor). Returns NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, ALREADY_EXISTS if the [attestor](/binary-authorization/docs/reference/rest/Shared.Types/Attestor) already exists.\n\n### HTTP request\n\n`POST https://binaryauthorization.googleapis.com/v1alpha2/{parent=projects/*}/attestors`\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 [Attestor](/binary-authorization/docs/reference/rest/Shared.Types/Attestor).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Attestor](/binary-authorization/docs/reference/rest/Shared.Types/Attestor).\n\n### Authorization scopes\n\nRequires the following OAuth scope:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/)."]]