Artifactory

v2.8.0 published on Thursday, Sep 1, 2022 by Pulumi

GeneralSecurity

This resource can be used to manage Artifactory’s general security settings.

Only a single artifactory.GeneralSecurity resource is meant to be defined.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Artifactory = Pulumi.Artifactory;

return await Deployment.RunAsync(() => 
{
    // Configure Artifactory general security settings
    var security = new Artifactory.GeneralSecurity("security", new()
    {
        EnableAnonymousAccess = true,
    });

});
package main

import (
	"github.com/pulumi/pulumi-artifactory/sdk/v2/go/artifactory"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := artifactory.NewGeneralSecurity(ctx, "security", &artifactory.GeneralSecurityArgs{
			EnableAnonymousAccess: pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.GeneralSecurity;
import com.pulumi.artifactory.GeneralSecurityArgs;
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) {
        var security = new GeneralSecurity("security", GeneralSecurityArgs.builder()        
            .enableAnonymousAccess(true)
            .build());

    }
}
import pulumi
import pulumi_artifactory as artifactory

# Configure Artifactory general security settings
security = artifactory.GeneralSecurity("security", enable_anonymous_access=True)
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";

// Configure Artifactory general security settings
const security = new artifactory.GeneralSecurity("security", {
    enableAnonymousAccess: true,
});
resources:
  # Configure Artifactory general security settings
  security:
    type: artifactory:GeneralSecurity
    properties:
      enableAnonymousAccess: true

Create a GeneralSecurity Resource

new GeneralSecurity(name: string, args?: GeneralSecurityArgs, opts?: CustomResourceOptions);
@overload
def GeneralSecurity(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    enable_anonymous_access: Optional[bool] = None)
@overload
def GeneralSecurity(resource_name: str,
                    args: Optional[GeneralSecurityArgs] = None,
                    opts: Optional[ResourceOptions] = None)
func NewGeneralSecurity(ctx *Context, name string, args *GeneralSecurityArgs, opts ...ResourceOption) (*GeneralSecurity, error)
public GeneralSecurity(string name, GeneralSecurityArgs? args = null, CustomResourceOptions? opts = null)
public GeneralSecurity(String name, GeneralSecurityArgs args)
public GeneralSecurity(String name, GeneralSecurityArgs args, CustomResourceOptions options)
type: artifactory:GeneralSecurity
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args GeneralSecurityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args GeneralSecurityArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args GeneralSecurityArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args GeneralSecurityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args GeneralSecurityArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

GeneralSecurity Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The GeneralSecurity resource accepts the following input properties:

Outputs

All input properties are implicitly available as output properties. Additionally, the GeneralSecurity resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing GeneralSecurity Resource

Get an existing GeneralSecurity resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: GeneralSecurityState, opts?: CustomResourceOptions): GeneralSecurity
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        enable_anonymous_access: Optional[bool] = None) -> GeneralSecurity
func GetGeneralSecurity(ctx *Context, name string, id IDInput, state *GeneralSecurityState, opts ...ResourceOption) (*GeneralSecurity, error)
public static GeneralSecurity Get(string name, Input<string> id, GeneralSecurityState? state, CustomResourceOptions? opts = null)
public static GeneralSecurity get(String name, Output<String> id, GeneralSecurityState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

Import

Current general security settings can be imported using security as the ID, e.g.

 $ pulumi import artifactory:index/generalSecurity:GeneralSecurity security security

environments, or may change without notice.

Package Details

Repository
https://github.com/pulumi/pulumi-artifactory
License
Apache-2.0
Notes

This Pulumi package is based on the artifactory Terraform Provider.