GetService
Use this data source to access information about an existing API Management Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ApiManagement.GetService.InvokeAsync(new Azure.ApiManagement.GetServiceArgs
{
Name = "search-api",
ResourceGroupName = "search-service",
}));
this.ApiManagementId = example.Apply(example => example.Id);
}
[Output("apiManagementId")]
public Output<string> ApiManagementId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/apimanagement"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apimanagement.LookupService(ctx, &apimanagement.LookupServiceArgs{
Name: "search-api",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("apiManagementId", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.apimanagement.get_service(name="search-api",
resource_group_name="search-service")
pulumi.export("apiManagementId", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.apimanagement.getService({
name: "search-api",
resourceGroupName: "search-service",
});
export const apiManagementId = example.then(example => example.id);Using GetService
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>function get_service(name=None, resource_group_name=None, opts=None)func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)Note: This function is named
LookupServicein the Go SDK.
public static class GetService {
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the API Management service.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- Name string
The name of the API Management service.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- name string
The name of the API Management service.
- resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- name str
The name of the API Management service.
- resource_
group_ strname The Name of the Resource Group in which the API Management Service exists.
GetService Result
The following output properties are available:
- Additional
Locations List<GetService Additional Location> One or more
additional_locationblocks as defined below- Developer
Portal stringUrl The URL for the Developer Portal associated with this API Management service.
- Gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- Gateway
Url string The URL for the API Management Service’s Gateway.
- Hostname
Configurations List<GetService Hostname Configuration> A
hostname_configurationblock as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Service Identity> (Optional) An
identityblock as defined below.- Location string
The location name of the additional region among Azure Data center regions.
- Management
Api stringUrl The URL for the Management API.
- Name string
Specifies the plan’s pricing tier.
- Notification
Sender stringEmail The email address from which the notification will be sent.
- Portal
Url string The URL of the Publisher Portal.
- Public
Ip List<string>Addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- Publisher
Email string The email of Publisher/Company of the API Management Service.
- Publisher
Name string The name of the Publisher/Company of the API Management Service.
- Resource
Group stringName - Scm
Url string The SCM (Source Code Management) endpoint.
- Sku
Name string - Dictionary<string, string>
A mapping of tags assigned to the resource.
- Additional
Locations []GetService Additional Location One or more
additional_locationblocks as defined below- Developer
Portal stringUrl The URL for the Developer Portal associated with this API Management service.
- Gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- Gateway
Url string The URL for the API Management Service’s Gateway.
- Hostname
Configurations []GetService Hostname Configuration A
hostname_configurationblock as defined below.- Id string
The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Service Identity (Optional) An
identityblock as defined below.- Location string
The location name of the additional region among Azure Data center regions.
- Management
Api stringUrl The URL for the Management API.
- Name string
Specifies the plan’s pricing tier.
- Notification
Sender stringEmail The email address from which the notification will be sent.
- Portal
Url string The URL of the Publisher Portal.
- Public
Ip []stringAddresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- Publisher
Email string The email of Publisher/Company of the API Management Service.
- Publisher
Name string The name of the Publisher/Company of the API Management Service.
- Resource
Group stringName - Scm
Url string The SCM (Source Code Management) endpoint.
- Sku
Name string - map[string]string
A mapping of tags assigned to the resource.
- additional
Locations GetService Additional Location[] One or more
additional_locationblocks as defined below- developer
Portal stringUrl The URL for the Developer Portal associated with this API Management service.
- gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- gateway
Url string The URL for the API Management Service’s Gateway.
- hostname
Configurations GetService Hostname Configuration[] A
hostname_configurationblock as defined below.- id string
The provider-assigned unique ID for this managed resource.
- identities
Get
Service Identity[] (Optional) An
identityblock as defined below.- location string
The location name of the additional region among Azure Data center regions.
- management
Api stringUrl The URL for the Management API.
- name string
Specifies the plan’s pricing tier.
- notification
Sender stringEmail The email address from which the notification will be sent.
- portal
Url string The URL of the Publisher Portal.
- public
Ip string[]Addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- publisher
Email string The email of Publisher/Company of the API Management Service.
- publisher
Name string The name of the Publisher/Company of the API Management Service.
- resource
Group stringName - scm
Url string The SCM (Source Code Management) endpoint.
- sku
Name string - {[key: string]: string}
A mapping of tags assigned to the resource.
- additional_
locations List[GetService Additional Location] One or more
additional_locationblocks as defined below- developer_
portal_ strurl The URL for the Developer Portal associated with this API Management service.
- gateway_
regional_ strurl Gateway URL of the API Management service in the Region.
- gateway_
url str The URL for the API Management Service’s Gateway.
- hostname_
configurations List[GetService Hostname Configuration] A
hostname_configurationblock as defined below.- id str
The provider-assigned unique ID for this managed resource.
- identities
List[Get
Service Identity] (Optional) An
identityblock as defined below.- location str
The location name of the additional region among Azure Data center regions.
- management_
api_ strurl The URL for the Management API.
- name str
Specifies the plan’s pricing tier.
- notification_
sender_ stremail The email address from which the notification will be sent.
- portal_
url str The URL of the Publisher Portal.
- public_
ip_ List[str]addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- publisher_
email str The email of Publisher/Company of the API Management Service.
- publisher_
name str The name of the Publisher/Company of the API Management Service.
- resource_
group_ strname - scm_
url str The SCM (Source Code Management) endpoint.
- sku_
name str - Dict[str, str]
A mapping of tags assigned to the resource.
Supporting Types
GetServiceAdditionalLocation
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- Location string
The location name of the additional region among Azure Data center regions.
- Public
Ip List<string>Addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- Gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- Location string
The location name of the additional region among Azure Data center regions.
- Public
Ip []stringAddresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- gateway
Regional stringUrl Gateway URL of the API Management service in the Region.
- location string
The location name of the additional region among Azure Data center regions.
- public
Ip string[]Addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
- gateway_
regional_ strurl Gateway URL of the API Management service in the Region.
- location str
The location name of the additional region among Azure Data center regions.
- public_
ip_ List[str]addresses Public Static Load Balanced IP addresses of the API Management service in the additional location. Available only for Basic, Standard and Premium SKU.
GetServiceHostnameConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Developer
Portals List<GetService Hostname Configuration Developer Portal Args> One or more
developer_portalblocks as documented below.- Managements
List<Get
Service Hostname Configuration Management Args> One or more
managementblocks as documented below.- Portals
List<Get
Service Hostname Configuration Portal Args> One or more
portalblocks as documented below.- Proxies
List<Get
Service Hostname Configuration Proxy Args> One or more
proxyblocks as documented below.- Scms
List<Get
Service Hostname Configuration Scm Args> One or more
scmblocks as documented below.
- Developer
Portals []GetService Hostname Configuration Developer Portal One or more
developer_portalblocks as documented below.- Managements
[]Get
Service Hostname Configuration Management One or more
managementblocks as documented below.- Portals
[]Get
Service Hostname Configuration Portal One or more
portalblocks as documented below.- Proxies
[]Get
Service Hostname Configuration Proxy One or more
proxyblocks as documented below.- Scms
[]Get
Service Hostname Configuration Scm One or more
scmblocks as documented below.
- developer
Portals GetService Hostname Configuration Developer Portal[] One or more
developer_portalblocks as documented below.- managements
Get
Service Hostname Configuration Management[] One or more
managementblocks as documented below.- portals
Get
Service Hostname Configuration Portal[] One or more
portalblocks as documented below.- proxies
Get
Service Hostname Configuration Proxy[] One or more
proxyblocks as documented below.- scms
Get
Service Hostname Configuration Scm[] One or more
scmblocks as documented below.
- developer
Portals List[GetService Hostname Configuration Developer Portal] One or more
developer_portalblocks as documented below.- managements
List[Get
Service Hostname Configuration Management] One or more
managementblocks as documented below.- portals
List[Get
Service Hostname Configuration Portal] One or more
portalblocks as documented below.- proxies
List[Get
Service Hostname Configuration Proxy] One or more
proxyblocks as documented below.- scms
List[Get
Service Hostname Configuration Scm] One or more
scmblocks as documented below.
GetServiceHostnameConfigurationDeveloperPortal
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- host
Name string The Hostname used for the SCM URL.
- key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client booleanCertificate Is Client Certificate Negotiation enabled?
- host_
name str The Hostname used for the SCM URL.
- key_
vault_ strid The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
GetServiceHostnameConfigurationManagement
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- host
Name string The Hostname used for the SCM URL.
- key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client booleanCertificate Is Client Certificate Negotiation enabled?
- host_
name str The Hostname used for the SCM URL.
- key_
vault_ strid The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
GetServiceHostnameConfigurationPortal
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- host
Name string The Hostname used for the SCM URL.
- key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client booleanCertificate Is Client Certificate Negotiation enabled?
- host_
name str The Hostname used for the SCM URL.
- key_
vault_ strid The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
GetServiceHostnameConfigurationProxy
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Default
Ssl boolBinding Is this the default SSL Binding?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- Default
Ssl boolBinding Is this the default SSL Binding?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- default
Ssl booleanBinding Is this the default SSL Binding?
- host
Name string The Hostname used for the SCM URL.
- key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client booleanCertificate Is Client Certificate Negotiation enabled?
- default
Ssl boolBinding Is this the default SSL Binding?
- host_
name str The Hostname used for the SCM URL.
- key_
vault_ strid The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
GetServiceHostnameConfigurationScm
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- Host
Name string The Hostname used for the SCM URL.
- Key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- Negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
- host
Name string The Hostname used for the SCM URL.
- key
Vault stringId The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client booleanCertificate Is Client Certificate Negotiation enabled?
- host_
name str The Hostname used for the SCM URL.
- key_
vault_ strid The ID of the Key Vault Secret which contains the SSL Certificate.
- negotiate
Client boolCertificate Is Client Certificate Negotiation enabled?
GetServiceIdentity
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Identity
Ids List<string> A list of IDs for User Assigned Managed Identity resources to be assigned.
- Principal
Id string Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- Tenant
Id string Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- Type string
Specifies the type of Managed Service Identity that is configured on this API Management Service.
- Identity
Ids []string A list of IDs for User Assigned Managed Identity resources to be assigned.
- Principal
Id string Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- Tenant
Id string Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- Type string
Specifies the type of Managed Service Identity that is configured on this API Management Service.
- identity
Ids string[] A list of IDs for User Assigned Managed Identity resources to be assigned.
- principal
Id string Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- tenant
Id string Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- type string
Specifies the type of Managed Service Identity that is configured on this API Management Service.
- identity
Ids List[str] A list of IDs for User Assigned Managed Identity resources to be assigned.
- principal_
id str Specifies the Principal ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- tenant_
id str Specifies the Tenant ID of the System Assigned Managed Service Identity that is configured on this API Management Service.
- type str
Specifies the type of Managed Service Identity that is configured on this API Management Service.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.