GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-gitlab-python-gitlab/docs/gl_objects/keys.rst at master · alvistack/python-gitlab-python-gitlab

Expand file tree

/

keys.rst

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
28 lines (18 loc) · 490 Bytes
/

keys.rst

Copy path

File metadata and controls

28 lines (18 loc) · 490 Bytes
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

Keys

Keys

Reference

  • v4 API
    • :class:`gitlab.v4.objects.Key`
    • :class:`gitlab.v4.objects.KeyManager`
    • :attr:`gitlab.Gitlab.keys`
  • GitLab API: https://docs.gitlab.com/ce/api/keys.html

Examples

Get an ssh key by its id (requires admin access):

key = gl.keys.get(key_id)

Get an ssh key (requires admin access) or a deploy key by its fingerprint:

key = gl.keys.get(fingerprint="SHA256:ERJJ/OweAM6jA8OjJ/gXs4N5fqUaREEJnz/EyfywfXY")
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.