Serviceaccounts
Rename a service account
- ALREADY_EXISTS when another service account has the new name.
- ABORTED when
etagis set and the service account changed since it was read.
- ABORTED when
Scope: serviceaccount:write
Authorization
bearerAuth An API key, or an access token minted from one. Pass it in the Authorization header: Bearer admp_...
In: header
Path Parameters
The serviceAccount id.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/serviceAccounts/string/rename" \ -H "Content-Type: application/json" \ -d '{ "new_name": "string" }'{ "service_account": { "id": "string", "name": "string", "display_name": "string", "avatar_url": "string", "resource_name": "string", "subject": "string", "issuer_id": "string", "enrolled_at": "2023-01-15T01:30:15.01Z", "status": "STATUS_UNSPECIFIED", "status_reason": "string", "etag": "string", "created_by": { "id": "string", "display_name": "string", "email": "string" }, "created_at": "2023-01-15T01:30:15.01Z", "updated_at": "2023-01-15T01:30:15.01Z" }}List service accounts GET
Scope: `serviceaccount:read`
Create a source POST
Creating a source needs permission to create sources in the organization, which organization admins hold unless it is granted further. Setting a grant (`credential_id` or `connection_id`) needs permission to grant sources, which organization admins hold, whoever creates the source. PERMISSION_DENIED otherwise, naming the permission. A source on a public upstream needs no grant. Every way a component comes in (creating a source, an import, a GitHub push, a hand publish) is checked the same way, against the source's `allows`, revoked versions and the caller's permissions. A grant, when set, must reach the location. Admiral checks that differently for each kind of grant: - A connection grant is checked here, with no network call. The connection must be a CONNECTED GitHub connection of this organization and the location must be a repository its installation reaches: under the installation's account, and in its repository list when the selection is SELECTED. FAILED_PRECONDITION otherwise, naming which. - A credential grant is checked at fetch, the way an import is, since a credential carries hosts and never repositories. The credential must exist in this organization and allow the location's host. FAILED_PRECONDITION when it does not. ALREADY_EXISTS when the organization has a source with that name. Scope: `source:write`