Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

every curl needs optional s, and admin port#859

Merged
kdaigle merged 5 commits intomasterfromadmin_ports
Sep 22, 2015
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 16 additions & 16 deletionscontent/v3/enterprise/management_console.md
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,13 +24,13 @@ You need to pass your [Management Console password](https://help.github.com/ente
Use the `api_key` parameter to send this token with each request. For example:

<pre class="terminal">
$ curl -L 'http://<em>hostname</em>/setup/api?api_key=<em>your-amazing-password</em>'
$ curl -L 'http://<em>hostname</em>:<em>admin_port</em>/setup/api?api_key=<em>your-amazing-password</em>'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Maybeconsole_port or mentionadmin_port specifically above?

</pre>

You can also use standard HTTP authentication to send this token. For example:

<pre class="terminal">
$ curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api'
$ curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api'
</pre>

## Upload a license for the first time
Expand DownExpand Up@@ -64,13 +64,13 @@ For a list of the available settings, see [the `/setup/api/settings` endpoint](#

<pre class="terminal">
HTTP/1.1 202 Created
Location: http://<em>hostname</em>/setup/api/configcheck
Location: http://<em>hostname</em>:<em>admin_port</em>/setup/api/configcheck
</pre>

### Example

<pre class="terminal">
curl -L -X POST 'http://<em>hostname</em>/setup/api/start' -F license=@<em>/path/to/github-enterprise.ghl</em> -F "password=<em>your-amazing-password</em>" -F settings=&lt;<em>/path/to/settings.json</em>
curl -L -X POST 'http://<em>hostname</em>:<em>admin_port</em>/setup/api/start' -F license=@<em>/path/to/github-enterprise.ghl</em> -F "password=<em>your-amazing-password</em>" -F settings=&lt;<em>/path/to/settings.json</em>
</pre>

## Upgrade a license
Expand All@@ -89,13 +89,13 @@ Name | Type | Description

<pre class="terminal">
HTTP/1.1 202 Accepted
Location: http://hostname/setup/api/configcheck
Location: http://<em>hostname</em>:<em>admin_port</em>/setup/api/configcheck
</pre>

### Example

<pre class="terminal">
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/upgrade'
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/upgrade'
</pre>

## Check configuration status
Expand DownExpand Up@@ -124,7 +124,7 @@ Status | Description
### Example

<pre class="terminal">
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/configcheck'
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/configcheck'
</pre>

## Start a configuration process
Expand All@@ -137,13 +137,13 @@ This endpoint allows you to start a configuration process at any time:

<pre class="terminal">
HTTP/1.1 202 Accepted
Location: http://hostname/setup/api/configcheck
Location: http://<em>hostname</em>:<em>admin_port</em>/setup/api/configcheck
</pre>

### Example

<pre class="terminal">
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/configure'
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/configure'
</pre>

## Retrieve settings
Expand All@@ -158,7 +158,7 @@ curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>
### Example

<pre class="terminal">
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/settings'
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/settings'
</pre>

## Modify settings
Expand All@@ -180,7 +180,7 @@ HTTP/1.1 204 No Content
### Example

<pre class="terminal">
curl -L -X PUT 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/settings' --data-urlencode "settings=`cat /path/to/settings.json`"
curl -L -X PUT 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/settings' --data-urlencode "settings=`cat /path/to/settings.json`"
</pre>

## Check maintenance status
Expand All@@ -197,7 +197,7 @@ Check your installation's maintenance status:
### Example

<pre class="terminal">
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/maintenance'
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/maintenance'
</pre>

## Enable or disable maintenance mode
Expand All@@ -224,7 +224,7 @@ The possible values for `when` are `now` or any date parseable by
### Example

<pre class="terminal">
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/maintenance' -d 'maintenance=<em>{"enabled":true, "when":"now"}</em>'
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/maintenance' -d 'maintenance=<em>{"enabled":true, "when":"now"}</em>'
</pre>

## Retrieve authorized SSH keys
Expand All@@ -239,7 +239,7 @@ curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>
### Example

<pre class="terminal">
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/settings/authorized-keys'
curl -L 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/settings/authorized-keys'
</pre>

## Add a new authorized SSH key
Expand All@@ -260,7 +260,7 @@ Name | Type | Description
### Example

<pre class="terminal">
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/settings/authorized-keys' -F authorized_key=@<em>/path/to/key.pub</em>
curl -L -X POST 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/settings/authorized-keys' -F authorized_key=@<em>/path/to/key.pub</em>
</pre>

## Remove an authorized SSH key
Expand All@@ -281,5 +281,5 @@ Name | Type | Description
### Example

<pre class="terminal">
curl -L -X DELETE 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>/setup/api/settings/authorized-keys' -F authorized_key=@<em>/path/to/key.pub</em>
curl -L -X DELETE 'http://api_key:<em>your-amazing-password</em>@<em>hostname</em>:<em>admin_port</em>/setup/api/settings/authorized-keys' -F authorized_key=@<em>/path/to/key.pub</em>
</pre>

[8]ページ先頭

©2009-2025 Movatter.jp