Obligatorio. Es el recurso superior de AuthorizationPolicy. Debe tener el formato projects/{project}/locations/{location}.
La autorización requiere el siguiente permiso IAM en el recurso especificado parent:
networksecurity.authorizationPolicies.create
Parámetros de consulta
Parámetros
authorizationPolicyId
string
Obligatorio. Es el nombre corto del recurso AuthorizationPolicy que se creará. Este valor debe tener entre 1 y 63 caracteres, contener solo letras, números, guiones y guiones bajos, y no debe comenzar con un número. P.ej., "authzPolicy".
La autorización requiere el siguiente permiso IAM en el recurso especificado authorizationPolicyId:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-30 (UTC)"],[],[],null,["# Method: projects.locations.authorizationPolicies.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 a new AuthorizationPolicy in a given project and location.\n\n### HTTP request\n\n`POST https://networksecurity.googleapis.com/v1beta1/{parent=projects/*/locations/*}/authorizationPolicies`\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 [AuthorizationPolicy](/service-mesh/v1.22/docs/reference/network-security/rest/v1beta1/projects.locations.authorizationPolicies#AuthorizationPolicy).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [Operation](/service-mesh/v1.22/docs/reference/network-security/rest/v1beta1/organizations.locations.operations#Operation).\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/)."]]