GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi
gitlab.getProjectMirrorPublicKey
Explore with Pulumi AI
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 dictionary
The 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
gitlab
Terraform Provider.