artifactory v8.1.0 published on Saturday, Sep 28, 2024 by Pulumi
artifactory.getPermissionTarget
Explore with Pulumi AI
# 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
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- Release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- Repo
Get
Permission Target Repo - Repository permission configuration.
- Name string
- Name of the permission target.
- Build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- Release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- Repo
Get
Permission Target Repo - Repository permission configuration.
- name String
- Name of the permission target.
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - Repository permission configuration.
- name string
- Name of the permission target.
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - Repository permission configuration.
- name str
- Name of the permission target.
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release_
bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - Repository permission configuration.
- name String
- Name of the permission target.
- build Property Map
- Same as repo but for artifactory-build-info permissions.
- release
Bundle 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
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- Release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- Repo
Get
Permission Target Repo - Repository permission configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- Release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- Repo
Get
Permission Target Repo - Repository permission configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - Repository permission configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release
Bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - Repository permission configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- build
Get
Permission Target Build - Same as repo but for artifactory-build-info permissions.
- release_
bundle GetPermission Target Release Bundle - Same as repo but for release-bundles permissions.
- repo
Get
Permission Target Repo - 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.
- release
Bundle 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Build Actions - Excludes
Patterns List<string> - Pattern of artifacts to exclude.
- Includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Build Actions - Excludes
Patterns []string - Pattern of artifacts to exclude.
- Includes
Patterns []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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Build Actions - excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Build Actions - excludes
Patterns string[] - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Build Actions - 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions Property Map
- excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns List<String> - Pattern of artifacts to include.
GetPermissionTargetBuildActions
- Groups
List<Get
Permission Target Build Actions Group> - Groups this permission applies for.
- Users
List<Get
Permission Target Build Actions User> - Users this permission target applies for.
- Groups
[]Get
Permission Target Build Actions Group - Groups this permission applies for.
- Users
[]Get
Permission Target Build Actions User - Users this permission target applies for.
- groups
List<Get
Permission Target Build Actions Group> - Groups this permission applies for.
- users
List<Get
Permission Target Build Actions User> - Users this permission target applies for.
- groups
Get
Permission Target Build Actions Group[] - Groups this permission applies for.
- users
Get
Permission Target Build Actions User[] - Users this permission target applies for.
- groups
Sequence[Get
Permission Target Build Actions Group] - Groups this permission applies for.
- users
Sequence[Get
Permission Target Build Actions User] - 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Release Bundle Actions - Excludes
Patterns List<string> - Pattern of artifacts to exclude.
- Includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Release Bundle Actions - Excludes
Patterns []string - Pattern of artifacts to exclude.
- Includes
Patterns []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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Release Bundle Actions - excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Release Bundle Actions - excludes
Patterns string[] - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Release Bundle Actions - 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions Property Map
- excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns List<String> - Pattern of artifacts to include.
GetPermissionTargetReleaseBundleActions
- Groups
List<Get
Permission Target Release Bundle Actions Group> - Groups this permission applies for.
- Users
List<Get
Permission Target Release Bundle Actions User> - Users this permission target applies for.
- Groups
[]Get
Permission Target Release Bundle Actions Group - Groups this permission applies for.
- Users
[]Get
Permission Target Release Bundle Actions User - Users this permission target applies for.
- groups
List<Get
Permission Target Release Bundle Actions Group> - Groups this permission applies for.
- users
List<Get
Permission Target Release Bundle Actions User> - Users this permission target applies for.
- groups
Get
Permission Target Release Bundle Actions Group[] - Groups this permission applies for.
- users
Get
Permission Target Release Bundle Actions User[] - Users this permission target applies for.
- groups
Sequence[Get
Permission Target Release Bundle Actions Group] - Groups this permission applies for.
- users
Sequence[Get
Permission Target Release Bundle Actions User] - 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Repo Actions - Excludes
Patterns List<string> - Pattern of artifacts to exclude.
- Includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - Actions
Get
Permission Target Repo Actions - Excludes
Patterns []string - Pattern of artifacts to exclude.
- Includes
Patterns []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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Repo Actions - excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Repo Actions - excludes
Patterns string[] - Pattern of artifacts to exclude.
- includes
Patterns 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions
Get
Permission Target Repo Actions - 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 andANY LOCAL
for all local repositories. The default value will be[]
if nothing is specified. - actions Property Map
- excludes
Patterns List<String> - Pattern of artifacts to exclude.
- includes
Patterns List<String> - Pattern of artifacts to include.
GetPermissionTargetRepoActions
- Groups
List<Get
Permission Target Repo Actions Group> - Groups this permission applies for.
- Users
List<Get
Permission Target Repo Actions User> - Users this permission target applies for.
- Groups
[]Get
Permission Target Repo Actions Group - Groups this permission applies for.
- Users
[]Get
Permission Target Repo Actions User - Users this permission target applies for.
- groups
List<Get
Permission Target Repo Actions Group> - Groups this permission applies for.
- users
List<Get
Permission Target Repo Actions User> - Users this permission target applies for.
- groups
Get
Permission Target Repo Actions Group[] - Groups this permission applies for.
- users
Get
Permission Target Repo Actions User[] - Users this permission target applies for.
- groups
Sequence[Get
Permission Target Repo Actions Group] - Groups this permission applies for.
- users
Sequence[Get
Permission Target Repo Actions User] - 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.