getRepository

Get infomation about an existing Google Cloud Source Repository. For more information see the official documentation and API.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.sourcerepo.SourcerepoFunctions;
import com.pulumi.gcp.sourcerepo.inputs.GetRepositoryArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var my-repo = SourcerepoFunctions.getRepository(GetRepositoryArgs.builder()
.name("my-repository")
.build());
}
}

Return

A collection of values returned by getRepository.

Parameters

argument

A collection of arguments for invoking getRepository.


suspend fun getRepository(name: String, project: String? = null): GetRepositoryResult

Return

A collection of values returned by getRepository.

Parameters

name

Resource name of the repository. The repo name may contain slashes. eg, name/with/slash

project

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

See also


Return

A collection of values returned by getRepository.

Parameters

argument

Builder for com.pulumi.gcp.sourcerepo.kotlin.inputs.GetRepositoryPlainArgs.

See also