Azure Native

Pulumi Official
Package maintained by Pulumi
v1.67.0 published on Tuesday, Jul 12, 2022 by Pulumi

Endpoint

The endpoint for the target resource. API Version: 2022-05-01-preview.

Example Usage

HybridConnectivityEndpointsPutCustom

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var endpoint = new AzureNative.HybridConnectivity.Endpoint("endpoint", new AzureNative.HybridConnectivity.EndpointArgs
        {
            EndpointName = "custom",
            ResourceId = "/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace",
            ResourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
            Type = "custom",
        });
    }

}
package main

import (
	hybridconnectivity "github.com/pulumi/pulumi-azure-native/sdk/go/azure/hybridconnectivity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hybridconnectivity.NewEndpoint(ctx, "endpoint", &hybridconnectivity.EndpointArgs{
			EndpointName: pulumi.String("custom"),
			ResourceId:   pulumi.String("/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace"),
			ResourceUri:  pulumi.String("subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"),
			Type:         pulumi.String("custom"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var endpoint = new Endpoint("endpoint", EndpointArgs.builder()        
            .endpointName("custom")
            .resourceId("/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace")
            .resourceUri("subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine")
            .type("custom")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.hybridconnectivity.Endpoint("endpoint",
    endpoint_name="custom",
    resource_id="/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace",
    resource_uri="subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
    type="custom")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.hybridconnectivity.Endpoint("endpoint", {
    endpointName: "custom",
    resourceId: "/subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace",
    resourceUri: "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
    type: "custom",
});
resources:
  endpoint:
    type: azure-native:hybridconnectivity:Endpoint
    properties:
      endpointName: custom
      resourceId: /subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.Relay/namespaces/custom-relay-namespace
      resourceUri: subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine
      type: custom

HybridConnectivityEndpointsPutDefault

using Pulumi;
using AzureNative = Pulumi.AzureNative;

class MyStack : Stack
{
    public MyStack()
    {
        var endpoint = new AzureNative.HybridConnectivity.Endpoint("endpoint", new AzureNative.HybridConnectivity.EndpointArgs
        {
            EndpointName = "default",
            ResourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
            Type = "default",
        });
    }

}
package main

import (
	hybridconnectivity "github.com/pulumi/pulumi-azure-native/sdk/go/azure/hybridconnectivity"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := hybridconnectivity.NewEndpoint(ctx, "endpoint", &hybridconnectivity.EndpointArgs{
			EndpointName: pulumi.String("default"),
			ResourceUri:  pulumi.String("subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine"),
			Type:         pulumi.String("default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var endpoint = new Endpoint("endpoint", EndpointArgs.builder()        
            .endpointName("default")
            .resourceUri("subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine")
            .type("default")
            .build());

    }
}
import pulumi
import pulumi_azure_native as azure_native

endpoint = azure_native.hybridconnectivity.Endpoint("endpoint",
    endpoint_name="default",
    resource_uri="subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
    type="default")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const endpoint = new azure_native.hybridconnectivity.Endpoint("endpoint", {
    endpointName: "default",
    resourceUri: "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
    type: "default",
});
resources:
  endpoint:
    type: azure-native:hybridconnectivity:Endpoint
    properties:
      endpointName: default
      resourceUri: subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine
      type: default

Create a Endpoint Resource

new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             created_at: Optional[str] = None,
             created_by: Optional[str] = None,
             created_by_type: Optional[Union[str, CreatedByType]] = None,
             endpoint_name: Optional[str] = None,
             last_modified_at: Optional[str] = None,
             last_modified_by: Optional[str] = None,
             last_modified_by_type: Optional[Union[str, CreatedByType]] = None,
             resource_id: Optional[str] = None,
             resource_uri: Optional[str] = None,
             type: Optional[Union[str, Type]] = None)
@overload
def Endpoint(resource_name: str,
             args: EndpointArgs,
             opts: Optional[ResourceOptions] = None)
func NewEndpoint(ctx *Context, name string, args EndpointArgs, opts ...ResourceOption) (*Endpoint, error)
public Endpoint(string name, EndpointArgs args, CustomResourceOptions? opts = null)
public Endpoint(String name, EndpointArgs args)
public Endpoint(String name, EndpointArgs args, CustomResourceOptions options)
type: azure-native:hybridconnectivity:Endpoint
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args EndpointArgs
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 EndpointArgs
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 EndpointArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args EndpointArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args EndpointArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Endpoint Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Endpoint resource accepts the following input properties:

ResourceUri string

The fully qualified Azure Resource manager identifier of the resource to be connected.

Type string | Pulumi.AzureNative.HybridConnectivity.Type

The type of endpoint.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string | Pulumi.AzureNative.HybridConnectivity.CreatedByType

The type of identity that created the resource.

EndpointName string

The endpoint name.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string | Pulumi.AzureNative.HybridConnectivity.CreatedByType

The type of identity that last modified the resource.

ResourceId string

The resource Id of the connectivity endpoint (optional).

ResourceUri string

The fully qualified Azure Resource manager identifier of the resource to be connected.

Type string | Type

The type of endpoint.

CreatedAt string

The timestamp of resource creation (UTC).

CreatedBy string

The identity that created the resource.

CreatedByType string | CreatedByType

The type of identity that created the resource.

EndpointName string

The endpoint name.

LastModifiedAt string

The timestamp of resource last modification (UTC)

LastModifiedBy string

The identity that last modified the resource.

LastModifiedByType string | CreatedByType

The type of identity that last modified the resource.

ResourceId string

The resource Id of the connectivity endpoint (optional).

resourceUri String

The fully qualified Azure Resource manager identifier of the resource to be connected.

type String | Type

The type of endpoint.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String | CreatedByType

The type of identity that created the resource.

endpointName String

The endpoint name.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String | CreatedByType

The type of identity that last modified the resource.

resourceId String

The resource Id of the connectivity endpoint (optional).

resourceUri string

The fully qualified Azure Resource manager identifier of the resource to be connected.

type string | Type

The type of endpoint.

createdAt string

The timestamp of resource creation (UTC).

createdBy string

The identity that created the resource.

createdByType string | CreatedByType

The type of identity that created the resource.

endpointName string

The endpoint name.

lastModifiedAt string

The timestamp of resource last modification (UTC)

lastModifiedBy string

The identity that last modified the resource.

lastModifiedByType string | CreatedByType

The type of identity that last modified the resource.

resourceId string

The resource Id of the connectivity endpoint (optional).

resource_uri str

The fully qualified Azure Resource manager identifier of the resource to be connected.

type str | Type

The type of endpoint.

created_at str

The timestamp of resource creation (UTC).

created_by str

The identity that created the resource.

created_by_type str | CreatedByType

The type of identity that created the resource.

endpoint_name str

The endpoint name.

last_modified_at str

The timestamp of resource last modification (UTC)

last_modified_by str

The identity that last modified the resource.

last_modified_by_type str | CreatedByType

The type of identity that last modified the resource.

resource_id str

The resource Id of the connectivity endpoint (optional).

resourceUri String

The fully qualified Azure Resource manager identifier of the resource to be connected.

type String | "default" | "custom"

The type of endpoint.

createdAt String

The timestamp of resource creation (UTC).

createdBy String

The identity that created the resource.

createdByType String | "User" | "Application" | "ManagedIdentity" | "Key"

The type of identity that created the resource.

endpointName String

The endpoint name.

lastModifiedAt String

The timestamp of resource last modification (UTC)

lastModifiedBy String

The identity that last modified the resource.

lastModifiedByType String | "User" | "Application" | "ManagedIdentity" | "Key"

The type of identity that last modified the resource.

resourceId String

The resource Id of the connectivity endpoint (optional).

Outputs

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

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

The resource provisioning state.

Id string

The provider-assigned unique ID for this managed resource.

Name string

The name of the resource

ProvisioningState string

The resource provisioning state.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

The resource provisioning state.

id string

The provider-assigned unique ID for this managed resource.

name string

The name of the resource

provisioningState string

The resource provisioning state.

id str

The provider-assigned unique ID for this managed resource.

name str

The name of the resource

provisioning_state str

The resource provisioning state.

id String

The provider-assigned unique ID for this managed resource.

name String

The name of the resource

provisioningState String

The resource provisioning state.

Supporting Types

CreatedByType

User
User
Application
Application
ManagedIdentity
ManagedIdentity
Key
Key
CreatedByTypeUser
User
CreatedByTypeApplication
Application
CreatedByTypeManagedIdentity
ManagedIdentity
CreatedByTypeKey
Key
User
User
Application
Application
ManagedIdentity
ManagedIdentity
Key
Key
User
User
Application
Application
ManagedIdentity
ManagedIdentity
Key
Key
USER
User
APPLICATION
Application
MANAGED_IDENTITY
ManagedIdentity
KEY
Key
"User"
User
"Application"
Application
"ManagedIdentity"
ManagedIdentity
"Key"
Key

Type

@Default
default
Custom
custom
TypeDefault
default
TypeCustom
custom
Default_
default
Custom
custom
Default
default
Custom
custom
DEFAULT
default
CUSTOM
custom
"default"
default
"custom"
custom

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hybridconnectivity:Endpoint default /subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0