Viewing docs for GitLab v9.10.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
Viewing docs for GitLab v9.10.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
The gitlab.getProjectMirrorPublicKey data source allows the public key of a project mirror to be retrieved by its mirror id and the project it belongs to.
Note: Supported on GitLab 17.9 or higher.
Upstream API: GitLab REST API docs
Using getProjectMirrorPublicKey
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 getProjectMirrorPublicKey(args: GetProjectMirrorPublicKeyArgs, opts?: InvokeOptions): Promise<GetProjectMirrorPublicKeyResult>
function getProjectMirrorPublicKeyOutput(args: GetProjectMirrorPublicKeyOutputArgs, opts?: InvokeOptions): Output<GetProjectMirrorPublicKeyResult>def get_project_mirror_public_key(mirror_id: Optional[int] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetProjectMirrorPublicKeyResult
def get_project_mirror_public_key_output(mirror_id: Optional[pulumi.Input[int]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetProjectMirrorPublicKeyResult]func GetProjectMirrorPublicKey(ctx *Context, args *GetProjectMirrorPublicKeyArgs, opts ...InvokeOption) (*GetProjectMirrorPublicKeyResult, error)
func GetProjectMirrorPublicKeyOutput(ctx *Context, args *GetProjectMirrorPublicKeyOutputArgs, opts ...InvokeOption) GetProjectMirrorPublicKeyResultOutput> Note: This function is named GetProjectMirrorPublicKey in the Go SDK.
public static class GetProjectMirrorPublicKey
{
public static Task<GetProjectMirrorPublicKeyResult> InvokeAsync(GetProjectMirrorPublicKeyArgs args, InvokeOptions? opts = null)
public static Output<GetProjectMirrorPublicKeyResult> Invoke(GetProjectMirrorPublicKeyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetProjectMirrorPublicKeyResult> getProjectMirrorPublicKey(GetProjectMirrorPublicKeyArgs args, InvokeOptions options)
public static Output<GetProjectMirrorPublicKeyResult> getProjectMirrorPublicKey(GetProjectMirrorPublicKeyArgs args, InvokeOptions options)
fn::invoke:
function: gitlab:index/getProjectMirrorPublicKey:getProjectMirrorPublicKey
arguments:
# arguments dictionaryThe following arguments are supported:
- mirror_
id int - The id of the remote mirror.
- project_
id str - The integer or path with namespace that uniquely identifies the project.
getProjectMirrorPublicKey Result
The following output properties are available:
- id str
- mirror_
id int - The id of the remote mirror.
- project_
id str - The integer or path with namespace that uniquely identifies the project.
- public_
key str - Public key of the remote mirror.
Package Details
- Repository
- GitLab pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.
Viewing docs for GitLab v9.10.0
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
