azure-native.hybridconnectivity.Endpoint
Explore with Pulumi AI
The endpoint for the target resource.
Uses Azure REST API version 2024-12-01. In version 2.x of the Azure Native provider, it used API version 2023-03-15.
Other available API versions: 2023-03-15. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native hybridconnectivity [ApiVersion]
. See the version guide for details.
Example Usage
HybridConnectivityEndpointsPutCustom
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var endpoint = new AzureNative.HybridConnectivity.Endpoint("endpoint", new()
{
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 = AzureNative.HybridConnectivity.Type.Custom,
});
});
package main
import (
hybridconnectivity "github.com/pulumi/pulumi-azure-native-sdk/hybridconnectivity/v3"
"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(hybridconnectivity.TypeCustom),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hybridconnectivity.Endpoint;
import com.pulumi.azurenative.hybridconnectivity.EndpointArgs;
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 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 * 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: azure_native.hybridconnectivity.Type.Custom,
});
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=azure_native.hybridconnectivity.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 System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var endpoint = new AzureNative.HybridConnectivity.Endpoint("endpoint", new()
{
EndpointName = "default",
ResourceUri = "subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine",
Type = AzureNative.HybridConnectivity.Type.@Default,
});
});
package main
import (
hybridconnectivity "github.com/pulumi/pulumi-azure-native-sdk/hybridconnectivity/v3"
"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(hybridconnectivity.TypeDefault),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hybridconnectivity.Endpoint;
import com.pulumi.azurenative.hybridconnectivity.EndpointArgs;
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 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 * 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: azure_native.hybridconnectivity.Type.Default,
});
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=azure_native.hybridconnectivity.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 Endpoint Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Endpoint(name: string, args: EndpointArgs, opts?: CustomResourceOptions);
@overload
def Endpoint(resource_name: str,
args: EndpointArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Endpoint(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_uri: Optional[str] = None,
type: Optional[Union[str, Type]] = None,
endpoint_name: Optional[str] = None,
resource_id: Optional[str] = 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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeEndpointResource = new AzureNative.HybridConnectivity.Endpoint("azure-nativeEndpointResource", new()
{
ResourceUri = "string",
Type = "string",
EndpointName = "string",
ResourceId = "string",
});
example, err := hybridconnectivity.NewEndpoint(ctx, "azure-nativeEndpointResource", &hybridconnectivity.EndpointArgs{
ResourceUri: pulumi.String("string"),
Type: pulumi.String("string"),
EndpointName: pulumi.String("string"),
ResourceId: pulumi.String("string"),
})
var azure_nativeEndpointResource = new com.pulumi.azurenative.hybridconnectivity.Endpoint("azure-nativeEndpointResource", com.pulumi.azurenative.hybridconnectivity.EndpointArgs.builder()
.resourceUri("string")
.type("string")
.endpointName("string")
.resourceId("string")
.build());
azure_native_endpoint_resource = azure_native.hybridconnectivity.Endpoint("azure-nativeEndpointResource",
resource_uri="string",
type="string",
endpoint_name="string",
resource_id="string")
const azure_nativeEndpointResource = new azure_native.hybridconnectivity.Endpoint("azure-nativeEndpointResource", {
resourceUri: "string",
type: "string",
endpointName: "string",
resourceId: "string",
});
type: azure-native:hybridconnectivity:Endpoint
properties:
endpointName: string
resourceId: string
resourceUri: string
type: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Endpoint resource accepts the following input properties:
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Type
string | Pulumi.
Azure Native. Hybrid Connectivity. Type - The type of endpoint.
- Endpoint
Name string - The endpoint name.
- Resource
Id string - The resource Id of the connectivity endpoint (optional).
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- Type string | Type
- The type of endpoint.
- Endpoint
Name string - The endpoint name.
- Resource
Id string - The resource Id of the connectivity endpoint (optional).
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- type String | Type
- The type of endpoint.
- endpoint
Name String - The endpoint name.
- resource
Id String - The resource Id of the connectivity endpoint (optional).
- resource
Uri string - The fully qualified Azure Resource manager identifier of the resource.
- type string | Type
- The type of endpoint.
- endpoint
Name string - The endpoint name.
- resource
Id string - The resource Id of the connectivity endpoint (optional).
- resource_
uri str - The fully qualified Azure Resource manager identifier of the resource.
- type str | Type
- The type of endpoint.
- endpoint_
name str - The endpoint name.
- resource_
id str - The resource Id of the connectivity endpoint (optional).
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource.
- type String | "default" | "custom"
- The type of endpoint.
- endpoint
Name String - The endpoint name.
- resource
Id 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:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The resource provisioning state.
- System
Data Pulumi.Azure Native. Hybrid Connectivity. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Provisioning
State string - The resource provisioning state.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The resource provisioning state.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- provisioning
State string - The resource provisioning state.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- azure_
api_ strversion - The Azure API version of the resource.
- 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.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- provisioning
State String - The resource provisioning state.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
Supporting Types
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Type, TypeArgs
- @Default
- default
- Custom
- custom
- Type
Default - default
- Type
Custom - 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 /{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0