Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
Get information about Artifact Registry Maven artifacts. See the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const myArtifacts = gcp.artifactregistry.getMavenArtifacts({
location: "us-central1",
repositoryId: "example-repo",
});
import pulumi
import pulumi_gcp as gcp
my_artifacts = gcp.artifactregistry.get_maven_artifacts(location="us-central1",
repository_id="example-repo")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/artifactregistry"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactregistry.GetMavenArtifacts(ctx, &artifactregistry.GetMavenArtifactsArgs{
Location: "us-central1",
RepositoryId: "example-repo",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var myArtifacts = Gcp.ArtifactRegistry.GetMavenArtifacts.Invoke(new()
{
Location = "us-central1",
RepositoryId = "example-repo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.artifactregistry.ArtifactregistryFunctions;
import com.pulumi.gcp.artifactregistry.inputs.GetMavenArtifactsArgs;
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 myArtifacts = ArtifactregistryFunctions.getMavenArtifacts(GetMavenArtifactsArgs.builder()
.location("us-central1")
.repositoryId("example-repo")
.build());
}
}
variables:
myArtifacts:
fn::invoke:
function: gcp:artifactregistry:getMavenArtifacts
arguments:
location: us-central1
repositoryId: example-repo
Using getMavenArtifacts
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 getMavenArtifacts(args: GetMavenArtifactsArgs, opts?: InvokeOptions): Promise<GetMavenArtifactsResult>
function getMavenArtifactsOutput(args: GetMavenArtifactsOutputArgs, opts?: InvokeOptions): Output<GetMavenArtifactsResult>def get_maven_artifacts(location: Optional[str] = None,
project: Optional[str] = None,
repository_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMavenArtifactsResult
def get_maven_artifacts_output(location: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
repository_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMavenArtifactsResult]func GetMavenArtifacts(ctx *Context, args *GetMavenArtifactsArgs, opts ...InvokeOption) (*GetMavenArtifactsResult, error)
func GetMavenArtifactsOutput(ctx *Context, args *GetMavenArtifactsOutputArgs, opts ...InvokeOption) GetMavenArtifactsResultOutput> Note: This function is named GetMavenArtifacts in the Go SDK.
public static class GetMavenArtifacts
{
public static Task<GetMavenArtifactsResult> InvokeAsync(GetMavenArtifactsArgs args, InvokeOptions? opts = null)
public static Output<GetMavenArtifactsResult> Invoke(GetMavenArtifactsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMavenArtifactsResult> getMavenArtifacts(GetMavenArtifactsArgs args, InvokeOptions options)
public static Output<GetMavenArtifactsResult> getMavenArtifacts(GetMavenArtifactsArgs args, InvokeOptions options)
fn::invoke:
function: gcp:artifactregistry/getMavenArtifacts:getMavenArtifacts
arguments:
# arguments dictionaryThe following arguments are supported:
- Location string
- The location of the Artifact Registry repository.
- Repository
Id string - The last part of the repository name to fetch from.
- Project string
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
- Location string
- The location of the Artifact Registry repository.
- Repository
Id string - The last part of the repository name to fetch from.
- Project string
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location of the Artifact Registry repository.
- repository
Id String - The last part of the repository name to fetch from.
- project String
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
- location string
- The location of the Artifact Registry repository.
- repository
Id string - The last part of the repository name to fetch from.
- project string
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
- location str
- The location of the Artifact Registry repository.
- repository_
id str - The last part of the repository name to fetch from.
- project str
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
- location String
- The location of the Artifact Registry repository.
- repository
Id String - The last part of the repository name to fetch from.
- project String
- The project ID in which the resource belongs. If it is not provided, the provider project is used.
getMavenArtifacts Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Maven
Artifacts List<GetMaven Artifacts Maven Artifact> - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- Repository
Id string - Project string
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- Maven
Artifacts []GetMaven Artifacts Maven Artifact - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- Repository
Id string - Project string
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- maven
Artifacts List<GetMaven Artifacts Maven Artifact> - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- repository
Id String - project String
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- maven
Artifacts GetMaven Artifacts Maven Artifact[] - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- repository
Id string - project string
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- maven_
artifacts Sequence[GetMaven Artifacts Maven Artifact] - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- repository_
id str - project str
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- maven
Artifacts List<Property Map> - A list of all retrieved Artifact Registry Maven artifacts. Structure is defined below.
- repository
Id String - project String
Supporting Types
GetMavenArtifactsMavenArtifact
- Artifact
Id string - The name of the artifact to fetch.
- Create
Time string - The time the artifact was created.
- Group
Id string - Group ID for the artifact.
- Name string
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - Pom
Uri string - URL to access the pom file of the artifact.
- Update
Time string - The time the artifact was last updated.
- Version string
- The version of the Maven artifact.
- Artifact
Id string - The name of the artifact to fetch.
- Create
Time string - The time the artifact was created.
- Group
Id string - Group ID for the artifact.
- Name string
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - Pom
Uri string - URL to access the pom file of the artifact.
- Update
Time string - The time the artifact was last updated.
- Version string
- The version of the Maven artifact.
- artifact
Id String - The name of the artifact to fetch.
- create
Time String - The time the artifact was created.
- group
Id String - Group ID for the artifact.
- name String
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - pom
Uri String - URL to access the pom file of the artifact.
- update
Time String - The time the artifact was last updated.
- version String
- The version of the Maven artifact.
- artifact
Id string - The name of the artifact to fetch.
- create
Time string - The time the artifact was created.
- group
Id string - Group ID for the artifact.
- name string
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - pom
Uri string - URL to access the pom file of the artifact.
- update
Time string - The time the artifact was last updated.
- version string
- The version of the Maven artifact.
- artifact_
id str - The name of the artifact to fetch.
- create_
time str - The time the artifact was created.
- group_
id str - Group ID for the artifact.
- name str
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - pom_
uri str - URL to access the pom file of the artifact.
- update_
time str - The time the artifact was last updated.
- version str
- The version of the Maven artifact.
- artifact
Id String - The name of the artifact to fetch.
- create
Time String - The time the artifact was created.
- group
Id String - Group ID for the artifact.
- name String
- The fully qualified name of the fetched artifact. Format:
projects/{{project}}/locations/{{location}}/repositories/{{repository_id}}/mavenArtifacts/{{group_id}}:{{artifact_id}}:{{version}} - pom
Uri String - URL to access the pom file of the artifact.
- update
Time String - The time the artifact was last updated.
- version String
- The version of the Maven artifact.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.
Viewing docs for Google Cloud v9.15.0
published on Thursday, Mar 12, 2026 by Pulumi
published on Thursday, Mar 12, 2026 by Pulumi
