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/v1beta1/{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 endpoint creates a new Attestor within a specified project, returning a copy of the newly created Attestor upon success.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request uses a POST method to a specific URL structure that includes a project as a path parameter, in addition to the requirement of an attestor ID as a query parameter.\u003c/p\u003e\n"],["\u003cp\u003eCreating an Attestor requires the \u003ccode\u003ebinaryauthorization.attestors.create\u003c/code\u003e IAM permission on the specified project and utilizes the request body for the Attestor instance details.\u003c/p\u003e\n"],["\u003cp\u003eThe request must include the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e OAuth scope for proper authorization.\u003c/p\u003e\n"],["\u003cp\u003ePossible error responses include NOT_FOUND if the project does not exist, INVALID_ARGUMENT if the request is malformed, or ALREADY_EXISTS if an Attestor with the same ID is already present.\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/v1beta1/{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/)."]]