artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi
artifactory.getVirtualSbtRepository
Explore with Pulumi AI
Retrieves a virtual SBT repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const virtual-sbt = artifactory.getVirtualSbtRepository({
key: "virtual-sbt",
});
import pulumi
import pulumi_artifactory as artifactory
virtual_sbt = artifactory.get_virtual_sbt_repository(key="virtual-sbt")
package main
import (
"github.com/pulumi/pulumi-artifactory/sdk/v8/go/artifactory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := artifactory.LookupVirtualSbtRepository(ctx, &artifactory.LookupVirtualSbtRepositoryArgs{
Key: "virtual-sbt",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Artifactory = Pulumi.Artifactory;
return await Deployment.RunAsync(() =>
{
var virtual_sbt = Artifactory.GetVirtualSbtRepository.Invoke(new()
{
Key = "virtual-sbt",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.ArtifactoryFunctions;
import com.pulumi.artifactory.inputs.GetVirtualSbtRepositoryArgs;
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 virtual-sbt = ArtifactoryFunctions.getVirtualSbtRepository(GetVirtualSbtRepositoryArgs.builder()
.key("virtual-sbt")
.build());
}
}
variables:
virtual-sbt:
fn::invoke:
Function: artifactory:getVirtualSbtRepository
Arguments:
key: virtual-sbt
Using getVirtualSbtRepository
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 getVirtualSbtRepository(args: GetVirtualSbtRepositoryArgs, opts?: InvokeOptions): Promise<GetVirtualSbtRepositoryResult>
function getVirtualSbtRepositoryOutput(args: GetVirtualSbtRepositoryOutputArgs, opts?: InvokeOptions): Output<GetVirtualSbtRepositoryResult>
def get_virtual_sbt_repository(artifactory_requests_can_retrieve_remote_artifacts: Optional[bool] = None,
default_deployment_repo: Optional[str] = None,
description: Optional[str] = None,
excludes_pattern: Optional[str] = None,
force_maven_authentication: Optional[bool] = None,
includes_pattern: Optional[str] = None,
key: Optional[str] = None,
key_pair: Optional[str] = None,
notes: Optional[str] = None,
pom_repository_references_cleanup_policy: Optional[str] = None,
project_environments: Optional[Sequence[str]] = None,
project_key: Optional[str] = None,
repo_layout_ref: Optional[str] = None,
repositories: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualSbtRepositoryResult
def get_virtual_sbt_repository_output(artifactory_requests_can_retrieve_remote_artifacts: Optional[pulumi.Input[bool]] = None,
default_deployment_repo: Optional[pulumi.Input[str]] = None,
description: Optional[pulumi.Input[str]] = None,
excludes_pattern: Optional[pulumi.Input[str]] = None,
force_maven_authentication: Optional[pulumi.Input[bool]] = None,
includes_pattern: Optional[pulumi.Input[str]] = None,
key: Optional[pulumi.Input[str]] = None,
key_pair: Optional[pulumi.Input[str]] = None,
notes: Optional[pulumi.Input[str]] = None,
pom_repository_references_cleanup_policy: Optional[pulumi.Input[str]] = None,
project_environments: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
project_key: Optional[pulumi.Input[str]] = None,
repo_layout_ref: Optional[pulumi.Input[str]] = None,
repositories: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualSbtRepositoryResult]
func LookupVirtualSbtRepository(ctx *Context, args *LookupVirtualSbtRepositoryArgs, opts ...InvokeOption) (*LookupVirtualSbtRepositoryResult, error)
func LookupVirtualSbtRepositoryOutput(ctx *Context, args *LookupVirtualSbtRepositoryOutputArgs, opts ...InvokeOption) LookupVirtualSbtRepositoryResultOutput
> Note: This function is named LookupVirtualSbtRepository
in the Go SDK.
public static class GetVirtualSbtRepository
{
public static Task<GetVirtualSbtRepositoryResult> InvokeAsync(GetVirtualSbtRepositoryArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualSbtRepositoryResult> Invoke(GetVirtualSbtRepositoryInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetVirtualSbtRepositoryResult> getVirtualSbtRepository(GetVirtualSbtRepositoryArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: artifactory:index/getVirtualSbtRepository:getVirtualSbtRepository
arguments:
# arguments dictionary
The following arguments are supported:
- Key string
- the identity key of the repo.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - Force
Maven boolAuthentication - Includes
Pattern string - Key
Pair string - (Optional) The keypair used to sign artifacts.
- Notes string
- Pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- Project
Environments List<string> - Project
Key string - Repo
Layout stringRef - Repositories List<string>
- Key string
- the identity key of the repo.
- Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - Force
Maven boolAuthentication - Includes
Pattern string - Key
Pair string - (Optional) The keypair used to sign artifacts.
- Notes string
- Pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- Project
Environments []string - Project
Key string - Repo
Layout stringRef - Repositories []string
- key String
- the identity key of the repo.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - force
Maven BooleanAuthentication - includes
Pattern String - key
Pair String - (Optional) The keypair used to sign artifacts.
- notes String
- pom
Repository StringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments List<String> - project
Key String - repo
Layout StringRef - repositories List<String>
- key string
- the identity key of the repo.
- artifactory
Requests booleanCan Retrieve Remote Artifacts - default
Deployment stringRepo - description string
- excludes
Pattern string - force
Maven booleanAuthentication - includes
Pattern string - key
Pair string - (Optional) The keypair used to sign artifacts.
- notes string
- pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments string[] - project
Key string - repo
Layout stringRef - repositories string[]
- key str
- the identity key of the repo.
- artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - default_
deployment_ strrepo - description str
- excludes_
pattern str - force_
maven_ boolauthentication - includes_
pattern str - key_
pair str - (Optional) The keypair used to sign artifacts.
- notes str
- pom_
repository_ strreferences_ cleanup_ policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project_
environments Sequence[str] - project_
key str - repo_
layout_ strref - repositories Sequence[str]
- key String
- the identity key of the repo.
- artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - force
Maven BooleanAuthentication - includes
Pattern String - key
Pair String - (Optional) The keypair used to sign artifacts.
- notes String
- pom
Repository StringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments List<String> - project
Key String - repo
Layout StringRef - repositories List<String>
getVirtualSbtRepository Result
The following output properties are available:
- Force
Maven boolAuthentication - Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Package
Type string - Pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- Project
Environments List<string> - Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - Includes
Pattern string - Key
Pair string - (Optional) The keypair used to sign artifacts.
- Notes string
- Project
Key string - Repo
Layout stringRef - Repositories List<string>
- Force
Maven boolAuthentication - Id string
- The provider-assigned unique ID for this managed resource.
- Key string
- Package
Type string - Pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- Project
Environments []string - Artifactory
Requests boolCan Retrieve Remote Artifacts - Default
Deployment stringRepo - Description string
- Excludes
Pattern string - Includes
Pattern string - Key
Pair string - (Optional) The keypair used to sign artifacts.
- Notes string
- Project
Key string - Repo
Layout stringRef - Repositories []string
- force
Maven BooleanAuthentication - id String
- The provider-assigned unique ID for this managed resource.
- key String
- package
Type String - pom
Repository StringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - includes
Pattern String - key
Pair String - (Optional) The keypair used to sign artifacts.
- notes String
- project
Key String - repo
Layout StringRef - repositories List<String>
- force
Maven booleanAuthentication - id string
- The provider-assigned unique ID for this managed resource.
- key string
- package
Type string - pom
Repository stringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments string[] - artifactory
Requests booleanCan Retrieve Remote Artifacts - default
Deployment stringRepo - description string
- excludes
Pattern string - includes
Pattern string - key
Pair string - (Optional) The keypair used to sign artifacts.
- notes string
- project
Key string - repo
Layout stringRef - repositories string[]
- force_
maven_ boolauthentication - id str
- The provider-assigned unique ID for this managed resource.
- key str
- package_
type str - pom_
repository_ strreferences_ cleanup_ policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project_
environments Sequence[str] - artifactory_
requests_ boolcan_ retrieve_ remote_ artifacts - default_
deployment_ strrepo - description str
- excludes_
pattern str - includes_
pattern str - key_
pair str - (Optional) The keypair used to sign artifacts.
- notes str
- project_
key str - repo_
layout_ strref - repositories Sequence[str]
- force
Maven BooleanAuthentication - id String
- The provider-assigned unique ID for this managed resource.
- key String
- package
Type String - pom
Repository StringReferences Cleanup Policy - (Optional)
- (1: discard_active_reference) Discard Active References - Removes repository elements that are declared directly under project or under a profile in the same POM that is activeByDefault.
- (2: discard_any_reference) Discard Any References - Removes all repository elements regardless of whether they are included in an active profile or not.
- (3: nothing) Nothing - Does not remove any repository elements declared in the POM.
- project
Environments List<String> - artifactory
Requests BooleanCan Retrieve Remote Artifacts - default
Deployment StringRepo - description String
- excludes
Pattern String - includes
Pattern String - key
Pair String - (Optional) The keypair used to sign artifacts.
- notes String
- project
Key String - repo
Layout StringRef - repositories List<String>
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.