1. Packages
  2. Artifactory
  3. API Docs
  4. GeneralSecurity
artifactory v6.4.2 published on Thursday, Mar 28, 2024 by Pulumi

artifactory.GeneralSecurity

Explore with Pulumi AI

artifactory logo
artifactory v6.4.2 published on Thursday, Mar 28, 2024 by Pulumi

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

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

    ~>The artifactory.GeneralSecurity resource utilizes endpoints which are blocked/removed in SaaS environments (i.e. in Artifactory online), rendering this resource incompatible with Artifactory SaaS environments.

    Example Usage

    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});
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    # Configure Artifactory general security settings
    security = artifactory.GeneralSecurity("security", enable_anonymous_access=True)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v6/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Configure Artifactory general security settings
    		_, err := artifactory.NewGeneralSecurity(ctx, "security", &artifactory.GeneralSecurityArgs{
    			EnableAnonymousAccess: pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    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 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());
    
        }
    }
    
    resources:
      # Configure Artifactory general security settings
      security:
        type: artifactory:GeneralSecurity
        properties:
          enableAnonymousAccess: true
    

    Create 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:

    EnableAnonymousAccess bool
    Enable anonymous access. Default value is false.
    EnableAnonymousAccess bool
    Enable anonymous access. Default value is false.
    enableAnonymousAccess Boolean
    Enable anonymous access. Default value is false.
    enableAnonymousAccess boolean
    Enable anonymous access. Default value is false.
    enable_anonymous_access bool
    Enable anonymous access. Default value is false.
    enableAnonymousAccess Boolean
    Enable anonymous access. Default value is false.

    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 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.
    The following state arguments are supported:
    EnableAnonymousAccess bool
    Enable anonymous access. Default value is false.
    EnableAnonymousAccess bool
    Enable anonymous access. Default value is false.
    enableAnonymousAccess Boolean
    Enable anonymous access. Default value is false.
    enableAnonymousAccess boolean
    Enable anonymous access. Default value is false.
    enable_anonymous_access bool
    Enable anonymous access. Default value is false.
    enableAnonymousAccess Boolean
    Enable anonymous access. Default value is false.

    Import

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

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

    ~>The artifactory_general_security resource uses endpoints that are undocumented and may not work with SaaS environments, or may change without notice.

    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 v6.4.2 published on Thursday, Mar 28, 2024 by Pulumi