ServiceEndpoint

ServiceEndpoint resource details. API Version: 2022-02-01.

Example Usage

Create or update ServiceEndpoint resource

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var serviceEndpoint = new AzureNative.RecommendationsService.ServiceEndpoint("serviceEndpoint", new()
{
AccountName = "sampleAccount",
Location = "West US",
Properties = new AzureNative.RecommendationsService.Inputs.ServiceEndpointResourcePropertiesArgs
{
PreAllocatedCapacity = 100,
},
ResourceGroupName = "rg",
ServiceEndpointName = "s1",
Tags =
{
{ "Environment", "Prod" },
},
});
});
package main
import (
recommendationsservice "github.com/pulumi/pulumi-azure-native/sdk/go/azure/recommendationsservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := recommendationsservice.NewServiceEndpoint(ctx, "serviceEndpoint", &recommendationsservice.ServiceEndpointArgs{
AccountName: pulumi.String("sampleAccount"),
Location: pulumi.String("West US"),
Properties: &recommendationsservice.ServiceEndpointResourcePropertiesArgs{
PreAllocatedCapacity: pulumi.Int(100),
},
ResourceGroupName: pulumi.String("rg"),
ServiceEndpointName: pulumi.String("s1"),
Tags: pulumi.StringMap{
"Environment": pulumi.String("Prod"),
},
})
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.recommendationsservice.ServiceEndpoint;
import com.pulumi.azurenative.recommendationsservice.ServiceEndpointArgs;
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 serviceEndpoint = new ServiceEndpoint("serviceEndpoint", ServiceEndpointArgs.builder()
.accountName("sampleAccount")
.location("West US")
.properties(Map.of("preAllocatedCapacity", 100))
.resourceGroupName("rg")
.serviceEndpointName("s1")
.tags(Map.of("Environment", "Prod"))
.build());
}
}

Import

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

$ pulumi import azure-native:recommendationsservice:ServiceEndpoint s1 /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/rg/providers/Microsoft.RecommendationsService/accounts/sampleAccount/serviceEndpoints/s1

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

ServiceEndpoint resource properties.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>