Creates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.
HTTP request
POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*/products/*}/authConfigs
[[["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-07-28 UTC."],[[["\u003cp\u003eThis API endpoint creates an encrypted auth config record, fetching credentials for specific auth types like OAuth 2.0 access tokens or JWT tokens.\u003c/p\u003e\n"],["\u003cp\u003eThe HTTP request method is \u003ccode\u003ePOST\u003c/code\u003e to the URL \u003ccode\u003ehttps://integrations.googleapis.com/v1/{parent=projects/*/locations/*/products/*}/authConfigs\u003c/code\u003e, using gRPC Transcoding syntax.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires a \u003ccode\u003eparent\u003c/code\u003e path parameter in the format \u003ccode\u003eprojects/{project}/locations/{location}\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eSuccessful requests return a newly created \u003ccode\u003eAuthConfig\u003c/code\u003e instance, and it needs the OAuth scope \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo use this endpoint, the caller must have one or more of these IAM permissions on the parent resource: \u003ccode\u003eintegrations.apigeeAuthConfigs.create\u003c/code\u003e, \u003ccode\u003eintegrations.authConfigs.create\u003c/code\u003e, or \u003ccode\u003eintegrations.securityAuthConfigs.create\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.locations.products.authConfigs.create\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [IAM Permissions](#body.aspect_1)\n\nCreates an auth config record. Fetch corresponding credentials for specific auth types, e.g. access token for OAuth 2.0, JWT token for JWT. Encrypt the auth config with Cloud KMS and store the encrypted credentials in Spanner. Returns the encrypted auth config.\n\n### HTTP request\n\n`POST https://integrations.googleapis.com/v1/{parent=projects/*/locations/*/products/*}/authConfigs`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body contains an instance of [AuthConfig](/apigee/docs/reference/apis/integrations/rest/v1/projects.locations.products.authConfigs#AuthConfig).\n\n### Response body\n\nIf successful, the response body contains a newly created instance of [AuthConfig](/apigee/docs/reference/apis/integrations/rest/v1/projects.locations.products.authConfigs#AuthConfig).\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/).\n\n### IAM Permissions\n\nRequires the following [IAM](https://cloud.google.com/iam/docs) permissions on the `parent` resource:\n\n- `integrations.apigeeAuthConfigs.create`\n- `integrations.authConfigs.create`\n- `integrations.securityAuthConfigs.create`\n\nFor more information, see the [IAM documentation](https://cloud.google.com/iam/docs)."]]