Skip to main content

ワークスペーススラッグとアプリスラッグ

概要

The API (and the Bitrise support team) often asks for slugs: a Workspace slug or an app slug. A slug is a unique identifier of one of these resources, consisting of hexadecimal numbers. You can find the slugs of a given Workspace or app both on the UI and in the API.

API (および Bitrise サポート チーム) は、スラッグ (ワークスペース スラグまたはアプリ スラグ) を要求することがよくあります。スラグは、これらのリソースの 1 つを表す一意の識別子であり、16 進数で構成されます。特定のワークスペースまたはアプリのスラッグは、UI と API の両方で見つけることができます。

Bitrise Web サイトでナメクジを見つける

Bitrise Web サイトでは、ワークスペース スラグとアプリ スラグの両方を見つけることができます。

ワークスペースのナメクジ

アプリのナメクジ

  1. Bitrise にログインし、左側のナビゲーション バーにマウスを置きます。

  2. 正しいワークスペースが選択されていることを確認してください。

  3. 選択する 設定

    workspace-settings-new.png
  4. [ワークスペース設定] ページにアクセスしたら、ブラウザのアドレス バーに移動します。

    ワークスペースの URL は次のようになります。 https://app.bitrise.io/workspaces/2d0c5c70bbae73d8/settings/

  5. の後の 16 進数を見つけます。 /workspaces/ URL のセクション。それがワークスペースのスラッグです。

  1. ダッシュボード上でアプリをクリックして、Bitrise でアプリを開きます。

  2. アプリのページにアクセスしたら、ブラウザのアドレス バーに移動します。

    URL は次のようになります。 https://app.bitrise.io/app/5c89d92-8be6-4892-b11d-efbc1fdd607

  3. の後の 16 進数を見つけます。 /app/ URL のセクション。それがアプリのスラッグです。

Bitrise API を使用してスラッグを検索する

簡単な API 呼び出しで、アクセスできるすべてのワークスペースとアプリのスラッグを取得できます。

ワークスペースのナメクジ

アプリのナメクジ

  1. 認証する Bitrise API を使用します。

  2. 電話してください GET /organizations パーソナル アクセス トークンを含むエンドポイント:

    curl -X 'GET' \
      'https://api.bitrise.io/v0.1/organizations' \
      -H 'accept: application/json' \
      -H 'Authorization: <ACCESS-TOKEN>'
  3. 応答内のスラッグを見つけます。

        {
          "name": "TestOrg",
          "slug": "2dec5c71bbce73d9",
          "avatar_icon_url": "https://bitrise-public-content-production.s3.amazonaws.com/org-icons/default_avatar-09.png",
          "concurrency_count": null,
          "owners": [
            {
              "slug": "1b3f130835b1c09ef2",
              "username": "bitbot",
              "email": "[email protected]"
            },
          ]
        },
  1. 認証する Bitrise API を使用します。

  2. 電話してください GET /apps エンドポイントにパーソナル アクセス トークンを追加します。

    curl -X 'GET' \
      'https://api.bitrise.io/v0.1/apps' \
      -H 'accept: application/json' \
      -H 'Authorization: <ACCESS-TOKEN>'
  3. 応答内のスラッグを見つけます。

    {
      "data": [
        {
          "slug": "13aa9897-3891-4fe7-8cf5-5b2f75638b0e",
          "title": "TestApp",
          "project_type": "ios",
          "provider": "github",
          "repo_owner": "bitrise",
          "repo_url": "[email protected]:bitrise/TestApp.git",
          "repo_slug": "TestApp",
          "is_disabled": false,
          "status": 1,
          "is_public": false,
          "is_github_checks_enabled": false,
          "owner": {
            "account_type": "organization",
            "name": "Bitrise",
            "slug": "03a9543ede4d12bd"
          },
          "avatar_url": null
        },