Method: Gitlab::Client::Projects#disable_deploy_key

Defined in:
lib/gitlab/client/projects.rb

#disable_deploy_key(project, key) ⇒ Gitlab::ObjectifiedHash

Disables a deploy key at the project.

Examples:

Gitlab.disable_deploy_key(42, 66)

Parameters:

  • project (Integer, String)

    The ID or path of a project.

  • key (Integer)

    The ID of a deploy key.

Returns:

[View source]

398
399
400
# File 'lib/gitlab/client/projects.rb', line 398

def disable_deploy_key(project, key)
  post("/projects/#{url_encode project}/deploy_keys/#{key}/disable", body: { id: project, key_id: key })
end