API

RepositoryAccessResolve

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
GET /api/v1/repository_access/resolve/{org_slug}/{repo_slug} load Exact physical repository address and access contract

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

repository_access_resolve, err := client.RepositoryAccessResolve(nil).Load(map[string]any{"id": "example_id", "resolve_id": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(repository_access_resolve)

Lua

Construct client as shown in the Lua setup, then call the operations:

local repository_access_resolve, err = client:RepositoryAccessResolve():load({ id = "example_id", resolve_id = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$repository_access_resolve = $client->RepositoryAccessResolve()->load(["id" => "example_id", "resolve_id" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

repository_access_resolve = client.RepositoryAccessResolve().load({"id": "example_id", "resolve_id": "example"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

repository_access_resolve = client.RepositoryAccessResolve.load({ "id" => "example_id", "resolve_id" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const repository_access_resolve = await client.RepositoryAccessResolve().load({ id: "example_id", resolve_id: "example" })

Fields

Field Type Required Description
default_branch string Yes Default Branch
git_auth_username string Yes Git Auth Username
git_https_clone_url one,string,null Yes Git Https Clone Url
git_https_supported boolean Yes Git Https Supported
github_access_warnings array No Github Access Warnings
id string No Id
membership_role string Yes Membership Role
organization_id string Yes Organization Id
organization_name string Yes Organization Name
organization_slug string Yes Organization Slug
repository_id string Yes Repository Id
repository_name string Yes Repository Name
repository_slug string Yes Repository Slug

load

GET /api/v1/repository_access/resolve/{org_slug}/{repo_slug}

Operation ID: get_api_v1_repository_access_resolve_org_slug_repo_slug_.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_slug path string Yes
repo_slug path string Yes

Responses

200: Exact physical repository address and access contract

application/json

Property Type Required Description
repository object Yes
repository.default_branch string Yes
repository.git_auth_username string Yes
repository.git_https_clone_url string (uri) Yes
repository.git_https_supported boolean Yes
repository.github_access_warnings array of object No
repository.github_access_warnings[].checked_at string Yes
repository.github_access_warnings[].installation_id string Yes
repository.github_access_warnings[].label string Yes
repository.github_access_warnings[].reason string Yes
repository.github_access_warnings[].repository string Yes
repository.github_access_warnings[].state enum: unknown, available, unavailable Yes
repository.membership_role string Yes
repository.organization_id string Yes
repository.organization_name string Yes
repository.organization_slug string Yes
repository.repository_id string Yes
repository.repository_name string Yes
repository.repository_slug string Yes
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway