artifactory.ArtifactWebhook
Explore with Pulumi AI
Provides an Artifactory 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
.
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const my_generic_local = new artifactory.LocalGenericRepository("my-generic-local", {key: "my-generic-local"});
const artifact_webhook = new artifactory.ArtifactWebhook("artifact-webhook", {
key: "artifact-webhook",
eventTypes: [
"deployed",
"deleted",
"moved",
"copied",
],
criteria: {
anyLocal: true,
anyRemote: false,
anyFederated: false,
repoKeys: [my_generic_local.key],
includePatterns: ["foo/**"],
excludePatterns: ["bar/**"],
},
handlers: [{
url: "http://tempurl.org/webhook",
secret: "some-secret",
proxy: "proxy-key",
customHttpHeaders: {
"header-1": "value-1",
"header-2": "value-2",
},
}],
}, {
dependsOn: [my_generic_local],
});
import pulumi
import pulumi_artifactory as artifactory
my_generic_local = artifactory.LocalGenericRepository("my-generic-local", key="my-generic-local")
artifact_webhook = artifactory.ArtifactWebhook("artifact-webhook",
key="artifact-webhook",
event_types=[
"deployed",
"deleted",
"moved",
"copied",
],
criteria={
"any_local": True,
"any_remote": False,
"any_federated": False,
"repo_keys": [my_generic_local.key],
"include_patterns": ["foo/**"],
"exclude_patterns": ["bar/**"],
},
handlers=[{
"url": "http://tempurl.org/webhook",
"secret": "some-secret",
"proxy": "proxy-key",
"custom_http_headers": {
"header-1": "value-1",
"header-2": "value-2",
},
}],
opts = pulumi.ResourceOptions(depends_on=[my_generic_local]))
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.NewLocalGenericRepository(ctx, "my-generic-local", &artifactory.LocalGenericRepositoryArgs{
Key: pulumi.String("my-generic-local"),
})
if err != nil {
return err
}
_, err = artifactory.NewArtifactWebhook(ctx, "artifact-webhook", &artifactory.ArtifactWebhookArgs{
Key: pulumi.String("artifact-webhook"),
EventTypes: pulumi.StringArray{
pulumi.String("deployed"),
pulumi.String("deleted"),
pulumi.String("moved"),
pulumi.String("copied"),
},
Criteria: &artifactory.ArtifactWebhookCriteriaArgs{
AnyLocal: pulumi.Bool(true),
AnyRemote: pulumi.Bool(false),
AnyFederated: pulumi.Bool(false),
RepoKeys: pulumi.StringArray{
my_generic_local.Key,
},
IncludePatterns: pulumi.StringArray{
pulumi.String("foo/**"),
},
ExcludePatterns: pulumi.StringArray{
pulumi.String("bar/**"),
},
},
Handlers: artifactory.ArtifactWebhookHandlerArray{
&artifactory.ArtifactWebhookHandlerArgs{
Url: pulumi.String("http://tempurl.org/webhook"),
Secret: pulumi.String("some-secret"),
Proxy: pulumi.String("proxy-key"),
CustomHttpHeaders: pulumi.StringMap{
"header-1": pulumi.String("value-1"),
"header-2": pulumi.String("value-2"),
},
},
},
}, pulumi.DependsOn([]pulumi.Resource{
my_generic_local,
}))
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 my_generic_local = new Artifactory.LocalGenericRepository("my-generic-local", new()
{
Key = "my-generic-local",
});
var artifact_webhook = new Artifactory.ArtifactWebhook("artifact-webhook", new()
{
Key = "artifact-webhook",
EventTypes = new[]
{
"deployed",
"deleted",
"moved",
"copied",
},
Criteria = new Artifactory.Inputs.ArtifactWebhookCriteriaArgs
{
AnyLocal = true,
AnyRemote = false,
AnyFederated = false,
RepoKeys = new[]
{
my_generic_local.Key,
},
IncludePatterns = new[]
{
"foo/**",
},
ExcludePatterns = new[]
{
"bar/**",
},
},
Handlers = new[]
{
new Artifactory.Inputs.ArtifactWebhookHandlerArgs
{
Url = "http://tempurl.org/webhook",
Secret = "some-secret",
Proxy = "proxy-key",
CustomHttpHeaders =
{
{ "header-1", "value-1" },
{ "header-2", "value-2" },
},
},
},
}, new CustomResourceOptions
{
DependsOn =
{
my_generic_local,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.LocalGenericRepository;
import com.pulumi.artifactory.LocalGenericRepositoryArgs;
import com.pulumi.artifactory.ArtifactWebhook;
import com.pulumi.artifactory.ArtifactWebhookArgs;
import com.pulumi.artifactory.inputs.ArtifactWebhookCriteriaArgs;
import com.pulumi.artifactory.inputs.ArtifactWebhookHandlerArgs;
import com.pulumi.resources.CustomResourceOptions;
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 my_generic_local = new LocalGenericRepository("my-generic-local", LocalGenericRepositoryArgs.builder()
.key("my-generic-local")
.build());
var artifact_webhook = new ArtifactWebhook("artifact-webhook", ArtifactWebhookArgs.builder()
.key("artifact-webhook")
.eventTypes(
"deployed",
"deleted",
"moved",
"copied")
.criteria(ArtifactWebhookCriteriaArgs.builder()
.anyLocal(true)
.anyRemote(false)
.anyFederated(false)
.repoKeys(my_generic_local.key())
.includePatterns("foo/**")
.excludePatterns("bar/**")
.build())
.handlers(ArtifactWebhookHandlerArgs.builder()
.url("http://tempurl.org/webhook")
.secret("some-secret")
.proxy("proxy-key")
.customHttpHeaders(Map.ofEntries(
Map.entry("header-1", "value-1"),
Map.entry("header-2", "value-2")
))
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(my_generic_local)
.build());
}
}
resources:
my-generic-local:
type: artifactory:LocalGenericRepository
properties:
key: my-generic-local
artifact-webhook:
type: artifactory:ArtifactWebhook
properties:
key: artifact-webhook
eventTypes:
- deployed
- deleted
- moved
- copied
criteria:
anyLocal: true
anyRemote: false
anyFederated: false
repoKeys:
- ${["my-generic-local"].key}
includePatterns:
- foo/**
excludePatterns:
- bar/**
handlers:
- url: http://tempurl.org/webhook
secret: some-secret
proxy: proxy-key
customHttpHeaders:
header-1: value-1
header-2: value-2
options:
dependson:
- ${["my-generic-local"]}
Create ArtifactWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ArtifactWebhook(name: string, args: ArtifactWebhookArgs, opts?: CustomResourceOptions);
@overload
def ArtifactWebhook(resource_name: str,
args: ArtifactWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ArtifactWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_types: Optional[Sequence[str]] = None,
key: Optional[str] = None,
criteria: Optional[ArtifactWebhookCriteriaArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
handlers: Optional[Sequence[ArtifactWebhookHandlerArgs]] = None)
func NewArtifactWebhook(ctx *Context, name string, args ArtifactWebhookArgs, opts ...ResourceOption) (*ArtifactWebhook, error)
public ArtifactWebhook(string name, ArtifactWebhookArgs args, CustomResourceOptions? opts = null)
public ArtifactWebhook(String name, ArtifactWebhookArgs args)
public ArtifactWebhook(String name, ArtifactWebhookArgs args, CustomResourceOptions options)
type: artifactory:ArtifactWebhook
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ArtifactWebhookArgs
- 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 ArtifactWebhookArgs
- 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 ArtifactWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ArtifactWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ArtifactWebhookArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var artifactWebhookResource = new Artifactory.ArtifactWebhook("artifactWebhookResource", new()
{
EventTypes = new[]
{
"string",
},
Key = "string",
Criteria = new Artifactory.Inputs.ArtifactWebhookCriteriaArgs
{
AnyFederated = false,
AnyLocal = false,
AnyRemote = false,
RepoKeys = new[]
{
"string",
},
ExcludePatterns = new[]
{
"string",
},
IncludePatterns = new[]
{
"string",
},
},
Description = "string",
Enabled = false,
Handlers = new[]
{
new Artifactory.Inputs.ArtifactWebhookHandlerArgs
{
Url = "string",
CustomHttpHeaders =
{
{ "string", "string" },
},
Proxy = "string",
Secret = "string",
UseSecretForSigning = false,
},
},
});
example, err := artifactory.NewArtifactWebhook(ctx, "artifactWebhookResource", &artifactory.ArtifactWebhookArgs{
EventTypes: pulumi.StringArray{
pulumi.String("string"),
},
Key: pulumi.String("string"),
Criteria: &artifactory.ArtifactWebhookCriteriaArgs{
AnyFederated: pulumi.Bool(false),
AnyLocal: pulumi.Bool(false),
AnyRemote: pulumi.Bool(false),
RepoKeys: pulumi.StringArray{
pulumi.String("string"),
},
ExcludePatterns: pulumi.StringArray{
pulumi.String("string"),
},
IncludePatterns: pulumi.StringArray{
pulumi.String("string"),
},
},
Description: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Handlers: artifactory.ArtifactWebhookHandlerArray{
&artifactory.ArtifactWebhookHandlerArgs{
Url: pulumi.String("string"),
CustomHttpHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Proxy: pulumi.String("string"),
Secret: pulumi.String("string"),
UseSecretForSigning: pulumi.Bool(false),
},
},
})
var artifactWebhookResource = new ArtifactWebhook("artifactWebhookResource", ArtifactWebhookArgs.builder()
.eventTypes("string")
.key("string")
.criteria(ArtifactWebhookCriteriaArgs.builder()
.anyFederated(false)
.anyLocal(false)
.anyRemote(false)
.repoKeys("string")
.excludePatterns("string")
.includePatterns("string")
.build())
.description("string")
.enabled(false)
.handlers(ArtifactWebhookHandlerArgs.builder()
.url("string")
.customHttpHeaders(Map.of("string", "string"))
.proxy("string")
.secret("string")
.useSecretForSigning(false)
.build())
.build());
artifact_webhook_resource = artifactory.ArtifactWebhook("artifactWebhookResource",
event_types=["string"],
key="string",
criteria={
"any_federated": False,
"any_local": False,
"any_remote": False,
"repo_keys": ["string"],
"exclude_patterns": ["string"],
"include_patterns": ["string"],
},
description="string",
enabled=False,
handlers=[{
"url": "string",
"custom_http_headers": {
"string": "string",
},
"proxy": "string",
"secret": "string",
"use_secret_for_signing": False,
}])
const artifactWebhookResource = new artifactory.ArtifactWebhook("artifactWebhookResource", {
eventTypes: ["string"],
key: "string",
criteria: {
anyFederated: false,
anyLocal: false,
anyRemote: false,
repoKeys: ["string"],
excludePatterns: ["string"],
includePatterns: ["string"],
},
description: "string",
enabled: false,
handlers: [{
url: "string",
customHttpHeaders: {
string: "string",
},
proxy: "string",
secret: "string",
useSecretForSigning: false,
}],
});
type: artifactory:ArtifactWebhook
properties:
criteria:
anyFederated: false
anyLocal: false
anyRemote: false
excludePatterns:
- string
includePatterns:
- string
repoKeys:
- string
description: string
enabled: false
eventTypes:
- string
handlers:
- customHttpHeaders:
string: string
proxy: string
secret: string
url: string
useSecretForSigning: false
key: string
ArtifactWebhook Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ArtifactWebhook resource accepts the following input properties:
- Event
Types List<string> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- Criteria
Artifact
Webhook Criteria - 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
. - Handlers
List<Artifact
Webhook Handler> - At least one is required.
- Event
Types []string - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- Criteria
Artifact
Webhook Criteria Args - 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
. - Handlers
[]Artifact
Webhook Handler Args - At least one is required.
- event
Types List<String> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - key String
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria - 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
. - handlers
List<Artifact
Webhook Handler> - At least one is required.
- event
Types string[] - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria - 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
. - handlers
Artifact
Webhook Handler[] - At least one is required.
- event_
types Sequence[str] - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - key str
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria Args - 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
. - handlers
Sequence[Artifact
Webhook Handler Args] - At least one is required.
- event
Types List<String> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - key String
- 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
. - handlers List<Property Map>
- At least one is required.
Outputs
All input properties are implicitly available as output properties. Additionally, the ArtifactWebhook 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 ArtifactWebhook Resource
Get an existing ArtifactWebhook 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?: ArtifactWebhookState, opts?: CustomResourceOptions): ArtifactWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
criteria: Optional[ArtifactWebhookCriteriaArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
event_types: Optional[Sequence[str]] = None,
handlers: Optional[Sequence[ArtifactWebhookHandlerArgs]] = None,
key: Optional[str] = None) -> ArtifactWebhook
func GetArtifactWebhook(ctx *Context, name string, id IDInput, state *ArtifactWebhookState, opts ...ResourceOption) (*ArtifactWebhook, error)
public static ArtifactWebhook Get(string name, Input<string> id, ArtifactWebhookState? state, CustomResourceOptions? opts = null)
public static ArtifactWebhook get(String name, Output<String> id, ArtifactWebhookState 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.
- Criteria
Artifact
Webhook Criteria - 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
. - Event
Types List<string> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - Handlers
List<Artifact
Webhook Handler> - At least one is required.
- Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- Criteria
Artifact
Webhook Criteria Args - 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
. - Event
Types []string - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - Handlers
[]Artifact
Webhook Handler Args - At least one is required.
- Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria - 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
. - event
Types List<String> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - handlers
List<Artifact
Webhook Handler> - At least one is required.
- key String
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria - 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
. - event
Types string[] - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - handlers
Artifact
Webhook Handler[] - At least one is required.
- key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Artifact
Webhook Criteria Args - 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:
deployed
,deleted
,moved
,copied
,cached
. - handlers
Sequence[Artifact
Webhook Handler Args] - 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
. - event
Types List<String> - List of Events in Artifactory, Distribution, Release Bundle that function as the event trigger for the Webhook. Allow values:
deployed
,deleted
,moved
,copied
,cached
. - 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
ArtifactWebhookCriteria, ArtifactWebhookCriteriaArgs
- Any
Federated bool - Trigger on any federated repo.
- Any
Local bool - Trigger on any local repo.
- Any
Remote bool - Trigger on any remote repo.
- Repo
Keys List<string> - Trigger on this list of repo keys.
- Exclude
Patterns 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/**
. - Include
Patterns 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/**
.
- Any
Federated bool - Trigger on any federated repo.
- Any
Local bool - Trigger on any local repo.
- Any
Remote bool - Trigger on any remote repo.
- Repo
Keys []string - Trigger on this list of repo keys.
- Exclude
Patterns []string - 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 []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
Federated Boolean - Trigger on any federated repo.
- any
Local Boolean - Trigger on any local repo.
- any
Remote Boolean - Trigger on any remote repo.
- repo
Keys List<String> - Trigger on this list of repo keys.
- exclude
Patterns 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/**
. - include
Patterns 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/**
.
- any
Federated boolean - Trigger on any federated repo.
- any
Local boolean - Trigger on any local repo.
- any
Remote boolean - Trigger on any remote repo.
- repo
Keys string[] - Trigger on this list of repo keys.
- exclude
Patterns string[] - 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 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_
federated bool - Trigger on any federated repo.
- any_
local bool - Trigger on any local repo.
- any_
remote bool - Trigger on any remote repo.
- repo_
keys Sequence[str] - Trigger on this list of repo keys.
- 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/**
.
- any
Federated Boolean - Trigger on any federated repo.
- any
Local Boolean - Trigger on any local repo.
- any
Remote Boolean - Trigger on any remote repo.
- repo
Keys List<String> - Trigger on this list of repo keys.
- exclude
Patterns 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/**
. - include
Patterns 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/**
.
ArtifactWebhookHandler, ArtifactWebhookHandlerArgs
- Url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- Custom
Http Dictionary<string, string>Headers - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- Proxy string
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- Secret string
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - Use
Secret boolFor Signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
- Url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- Custom
Http map[string]stringHeaders - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- Proxy string
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- Secret string
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - Use
Secret boolFor Signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
- url String
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- custom
Http Map<String,String>Headers - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- proxy String
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- secret String
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - use
Secret BooleanFor Signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
- url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- custom
Http {[key: string]: string}Headers - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- proxy string
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- secret string
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - use
Secret booleanFor Signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
- url str
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- custom_
http_ Mapping[str, str]headers - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- proxy str
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- secret str
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - use_
secret_ boolfor_ signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
- url String
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- custom
Http Map<String>Headers - Custom HTTP headers you wish to use to invoke the Webhook, comprise of key/value pair.
- proxy String
- Proxy key from Artifactory UI (Administration > Proxies > Configuration).
- secret String
- Secret authentication token that will be sent to the configured URL. The value will be sent as
x-jfrog-event-auth
header. - use
Secret BooleanFor Signing - When set to
true
, the secret will be used to sign the event payload, allowing the target to validate that the payload content has not been changed and will not be passed as part of the event. If left unset or set tofalse
, the secret is passed through theX-JFrog-Event-Auth
HTTP header.
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.