1. Packages
  2. Artifactory
  3. API Docs
  4. DistributionCustomWebhook
artifactory v4.6.0 published on Thursday, Sep 14, 2023 by Pulumi

artifactory.DistributionCustomWebhook

Explore with Pulumi AI

artifactory logo
artifactory v4.6.0 published on Thursday, Sep 14, 2023 by Pulumi

    Provides an Artifactory custom webhook resource. This can be used to register and manage Artifactory webhook subscription which enables you to be notified or notify other users when such events take place in Artifactory.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Artifactory = Pulumi.Artifactory;
    
    return await Deployment.RunAsync(() => 
    {
        var distribution_custom_webhook = new Artifactory.DistributionCustomWebhook("distribution-custom-webhook", new()
        {
            Criteria = new Artifactory.Inputs.DistributionCustomWebhookCriteriaArgs
            {
                AnyReleaseBundle = false,
                ExcludePatterns = new[]
                {
                    "bar/**",
                },
                IncludePatterns = new[]
                {
                    "foo/**",
                },
                RegisteredReleaseBundleNames = new[]
                {
                    "bundle-name",
                },
            },
            EventTypes = new[]
            {
                "distribute_started",
                "distribute_completed",
                "distribute_aborted",
                "distribute_failed",
                "delete_started",
                "delete_completed",
                "delete_failed",
            },
            Handlers = new[]
            {
                new Artifactory.Inputs.DistributionCustomWebhookHandlerArgs
                {
                    HttpHeaders = 
                    {
                        { "headerName1", "value1" },
                        { "headerName2", "value2" },
                    },
                    Payload = "{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
                    Secrets = 
                    {
                        { "secretName1", "value1" },
                        { "secretName2", "value2" },
                    },
                    Url = "https://tempurl.org",
                },
            },
            Key = "distribution-custom-webhook",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-artifactory/sdk/v4/go/artifactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := artifactory.NewDistributionCustomWebhook(ctx, "distribution-custom-webhook", &artifactory.DistributionCustomWebhookArgs{
    			Criteria: &artifactory.DistributionCustomWebhookCriteriaArgs{
    				AnyReleaseBundle: pulumi.Bool(false),
    				ExcludePatterns: pulumi.StringArray{
    					pulumi.String("bar/**"),
    				},
    				IncludePatterns: pulumi.StringArray{
    					pulumi.String("foo/**"),
    				},
    				RegisteredReleaseBundleNames: pulumi.StringArray{
    					pulumi.String("bundle-name"),
    				},
    			},
    			EventTypes: pulumi.StringArray{
    				pulumi.String("distribute_started"),
    				pulumi.String("distribute_completed"),
    				pulumi.String("distribute_aborted"),
    				pulumi.String("distribute_failed"),
    				pulumi.String("delete_started"),
    				pulumi.String("delete_completed"),
    				pulumi.String("delete_failed"),
    			},
    			Handlers: artifactory.DistributionCustomWebhookHandlerArray{
    				&artifactory.DistributionCustomWebhookHandlerArgs{
    					HttpHeaders: pulumi.StringMap{
    						"headerName1": pulumi.String("value1"),
    						"headerName2": pulumi.String("value2"),
    					},
    					Payload: pulumi.String("{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }"),
    					Secrets: pulumi.StringMap{
    						"secretName1": pulumi.String("value1"),
    						"secretName2": pulumi.String("value2"),
    					},
    					Url: pulumi.String("https://tempurl.org"),
    				},
    			},
    			Key: pulumi.String("distribution-custom-webhook"),
    		})
    		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.DistributionCustomWebhook;
    import com.pulumi.artifactory.DistributionCustomWebhookArgs;
    import com.pulumi.artifactory.inputs.DistributionCustomWebhookCriteriaArgs;
    import com.pulumi.artifactory.inputs.DistributionCustomWebhookHandlerArgs;
    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 distribution_custom_webhook = new DistributionCustomWebhook("distribution-custom-webhook", DistributionCustomWebhookArgs.builder()        
                .criteria(DistributionCustomWebhookCriteriaArgs.builder()
                    .anyReleaseBundle(false)
                    .excludePatterns("bar/**")
                    .includePatterns("foo/**")
                    .registeredReleaseBundleNames("bundle-name")
                    .build())
                .eventTypes(            
                    "distribute_started",
                    "distribute_completed",
                    "distribute_aborted",
                    "distribute_failed",
                    "delete_started",
                    "delete_completed",
                    "delete_failed")
                .handlers(DistributionCustomWebhookHandlerArgs.builder()
                    .httpHeaders(Map.ofEntries(
                        Map.entry("headerName1", "value1"),
                        Map.entry("headerName2", "value2")
                    ))
                    .payload("{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }")
                    .secrets(Map.ofEntries(
                        Map.entry("secretName1", "value1"),
                        Map.entry("secretName2", "value2")
                    ))
                    .url("https://tempurl.org")
                    .build())
                .key("distribution-custom-webhook")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_artifactory as artifactory
    
    distribution_custom_webhook = artifactory.DistributionCustomWebhook("distribution-custom-webhook",
        criteria=artifactory.DistributionCustomWebhookCriteriaArgs(
            any_release_bundle=False,
            exclude_patterns=["bar/**"],
            include_patterns=["foo/**"],
            registered_release_bundle_names=["bundle-name"],
        ),
        event_types=[
            "distribute_started",
            "distribute_completed",
            "distribute_aborted",
            "distribute_failed",
            "delete_started",
            "delete_completed",
            "delete_failed",
        ],
        handlers=[artifactory.DistributionCustomWebhookHandlerArgs(
            http_headers={
                "headerName1": "value1",
                "headerName2": "value2",
            },
            payload="{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
            secrets={
                "secretName1": "value1",
                "secretName2": "value2",
            },
            url="https://tempurl.org",
        )],
        key="distribution-custom-webhook")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as artifactory from "@pulumi/artifactory";
    
    const distribution_custom_webhook = new artifactory.DistributionCustomWebhook("distribution-custom-webhook", {
        criteria: {
            anyReleaseBundle: false,
            excludePatterns: ["bar/**"],
            includePatterns: ["foo/**"],
            registeredReleaseBundleNames: ["bundle-name"],
        },
        eventTypes: [
            "distribute_started",
            "distribute_completed",
            "distribute_aborted",
            "distribute_failed",
            "delete_started",
            "delete_completed",
            "delete_failed",
        ],
        handlers: [{
            httpHeaders: {
                headerName1: "value1",
                headerName2: "value2",
            },
            payload: "{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
            secrets: {
                secretName1: "value1",
                secretName2: "value2",
            },
            url: "https://tempurl.org",
        }],
        key: "distribution-custom-webhook",
    });
    
    resources:
      distribution-custom-webhook:
        type: artifactory:DistributionCustomWebhook
        properties:
          criteria:
            anyReleaseBundle: false
            excludePatterns:
              - bar/**
            includePatterns:
              - foo/**
            registeredReleaseBundleNames:
              - bundle-name
          eventTypes:
            - distribute_started
            - distribute_completed
            - distribute_aborted
            - distribute_failed
            - delete_started
            - delete_completed
            - delete_failed
          handlers:
            - httpHeaders:
                headerName1: value1
                headerName2: value2
              payload: '{ "ref": "main" , "inputs": { "artifact_path": "test-repo/repo-path" } }'
              secrets:
                secretName1: value1
                secretName2: value2
              url: https://tempurl.org
          key: distribution-custom-webhook
    

    Create DistributionCustomWebhook Resource

    new DistributionCustomWebhook(name: string, args: DistributionCustomWebhookArgs, opts?: CustomResourceOptions);
    @overload
    def DistributionCustomWebhook(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  criteria: Optional[DistributionCustomWebhookCriteriaArgs] = None,
                                  description: Optional[str] = None,
                                  enabled: Optional[bool] = None,
                                  event_types: Optional[Sequence[str]] = None,
                                  handlers: Optional[Sequence[DistributionCustomWebhookHandlerArgs]] = None,
                                  key: Optional[str] = None)
    @overload
    def DistributionCustomWebhook(resource_name: str,
                                  args: DistributionCustomWebhookArgs,
                                  opts: Optional[ResourceOptions] = None)
    func NewDistributionCustomWebhook(ctx *Context, name string, args DistributionCustomWebhookArgs, opts ...ResourceOption) (*DistributionCustomWebhook, error)
    public DistributionCustomWebhook(string name, DistributionCustomWebhookArgs args, CustomResourceOptions? opts = null)
    public DistributionCustomWebhook(String name, DistributionCustomWebhookArgs args)
    public DistributionCustomWebhook(String name, DistributionCustomWebhookArgs args, CustomResourceOptions options)
    
    type: artifactory:DistributionCustomWebhook
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args DistributionCustomWebhookArgs
    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 DistributionCustomWebhookArgs
    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 DistributionCustomWebhookArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DistributionCustomWebhookArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DistributionCustomWebhookArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DistributionCustomWebhook 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 DistributionCustomWebhook resource accepts the following input properties:

    Criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    EventTypes List<string>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    Handlers List<DistributionCustomWebhookHandler>

    At least one is required.

    Key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    Description string

    Webhook description. Max length 1000 characters.

    Enabled bool

    Status of webhook. Default to true.

    Criteria DistributionCustomWebhookCriteriaArgs

    Specifies where the webhook will be applied on which repositories.

    EventTypes []string

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    Handlers []DistributionCustomWebhookHandlerArgs

    At least one is required.

    Key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    Description string

    Webhook description. Max length 1000 characters.

    Enabled bool

    Status of webhook. Default to true.

    criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    eventTypes List<String>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers List<DistributionCustomWebhookHandler>

    At least one is required.

    key String

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    description String

    Webhook description. Max length 1000 characters.

    enabled Boolean

    Status of webhook. Default to true.

    criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    eventTypes string[]

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers DistributionCustomWebhookHandler[]

    At least one is required.

    key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    description string

    Webhook description. Max length 1000 characters.

    enabled boolean

    Status of webhook. Default to true.

    criteria DistributionCustomWebhookCriteriaArgs

    Specifies where the webhook will be applied on which repositories.

    event_types Sequence[str]

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers Sequence[DistributionCustomWebhookHandlerArgs]

    At least one is required.

    key str

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    description str

    Webhook description. Max length 1000 characters.

    enabled bool

    Status of webhook. Default to true.

    criteria Property Map

    Specifies where the webhook will be applied on which repositories.

    eventTypes List<String>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers List<Property Map>

    At least one is required.

    key String

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    description String

    Webhook description. Max length 1000 characters.

    enabled Boolean

    Status of webhook. Default to true.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DistributionCustomWebhook 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 DistributionCustomWebhook Resource

    Get an existing DistributionCustomWebhook 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?: DistributionCustomWebhookState, opts?: CustomResourceOptions): DistributionCustomWebhook
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            criteria: Optional[DistributionCustomWebhookCriteriaArgs] = None,
            description: Optional[str] = None,
            enabled: Optional[bool] = None,
            event_types: Optional[Sequence[str]] = None,
            handlers: Optional[Sequence[DistributionCustomWebhookHandlerArgs]] = None,
            key: Optional[str] = None) -> DistributionCustomWebhook
    func GetDistributionCustomWebhook(ctx *Context, name string, id IDInput, state *DistributionCustomWebhookState, opts ...ResourceOption) (*DistributionCustomWebhook, error)
    public static DistributionCustomWebhook Get(string name, Input<string> id, DistributionCustomWebhookState? state, CustomResourceOptions? opts = null)
    public static DistributionCustomWebhook get(String name, Output<String> id, DistributionCustomWebhookState 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:
    Criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    Description string

    Webhook description. Max length 1000 characters.

    Enabled bool

    Status of webhook. Default to true.

    EventTypes List<string>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    Handlers List<DistributionCustomWebhookHandler>

    At least one is required.

    Key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    Criteria DistributionCustomWebhookCriteriaArgs

    Specifies where the webhook will be applied on which repositories.

    Description string

    Webhook description. Max length 1000 characters.

    Enabled bool

    Status of webhook. Default to true.

    EventTypes []string

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    Handlers []DistributionCustomWebhookHandlerArgs

    At least one is required.

    Key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    description String

    Webhook description. Max length 1000 characters.

    enabled Boolean

    Status of webhook. Default to true.

    eventTypes List<String>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers List<DistributionCustomWebhookHandler>

    At least one is required.

    key String

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    criteria DistributionCustomWebhookCriteria

    Specifies where the webhook will be applied on which repositories.

    description string

    Webhook description. Max length 1000 characters.

    enabled boolean

    Status of webhook. Default to true.

    eventTypes string[]

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers DistributionCustomWebhookHandler[]

    At least one is required.

    key string

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    criteria DistributionCustomWebhookCriteriaArgs

    Specifies where the webhook will be applied on which repositories.

    description str

    Webhook description. Max length 1000 characters.

    enabled bool

    Status of webhook. Default to true.

    event_types Sequence[str]

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers Sequence[DistributionCustomWebhookHandlerArgs]

    At least one is required.

    key str

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    criteria Property Map

    Specifies where the webhook will be applied on which repositories.

    description String

    Webhook description. Max length 1000 characters.

    enabled Boolean

    Status of webhook. Default to true.

    eventTypes List<String>

    List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values: distribute_started, distribute_completed, distribute_aborted, distribute_failed, delete_started, delete_completed, delete_failed`

    handlers List<Property Map>

    At least one is required.

    key String

    The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.

    Supporting Types

    DistributionCustomWebhookCriteria, DistributionCustomWebhookCriteriaArgs

    AnyReleaseBundle bool

    Trigger on any release bundle.

    RegisteredReleaseBundleNames List<string>

    Trigger on this list of release bundle names.

    ExcludePatterns List<string>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    IncludePatterns List<string>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    AnyReleaseBundle bool

    Trigger on any release bundle.

    RegisteredReleaseBundleNames []string

    Trigger on this list of release bundle names.

    ExcludePatterns []string

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    IncludePatterns []string

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    anyReleaseBundle Boolean

    Trigger on any release bundle.

    registeredReleaseBundleNames List<String>

    Trigger on this list of release bundle names.

    excludePatterns List<String>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    includePatterns List<String>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    anyReleaseBundle boolean

    Trigger on any release bundle.

    registeredReleaseBundleNames string[]

    Trigger on this list of release bundle names.

    excludePatterns string[]

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    includePatterns string[]

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    any_release_bundle bool

    Trigger on any release bundle.

    registered_release_bundle_names Sequence[str]

    Trigger on this list of release bundle names.

    exclude_patterns Sequence[str]

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    include_patterns Sequence[str]

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    anyReleaseBundle Boolean

    Trigger on any release bundle.

    registeredReleaseBundleNames List<String>

    Trigger on this list of release bundle names.

    excludePatterns List<String>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    includePatterns List<String>

    Simple comma separated wildcard patterns for repository artifact paths (with no leading slash). Ant-style path expressions are supported (*, **, ?). For example: org/apache/**.

    DistributionCustomWebhookHandler, DistributionCustomWebhookHandlerArgs

    Url string

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    HttpHeaders Dictionary<string, string>

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    Payload string
    Proxy string

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    Secrets Dictionary<string, string>

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    Url string

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    HttpHeaders map[string]string

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    Payload string
    Proxy string

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    Secrets map[string]string

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    url String

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    httpHeaders Map<String,String>

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    payload String
    proxy String

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    secrets Map<String,String>

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    url string

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    httpHeaders {[key: string]: string}

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    payload string
    proxy string

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    secrets {[key: string]: string}

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    url str

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    http_headers Mapping[str, str]

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    payload str
    proxy str

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    secrets Mapping[str, str]

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    
    url String

    Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.

    httpHeaders Map<String>

    HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.

    payload String
    proxy String

    Proxy key from Artifactory UI (Administration > Proxies > Configuration).

    secrets Map<String>

    Defines a set of sensitive values (such as, tokens and passwords) that can be injected in the headers and/or payload.Secrets’ values are encrypted. In the header/payload, the value can be invoked using the {{.secrets.token}} format, where token is the name provided for the secret value. Comprise key/value pair. Note: if multiple handlers are used, same secret name and different secret value for the same url won't work. Example:

    import * as pulumi from "@pulumi/pulumi";
    
    import pulumi
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    

    return await Deployment.RunAsync(() => { });

    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    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) {
        }
    }
    
    {}
    

    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 v4.6.0 published on Thursday, Sep 14, 2023 by Pulumi