mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
1.4 KiB
1.4 KiB
Working with Self-hosted runner groups
Create a client
var client = new GitHubClient(....); // More on GitHubClient can be found in "Getting Started"
List Runner Groups
List self-hosted runner groups for an enterprise
var runnerGroups = await client.Actions.SelfHostedRunnerGroups.ListAllRunnerGroupsForEnterprise("enterprise");
List self-hosted runner groups for an organization
var runnerGroups = await client.Actions.SelfHostedRunnerGroups.ListAllRunnerGroupsForOrganization("octokit");
List Runners in a Runner Group
List self-hosted runners in a runner group for an enterprise
var runners = await client.Actions.SelfHostedRunners.ListAllRunnersForEnterpriseRunnerGroup("enterprise", groupId);
List self-hosted runners in a runner group for an organization
var runners = await client.Actions.SelfHostedRunners.ListAllRunnersForOrganizationRunnerGroup("octokit", groupId);
List Runner Group Access
List organization access to a self-hosted runner group in an enterprise
var orgs = await client.Actions.SelfHostedRunnerGroups.ListAllRunnerGroupOrganizationsForEnterprise("enterprise", groupId);
List repository access to a self-hosted runner group in an organization
var repos = await client.Actions.SelfHostedRunnerGroups.ListAllRunnerGroupRepositoriesForOrganization("octokit", groupId);