1. Packages
  2. Azure DevOps Provider
  3. API Docs
  4. ServiceendpointOpenshift
Azure DevOps v3.9.0 published on Tuesday, Apr 22, 2025 by Pulumi

azuredevops.ServiceendpointOpenshift

Explore with Pulumi AI

azuredevops logo
Azure DevOps v3.9.0 published on Tuesday, Apr 22, 2025 by Pulumi

    Manages an Openshift service endpoint within Azure DevOps organization. Using this service endpoint requires you to first install the OpenShift Extension.

    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 Pulumi",
    });
    const exampleServiceendpointOpenshift = new azuredevops.ServiceendpointOpenshift("example", {
        projectId: example.id,
        serviceEndpointName: "Example Openshift",
        serverUrl: "https://example.server",
        certificateAuthorityFile: "/opt/file",
        acceptUntrustedCerts: true,
        authBasic: {
            username: "username",
            password: "password",
        },
    });
    
    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 Pulumi")
    example_serviceendpoint_openshift = azuredevops.ServiceendpointOpenshift("example",
        project_id=example.id,
        service_endpoint_name="Example Openshift",
        server_url="https://example.server",
        certificate_authority_file="/opt/file",
        accept_untrusted_certs=True,
        auth_basic={
            "username": "username",
            "password": "password",
        })
    
    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 Pulumi"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewServiceendpointOpenshift(ctx, "example", &azuredevops.ServiceendpointOpenshiftArgs{
    			ProjectId:                example.ID(),
    			ServiceEndpointName:      pulumi.String("Example Openshift"),
    			ServerUrl:                pulumi.String("https://example.server"),
    			CertificateAuthorityFile: pulumi.String("/opt/file"),
    			AcceptUntrustedCerts:     pulumi.Bool(true),
    			AuthBasic: &azuredevops.ServiceendpointOpenshiftAuthBasicArgs{
    				Username: pulumi.String("username"),
    				Password: pulumi.String("password"),
    			},
    		})
    		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 Pulumi",
        });
    
        var exampleServiceendpointOpenshift = new AzureDevOps.ServiceendpointOpenshift("example", new()
        {
            ProjectId = example.Id,
            ServiceEndpointName = "Example Openshift",
            ServerUrl = "https://example.server",
            CertificateAuthorityFile = "/opt/file",
            AcceptUntrustedCerts = true,
            AuthBasic = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthBasicArgs
            {
                Username = "username",
                Password = "password",
            },
        });
    
    });
    
    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.ServiceendpointOpenshift;
    import com.pulumi.azuredevops.ServiceendpointOpenshiftArgs;
    import com.pulumi.azuredevops.inputs.ServiceendpointOpenshiftAuthBasicArgs;
    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 Pulumi")
                .build());
    
            var exampleServiceendpointOpenshift = new ServiceendpointOpenshift("exampleServiceendpointOpenshift", ServiceendpointOpenshiftArgs.builder()
                .projectId(example.id())
                .serviceEndpointName("Example Openshift")
                .serverUrl("https://example.server")
                .certificateAuthorityFile("/opt/file")
                .acceptUntrustedCerts(true)
                .authBasic(ServiceendpointOpenshiftAuthBasicArgs.builder()
                    .username("username")
                    .password("password")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Project
        properties:
          name: Example Project
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Pulumi
      exampleServiceendpointOpenshift:
        type: azuredevops:ServiceendpointOpenshift
        name: example
        properties:
          projectId: ${example.id}
          serviceEndpointName: Example Openshift
          serverUrl: https://example.server
          certificateAuthorityFile: /opt/file
          acceptUntrustedCerts: true
          authBasic:
            username: username
            password: password
    
    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 Pulumi",
    });
    const exampleServiceendpointOpenshift = new azuredevops.ServiceendpointOpenshift("example", {
        projectId: example.id,
        serviceEndpointName: "Example Openshift",
        serverUrl: "https://example.server",
        certificateAuthorityFile: "/opt/file",
        acceptUntrustedCerts: true,
        authToken: {
            token: "username",
        },
    });
    
    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 Pulumi")
    example_serviceendpoint_openshift = azuredevops.ServiceendpointOpenshift("example",
        project_id=example.id,
        service_endpoint_name="Example Openshift",
        server_url="https://example.server",
        certificate_authority_file="/opt/file",
        accept_untrusted_certs=True,
        auth_token={
            "token": "username",
        })
    
    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 Pulumi"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewServiceendpointOpenshift(ctx, "example", &azuredevops.ServiceendpointOpenshiftArgs{
    			ProjectId:                example.ID(),
    			ServiceEndpointName:      pulumi.String("Example Openshift"),
    			ServerUrl:                pulumi.String("https://example.server"),
    			CertificateAuthorityFile: pulumi.String("/opt/file"),
    			AcceptUntrustedCerts:     pulumi.Bool(true),
    			AuthToken: &azuredevops.ServiceendpointOpenshiftAuthTokenArgs{
    				Token: pulumi.String("username"),
    			},
    		})
    		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 Pulumi",
        });
    
        var exampleServiceendpointOpenshift = new AzureDevOps.ServiceendpointOpenshift("example", new()
        {
            ProjectId = example.Id,
            ServiceEndpointName = "Example Openshift",
            ServerUrl = "https://example.server",
            CertificateAuthorityFile = "/opt/file",
            AcceptUntrustedCerts = true,
            AuthToken = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthTokenArgs
            {
                Token = "username",
            },
        });
    
    });
    
    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.ServiceendpointOpenshift;
    import com.pulumi.azuredevops.ServiceendpointOpenshiftArgs;
    import com.pulumi.azuredevops.inputs.ServiceendpointOpenshiftAuthTokenArgs;
    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 Pulumi")
                .build());
    
            var exampleServiceendpointOpenshift = new ServiceendpointOpenshift("exampleServiceendpointOpenshift", ServiceendpointOpenshiftArgs.builder()
                .projectId(example.id())
                .serviceEndpointName("Example Openshift")
                .serverUrl("https://example.server")
                .certificateAuthorityFile("/opt/file")
                .acceptUntrustedCerts(true)
                .authToken(ServiceendpointOpenshiftAuthTokenArgs.builder()
                    .token("username")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Project
        properties:
          name: Example Project
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Pulumi
      exampleServiceendpointOpenshift:
        type: azuredevops:ServiceendpointOpenshift
        name: example
        properties:
          projectId: ${example.id}
          serviceEndpointName: Example Openshift
          serverUrl: https://example.server
          certificateAuthorityFile: /opt/file
          acceptUntrustedCerts: true
          authToken:
            token: username
    
    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 Pulumi",
    });
    const exampleServiceendpointOpenshift = new azuredevops.ServiceendpointOpenshift("example", {
        projectId: example.id,
        serviceEndpointName: "Example Openshift",
        serverUrl: "https://example.server",
        authNone: {
            kubeConfig: "config",
        },
    });
    
    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 Pulumi")
    example_serviceendpoint_openshift = azuredevops.ServiceendpointOpenshift("example",
        project_id=example.id,
        service_endpoint_name="Example Openshift",
        server_url="https://example.server",
        auth_none={
            "kube_config": "config",
        })
    
    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 Pulumi"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = azuredevops.NewServiceendpointOpenshift(ctx, "example", &azuredevops.ServiceendpointOpenshiftArgs{
    			ProjectId:           example.ID(),
    			ServiceEndpointName: pulumi.String("Example Openshift"),
    			ServerUrl:           pulumi.String("https://example.server"),
    			AuthNone: &azuredevops.ServiceendpointOpenshiftAuthNoneArgs{
    				KubeConfig: pulumi.String("config"),
    			},
    		})
    		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 Pulumi",
        });
    
        var exampleServiceendpointOpenshift = new AzureDevOps.ServiceendpointOpenshift("example", new()
        {
            ProjectId = example.Id,
            ServiceEndpointName = "Example Openshift",
            ServerUrl = "https://example.server",
            AuthNone = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthNoneArgs
            {
                KubeConfig = "config",
            },
        });
    
    });
    
    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.ServiceendpointOpenshift;
    import com.pulumi.azuredevops.ServiceendpointOpenshiftArgs;
    import com.pulumi.azuredevops.inputs.ServiceendpointOpenshiftAuthNoneArgs;
    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 Pulumi")
                .build());
    
            var exampleServiceendpointOpenshift = new ServiceendpointOpenshift("exampleServiceendpointOpenshift", ServiceendpointOpenshiftArgs.builder()
                .projectId(example.id())
                .serviceEndpointName("Example Openshift")
                .serverUrl("https://example.server")
                .authNone(ServiceendpointOpenshiftAuthNoneArgs.builder()
                    .kubeConfig("config")
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azuredevops:Project
        properties:
          name: Example Project
          visibility: private
          versionControl: Git
          workItemTemplate: Agile
          description: Managed by Pulumi
      exampleServiceendpointOpenshift:
        type: azuredevops:ServiceendpointOpenshift
        name: example
        properties:
          projectId: ${example.id}
          serviceEndpointName: Example Openshift
          serverUrl: https://example.server
          authNone:
            kubeConfig: config
    

    Create ServiceendpointOpenshift Resource

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

    Constructor syntax

    new ServiceendpointOpenshift(name: string, args: ServiceendpointOpenshiftArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceendpointOpenshift(resource_name: str,
                                 args: ServiceendpointOpenshiftArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceendpointOpenshift(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 project_id: Optional[str] = None,
                                 service_endpoint_name: Optional[str] = None,
                                 accept_untrusted_certs: Optional[bool] = None,
                                 auth_basic: Optional[ServiceendpointOpenshiftAuthBasicArgs] = None,
                                 auth_none: Optional[ServiceendpointOpenshiftAuthNoneArgs] = None,
                                 auth_token: Optional[ServiceendpointOpenshiftAuthTokenArgs] = None,
                                 certificate_authority_file: Optional[str] = None,
                                 description: Optional[str] = None,
                                 server_url: Optional[str] = None)
    func NewServiceendpointOpenshift(ctx *Context, name string, args ServiceendpointOpenshiftArgs, opts ...ResourceOption) (*ServiceendpointOpenshift, error)
    public ServiceendpointOpenshift(string name, ServiceendpointOpenshiftArgs args, CustomResourceOptions? opts = null)
    public ServiceendpointOpenshift(String name, ServiceendpointOpenshiftArgs args)
    public ServiceendpointOpenshift(String name, ServiceendpointOpenshiftArgs args, CustomResourceOptions options)
    
    type: azuredevops:ServiceendpointOpenshift
    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 ServiceendpointOpenshiftArgs
    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 ServiceendpointOpenshiftArgs
    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 ServiceendpointOpenshiftArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceendpointOpenshiftArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceendpointOpenshiftArgs
    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 serviceendpointOpenshiftResource = new AzureDevOps.ServiceendpointOpenshift("serviceendpointOpenshiftResource", new()
    {
        ProjectId = "string",
        ServiceEndpointName = "string",
        AcceptUntrustedCerts = false,
        AuthBasic = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthBasicArgs
        {
            Password = "string",
            Username = "string",
        },
        AuthNone = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthNoneArgs
        {
            KubeConfig = "string",
        },
        AuthToken = new AzureDevOps.Inputs.ServiceendpointOpenshiftAuthTokenArgs
        {
            Token = "string",
        },
        CertificateAuthorityFile = "string",
        Description = "string",
        ServerUrl = "string",
    });
    
    example, err := azuredevops.NewServiceendpointOpenshift(ctx, "serviceendpointOpenshiftResource", &azuredevops.ServiceendpointOpenshiftArgs{
    	ProjectId:            pulumi.String("string"),
    	ServiceEndpointName:  pulumi.String("string"),
    	AcceptUntrustedCerts: pulumi.Bool(false),
    	AuthBasic: &azuredevops.ServiceendpointOpenshiftAuthBasicArgs{
    		Password: pulumi.String("string"),
    		Username: pulumi.String("string"),
    	},
    	AuthNone: &azuredevops.ServiceendpointOpenshiftAuthNoneArgs{
    		KubeConfig: pulumi.String("string"),
    	},
    	AuthToken: &azuredevops.ServiceendpointOpenshiftAuthTokenArgs{
    		Token: pulumi.String("string"),
    	},
    	CertificateAuthorityFile: pulumi.String("string"),
    	Description:              pulumi.String("string"),
    	ServerUrl:                pulumi.String("string"),
    })
    
    var serviceendpointOpenshiftResource = new ServiceendpointOpenshift("serviceendpointOpenshiftResource", ServiceendpointOpenshiftArgs.builder()
        .projectId("string")
        .serviceEndpointName("string")
        .acceptUntrustedCerts(false)
        .authBasic(ServiceendpointOpenshiftAuthBasicArgs.builder()
            .password("string")
            .username("string")
            .build())
        .authNone(ServiceendpointOpenshiftAuthNoneArgs.builder()
            .kubeConfig("string")
            .build())
        .authToken(ServiceendpointOpenshiftAuthTokenArgs.builder()
            .token("string")
            .build())
        .certificateAuthorityFile("string")
        .description("string")
        .serverUrl("string")
        .build());
    
    serviceendpoint_openshift_resource = azuredevops.ServiceendpointOpenshift("serviceendpointOpenshiftResource",
        project_id="string",
        service_endpoint_name="string",
        accept_untrusted_certs=False,
        auth_basic={
            "password": "string",
            "username": "string",
        },
        auth_none={
            "kube_config": "string",
        },
        auth_token={
            "token": "string",
        },
        certificate_authority_file="string",
        description="string",
        server_url="string")
    
    const serviceendpointOpenshiftResource = new azuredevops.ServiceendpointOpenshift("serviceendpointOpenshiftResource", {
        projectId: "string",
        serviceEndpointName: "string",
        acceptUntrustedCerts: false,
        authBasic: {
            password: "string",
            username: "string",
        },
        authNone: {
            kubeConfig: "string",
        },
        authToken: {
            token: "string",
        },
        certificateAuthorityFile: "string",
        description: "string",
        serverUrl: "string",
    });
    
    type: azuredevops:ServiceendpointOpenshift
    properties:
        acceptUntrustedCerts: false
        authBasic:
            password: string
            username: string
        authNone:
            kubeConfig: string
        authToken:
            token: string
        certificateAuthorityFile: string
        description: string
        projectId: string
        serverUrl: string
        serviceEndpointName: string
    

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

    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    AcceptUntrustedCerts bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    AuthBasic Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    AuthNone Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    AuthToken Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    CertificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    Description string
    ServerUrl string
    The URL for the OpenShift cluster to connect to.
    ProjectId string
    The ID of the project.
    ServiceEndpointName string
    The Service Endpoint name.
    AcceptUntrustedCerts bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    AuthBasic ServiceendpointOpenshiftAuthBasicArgs
    An auth_basic block as documented below.
    AuthNone ServiceendpointOpenshiftAuthNoneArgs
    An auth_none block as documented below.
    AuthToken ServiceendpointOpenshiftAuthTokenArgs
    An auth_token block as documented below.
    CertificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    Description string
    ServerUrl string
    The URL for the OpenShift cluster to connect to.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    acceptUntrustedCerts Boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    authNone ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    authToken ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    certificateAuthorityFile String
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description String
    serverUrl String
    The URL for the OpenShift cluster to connect to.
    projectId string
    The ID of the project.
    serviceEndpointName string
    The Service Endpoint name.
    acceptUntrustedCerts boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    authNone ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    authToken ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    certificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description string
    serverUrl string
    The URL for the OpenShift cluster to connect to.
    project_id str
    The ID of the project.
    service_endpoint_name str
    The Service Endpoint name.
    accept_untrusted_certs bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    auth_basic ServiceendpointOpenshiftAuthBasicArgs
    An auth_basic block as documented below.
    auth_none ServiceendpointOpenshiftAuthNoneArgs
    An auth_none block as documented below.
    auth_token ServiceendpointOpenshiftAuthTokenArgs
    An auth_token block as documented below.
    certificate_authority_file str
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description str
    server_url str
    The URL for the OpenShift cluster to connect to.
    projectId String
    The ID of the project.
    serviceEndpointName String
    The Service Endpoint name.
    acceptUntrustedCerts Boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic Property Map
    An auth_basic block as documented below.
    authNone Property Map
    An auth_none block as documented below.
    authToken Property Map
    An auth_token block as documented below.
    certificateAuthorityFile String
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description String
    serverUrl String
    The URL for the OpenShift cluster to connect to.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceendpointOpenshift resource produces the following output properties:

    Authorization Dictionary<string, string>
    Id string
    The provider-assigned unique ID for this managed resource.
    Authorization map[string]string
    Id string
    The provider-assigned unique ID for this managed resource.
    authorization Map<String,String>
    id String
    The provider-assigned unique ID for this managed resource.
    authorization {[key: string]: string}
    id string
    The provider-assigned unique ID for this managed resource.
    authorization Mapping[str, str]
    id str
    The provider-assigned unique ID for this managed resource.
    authorization Map<String>
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServiceendpointOpenshift Resource

    Get an existing ServiceendpointOpenshift 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?: ServiceendpointOpenshiftState, opts?: CustomResourceOptions): ServiceendpointOpenshift
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            accept_untrusted_certs: Optional[bool] = None,
            auth_basic: Optional[ServiceendpointOpenshiftAuthBasicArgs] = None,
            auth_none: Optional[ServiceendpointOpenshiftAuthNoneArgs] = None,
            auth_token: Optional[ServiceendpointOpenshiftAuthTokenArgs] = None,
            authorization: Optional[Mapping[str, str]] = None,
            certificate_authority_file: Optional[str] = None,
            description: Optional[str] = None,
            project_id: Optional[str] = None,
            server_url: Optional[str] = None,
            service_endpoint_name: Optional[str] = None) -> ServiceendpointOpenshift
    func GetServiceendpointOpenshift(ctx *Context, name string, id IDInput, state *ServiceendpointOpenshiftState, opts ...ResourceOption) (*ServiceendpointOpenshift, error)
    public static ServiceendpointOpenshift Get(string name, Input<string> id, ServiceendpointOpenshiftState? state, CustomResourceOptions? opts = null)
    public static ServiceendpointOpenshift get(String name, Output<String> id, ServiceendpointOpenshiftState state, CustomResourceOptions options)
    resources:  _:    type: azuredevops:ServiceendpointOpenshift    get:      id: ${id}
    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:
    AcceptUntrustedCerts bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    AuthBasic Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    AuthNone Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    AuthToken Pulumi.AzureDevOps.Inputs.ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    Authorization Dictionary<string, string>
    CertificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    Description string
    ProjectId string
    The ID of the project.
    ServerUrl string
    The URL for the OpenShift cluster to connect to.
    ServiceEndpointName string
    The Service Endpoint name.
    AcceptUntrustedCerts bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    AuthBasic ServiceendpointOpenshiftAuthBasicArgs
    An auth_basic block as documented below.
    AuthNone ServiceendpointOpenshiftAuthNoneArgs
    An auth_none block as documented below.
    AuthToken ServiceendpointOpenshiftAuthTokenArgs
    An auth_token block as documented below.
    Authorization map[string]string
    CertificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    Description string
    ProjectId string
    The ID of the project.
    ServerUrl string
    The URL for the OpenShift cluster to connect to.
    ServiceEndpointName string
    The Service Endpoint name.
    acceptUntrustedCerts Boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    authNone ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    authToken ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    authorization Map<String,String>
    certificateAuthorityFile String
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description String
    projectId String
    The ID of the project.
    serverUrl String
    The URL for the OpenShift cluster to connect to.
    serviceEndpointName String
    The Service Endpoint name.
    acceptUntrustedCerts boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic ServiceendpointOpenshiftAuthBasic
    An auth_basic block as documented below.
    authNone ServiceendpointOpenshiftAuthNone
    An auth_none block as documented below.
    authToken ServiceendpointOpenshiftAuthToken
    An auth_token block as documented below.
    authorization {[key: string]: string}
    certificateAuthorityFile string
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description string
    projectId string
    The ID of the project.
    serverUrl string
    The URL for the OpenShift cluster to connect to.
    serviceEndpointName string
    The Service Endpoint name.
    accept_untrusted_certs bool
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    auth_basic ServiceendpointOpenshiftAuthBasicArgs
    An auth_basic block as documented below.
    auth_none ServiceendpointOpenshiftAuthNoneArgs
    An auth_none block as documented below.
    auth_token ServiceendpointOpenshiftAuthTokenArgs
    An auth_token block as documented below.
    authorization Mapping[str, str]
    certificate_authority_file str
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description str
    project_id str
    The ID of the project.
    server_url str
    The URL for the OpenShift cluster to connect to.
    service_endpoint_name str
    The Service Endpoint name.
    acceptUntrustedCerts Boolean
    Set this option to allow clients to accept a self-signed certificate. Available when using auth_basic or auth_token authorization.
    authBasic Property Map
    An auth_basic block as documented below.
    authNone Property Map
    An auth_none block as documented below.
    authToken Property Map
    An auth_token block as documented below.
    authorization Map<String>
    certificateAuthorityFile String
    The path to a certificate authority file to correctly and securely authenticates with an OpenShift server that uses HTTPS. Available when using auth_basic or auth_token authorization.
    description String
    projectId String
    The ID of the project.
    serverUrl String
    The URL for the OpenShift cluster to connect to.
    serviceEndpointName String
    The Service Endpoint name.

    Supporting Types

    ServiceendpointOpenshiftAuthBasic, ServiceendpointOpenshiftAuthBasicArgs

    Password string
    The password of the user.
    Username string
    The name of the user.
    Password string
    The password of the user.
    Username string
    The name of the user.
    password String
    The password of the user.
    username String
    The name of the user.
    password string
    The password of the user.
    username string
    The name of the user.
    password str
    The password of the user.
    username str
    The name of the user.
    password String
    The password of the user.
    username String
    The name of the user.

    ServiceendpointOpenshiftAuthNone, ServiceendpointOpenshiftAuthNoneArgs

    KubeConfig string
    The kubectl config
    KubeConfig string
    The kubectl config
    kubeConfig String
    The kubectl config
    kubeConfig string
    The kubectl config
    kube_config str
    The kubectl config
    kubeConfig String
    The kubectl config

    ServiceendpointOpenshiftAuthToken, ServiceendpointOpenshiftAuthTokenArgs

    Token string
    The API token.
    Token string
    The API token.
    token String
    The API token.
    token string
    The API token.
    token str
    The API token.
    token String
    The API token.

    Import

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

    $ pulumi import azuredevops:index/serviceendpointOpenshift:ServiceendpointOpenshift 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.9.0 published on Tuesday, Apr 22, 2025 by Pulumi