1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectMirrorPublicKey
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi

gitlab.getProjectMirrorPublicKey

Explore with Pulumi AI

GitLab v8.10.0 published on Friday, Mar 21, 2025 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>
Copy
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]
Copy
func GetProjectMirrorPublicKey(ctx *Context, args *GetProjectMirrorPublicKeyArgs, opts ...InvokeOption) (*GetProjectMirrorPublicKeyResult, error)
func GetProjectMirrorPublicKeyOutput(ctx *Context, args *GetProjectMirrorPublicKeyOutputArgs, opts ...InvokeOption) GetProjectMirrorPublicKeyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProjectMirrorPublicKeyResult> getProjectMirrorPublicKey(GetProjectMirrorPublicKeyArgs args, InvokeOptions options)
public static Output<GetProjectMirrorPublicKeyResult> getProjectMirrorPublicKey(GetProjectMirrorPublicKeyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gitlab:index/getProjectMirrorPublicKey:getProjectMirrorPublicKey
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

MirrorId This property is required. int
The id of the remote mirror.
ProjectId This property is required. string
The integer or path with namespace that uniquely identifies the project.
MirrorId This property is required. int
The id of the remote mirror.
ProjectId This property is required. string
The integer or path with namespace that uniquely identifies the project.
mirrorId This property is required. Integer
The id of the remote mirror.
projectId This property is required. String
The integer or path with namespace that uniquely identifies the project.
mirrorId This property is required. number
The id of the remote mirror.
projectId This property is required. string
The integer or path with namespace that uniquely identifies the project.
mirror_id This property is required. int
The id of the remote mirror.
project_id This property is required. str
The integer or path with namespace that uniquely identifies the project.
mirrorId This property is required. Number
The id of the remote mirror.
projectId This property is required. String
The integer or path with namespace that uniquely identifies the project.

getProjectMirrorPublicKey Result

The following output properties are available:

Id string
MirrorId int
The id of the remote mirror.
ProjectId string
The integer or path with namespace that uniquely identifies the project.
PublicKey string
Public key of the remote mirror.
Id string
MirrorId int
The id of the remote mirror.
ProjectId string
The integer or path with namespace that uniquely identifies the project.
PublicKey string
Public key of the remote mirror.
id String
mirrorId Integer
The id of the remote mirror.
projectId String
The integer or path with namespace that uniquely identifies the project.
publicKey String
Public key of the remote mirror.
id string
mirrorId number
The id of the remote mirror.
projectId string
The integer or path with namespace that uniquely identifies the project.
publicKey string
Public key of the remote mirror.
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.
id String
mirrorId Number
The id of the remote mirror.
projectId String
The integer or path with namespace that uniquely identifies the project.
publicKey String
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.
GitLab v8.10.0 published on Friday, Mar 21, 2025 by Pulumi