User assigned name of the Response Policy containing the Response Policy Rule.
Query parameters
Parameters
clientOperationId
string
For mutating operation requests only. An optional identifier specified by the client. Must be unique for operation resources in the Operations collection.
[[["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-19 UTC."],[[["\u003cp\u003eThis endpoint facilitates the creation of a new Response Policy Rule within a specified project and Response Policy.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request is a POST operation to a specific URL that uses gRPC Transcoding syntax, and the request URL contains path parameters for \u003ccode\u003eproject\u003c/code\u003e and \u003ccode\u003eresponsePolicy\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe request may include an optional query parameter \u003ccode\u003eclientOperationId\u003c/code\u003e for identifying the request when mutating operation resources.\u003c/p\u003e\n"],["\u003cp\u003eThe request body must include the configuration details of the ResponsePolicyRule, and upon success, the response body contains the newly created ResponsePolicyRule.\u003c/p\u003e\n"],["\u003cp\u003eAuthorization to use this endpoint requires either the \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/ndev.clouddns.readwrite\u003c/code\u003e OAuth scope.\u003c/p\u003e\n"]]],[],null,["# Method: responsePolicyRules.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 Response Policy Rule.\n\n### HTTP request\n\n`POST https://dns.googleapis.com/dns/v1/projects/{project}/responsePolicies/{responsePolicy}/rules`\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 [ResponsePolicyRule](/dns/docs/reference/rest/v1/responsePolicyRules#ResponsePolicyRule).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [ResponsePolicyRule](/dns/docs/reference/rest/v1/responsePolicyRules#ResponsePolicyRule).\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/ndev.clouddns.readwrite`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/external/authorization-gcp)."]]