artifactory.ReleaseBundleV2CustomWebhook
Explore with Pulumi AI
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
import * as pulumi from "@pulumi/pulumi";
import * as artifactory from "@pulumi/artifactory";
const release_bundle_v2_custom_webhook = new artifactory.ReleaseBundleV2CustomWebhook("release-bundle-v2-custom-webhook", {
key: "release-bundle-v2-custom-webhook",
eventTypes: [
"release_bundle_v2_started",
"release_bundle_v2_failed",
"release_bundle_v2_completed",
],
criteria: {
anyReleaseBundle: false,
selectedReleaseBundles: ["bundle-name"],
includePatterns: ["foo/**"],
excludePatterns: ["bar/**"],
},
handlers: [{
url: "https://tempurl.org",
secrets: {
secretName1: "value1",
secretName2: "value2",
},
httpHeaders: {
headerName1: "value1",
headerName2: "value2",
},
payload: "{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
}],
});
import pulumi
import pulumi_artifactory as artifactory
release_bundle_v2_custom_webhook = artifactory.ReleaseBundleV2CustomWebhook("release-bundle-v2-custom-webhook",
key="release-bundle-v2-custom-webhook",
event_types=[
"release_bundle_v2_started",
"release_bundle_v2_failed",
"release_bundle_v2_completed",
],
criteria={
"any_release_bundle": False,
"selected_release_bundles": ["bundle-name"],
"include_patterns": ["foo/**"],
"exclude_patterns": ["bar/**"],
},
handlers=[{
"url": "https://tempurl.org",
"secrets": {
"secretName1": "value1",
"secretName2": "value2",
},
"http_headers": {
"headerName1": "value1",
"headerName2": "value2",
},
"payload": "{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
}])
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.NewReleaseBundleV2CustomWebhook(ctx, "release-bundle-v2-custom-webhook", &artifactory.ReleaseBundleV2CustomWebhookArgs{
Key: pulumi.String("release-bundle-v2-custom-webhook"),
EventTypes: pulumi.StringArray{
pulumi.String("release_bundle_v2_started"),
pulumi.String("release_bundle_v2_failed"),
pulumi.String("release_bundle_v2_completed"),
},
Criteria: &artifactory.ReleaseBundleV2CustomWebhookCriteriaArgs{
AnyReleaseBundle: pulumi.Bool(false),
SelectedReleaseBundles: pulumi.StringArray{
pulumi.String("bundle-name"),
},
IncludePatterns: pulumi.StringArray{
pulumi.String("foo/**"),
},
ExcludePatterns: pulumi.StringArray{
pulumi.String("bar/**"),
},
},
Handlers: artifactory.ReleaseBundleV2CustomWebhookHandlerArray{
&artifactory.ReleaseBundleV2CustomWebhookHandlerArgs{
Url: pulumi.String("https://tempurl.org"),
Secrets: pulumi.StringMap{
"secretName1": pulumi.String("value1"),
"secretName2": pulumi.String("value2"),
},
HttpHeaders: pulumi.StringMap{
"headerName1": pulumi.String("value1"),
"headerName2": pulumi.String("value2"),
},
Payload: pulumi.String("{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }"),
},
},
})
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 release_bundle_v2_custom_webhook = new Artifactory.ReleaseBundleV2CustomWebhook("release-bundle-v2-custom-webhook", new()
{
Key = "release-bundle-v2-custom-webhook",
EventTypes = new[]
{
"release_bundle_v2_started",
"release_bundle_v2_failed",
"release_bundle_v2_completed",
},
Criteria = new Artifactory.Inputs.ReleaseBundleV2CustomWebhookCriteriaArgs
{
AnyReleaseBundle = false,
SelectedReleaseBundles = new[]
{
"bundle-name",
},
IncludePatterns = new[]
{
"foo/**",
},
ExcludePatterns = new[]
{
"bar/**",
},
},
Handlers = new[]
{
new Artifactory.Inputs.ReleaseBundleV2CustomWebhookHandlerArgs
{
Url = "https://tempurl.org",
Secrets =
{
{ "secretName1", "value1" },
{ "secretName2", "value2" },
},
HttpHeaders =
{
{ "headerName1", "value1" },
{ "headerName2", "value2" },
},
Payload = "{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.artifactory.ReleaseBundleV2CustomWebhook;
import com.pulumi.artifactory.ReleaseBundleV2CustomWebhookArgs;
import com.pulumi.artifactory.inputs.ReleaseBundleV2CustomWebhookCriteriaArgs;
import com.pulumi.artifactory.inputs.ReleaseBundleV2CustomWebhookHandlerArgs;
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 release_bundle_v2_custom_webhook = new ReleaseBundleV2CustomWebhook("release-bundle-v2-custom-webhook", ReleaseBundleV2CustomWebhookArgs.builder()
.key("release-bundle-v2-custom-webhook")
.eventTypes(
"release_bundle_v2_started",
"release_bundle_v2_failed",
"release_bundle_v2_completed")
.criteria(ReleaseBundleV2CustomWebhookCriteriaArgs.builder()
.anyReleaseBundle(false)
.selectedReleaseBundles("bundle-name")
.includePatterns("foo/**")
.excludePatterns("bar/**")
.build())
.handlers(ReleaseBundleV2CustomWebhookHandlerArgs.builder()
.url("https://tempurl.org")
.secrets(Map.ofEntries(
Map.entry("secretName1", "value1"),
Map.entry("secretName2", "value2")
))
.httpHeaders(Map.ofEntries(
Map.entry("headerName1", "value1"),
Map.entry("headerName2", "value2")
))
.payload("{ \"ref\": \"main\" , \"inputs\": { \"artifact_path\": \"test-repo/repo-path\" } }")
.build())
.build());
}
}
resources:
release-bundle-v2-custom-webhook:
type: artifactory:ReleaseBundleV2CustomWebhook
properties:
key: release-bundle-v2-custom-webhook
eventTypes:
- release_bundle_v2_started
- release_bundle_v2_failed
- release_bundle_v2_completed
criteria:
anyReleaseBundle: false
selectedReleaseBundles:
- bundle-name
includePatterns:
- foo/**
excludePatterns:
- bar/**
handlers:
- url: https://tempurl.org
secrets:
secretName1: value1
secretName2: value2
httpHeaders:
headerName1: value1
headerName2: value2
payload: '{ "ref": "main" , "inputs": { "artifact_path": "test-repo/repo-path" } }'
Create ReleaseBundleV2CustomWebhook Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ReleaseBundleV2CustomWebhook(name: string, args: ReleaseBundleV2CustomWebhookArgs, opts?: CustomResourceOptions);
@overload
def ReleaseBundleV2CustomWebhook(resource_name: str,
args: ReleaseBundleV2CustomWebhookArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ReleaseBundleV2CustomWebhook(resource_name: str,
opts: Optional[ResourceOptions] = None,
event_types: Optional[Sequence[str]] = None,
key: Optional[str] = None,
criteria: Optional[ReleaseBundleV2CustomWebhookCriteriaArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
handlers: Optional[Sequence[ReleaseBundleV2CustomWebhookHandlerArgs]] = None)
func NewReleaseBundleV2CustomWebhook(ctx *Context, name string, args ReleaseBundleV2CustomWebhookArgs, opts ...ResourceOption) (*ReleaseBundleV2CustomWebhook, error)
public ReleaseBundleV2CustomWebhook(string name, ReleaseBundleV2CustomWebhookArgs args, CustomResourceOptions? opts = null)
public ReleaseBundleV2CustomWebhook(String name, ReleaseBundleV2CustomWebhookArgs args)
public ReleaseBundleV2CustomWebhook(String name, ReleaseBundleV2CustomWebhookArgs args, CustomResourceOptions options)
type: artifactory:ReleaseBundleV2CustomWebhook
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 ReleaseBundleV2CustomWebhookArgs
- 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 ReleaseBundleV2CustomWebhookArgs
- 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 ReleaseBundleV2CustomWebhookArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ReleaseBundleV2CustomWebhookArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ReleaseBundleV2CustomWebhookArgs
- 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 releaseBundleV2CustomWebhookResource = new Artifactory.ReleaseBundleV2CustomWebhook("releaseBundleV2CustomWebhookResource", new()
{
EventTypes = new[]
{
"string",
},
Key = "string",
Criteria = new Artifactory.Inputs.ReleaseBundleV2CustomWebhookCriteriaArgs
{
AnyReleaseBundle = false,
SelectedReleaseBundles = new[]
{
"string",
},
ExcludePatterns = new[]
{
"string",
},
IncludePatterns = new[]
{
"string",
},
},
Description = "string",
Enabled = false,
Handlers = new[]
{
new Artifactory.Inputs.ReleaseBundleV2CustomWebhookHandlerArgs
{
Url = "string",
HttpHeaders =
{
{ "string", "string" },
},
Payload = "string",
Proxy = "string",
Secrets =
{
{ "string", "string" },
},
},
},
});
example, err := artifactory.NewReleaseBundleV2CustomWebhook(ctx, "releaseBundleV2CustomWebhookResource", &artifactory.ReleaseBundleV2CustomWebhookArgs{
EventTypes: pulumi.StringArray{
pulumi.String("string"),
},
Key: pulumi.String("string"),
Criteria: &artifactory.ReleaseBundleV2CustomWebhookCriteriaArgs{
AnyReleaseBundle: pulumi.Bool(false),
SelectedReleaseBundles: 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.ReleaseBundleV2CustomWebhookHandlerArray{
&artifactory.ReleaseBundleV2CustomWebhookHandlerArgs{
Url: pulumi.String("string"),
HttpHeaders: pulumi.StringMap{
"string": pulumi.String("string"),
},
Payload: pulumi.String("string"),
Proxy: pulumi.String("string"),
Secrets: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
})
var releaseBundleV2CustomWebhookResource = new ReleaseBundleV2CustomWebhook("releaseBundleV2CustomWebhookResource", ReleaseBundleV2CustomWebhookArgs.builder()
.eventTypes("string")
.key("string")
.criteria(ReleaseBundleV2CustomWebhookCriteriaArgs.builder()
.anyReleaseBundle(false)
.selectedReleaseBundles("string")
.excludePatterns("string")
.includePatterns("string")
.build())
.description("string")
.enabled(false)
.handlers(ReleaseBundleV2CustomWebhookHandlerArgs.builder()
.url("string")
.httpHeaders(Map.of("string", "string"))
.payload("string")
.proxy("string")
.secrets(Map.of("string", "string"))
.build())
.build());
release_bundle_v2_custom_webhook_resource = artifactory.ReleaseBundleV2CustomWebhook("releaseBundleV2CustomWebhookResource",
event_types=["string"],
key="string",
criteria={
"any_release_bundle": False,
"selected_release_bundles": ["string"],
"exclude_patterns": ["string"],
"include_patterns": ["string"],
},
description="string",
enabled=False,
handlers=[{
"url": "string",
"http_headers": {
"string": "string",
},
"payload": "string",
"proxy": "string",
"secrets": {
"string": "string",
},
}])
const releaseBundleV2CustomWebhookResource = new artifactory.ReleaseBundleV2CustomWebhook("releaseBundleV2CustomWebhookResource", {
eventTypes: ["string"],
key: "string",
criteria: {
anyReleaseBundle: false,
selectedReleaseBundles: ["string"],
excludePatterns: ["string"],
includePatterns: ["string"],
},
description: "string",
enabled: false,
handlers: [{
url: "string",
httpHeaders: {
string: "string",
},
payload: "string",
proxy: "string",
secrets: {
string: "string",
},
}],
});
type: artifactory:ReleaseBundleV2CustomWebhook
properties:
criteria:
anyReleaseBundle: false
excludePatterns:
- string
includePatterns:
- string
selectedReleaseBundles:
- string
description: string
enabled: false
eventTypes:
- string
handlers:
- httpHeaders:
string: string
payload: string
proxy: string
secrets:
string: string
url: string
key: string
ReleaseBundleV2CustomWebhook 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 ReleaseBundleV2CustomWebhook 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- Criteria
Release
Bundle V2Custom 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<Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - Key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- Criteria
Release
Bundle V2Custom 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
[]Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - key String
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Release
Bundle V2Custom 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<Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - key string
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Release
Bundle V2Custom 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - key str
- The identity key of the webhook. Must be between 2 and 200 characters. Cannot contain spaces.
- criteria
Release
Bundle V2Custom 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[Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - 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 ReleaseBundleV2CustomWebhook 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 ReleaseBundleV2CustomWebhook Resource
Get an existing ReleaseBundleV2CustomWebhook 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?: ReleaseBundleV2CustomWebhookState, opts?: CustomResourceOptions): ReleaseBundleV2CustomWebhook
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
criteria: Optional[ReleaseBundleV2CustomWebhookCriteriaArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
event_types: Optional[Sequence[str]] = None,
handlers: Optional[Sequence[ReleaseBundleV2CustomWebhookHandlerArgs]] = None,
key: Optional[str] = None) -> ReleaseBundleV2CustomWebhook
func GetReleaseBundleV2CustomWebhook(ctx *Context, name string, id IDInput, state *ReleaseBundleV2CustomWebhookState, opts ...ResourceOption) (*ReleaseBundleV2CustomWebhook, error)
public static ReleaseBundleV2CustomWebhook Get(string name, Input<string> id, ReleaseBundleV2CustomWebhookState? state, CustomResourceOptions? opts = null)
public static ReleaseBundleV2CustomWebhook get(String name, Output<String> id, ReleaseBundleV2CustomWebhookState 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - Handlers
List<Release
Bundle V2Custom 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - Handlers
[]Release
Bundle V2Custom 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - handlers
List<Release
Bundle V2Custom 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - handlers
Release
Bundle V2Custom 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
Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - handlers
Sequence[Release
Bundle V2Custom 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:
release_bundle_v2_started
,release_bundle_v2_failed
,release_bundle_v2_completed
. - 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
ReleaseBundleV2CustomWebhookCriteria, ReleaseBundleV2CustomWebhookCriteriaArgs
- Any
Release boolBundle - Trigger on any release bundle.
- Selected
Release List<string>Bundles - Trigger on this list of release bundle names.
- 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
Release boolBundle - Trigger on any release bundle.
- Selected
Release []stringBundles - Trigger on this list of release bundle names.
- 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
Release BooleanBundle - Trigger on any release bundle.
- selected
Release List<String>Bundles - Trigger on this list of release bundle names.
- 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
Release booleanBundle - Trigger on any release bundle.
- selected
Release string[]Bundles - Trigger on this list of release bundle names.
- 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_
release_ boolbundle - Trigger on any release bundle.
- selected_
release_ Sequence[str]bundles - 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/**".
- any
Release BooleanBundle - Trigger on any release bundle.
- selected
Release List<String>Bundles - Trigger on this list of release bundle names.
- 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/**".
ReleaseBundleV2CustomWebhookHandler, ReleaseBundleV2CustomWebhookHandlerArgs
- Url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- Http
Headers Dictionary<string, string> - HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.
- Payload string
- This attribute is used to build the request body. Used in custom webhooks
- 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:
- Url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- Http
Headers map[string]string - HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.
- Payload string
- This attribute is used to build the request body. Used in custom webhooks
- 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:
- url String
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- http
Headers Map<String,String> - HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.
- payload String
- This attribute is used to build the request body. Used in custom webhooks
- 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:
- url string
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- http
Headers {[key: string]: string} - HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.
- payload string
- This attribute is used to build the request body. Used in custom webhooks
- 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:
- 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
- This attribute is used to build the request body. Used in custom webhooks
- 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:
- url String
- Specifies the URL that the Webhook invokes. This will be the URL that Artifactory will send an HTTP POST request to.
- http
Headers Map<String> - HTTP headers you wish to use to invoke the Webhook, comprise key/value pair.
- payload String
- This attribute is used to build the request body. Used in custom webhooks
- 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:
Package Details
- Repository
- artifactory pulumi/pulumi-artifactory
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
artifactory
Terraform Provider.