azure-native.hybridconnectivity.Endpoint
Explore with Pulumi AI
The endpoint for the target resource. API Version: 2022-05-01-preview.
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 = "custom",
});
});
package main
import (
hybridconnectivity "github.com/pulumi/pulumi-azure-native-sdk/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 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 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 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 = "default",
});
});
package main
import (
hybridconnectivity "github.com/pulumi/pulumi-azure-native-sdk/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 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 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 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,
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)
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",
CreatedAt = "string",
CreatedBy = "string",
CreatedByType = "string",
EndpointName = "string",
LastModifiedAt = "string",
LastModifiedBy = "string",
LastModifiedByType = "string",
ResourceId = "string",
});
example, err := hybridconnectivity.NewEndpoint(ctx, "azure-nativeEndpointResource", &hybridconnectivity.EndpointArgs{
ResourceUri: "string",
Type: "string",
CreatedAt: "string",
CreatedBy: "string",
CreatedByType: "string",
EndpointName: "string",
LastModifiedAt: "string",
LastModifiedBy: "string",
LastModifiedByType: "string",
ResourceId: "string",
})
var azure_nativeEndpointResource = new Endpoint("azure-nativeEndpointResource", EndpointArgs.builder()
.resourceUri("string")
.type("string")
.createdAt("string")
.createdBy("string")
.createdByType("string")
.endpointName("string")
.lastModifiedAt("string")
.lastModifiedBy("string")
.lastModifiedByType("string")
.resourceId("string")
.build());
azure_native_endpoint_resource = azure_native.hybridconnectivity.Endpoint("azure-nativeEndpointResource",
resource_uri=string,
type=string,
created_at=string,
created_by=string,
created_by_type=string,
endpoint_name=string,
last_modified_at=string,
last_modified_by=string,
last_modified_by_type=string,
resource_id=string)
const azure_nativeEndpointResource = new azure_native.hybridconnectivity.Endpoint("azure-nativeEndpointResource", {
resourceUri: "string",
type: "string",
createdAt: "string",
createdBy: "string",
createdByType: "string",
endpointName: "string",
lastModifiedAt: "string",
lastModifiedBy: "string",
lastModifiedByType: "string",
resourceId: "string",
});
type: azure-native:hybridconnectivity:Endpoint
properties:
createdAt: string
createdBy: string
createdByType: string
endpointName: string
lastModifiedAt: string
lastModifiedBy: string
lastModifiedByType: 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 to be connected.
- Type
string | Pulumi.
Azure Native. Hybrid Connectivity. Type - The type of endpoint.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By string | Pulumi.Type Azure Native. Hybrid Connectivity. Created By Type - The type of identity that created the resource.
- Endpoint
Name string - The endpoint name.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified string | Pulumi.By Type Azure Native. Hybrid Connectivity. Created By Type - The type of identity that last modified the resource.
- Resource
Id string - The resource Id of the connectivity endpoint (optional).
- Resource
Uri string - The fully qualified Azure Resource manager identifier of the resource to be connected.
- Type string | Type
- The type of endpoint.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By string | CreatedType By Type - The type of identity that created the resource.
- Endpoint
Name string - The endpoint name.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified string | CreatedBy Type By Type - The type of identity that last modified the resource.
- Resource
Id string - The resource Id of the connectivity endpoint (optional).
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource to be connected.
- type String | Type
- The type of endpoint.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By String | CreatedType By Type - The type of identity that created the resource.
- endpoint
Name String - The endpoint name.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified String | CreatedBy Type By Type - The type of identity that last modified the resource.
- resource
Id String - The resource Id of the connectivity endpoint (optional).
- resource
Uri string - The fully qualified Azure Resource manager identifier of the resource to be connected.
- type string | Type
- The type of endpoint.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By string | CreatedType By Type - The type of identity that created the resource.
- endpoint
Name string - The endpoint name.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified string | CreatedBy Type By Type - The type of identity that last modified the resource.
- resource
Id 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_ str | Createdtype By Type - The type of identity that created the resource.
- endpoint_
name str - The endpoint name.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ str | Createdby_ type By Type - The type of identity that last modified the resource.
- resource_
id str - The resource Id of the connectivity endpoint (optional).
- resource
Uri String - The fully qualified Azure Resource manager identifier of the resource to be connected.
- type String | "default" | "custom"
- The type of endpoint.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By String | "User" | "Application" | "ManagedType Identity" | "Key" - The type of identity that created the resource.
- endpoint
Name String - The endpoint name.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified String | "User" | "Application" | "ManagedBy Type Identity" | "Key" - The type of identity that last modified the resource.
- 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:
- 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.
- 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.
- 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.
- 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.
- 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
- provisioning
State String - The resource provisioning state.
Supporting Types
CreatedByType, CreatedByTypeArgs
- User
- User
- Application
- Application
- Managed
Identity - ManagedIdentity
- Key
- Key
- Created
By Type User - User
- Created
By Type Application - Application
- Created
By Type Managed Identity - ManagedIdentity
- Created
By Type Key - Key
- User
- User
- Application
- Application
- Managed
Identity - ManagedIdentity
- Key
- Key
- User
- User
- Application
- Application
- Managed
Identity - ManagedIdentity
- Key
- Key
- USER
- User
- APPLICATION
- Application
- MANAGED_IDENTITY
- ManagedIdentity
- KEY
- Key
- "User"
- User
- "Application"
- Application
- "Managed
Identity" - ManagedIdentity
- "Key"
- Key
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 /subscriptions/f5bcc1d9-23af-4ae9-aca1-041d0f593a63/resourceGroups/hybridRG/providers/Microsoft.HybridCompute/machines/testMachine/providers/Microsoft.HybridConnectivity/endpoints/default
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0