1. Packages
  2. Azuredevops Provider
  3. API Docs
  4. ServiceendpointOctopusdeploy
Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi

azuredevops.ServiceendpointOctopusdeploy

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi

    Manages an Octopus Deploy service endpoint within Azure DevOps. Using this service endpoint requires you to install Octopus Deploy.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azuredevops from "@pulumi/azuredevops";
    
    const example = new azuredevops.Project("example", {
        name: "Example Project",
        visibility: "private",
        versionControl: "Git",
        workItemTemplate: "Agile",
        description: "Managed by Terraform",
    });
    const exampleServiceendpointOctopusdeploy = new azuredevops.ServiceendpointOctopusdeploy("example", {
        projectId: example.id,
        url: "https://octopus.com",
        apiKey: "000000000000000000000000000000000000",
        serviceEndpointName: "Example Octopus Deploy",
        description: "Managed by Terraform",
    });
    
    import pulumi
    import pulumi_azuredevops as azuredevops
    
    example = azuredevops.Project("example",
        name="Example Project",
        visibility="private",
        version_control="Git",
        work_item_template="Agile",
        description="Managed by Terraform")
    example_serviceendpoint_octopusdeploy = azuredevops.ServiceendpointOctopusdeploy("example",
        project_id=example.id,
        url="https://octopus.com",
        api_key="000000000000000000000000000000000000",
        service_endpoint_name="Example Octopus Deploy",
        description="Managed by Terraform")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := azuredevops.NewProject(ctx, "example", &azuredevops.ProjectArgs{
    			Name:             pulumi.String("Example Project"),
    			Visibility:       pulumi.String("private"),
    			VersionControl:   pulumi.String("Git"),
    			WorkItemTemplate: pulumi.String("Agile"),
    			Description:      pulumi.String("Managed by Terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewServiceendpointOctopusdeploy(ctx, "example", &azuredevops.ServiceendpointOctopusdeployArgs{
    			ProjectId:           example.ID(),
    			Url:                 pulumi.String("https://octopus.com"),
    			ApiKey:              pulumi.String("000000000000000000000000000000000000"),
    			ServiceEndpointName: pulumi.String("Example Octopus Deploy"),
    			Description:         pulumi.String("Managed by Terraform"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureDevOps = Pulumi.AzureDevOps;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new AzureDevOps.Project("example", new()
        {
            Name = "Example Project",
            Visibility = "private",
            VersionControl = "Git",
            WorkItemTemplate = "Agile",
            Description = "Managed by Terraform",
        });
    
        var exampleServiceendpointOctopusdeploy = new AzureDevOps.ServiceendpointOctopusdeploy("example", new()
        {
            ProjectId = example.Id,
            Url = "https://octopus.com",
            ApiKey = "000000000000000000000000000000000000",
            ServiceEndpointName = "Example Octopus Deploy",
            Description = "Managed by Terraform",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azuredevops.Project;
    import com.pulumi.azuredevops.ProjectArgs;
    import com.pulumi.azuredevops.ServiceendpointOctopusdeploy;
    import com.pulumi.azuredevops.ServiceendpointOctopusdeployArgs;
    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 example = new Project("example", ProjectArgs.builder()
                .name("Example Project")
                .visibility("private")
                .versionControl("Git")
                .workItemTemplate("Agile")
                .description("Managed by Terraform")
                .build());
    
            var exampleServiceendpointOctopusdeploy = new ServiceendpointOctopusdeploy("exampleServiceendpointOctopusdeploy", ServiceendpointOctopusdeployArgs.builder()
                .projectId(example.id())
                .url("https://octopus.com")
                .apiKey("000000000000000000000000000000000000")
                .serviceEndpointName("Example Octopus Deploy")
                .description("Managed by Terraform")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Project
        properties:
          name: Example Project
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Terraform
      exampleServiceendpointOctopusdeploy:
        type: azuredevops:ServiceendpointOctopusdeploy
        name: example
        properties:
          projectId: ${example.id}
          url: https://octopus.com
          apiKey: '000000000000000000000000000000000000'
          serviceEndpointName: Example Octopus Deploy
          description: Managed by Terraform
    

    Create ServiceendpointOctopusdeploy Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceendpointOctopusdeploy(name: string, args: ServiceendpointOctopusdeployArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceendpointOctopusdeploy(resource_name: str,
                                     args: ServiceendpointOctopusdeployArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceendpointOctopusdeploy(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     api_key: Optional[str] = None,
                                     project_id: Optional[str] = None,
                                     service_endpoint_name: Optional[str] = None,
                                     url: Optional[str] = None,
                                     authorization: Optional[Mapping[str, str]] = None,
                                     description: Optional[str] = None,
                                     ignore_ssl_error: Optional[bool] = None)
    func NewServiceendpointOctopusdeploy(ctx *Context, name string, args ServiceendpointOctopusdeployArgs, opts ...ResourceOption) (*ServiceendpointOctopusdeploy, error)
    public ServiceendpointOctopusdeploy(string name, ServiceendpointOctopusdeployArgs args, CustomResourceOptions? opts = null)
    public ServiceendpointOctopusdeploy(String name, ServiceendpointOctopusdeployArgs args)
    public ServiceendpointOctopusdeploy(String name, ServiceendpointOctopusdeployArgs args, CustomResourceOptions options)
    
    type: azuredevops:ServiceendpointOctopusdeploy
    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 ServiceendpointOctopusdeployArgs
    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 ServiceendpointOctopusdeployArgs
    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 ServiceendpointOctopusdeployArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceendpointOctopusdeployArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceendpointOctopusdeployArgs
    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 serviceendpointOctopusdeployResource = new AzureDevOps.ServiceendpointOctopusdeploy("serviceendpointOctopusdeployResource", new()
    {
        ApiKey = "string",
        ProjectId = "string",
        ServiceEndpointName = "string",
        Url = "string",
        Authorization = 
        {
            { "string", "string" },
        },
        Description = "string",
        IgnoreSslError = false,
    });
    
    example, err := azuredevops.NewServiceendpointOctopusdeploy(ctx, "serviceendpointOctopusdeployResource", &azuredevops.ServiceendpointOctopusdeployArgs{
    	ApiKey:              pulumi.String("string"),
    	ProjectId:           pulumi.String("string"),
    	ServiceEndpointName: pulumi.String("string"),
    	Url:                 pulumi.String("string"),
    	Authorization: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Description:    pulumi.String("string"),
    	IgnoreSslError: pulumi.Bool(false),
    })
    
    var serviceendpointOctopusdeployResource = new ServiceendpointOctopusdeploy("serviceendpointOctopusdeployResource", ServiceendpointOctopusdeployArgs.builder()
        .apiKey("string")
        .projectId("string")
        .serviceEndpointName("string")
        .url("string")
        .authorization(Map.of("string", "string"))
        .description("string")
        .ignoreSslError(false)
        .build());
    
    serviceendpoint_octopusdeploy_resource = azuredevops.ServiceendpointOctopusdeploy("serviceendpointOctopusdeployResource",
        api_key="string",
        project_id="string",
        service_endpoint_name="string",
        url="string",
        authorization={
            "string": "string",
        },
        description="string",
        ignore_ssl_error=False)
    
    const serviceendpointOctopusdeployResource = new azuredevops.ServiceendpointOctopusdeploy("serviceendpointOctopusdeployResource", {
        apiKey: "string",
        projectId: "string",
        serviceEndpointName: "string",
        url: "string",
        authorization: {
            string: "string",
        },
        description: "string",
        ignoreSslError: false,
    });
    
    type: azuredevops:ServiceendpointOctopusdeploy
    properties:
        apiKey: string
        authorization:
            string: string
        description: string
        ignoreSslError: false
        projectId: string
        serviceEndpointName: string
        url: string
    

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

    ApiKey string
    API key to connect to Octopus Deploy.
    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    Url string
    Octopus Server url.
    Authorization Dictionary<string, string>
    Description string
    IgnoreSslError bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    ApiKey string
    API key to connect to Octopus Deploy.
    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    Url string
    Octopus Server url.
    Authorization map[string]string
    Description string
    IgnoreSslError bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    apiKey String
    API key to connect to Octopus Deploy.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    url String
    Octopus Server url.
    authorization Map<String,String>
    description String
    ignoreSslError Boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    apiKey string
    API key to connect to Octopus Deploy.
    projectId string
    The ID of the project.
    serviceEndpointName string
    The Service Endpoint name.
    url string
    Octopus Server url.
    authorization {[key: string]: string}
    description string
    ignoreSslError boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    api_key str
    API key to connect to Octopus Deploy.
    project_id str
    The ID of the project.
    service_endpoint_name str
    The Service Endpoint name.
    url str
    Octopus Server url.
    authorization Mapping[str, str]
    description str
    ignore_ssl_error bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    apiKey String
    API key to connect to Octopus Deploy.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    url String
    Octopus Server url.
    authorization Map<String>
    description String
    ignoreSslError Boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.

    Outputs

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

    Get an existing ServiceendpointOctopusdeploy 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?: ServiceendpointOctopusdeployState, opts?: CustomResourceOptions): ServiceendpointOctopusdeploy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_key: Optional[str] = None,
            authorization: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            ignore_ssl_error: Optional[bool] = None,
            project_id: Optional[str] = None,
            service_endpoint_name: Optional[str] = None,
            url: Optional[str] = None) -> ServiceendpointOctopusdeploy
    func GetServiceendpointOctopusdeploy(ctx *Context, name string, id IDInput, state *ServiceendpointOctopusdeployState, opts ...ResourceOption) (*ServiceendpointOctopusdeploy, error)
    public static ServiceendpointOctopusdeploy Get(string name, Input<string> id, ServiceendpointOctopusdeployState? state, CustomResourceOptions? opts = null)
    public static ServiceendpointOctopusdeploy get(String name, Output<String> id, ServiceendpointOctopusdeployState 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:
    ApiKey string
    API key to connect to Octopus Deploy.
    Authorization Dictionary<string, string>
    Description string
    IgnoreSslError bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    Url string
    Octopus Server url.
    ApiKey string
    API key to connect to Octopus Deploy.
    Authorization map[string]string
    Description string
    IgnoreSslError bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    Url string
    Octopus Server url.
    apiKey String
    API key to connect to Octopus Deploy.
    authorization Map<String,String>
    description String
    ignoreSslError Boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    url String
    Octopus Server url.
    apiKey string
    API key to connect to Octopus Deploy.
    authorization {[key: string]: string}
    description string
    ignoreSslError boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    projectId string
    The ID of the project.
    serviceEndpointName string
    The Service Endpoint name.
    url string
    Octopus Server url.
    api_key str
    API key to connect to Octopus Deploy.
    authorization Mapping[str, str]
    description str
    ignore_ssl_error bool
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    project_id str
    The ID of the project.
    service_endpoint_name str
    The Service Endpoint name.
    url str
    Octopus Server url.
    apiKey String
    API key to connect to Octopus Deploy.
    authorization Map<String>
    description String
    ignoreSslError Boolean
    Whether to ignore SSL errors when connecting to the Octopus server from the agent. Default to false.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    url String
    Octopus Server url.

    Import

    Azure DevOps Service Endpoint Octopus Deploy can be imported using projectID/serviceEndpointID or projectName/serviceEndpointID

    $ pulumi import azuredevops:index/serviceendpointOctopusdeploy:ServiceendpointOctopusdeploy example 00000000-0000-0000-0000-000000000000/00000000-0000-0000-0000-000000000000
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure DevOps pulumi/pulumi-azuredevops
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azuredevops Terraform Provider.
    azuredevops logo
    Azure DevOps v3.4.0 published on Wednesday, Oct 30, 2024 by Pulumi