Required. The parent resource for the dependency resource. Format: projects/{project}/locations/{location}
Query parameters
Parameters
dependencyId
string
Optional. The ID to use for the dependency resource, which will become the final component of the dependency's resource name. This field is optional. * If provided, the same will be used. The service will throw an error if duplicate id is provided by the client. * If not provided, a system generated id will be used.
This value should be 4-500 characters, and valid characters are [a-z][A-Z][0-9]-_.
Request body
The request body contains an instance of Dependency.
Response body
If successful, the response body contains a newly created instance of Dependency.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
IAM Permissions
Requires the following IAM permission on the parent resource:
[[["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-01-16 UTC."],[[["This API endpoint creates a dependency resource within a specified project and location using a POST request to the `/dependencies` path."],["The request requires a parent resource path, formatted as `projects/{project}/locations/{location}`, and accepts an optional `dependencyId` query parameter for a custom ID."],["The request body should include a `Dependency` resource instance, and a successful response returns the newly created `Dependency` resource."],["Authorization requires the OAuth scope `https://www.googleapis.com/auth/cloud-platform` and the IAM permission `apihub.dependencies.create` on the parent resource."]]],[]]