List organization migrations
GET
/orgs/{org}/migrations https://api.github.com
Lists the most recent migrations, including both exports (which can be started through the REST API) and imports (which cannot be started using the REST API).
A list of repositories is only returned for export migrations.
Parameters
path Path Parameters
| Name | Type |
|---|---|
org
required
The organization name. The name is not case sensitive. | string |
query Query Parameters
| Name | Type |
|---|---|
per_page The number of results per page (max 100). For more information, see "Using pagination in the REST API." | number |
page The page number of the results to fetch. For more information, see "Using pagination in the REST API." | number |
exclude Exclude attributes from the API response to improve performance | "repositories"[] |
Responses
200 application/json
Response
interface Migration {
id: number;
owner:SimpleUser | null;
guid: string;
state: string;
lock_repositories: boolean;
exclude_metadata: boolean;
exclude_git_data: boolean;
exclude_attachments: boolean;
exclude_releases: boolean;
exclude_owner_projects: boolean;
org_metadata_only: boolean;
repositories:Repository [];
url: string;
created_at: string;
updated_at: string;
node_id: string;
archive_url?: string;
exclude?: string[];
}[]
id: number;
owner:
guid: string;
state: string;
lock_repositories: boolean;
exclude_metadata: boolean;
exclude_git_data: boolean;
exclude_attachments: boolean;
exclude_releases: boolean;
exclude_owner_projects: boolean;
org_metadata_only: boolean;
repositories:
url: string;
created_at: string;
updated_at: string;
node_id: string;
archive_url?: string;
exclude?: string[];
}[]