We recommend using Azure Native.
Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi
azure.webpubsub.getService
Explore with Pulumi AI
Use this data source to access information about an existing Azure Web Pubsub service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.webpubsub.getService({
name: "test-webpubsub",
resourceGroupName: "wps-resource-group",
});
import pulumi
import pulumi_azure as azure
example = azure.webpubsub.get_service(name="test-webpubsub",
resource_group_name="wps-resource-group")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/webpubsub"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := webpubsub.LookupService(ctx, &webpubsub.LookupServiceArgs{
Name: "test-webpubsub",
ResourceGroupName: "wps-resource-group",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.WebPubSub.GetService.Invoke(new()
{
Name = "test-webpubsub",
ResourceGroupName = "wps-resource-group",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.webpubsub.WebpubsubFunctions;
import com.pulumi.azure.webpubsub.inputs.GetServiceArgs;
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) {
final var example = WebpubsubFunctions.getService(GetServiceArgs.builder()
.name("test-webpubsub")
.resourceGroupName("wps-resource-group")
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:webpubsub:getService
Arguments:
name: test-webpubsub
resourceGroupName: wps-resource-group
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>
def get_service(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]
func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput
> Note: This function is named LookupService
in the Go SDK.
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:webpubsub/getService:getService
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Specifies the name of the Web Pubsub service.
- Resource
Group stringName - Specifies the name of the resource group the Web Pubsub service is located in.
- Name string
- Specifies the name of the Web Pubsub service.
- Resource
Group stringName - Specifies the name of the resource group the Web Pubsub service is located in.
- name String
- Specifies the name of the Web Pubsub service.
- resource
Group StringName - Specifies the name of the resource group the Web Pubsub service is located in.
- name string
- Specifies the name of the Web Pubsub service.
- resource
Group stringName - Specifies the name of the resource group the Web Pubsub service is located in.
- name str
- Specifies the name of the Web Pubsub service.
- resource_
group_ strname - Specifies the name of the resource group the Web Pubsub service is located in.
- name String
- Specifies the name of the Web Pubsub service.
- resource
Group StringName - Specifies the name of the resource group the Web Pubsub service is located in.
getService Result
The following output properties are available:
- Aad
Auth boolEnabled - Capacity int
- External
Ip string - Hostname string
- The FQDN of the Web Pubsub service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Auth boolEnabled - Location string
- The Azure location where the Web Pubsub service exists.
- Name string
- Primary
Access stringKey - The primary access key of the Web Pubsub service.
- Primary
Connection stringString - The primary connection string of the Web Pubsub service.
- Public
Network boolAccess Enabled - Public
Port int - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- Resource
Group stringName - Secondary
Access stringKey - The secondary access key of the Web Pubsub service.
- Secondary
Connection stringString - The secondary connection string of the Web Pubsub service.
- Server
Port int - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- Sku string
- Dictionary<string, string>
- Tls
Client boolCert Enabled - Version string
- Aad
Auth boolEnabled - Capacity int
- External
Ip string - Hostname string
- The FQDN of the Web Pubsub service.
- Id string
- The provider-assigned unique ID for this managed resource.
- Local
Auth boolEnabled - Location string
- The Azure location where the Web Pubsub service exists.
- Name string
- Primary
Access stringKey - The primary access key of the Web Pubsub service.
- Primary
Connection stringString - The primary connection string of the Web Pubsub service.
- Public
Network boolAccess Enabled - Public
Port int - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- Resource
Group stringName - Secondary
Access stringKey - The secondary access key of the Web Pubsub service.
- Secondary
Connection stringString - The secondary connection string of the Web Pubsub service.
- Server
Port int - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- Sku string
- map[string]string
- Tls
Client boolCert Enabled - Version string
- aad
Auth BooleanEnabled - capacity Integer
- external
Ip String - hostname String
- The FQDN of the Web Pubsub service.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Auth BooleanEnabled - location String
- The Azure location where the Web Pubsub service exists.
- name String
- primary
Access StringKey - The primary access key of the Web Pubsub service.
- primary
Connection StringString - The primary connection string of the Web Pubsub service.
- public
Network BooleanAccess Enabled - public
Port Integer - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- resource
Group StringName - secondary
Access StringKey - The secondary access key of the Web Pubsub service.
- secondary
Connection StringString - The secondary connection string of the Web Pubsub service.
- server
Port Integer - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- sku String
- Map<String,String>
- tls
Client BooleanCert Enabled - version String
- aad
Auth booleanEnabled - capacity number
- external
Ip string - hostname string
- The FQDN of the Web Pubsub service.
- id string
- The provider-assigned unique ID for this managed resource.
- local
Auth booleanEnabled - location string
- The Azure location where the Web Pubsub service exists.
- name string
- primary
Access stringKey - The primary access key of the Web Pubsub service.
- primary
Connection stringString - The primary connection string of the Web Pubsub service.
- public
Network booleanAccess Enabled - public
Port number - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- resource
Group stringName - secondary
Access stringKey - The secondary access key of the Web Pubsub service.
- secondary
Connection stringString - The secondary connection string of the Web Pubsub service.
- server
Port number - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- sku string
- {[key: string]: string}
- tls
Client booleanCert Enabled - version string
- aad_
auth_ boolenabled - capacity int
- external_
ip str - hostname str
- The FQDN of the Web Pubsub service.
- id str
- The provider-assigned unique ID for this managed resource.
- local_
auth_ boolenabled - location str
- The Azure location where the Web Pubsub service exists.
- name str
- primary_
access_ strkey - The primary access key of the Web Pubsub service.
- primary_
connection_ strstring - The primary connection string of the Web Pubsub service.
- public_
network_ boolaccess_ enabled - public_
port int - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- resource_
group_ strname - secondary_
access_ strkey - The secondary access key of the Web Pubsub service.
- secondary_
connection_ strstring - The secondary connection string of the Web Pubsub service.
- server_
port int - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- sku str
- Mapping[str, str]
- tls_
client_ boolcert_ enabled - version str
- aad
Auth BooleanEnabled - capacity Number
- external
Ip String - hostname String
- The FQDN of the Web Pubsub service.
- id String
- The provider-assigned unique ID for this managed resource.
- local
Auth BooleanEnabled - location String
- The Azure location where the Web Pubsub service exists.
- name String
- primary
Access StringKey - The primary access key of the Web Pubsub service.
- primary
Connection StringString - The primary connection string of the Web Pubsub service.
- public
Network BooleanAccess Enabled - public
Port Number - The publicly accessible port of the Web Pubsub service which is designed for browser/client use.
- resource
Group StringName - secondary
Access StringKey - The secondary access key of the Web Pubsub service.
- secondary
Connection StringString - The secondary connection string of the Web Pubsub service.
- server
Port Number - The publicly accessible port of the Web Pubsub service which is designed for customer server side use.
- sku String
- Map<String>
- tls
Client BooleanCert Enabled - version String
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.