# Cloud OS Login API API

> Cloud OS Login API API on Apizie: 8 endpoints (Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine., Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine., Adds an SSH public key and returns the profile information. Default POSIX account information is set when no…, Retrieves an SSH public key., …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/analytics:googleapis-oslogin/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:googleapis-oslogin`
- Category: Analytics
- Status: byok
- Source: https://cloud.google.com/compute/docs/oslogin/
- Page: https://apizie.tech/api/analytics/googleapis-oslogin
- OpenAPI: https://apizie.tech/api/analytics/googleapis-oslogin/openapi.json

You can use OS Login to manage access to your VM instances using IAM roles.

## Endpoints

### Signs an SSH public key for a user to authenticate to a virtual machine on Google Compute Engine.
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-projects-locations-sign-ssh-public-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. The parent for the signing request. Format: projects/{project}/locations/{location} |
| body | object | yes | JSON request body |

### Retrieves the profile information used for logging in to a virtual machine on Google Compute Engine.
`GET https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-get-login-profile` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The unique ID for the user in format `users/{user}`. |
| projectId | string | no | Required. The project ID of the Google Cloud Platform project. |
| systemId | string | no | Optional. A system ID for filtering the results of the request. |

### Adds an SSH public key and returns the profile information. Default POSIX account information is set when no…
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-import-ssh-public-key` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. The unique ID for the user in format `users/{user}`. |
| projectId | string | no | The project ID of the Google Cloud Platform project. |
| regions | string | no | Optional. The regions to which to assert that the key was written. If unspecified, defaults to all regions. Regions are listed at… |
| body | object | yes | JSON request body |

### Retrieves an SSH public key.
`GET https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-ssh-public-keys-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The fingerprint of the public key to retrieve. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the… |

### Adds a POSIX account and returns the profile information. Default POSIX account information is set when no…
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-projects-provision-posix-account` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The unique ID for the user in format `users/{user}/projects/{project}`. |
| body | object | yes | JSON request body |

### Updates an SSH public key and returns the profile information. This method supports patch semantics.
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-ssh-public-keys-patch` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the… |
| updateMask | string | no | Optional. Mask to control which fields get updated. Updates all if not present. |
| body | object | yes | JSON request body |

### Deletes an SSH public key.
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-ssh-public-keys-delete` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Required. The fingerprint of the public key to update. Public keys are identified by their SHA-256 fingerprint. The fingerprint of the… |

### Create an SSH public key
`POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-users-ssh-public-keys-create` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| parent | string | yes | Required. The unique ID for the user in format `users/{user}`. |
| body | object | yes | JSON request body |

## Example
```
curl "https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-projects-locations-sign-ssh-public-key" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Cloud OS Login API API?
Create a free Apizie key, then send POST https://apizie.tech/v1/analytics:googleapis-oslogin/oslogin-projects-locations-sign-ssh-public-key with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Cloud OS Login API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Cloud OS Login API itself also needs your own key from googleapis.com.

### Can AI agents use the Cloud OS Login API API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key analytics:googleapis-oslogin.

### What is the status of the Cloud OS Login API API?
Needs your own provider key (bring your own key)
