We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.appplatform.getSpringCloudService
Explore with Pulumi AI
Use this data source to access information about an existing Spring Cloud Service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appplatform.getSpringCloudService({
    name: exampleAzurermSpringCloudService.name,
    resourceGroupName: exampleAzurermSpringCloudService.resourceGroupName,
});
export const springCloudServiceId = example.then(example => example.id);
import pulumi
import pulumi_azure as azure
example = azure.appplatform.get_spring_cloud_service(name=example_azurerm_spring_cloud_service["name"],
    resource_group_name=example_azurerm_spring_cloud_service["resourceGroupName"])
pulumi.export("springCloudServiceId", example.id)
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appplatform"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := appplatform.LookupSpringCloudService(ctx, &appplatform.LookupSpringCloudServiceArgs{
			Name:              exampleAzurermSpringCloudService.Name,
			ResourceGroupName: exampleAzurermSpringCloudService.ResourceGroupName,
		}, nil)
		if err != nil {
			return err
		}
		ctx.Export("springCloudServiceId", example.Id)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.AppPlatform.GetSpringCloudService.Invoke(new()
    {
        Name = exampleAzurermSpringCloudService.Name,
        ResourceGroupName = exampleAzurermSpringCloudService.ResourceGroupName,
    });
    return new Dictionary<string, object?>
    {
        ["springCloudServiceId"] = example.Apply(getSpringCloudServiceResult => getSpringCloudServiceResult.Id),
    };
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.appplatform.AppplatformFunctions;
import com.pulumi.azure.appplatform.inputs.GetSpringCloudServiceArgs;
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 = AppplatformFunctions.getSpringCloudService(GetSpringCloudServiceArgs.builder()
            .name(exampleAzurermSpringCloudService.name())
            .resourceGroupName(exampleAzurermSpringCloudService.resourceGroupName())
            .build());
        ctx.export("springCloudServiceId", example.applyValue(getSpringCloudServiceResult -> getSpringCloudServiceResult.id()));
    }
}
variables:
  example:
    fn::invoke:
      function: azure:appplatform:getSpringCloudService
      arguments:
        name: ${exampleAzurermSpringCloudService.name}
        resourceGroupName: ${exampleAzurermSpringCloudService.resourceGroupName}
outputs:
  springCloudServiceId: ${example.id}
Using getSpringCloudService
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 getSpringCloudService(args: GetSpringCloudServiceArgs, opts?: InvokeOptions): Promise<GetSpringCloudServiceResult>
function getSpringCloudServiceOutput(args: GetSpringCloudServiceOutputArgs, opts?: InvokeOptions): Output<GetSpringCloudServiceResult>def get_spring_cloud_service(name: Optional[str] = None,
                             resource_group_name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetSpringCloudServiceResult
def get_spring_cloud_service_output(name: Optional[pulumi.Input[str]] = None,
                             resource_group_name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetSpringCloudServiceResult]func LookupSpringCloudService(ctx *Context, args *LookupSpringCloudServiceArgs, opts ...InvokeOption) (*LookupSpringCloudServiceResult, error)
func LookupSpringCloudServiceOutput(ctx *Context, args *LookupSpringCloudServiceOutputArgs, opts ...InvokeOption) LookupSpringCloudServiceResultOutput> Note: This function is named LookupSpringCloudService in the Go SDK.
public static class GetSpringCloudService 
{
    public static Task<GetSpringCloudServiceResult> InvokeAsync(GetSpringCloudServiceArgs args, InvokeOptions? opts = null)
    public static Output<GetSpringCloudServiceResult> Invoke(GetSpringCloudServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetSpringCloudServiceResult> getSpringCloudService(GetSpringCloudServiceArgs args, InvokeOptions options)
public static Output<GetSpringCloudServiceResult> getSpringCloudService(GetSpringCloudServiceArgs args, InvokeOptions options)
fn::invoke:
  function: azure:appplatform/getSpringCloudService:getSpringCloudService
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Specifies The name of the Spring Cloud Service resource.
- ResourceGroup stringName 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
- Name string
- Specifies The name of the Spring Cloud Service resource.
- ResourceGroup stringName 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
- name String
- Specifies The name of the Spring Cloud Service resource.
- resourceGroup StringName 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
- name string
- Specifies The name of the Spring Cloud Service resource.
- resourceGroup stringName 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
- name str
- Specifies The name of the Spring Cloud Service resource.
- resource_group_ strname 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
- name String
- Specifies The name of the Spring Cloud Service resource.
- resourceGroup StringName 
- Specifies the name of the Resource Group where the Spring Cloud Service exists.
getSpringCloudService Result
The following output properties are available:
- ConfigServer List<GetGit Settings Spring Cloud Service Config Server Git Setting> 
- A config_server_git_settingblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The location of Spring Cloud Service.
- Name string
- The name to identify on the Git repository.
- OutboundPublic List<string>Ip Addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- RequiredNetwork List<GetTraffic Rules Spring Cloud Service Required Network Traffic Rule> 
- A list of required_network_traffic_rulesblocks as defined below.
- ResourceGroup stringName 
- Dictionary<string, string>
- A mapping of tags assigned to Spring Cloud Service.
- ConfigServer []GetGit Settings Spring Cloud Service Config Server Git Setting 
- A config_server_git_settingblock as defined below.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The location of Spring Cloud Service.
- Name string
- The name to identify on the Git repository.
- OutboundPublic []stringIp Addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- RequiredNetwork []GetTraffic Rules Spring Cloud Service Required Network Traffic Rule 
- A list of required_network_traffic_rulesblocks as defined below.
- ResourceGroup stringName 
- map[string]string
- A mapping of tags assigned to Spring Cloud Service.
- configServer List<GetGit Settings Spring Cloud Service Config Server Git Setting> 
- A config_server_git_settingblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The location of Spring Cloud Service.
- name String
- The name to identify on the Git repository.
- outboundPublic List<String>Ip Addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- requiredNetwork List<GetTraffic Rules Spring Cloud Service Required Network Traffic Rule> 
- A list of required_network_traffic_rulesblocks as defined below.
- resourceGroup StringName 
- Map<String,String>
- A mapping of tags assigned to Spring Cloud Service.
- configServer GetGit Settings Spring Cloud Service Config Server Git Setting[] 
- A config_server_git_settingblock as defined below.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The location of Spring Cloud Service.
- name string
- The name to identify on the Git repository.
- outboundPublic string[]Ip Addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- requiredNetwork GetTraffic Rules Spring Cloud Service Required Network Traffic Rule[] 
- A list of required_network_traffic_rulesblocks as defined below.
- resourceGroup stringName 
- {[key: string]: string}
- A mapping of tags assigned to Spring Cloud Service.
- config_server_ Sequence[Getgit_ settings Spring Cloud Service Config Server Git Setting] 
- A config_server_git_settingblock as defined below.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The location of Spring Cloud Service.
- name str
- The name to identify on the Git repository.
- outbound_public_ Sequence[str]ip_ addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- required_network_ Sequence[Gettraffic_ rules Spring Cloud Service Required Network Traffic Rule] 
- A list of required_network_traffic_rulesblocks as defined below.
- resource_group_ strname 
- Mapping[str, str]
- A mapping of tags assigned to Spring Cloud Service.
- configServer List<Property Map>Git Settings 
- A config_server_git_settingblock as defined below.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The location of Spring Cloud Service.
- name String
- The name to identify on the Git repository.
- outboundPublic List<String>Ip Addresses 
- A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- requiredNetwork List<Property Map>Traffic Rules 
- A list of required_network_traffic_rulesblocks as defined below.
- resourceGroup StringName 
- Map<String>
- A mapping of tags assigned to Spring Cloud Service.
Supporting Types
GetSpringCloudServiceConfigServerGitSetting       
- HttpBasic List<GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth> 
- A http_basic_authblock as defined below.
- Label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- Repositories
List<GetSpring Cloud Service Config Server Git Setting Repository> 
- One or more repositoryblocks as defined below.
- SearchPaths List<string>
- An array of strings used to search subdirectories of the Git repository.
- SshAuths List<GetSpring Cloud Service Config Server Git Setting Ssh Auth> 
- A ssh_authblock as defined below.
- Uri string
- The URI of the Git repository
- HttpBasic []GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth 
- A http_basic_authblock as defined below.
- Label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- Repositories
[]GetSpring Cloud Service Config Server Git Setting Repository 
- One or more repositoryblocks as defined below.
- SearchPaths []string
- An array of strings used to search subdirectories of the Git repository.
- SshAuths []GetSpring Cloud Service Config Server Git Setting Ssh Auth 
- A ssh_authblock as defined below.
- Uri string
- The URI of the Git repository
- httpBasic List<GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth> 
- A http_basic_authblock as defined below.
- label String
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- repositories
List<GetSpring Cloud Service Config Server Git Setting Repository> 
- One or more repositoryblocks as defined below.
- searchPaths List<String>
- An array of strings used to search subdirectories of the Git repository.
- sshAuths List<GetSpring Cloud Service Config Server Git Setting Ssh Auth> 
- A ssh_authblock as defined below.
- uri String
- The URI of the Git repository
- httpBasic GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth[] 
- A http_basic_authblock as defined below.
- label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- repositories
GetSpring Cloud Service Config Server Git Setting Repository[] 
- One or more repositoryblocks as defined below.
- searchPaths string[]
- An array of strings used to search subdirectories of the Git repository.
- sshAuths GetSpring Cloud Service Config Server Git Setting Ssh Auth[] 
- A ssh_authblock as defined below.
- uri string
- The URI of the Git repository
- http_basic_ Sequence[Getauths Spring Cloud Service Config Server Git Setting Http Basic Auth] 
- A http_basic_authblock as defined below.
- label str
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- repositories
Sequence[GetSpring Cloud Service Config Server Git Setting Repository] 
- One or more repositoryblocks as defined below.
- search_paths Sequence[str]
- An array of strings used to search subdirectories of the Git repository.
- ssh_auths Sequence[GetSpring Cloud Service Config Server Git Setting Ssh Auth] 
- A ssh_authblock as defined below.
- uri str
- The URI of the Git repository
- httpBasic List<Property Map>Auths 
- A http_basic_authblock as defined below.
- label String
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- repositories List<Property Map>
- One or more repositoryblocks as defined below.
- searchPaths List<String>
- An array of strings used to search subdirectories of the Git repository.
- sshAuths List<Property Map>
- A ssh_authblock as defined below.
- uri String
- The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth          
GetSpringCloudServiceConfigServerGitSettingRepository        
- HttpBasic List<GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth> 
- A http_basic_authblock as defined below.
- Label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- Name string
- Specifies The name of the Spring Cloud Service resource.
- Patterns List<string>
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- SearchPaths List<string>
- An array of strings used to search subdirectories of the Git repository.
- SshAuths List<GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth> 
- A ssh_authblock as defined below.
- Uri string
- The URI of the Git repository
- HttpBasic []GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth 
- A http_basic_authblock as defined below.
- Label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- Name string
- Specifies The name of the Spring Cloud Service resource.
- Patterns []string
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- SearchPaths []string
- An array of strings used to search subdirectories of the Git repository.
- SshAuths []GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth 
- A ssh_authblock as defined below.
- Uri string
- The URI of the Git repository
- httpBasic List<GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth> 
- A http_basic_authblock as defined below.
- label String
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- name String
- Specifies The name of the Spring Cloud Service resource.
- patterns List<String>
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- searchPaths List<String>
- An array of strings used to search subdirectories of the Git repository.
- sshAuths List<GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth> 
- A ssh_authblock as defined below.
- uri String
- The URI of the Git repository
- httpBasic GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth[] 
- A http_basic_authblock as defined below.
- label string
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- name string
- Specifies The name of the Spring Cloud Service resource.
- patterns string[]
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- searchPaths string[]
- An array of strings used to search subdirectories of the Git repository.
- sshAuths GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth[] 
- A ssh_authblock as defined below.
- uri string
- The URI of the Git repository
- http_basic_ Sequence[Getauths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth] 
- A http_basic_authblock as defined below.
- label str
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- name str
- Specifies The name of the Spring Cloud Service resource.
- patterns Sequence[str]
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- search_paths Sequence[str]
- An array of strings used to search subdirectories of the Git repository.
- ssh_auths Sequence[GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth] 
- A ssh_authblock as defined below.
- uri str
- The URI of the Git repository
- httpBasic List<Property Map>Auths 
- A http_basic_authblock as defined below.
- label String
- The default label of the Git repository, which is a branch name, tag name, or commit-id of the repository
- name String
- Specifies The name of the Spring Cloud Service resource.
- patterns List<String>
- An array of strings used to match an application name. For each pattern, use the {application}/{profile}format with wildcards.
- searchPaths List<String>
- An array of strings used to search subdirectories of the Git repository.
- sshAuths List<Property Map>
- A ssh_authblock as defined below.
- uri String
- The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth           
GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth          
- HostKey string
- The host key of the Git repository server.
- HostKey stringAlgorithm 
- The host key algorithm.
- PrivateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- StrictHost boolKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- HostKey string
- The host key of the Git repository server.
- HostKey stringAlgorithm 
- The host key algorithm.
- PrivateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- StrictHost boolKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey String
- The host key of the Git repository server.
- hostKey StringAlgorithm 
- The host key algorithm.
- privateKey String
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost BooleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey string
- The host key of the Git repository server.
- hostKey stringAlgorithm 
- The host key algorithm.
- privateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost booleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- host_key str
- The host key of the Git repository server.
- host_key_ stralgorithm 
- The host key algorithm.
- private_key str
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strict_host_ boolkey_ checking_ enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey String
- The host key of the Git repository server.
- hostKey StringAlgorithm 
- The host key algorithm.
- privateKey String
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost BooleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
GetSpringCloudServiceConfigServerGitSettingSshAuth         
- HostKey string
- The host key of the Git repository server.
- HostKey stringAlgorithm 
- The host key algorithm.
- PrivateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- StrictHost boolKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- HostKey string
- The host key of the Git repository server.
- HostKey stringAlgorithm 
- The host key algorithm.
- PrivateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- StrictHost boolKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey String
- The host key of the Git repository server.
- hostKey StringAlgorithm 
- The host key algorithm.
- privateKey String
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost BooleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey string
- The host key of the Git repository server.
- hostKey stringAlgorithm 
- The host key algorithm.
- privateKey string
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost booleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- host_key str
- The host key of the Git repository server.
- host_key_ stralgorithm 
- The host key algorithm.
- private_key str
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strict_host_ boolkey_ checking_ enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
- hostKey String
- The host key of the Git repository server.
- hostKey StringAlgorithm 
- The host key algorithm.
- privateKey String
- The SSH private key to access the Git repository, needed when the URI starts with git@orssh://.
- strictHost BooleanKey Checking Enabled 
- Indicates whether the Config Server instance will fail to start if the host_key does not match.
GetSpringCloudServiceRequiredNetworkTrafficRule       
- Direction string
- The direction of required traffic. Possible values are Inbound,Outbound.
- Fqdns List<string>
- The FQDN list of required traffic.
- IpAddresses List<string>
- The IP list of required traffic.
- Port int
- The port of required traffic.
- Protocol string
- The protocol of required traffic.
- Direction string
- The direction of required traffic. Possible values are Inbound,Outbound.
- Fqdns []string
- The FQDN list of required traffic.
- IpAddresses []string
- The IP list of required traffic.
- Port int
- The port of required traffic.
- Protocol string
- The protocol of required traffic.
- direction String
- The direction of required traffic. Possible values are Inbound,Outbound.
- fqdns List<String>
- The FQDN list of required traffic.
- ipAddresses List<String>
- The IP list of required traffic.
- port Integer
- The port of required traffic.
- protocol String
- The protocol of required traffic.
- direction string
- The direction of required traffic. Possible values are Inbound,Outbound.
- fqdns string[]
- The FQDN list of required traffic.
- ipAddresses string[]
- The IP list of required traffic.
- port number
- The port of required traffic.
- protocol string
- The protocol of required traffic.
- direction str
- The direction of required traffic. Possible values are Inbound,Outbound.
- fqdns Sequence[str]
- The FQDN list of required traffic.
- ip_addresses Sequence[str]
- The IP list of required traffic.
- port int
- The port of required traffic.
- protocol str
- The protocol of required traffic.
- direction String
- The direction of required traffic. Possible values are Inbound,Outbound.
- fqdns List<String>
- The FQDN list of required traffic.
- ipAddresses List<String>
- The IP list of required traffic.
- port Number
- The port of required traffic.
- protocol String
- The protocol of required traffic.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.