We recommend using Azure Native.
azure.appplatform.getSpringCloudService
Explore with Pulumi AI
Use this data source to access information about an existing Spring Cloud Service.
Example Usage
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 = azurerm_spring_cloud_service.Example.Name,
ResourceGroupName = azurerm_spring_cloud_service.Example.Resource_group_name,
});
return new Dictionary<string, object?>
{
["springCloudServiceId"] = example.Apply(getSpringCloudServiceResult => getSpringCloudServiceResult.Id),
};
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v5/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: azurerm_spring_cloud_service.Example.Name,
ResourceGroupName: azurerm_spring_cloud_service.Example.Resource_group_name,
}, nil)
if err != nil {
return err
}
ctx.Export("springCloudServiceId", example.Id)
return nil
})
}
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(azurerm_spring_cloud_service.example().name())
.resourceGroupName(azurerm_spring_cloud_service.example().resource_group_name())
.build());
ctx.export("springCloudServiceId", example.applyValue(getSpringCloudServiceResult -> getSpringCloudServiceResult.id()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.appplatform.get_spring_cloud_service(name=azurerm_spring_cloud_service["example"]["name"],
resource_group_name=azurerm_spring_cloud_service["example"]["resource_group_name"])
pulumi.export("springCloudServiceId", example.id)
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.appplatform.getSpringCloudService({
name: azurerm_spring_cloud_service.example.name,
resourceGroupName: azurerm_spring_cloud_service.example.resource_group_name,
});
export const springCloudServiceId = example.then(example => example.id);
variables:
example:
fn::invoke:
Function: azure:appplatform:getSpringCloudService
Arguments:
name: ${azurerm_spring_cloud_service.example.name}
resourceGroupName: ${azurerm_spring_cloud_service.example.resource_group_name}
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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:appplatform/getSpringCloudService:getSpringCloudService
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
Specifies The name of the Spring Cloud Service resource.
- Resource
Group 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.
- Resource
Group 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.
- resource
Group 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.
- resource
Group 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.
- resource
Group StringName Specifies the name of the Resource Group where the Spring Cloud Service exists.
getSpringCloudService Result
The following output properties are available:
- Config
Server List<GetGit Settings Spring Cloud Service Config Server Git Setting> A
config_server_git_setting
block 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.
- Outbound
Public List<string>Ip Addresses A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- Required
Network List<GetTraffic Rules Spring Cloud Service Required Network Traffic Rule> A list of
required_network_traffic_rules
blocks as defined below.- Resource
Group stringName - Dictionary<string, string>
A mapping of tags assigned to Spring Cloud Service.
- Config
Server []GetGit Settings Spring Cloud Service Config Server Git Setting A
config_server_git_setting
block 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.
- Outbound
Public []stringIp Addresses A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- Required
Network []GetTraffic Rules Spring Cloud Service Required Network Traffic Rule A list of
required_network_traffic_rules
blocks as defined below.- Resource
Group stringName - map[string]string
A mapping of tags assigned to Spring Cloud Service.
- config
Server List<GetGit Settings Spring Cloud Service Config Server Git Setting> A
config_server_git_setting
block 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.
- outbound
Public List<String>Ip Addresses A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- required
Network List<GetTraffic Rules Spring Cloud Service Required Network Traffic Rule> A list of
required_network_traffic_rules
blocks as defined below.- resource
Group StringName - Map<String,String>
A mapping of tags assigned to Spring Cloud Service.
- config
Server GetGit Settings Spring Cloud Service Config Server Git Setting[] A
config_server_git_setting
block 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.
- outbound
Public string[]Ip Addresses A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- required
Network GetTraffic Rules Spring Cloud Service Required Network Traffic Rule[] A list of
required_network_traffic_rules
blocks as defined below.- resource
Group 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_setting
block 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_rules
blocks as defined below.- resource_
group_ strname - Mapping[str, str]
A mapping of tags assigned to Spring Cloud Service.
- config
Server List<Property Map>Git Settings A
config_server_git_setting
block 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.
- outbound
Public List<String>Ip Addresses A list of the outbound Public IP Addresses used by this Spring Cloud Service.
- required
Network List<Property Map>Traffic Rules A list of
required_network_traffic_rules
blocks as defined below.- resource
Group StringName - Map<String>
A mapping of tags assigned to Spring Cloud Service.
Supporting Types
GetSpringCloudServiceConfigServerGitSetting
- Http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth> A
http_basic_auth
block 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<Get
Spring Cloud Service Config Server Git Setting Repository> One or more
repository
blocks as defined below.- Search
Paths List<string> An array of strings used to search subdirectories of the Git repository.
- Ssh
Auths List<GetSpring Cloud Service Config Server Git Setting Ssh Auth> A
ssh_auth
block as defined below.- Uri string
The URI of the Git repository
- Http
Basic []GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth A
http_basic_auth
block 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
[]Get
Spring Cloud Service Config Server Git Setting Repository One or more
repository
blocks as defined below.- Search
Paths []string An array of strings used to search subdirectories of the Git repository.
- Ssh
Auths []GetSpring Cloud Service Config Server Git Setting Ssh Auth A
ssh_auth
block as defined below.- Uri string
The URI of the Git repository
- http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth> A
http_basic_auth
block 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<Get
Spring Cloud Service Config Server Git Setting Repository> One or more
repository
blocks as defined below.- search
Paths List<String> An array of strings used to search subdirectories of the Git repository.
- ssh
Auths List<GetSpring Cloud Service Config Server Git Setting Ssh Auth> A
ssh_auth
block as defined below.- uri String
The URI of the Git repository
- http
Basic GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth[] A
http_basic_auth
block 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
Get
Spring Cloud Service Config Server Git Setting Repository[] One or more
repository
blocks as defined below.- search
Paths string[] An array of strings used to search subdirectories of the Git repository.
- ssh
Auths GetSpring Cloud Service Config Server Git Setting Ssh Auth[] A
ssh_auth
block 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_auth
block 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[Get
Spring Cloud Service Config Server Git Setting Repository] One or more
repository
blocks 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_auth
block as defined below.- uri str
The URI of the Git repository
- http
Basic List<Property Map>Auths A
http_basic_auth
block 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
repository
blocks as defined below.- search
Paths List<String> An array of strings used to search subdirectories of the Git repository.
- ssh
Auths List<Property Map> A
ssh_auth
block as defined below.- uri String
The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth
GetSpringCloudServiceConfigServerGitSettingRepository
- Http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth> A
http_basic_auth
block 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.- Search
Paths List<string> An array of strings used to search subdirectories of the Git repository.
- Ssh
Auths List<GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth> A
ssh_auth
block as defined below.- Uri string
The URI of the Git repository
- Http
Basic []GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth A
http_basic_auth
block 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.- Search
Paths []string An array of strings used to search subdirectories of the Git repository.
- Ssh
Auths []GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth A
ssh_auth
block as defined below.- Uri string
The URI of the Git repository
- http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth> A
http_basic_auth
block 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.- search
Paths List<String> An array of strings used to search subdirectories of the Git repository.
- ssh
Auths List<GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth> A
ssh_auth
block as defined below.- uri String
The URI of the Git repository
- http
Basic GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth[] A
http_basic_auth
block 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.- search
Paths string[] An array of strings used to search subdirectories of the Git repository.
- ssh
Auths GetSpring Cloud Service Config Server Git Setting Repository Ssh Auth[] A
ssh_auth
block 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_auth
block 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_auth
block as defined below.- uri str
The URI of the Git repository
- http
Basic List<Property Map>Auths A
http_basic_auth
block 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.- search
Paths List<String> An array of strings used to search subdirectories of the Git repository.
- ssh
Auths List<Property Map> A
ssh_auth
block as defined below.- uri String
The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth
GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth
- Host
Key string The host key of the Git repository server.
- Host
Key stringAlgorithm The host key algorithm.
- Private
Key string 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.
- Host
Key string The host key of the Git repository server.
- Host
Key stringAlgorithm The host key algorithm.
- Private
Key string 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.
- host
Key String The host key of the Git repository server.
- host
Key StringAlgorithm The host key algorithm.
- private
Key String The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host BooleanKey Checking Enabled Indicates whether the Config Server instance will fail to start if the host_key does not match.
- host
Key string The host key of the Git repository server.
- host
Key stringAlgorithm The host key algorithm.
- private
Key string The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host 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.
- host
Key String The host key of the Git repository server.
- host
Key StringAlgorithm The host key algorithm.
- private
Key String The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host BooleanKey Checking Enabled Indicates whether the Config Server instance will fail to start if the host_key does not match.
GetSpringCloudServiceConfigServerGitSettingSshAuth
- Host
Key string The host key of the Git repository server.
- Host
Key stringAlgorithm The host key algorithm.
- Private
Key string 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.
- Host
Key string The host key of the Git repository server.
- Host
Key stringAlgorithm The host key algorithm.
- Private
Key string 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.
- host
Key String The host key of the Git repository server.
- host
Key StringAlgorithm The host key algorithm.
- private
Key String The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host BooleanKey Checking Enabled Indicates whether the Config Server instance will fail to start if the host_key does not match.
- host
Key string The host key of the Git repository server.
- host
Key stringAlgorithm The host key algorithm.
- private
Key string The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host 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.
- host
Key String The host key of the Git repository server.
- host
Key StringAlgorithm The host key algorithm.
- private
Key String The SSH private key to access the Git repository, needed when the URI starts with
git@
orssh://
.- strict
Host 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.
- Ip
Addresses 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.
- Ip
Addresses []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.
- ip
Addresses 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.
- ip
Addresses 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.
- ip
Addresses 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
azurerm
Terraform Provider.