1. Packages
  2. Artifactory Provider
  3. API Docs
  4. getPermissionTarget
artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi

artifactory.getPermissionTarget

Explore with Pulumi AI

artifactory logo
artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi

    # Artifactory Permission Target Data Source

    Provides an Artifactory permission target data source. This can be used to read the configuration of permission targets in artifactory.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    //
    const target1 = artifactory.getPermissionTarget({
        name: "my_permission",
    });
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    #
    target1 = artifactory.get_permission_target(name="my_permission")
    
    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.LookupPermissionTarget(ctx, &artifactory.LookupPermissionTargetArgs{
    			Name: "my_permission",
    		}, 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 target1 = Artifactory.GetPermissionTarget.Invoke(new()
        {
            Name = "my_permission",
        });
    
    });
    
    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.GetPermissionTargetArgs;
    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 target1 = ArtifactoryFunctions.getPermissionTarget(GetPermissionTargetArgs.builder()
                .name("my_permission")
                .build());
    
        }
    }
    
    variables:
      #
      target1:
        fn::invoke:
          Function: artifactory:getPermissionTarget
          Arguments:
            name: my_permission
    

    Using getPermissionTarget

    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 getPermissionTarget(args: GetPermissionTargetArgs, opts?: InvokeOptions): Promise<GetPermissionTargetResult>
    function getPermissionTargetOutput(args: GetPermissionTargetOutputArgs, opts?: InvokeOptions): Output<GetPermissionTargetResult>
    def get_permission_target(build: Optional[GetPermissionTargetBuild] = None,
                              name: Optional[str] = None,
                              release_bundle: Optional[GetPermissionTargetReleaseBundle] = None,
                              repo: Optional[GetPermissionTargetRepo] = None,
                              opts: Optional[InvokeOptions] = None) -> GetPermissionTargetResult
    def get_permission_target_output(build: Optional[pulumi.Input[GetPermissionTargetBuildArgs]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              release_bundle: Optional[pulumi.Input[GetPermissionTargetReleaseBundleArgs]] = None,
                              repo: Optional[pulumi.Input[GetPermissionTargetRepoArgs]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetPermissionTargetResult]
    func LookupPermissionTarget(ctx *Context, args *LookupPermissionTargetArgs, opts ...InvokeOption) (*LookupPermissionTargetResult, error)
    func LookupPermissionTargetOutput(ctx *Context, args *LookupPermissionTargetOutputArgs, opts ...InvokeOption) LookupPermissionTargetResultOutput

    > Note: This function is named LookupPermissionTarget in the Go SDK.

    public static class GetPermissionTarget 
    {
        public static Task<GetPermissionTargetResult> InvokeAsync(GetPermissionTargetArgs args, InvokeOptions? opts = null)
        public static Output<GetPermissionTargetResult> Invoke(GetPermissionTargetInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPermissionTargetResult> getPermissionTarget(GetPermissionTargetArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: artifactory:index/getPermissionTarget:getPermissionTarget
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name of the permission target.
    Build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    ReleaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    Repo GetPermissionTargetRepo
    Repository permission configuration.
    Name string
    Name of the permission target.
    Build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    ReleaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    Repo GetPermissionTargetRepo
    Repository permission configuration.
    name String
    Name of the permission target.
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    releaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    name string
    Name of the permission target.
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    releaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    name str
    Name of the permission target.
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    release_bundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    name String
    Name of the permission target.
    build Property Map
    Same as repo but for artifactory-build-info permissions.
    releaseBundle Property Map
    Same as repo but for release-bundles permissions.
    repo Property Map
    Repository permission configuration.

    getPermissionTarget Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    ReleaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    Repo GetPermissionTargetRepo
    Repository permission configuration.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    ReleaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    Repo GetPermissionTargetRepo
    Repository permission configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    releaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    releaseBundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    build GetPermissionTargetBuild
    Same as repo but for artifactory-build-info permissions.
    release_bundle GetPermissionTargetReleaseBundle
    Same as repo but for release-bundles permissions.
    repo GetPermissionTargetRepo
    Repository permission configuration.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    build Property Map
    Same as repo but for artifactory-build-info permissions.
    releaseBundle Property Map
    Same as repo but for release-bundles permissions.
    repo Property Map
    Repository permission configuration.

    Supporting Types

    GetPermissionTargetBuild

    Repositories List<string>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetBuildActions
    ExcludesPatterns List<string>
    Pattern of artifacts to exclude.
    IncludesPatterns List<string>
    Pattern of artifacts to include.
    Repositories []string
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetBuildActions
    ExcludesPatterns []string
    Pattern of artifacts to exclude.
    IncludesPatterns []string
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetBuildActions
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.
    repositories string[]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetBuildActions
    excludesPatterns string[]
    Pattern of artifacts to exclude.
    includesPatterns string[]
    Pattern of artifacts to include.
    repositories Sequence[str]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetBuildActions
    excludes_patterns Sequence[str]
    Pattern of artifacts to exclude.
    includes_patterns Sequence[str]
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions Property Map
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.

    GetPermissionTargetBuildActions

    Groups List<GetPermissionTargetBuildActionsGroup>
    Groups this permission applies for.
    Users List<GetPermissionTargetBuildActionsUser>
    Users this permission target applies for.
    Groups []GetPermissionTargetBuildActionsGroup
    Groups this permission applies for.
    Users []GetPermissionTargetBuildActionsUser
    Users this permission target applies for.
    groups List<GetPermissionTargetBuildActionsGroup>
    Groups this permission applies for.
    users List<GetPermissionTargetBuildActionsUser>
    Users this permission target applies for.
    groups GetPermissionTargetBuildActionsGroup[]
    Groups this permission applies for.
    users GetPermissionTargetBuildActionsUser[]
    Users this permission target applies for.
    groups Sequence[GetPermissionTargetBuildActionsGroup]
    Groups this permission applies for.
    users Sequence[GetPermissionTargetBuildActionsUser]
    Users this permission target applies for.
    groups List<Property Map>
    Groups this permission applies for.
    users List<Property Map>
    Users this permission target applies for.

    GetPermissionTargetBuildActionsGroup

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    GetPermissionTargetBuildActionsUser

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    GetPermissionTargetReleaseBundle

    Repositories List<string>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetReleaseBundleActions
    ExcludesPatterns List<string>
    Pattern of artifacts to exclude.
    IncludesPatterns List<string>
    Pattern of artifacts to include.
    Repositories []string
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetReleaseBundleActions
    ExcludesPatterns []string
    Pattern of artifacts to exclude.
    IncludesPatterns []string
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetReleaseBundleActions
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.
    repositories string[]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetReleaseBundleActions
    excludesPatterns string[]
    Pattern of artifacts to exclude.
    includesPatterns string[]
    Pattern of artifacts to include.
    repositories Sequence[str]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetReleaseBundleActions
    excludes_patterns Sequence[str]
    Pattern of artifacts to exclude.
    includes_patterns Sequence[str]
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions Property Map
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.

    GetPermissionTargetReleaseBundleActions

    Groups List<GetPermissionTargetReleaseBundleActionsGroup>
    Groups this permission applies for.
    Users List<GetPermissionTargetReleaseBundleActionsUser>
    Users this permission target applies for.
    Groups []GetPermissionTargetReleaseBundleActionsGroup
    Groups this permission applies for.
    Users []GetPermissionTargetReleaseBundleActionsUser
    Users this permission target applies for.
    groups List<GetPermissionTargetReleaseBundleActionsGroup>
    Groups this permission applies for.
    users List<GetPermissionTargetReleaseBundleActionsUser>
    Users this permission target applies for.
    groups GetPermissionTargetReleaseBundleActionsGroup[]
    Groups this permission applies for.
    users GetPermissionTargetReleaseBundleActionsUser[]
    Users this permission target applies for.
    groups List<Property Map>
    Groups this permission applies for.
    users List<Property Map>
    Users this permission target applies for.

    GetPermissionTargetReleaseBundleActionsGroup

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    GetPermissionTargetReleaseBundleActionsUser

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    GetPermissionTargetRepo

    Repositories List<string>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetRepoActions
    ExcludesPatterns List<string>
    Pattern of artifacts to exclude.
    IncludesPatterns List<string>
    Pattern of artifacts to include.
    Repositories []string
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    Actions GetPermissionTargetRepoActions
    ExcludesPatterns []string
    Pattern of artifacts to exclude.
    IncludesPatterns []string
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetRepoActions
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.
    repositories string[]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetRepoActions
    excludesPatterns string[]
    Pattern of artifacts to exclude.
    includesPatterns string[]
    Pattern of artifacts to include.
    repositories Sequence[str]
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions GetPermissionTargetRepoActions
    excludes_patterns Sequence[str]
    Pattern of artifacts to exclude.
    includes_patterns Sequence[str]
    Pattern of artifacts to include.
    repositories List<String>
    List of repositories this permission target is applicable for. You can specify the name ANY in the repositories section in order to apply to all repositories, ANY REMOTE for all remote repositories and ANY LOCAL for all local repositories. The default value will be [] if nothing is specified.
    actions Property Map
    excludesPatterns List<String>
    Pattern of artifacts to exclude.
    includesPatterns List<String>
    Pattern of artifacts to include.

    GetPermissionTargetRepoActions

    Groups List<GetPermissionTargetRepoActionsGroup>
    Groups this permission applies for.
    Users List<GetPermissionTargetRepoActionsUser>
    Users this permission target applies for.
    Groups []GetPermissionTargetRepoActionsGroup
    Groups this permission applies for.
    Users []GetPermissionTargetRepoActionsUser
    Users this permission target applies for.
    groups List<GetPermissionTargetRepoActionsGroup>
    Groups this permission applies for.
    users List<GetPermissionTargetRepoActionsUser>
    Users this permission target applies for.
    groups GetPermissionTargetRepoActionsGroup[]
    Groups this permission applies for.
    users GetPermissionTargetRepoActionsUser[]
    Users this permission target applies for.
    groups Sequence[GetPermissionTargetRepoActionsGroup]
    Groups this permission applies for.
    users Sequence[GetPermissionTargetRepoActionsUser]
    Users this permission target applies for.
    groups List<Property Map>
    Groups this permission applies for.
    users List<Property Map>
    Users this permission target applies for.

    GetPermissionTargetRepoActionsGroup

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    GetPermissionTargetRepoActionsUser

    Name string
    Name of the permission target.
    Permissions List<string>
    Name string
    Name of the permission target.
    Permissions []string
    name String
    Name of the permission target.
    permissions List<String>
    name string
    Name of the permission target.
    permissions string[]
    name str
    Name of the permission target.
    permissions Sequence[str]
    name String
    Name of the permission target.
    permissions List<String>

    Package Details

    Repository
    artifactory pulumi/pulumi-artifactory
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the artifactory Terraform Provider.
    artifactory logo
    artifactory v8.4.0 published on Tuesday, Nov 19, 2024 by Pulumi