1. Packages
  2. Harbor
  3. API Docs
  4. getRobotAccounts
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

harbor.getRobotAccounts

Explore with Pulumi AI

Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse

Example Usage

data "harbor_robot_accounts" "example" {
  name = "example-robot"
}

output "robot_account_ids" {
  value = [data.harbor_robot_accounts.example.robot_accounts.*.id]
}
Copy

Using getRobotAccounts

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRobotAccounts(args: GetRobotAccountsArgs, opts?: InvokeOptions): Promise<GetRobotAccountsResult>
function getRobotAccountsOutput(args: GetRobotAccountsOutputArgs, opts?: InvokeOptions): Output<GetRobotAccountsResult>
Copy
def get_robot_accounts(level: Optional[str] = None,
                       name: Optional[str] = None,
                       project_id: Optional[int] = None,
                       opts: Optional[InvokeOptions] = None) -> GetRobotAccountsResult
def get_robot_accounts_output(level: Optional[pulumi.Input[str]] = None,
                       name: Optional[pulumi.Input[str]] = None,
                       project_id: Optional[pulumi.Input[int]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetRobotAccountsResult]
Copy
func GetRobotAccounts(ctx *Context, args *GetRobotAccountsArgs, opts ...InvokeOption) (*GetRobotAccountsResult, error)
func GetRobotAccountsOutput(ctx *Context, args *GetRobotAccountsOutputArgs, opts ...InvokeOption) GetRobotAccountsResultOutput
Copy

> Note: This function is named GetRobotAccounts in the Go SDK.

public static class GetRobotAccounts 
{
    public static Task<GetRobotAccountsResult> InvokeAsync(GetRobotAccountsArgs args, InvokeOptions? opts = null)
    public static Output<GetRobotAccountsResult> Invoke(GetRobotAccountsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRobotAccountsResult> getRobotAccounts(GetRobotAccountsArgs args, InvokeOptions options)
public static Output<GetRobotAccountsResult> getRobotAccounts(GetRobotAccountsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: harbor:index/getRobotAccounts:getRobotAccounts
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Level string
Level of the robot account, currently either system or project. Default is system.
Name string
The name of the robot account to filter by.
ProjectId int
The id of the project within harbor.
Level string
Level of the robot account, currently either system or project. Default is system.
Name string
The name of the robot account to filter by.
ProjectId int
The id of the project within harbor.
level String
Level of the robot account, currently either system or project. Default is system.
name String
The name of the robot account to filter by.
projectId Integer
The id of the project within harbor.
level string
Level of the robot account, currently either system or project. Default is system.
name string
The name of the robot account to filter by.
projectId number
The id of the project within harbor.
level str
Level of the robot account, currently either system or project. Default is system.
name str
The name of the robot account to filter by.
project_id int
The id of the project within harbor.
level String
Level of the robot account, currently either system or project. Default is system.
name String
The name of the robot account to filter by.
projectId Number
The id of the project within harbor.

getRobotAccounts Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
RobotAccounts List<Pulumiverse.Harbor.Outputs.GetRobotAccountsRobotAccount>
Level string
Level of the robot account, currently either system or project. Default is system.
Name string
The name of the robot account to filter by.
ProjectId int
The id of the project within harbor.
Id string
The provider-assigned unique ID for this managed resource.
RobotAccounts []GetRobotAccountsRobotAccount
Level string
Level of the robot account, currently either system or project. Default is system.
Name string
The name of the robot account to filter by.
ProjectId int
The id of the project within harbor.
id String
The provider-assigned unique ID for this managed resource.
robotAccounts List<GetRobotAccountsRobotAccount>
level String
Level of the robot account, currently either system or project. Default is system.
name String
The name of the robot account to filter by.
projectId Integer
The id of the project within harbor.
id string
The provider-assigned unique ID for this managed resource.
robotAccounts GetRobotAccountsRobotAccount[]
level string
Level of the robot account, currently either system or project. Default is system.
name string
The name of the robot account to filter by.
projectId number
The id of the project within harbor.
id str
The provider-assigned unique ID for this managed resource.
robot_accounts Sequence[GetRobotAccountsRobotAccount]
level str
Level of the robot account, currently either system or project. Default is system.
name str
The name of the robot account to filter by.
project_id int
The id of the project within harbor.
id String
The provider-assigned unique ID for this managed resource.
robotAccounts List<Property Map>
level String
Level of the robot account, currently either system or project. Default is system.
name String
The name of the robot account to filter by.
projectId Number
The id of the project within harbor.

Supporting Types

GetRobotAccountsRobotAccount

Description This property is required. string
Disable This property is required. bool
Duration This property is required. int
Id This property is required. string
The ID of this resource.
Level This property is required. string
Level of the robot account, currently either system or project. Default is system.
Name This property is required. string
The name of the robot account to filter by.
Description This property is required. string
Disable This property is required. bool
Duration This property is required. int
Id This property is required. string
The ID of this resource.
Level This property is required. string
Level of the robot account, currently either system or project. Default is system.
Name This property is required. string
The name of the robot account to filter by.
description This property is required. String
disable This property is required. Boolean
duration This property is required. Integer
id This property is required. String
The ID of this resource.
level This property is required. String
Level of the robot account, currently either system or project. Default is system.
name This property is required. String
The name of the robot account to filter by.
description This property is required. string
disable This property is required. boolean
duration This property is required. number
id This property is required. string
The ID of this resource.
level This property is required. string
Level of the robot account, currently either system or project. Default is system.
name This property is required. string
The name of the robot account to filter by.
description This property is required. str
disable This property is required. bool
duration This property is required. int
id This property is required. str
The ID of this resource.
level This property is required. str
Level of the robot account, currently either system or project. Default is system.
name This property is required. str
The name of the robot account to filter by.
description This property is required. String
disable This property is required. Boolean
duration This property is required. Number
id This property is required. String
The ID of this resource.
level This property is required. String
Level of the robot account, currently either system or project. Default is system.
name This property is required. String
The name of the robot account to filter by.

Package Details

Repository
harbor pulumiverse/pulumi-harbor
License
Apache-2.0
Notes
This Pulumi package is based on the harbor Terraform Provider.
Harbor v3.10.19 published on Monday, Feb 10, 2025 by Pulumiverse