GetSpringCloudService
Use this data source to access information about an existing Spring Cloud Service.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.AppPlatform.GetSpringCloudService.InvokeAsync(new Azure.AppPlatform.GetSpringCloudServiceArgs
{
Name = azurerm_spring_cloud_service.Example.Name,
ResourceGroupName = azurerm_spring_cloud_service.Example.Resource_group_name,
}));
this.SpringCloudServiceId = example.Apply(example => example.Id);
}
[Output("springCloudServiceId")]
public Output<string> SpringCloudServiceId { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appplatform"
"github.com/pulumi/pulumi/sdk/v2/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
})
}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);Using GetSpringCloudService
function getSpringCloudService(args: GetSpringCloudServiceArgs, opts?: InvokeOptions): Promise<GetSpringCloudServiceResult>function get_spring_cloud_service(name=None, resource_group_name=None, opts=None)func LookupSpringCloudService(ctx *Context, args *LookupSpringCloudServiceArgs, opts ...InvokeOption) (*LookupSpringCloudServiceResult, error)Note: This function is named
LookupSpringCloudServicein the Go SDK.
public static class GetSpringCloudService {
public static Task<GetSpringCloudServiceResult> InvokeAsync(GetSpringCloudServiceArgs args, InvokeOptions? opts = null)
}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 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.
GetSpringCloudService Result
The following output properties are available:
- Config
Server 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.
- 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_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.
- 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_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.
- resource
Group stringName - {[key: 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_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.
- resource_
group_ strname - Dict[str, str]
A mapping of tags assigned to Spring Cloud Service.
Supporting Types
GetSpringCloudServiceConfigServerGitSetting
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Http Basic Auth Args> 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<Get
Spring Cloud Service Config Server Git Setting Repository Args> One or more
repositoryblocks 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 Args> A
ssh_authblock 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_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
[]Get
Spring Cloud Service Config Server Git Setting Repository One or more
repositoryblocks 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_authblock 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_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
Get
Spring Cloud Service Config Server Git Setting Repository[] One or more
repositoryblocks 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_authblock 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_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
List[Get
Spring Cloud Service Config Server Git Setting Repository] One or more
repositoryblocks as defined below.- search
Paths List[str] 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_authblock as defined below.- uri str
The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingHttpBasicAuth
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetSpringCloudServiceConfigServerGitSettingRepository
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Http
Basic List<GetAuths Spring Cloud Service Config Server Git Setting Repository Http Basic Auth Args> 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.- 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 Args> A
ssh_authblock 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_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.- 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_authblock 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_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.- 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_authblock 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_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 List[str]
An array of strings used to match an application name. For each pattern, use the
{application}/{profile}format with wildcards.- search
Paths List[str] 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_authblock as defined below.- uri str
The URI of the Git repository
GetSpringCloudServiceConfigServerGitSettingRepositoryHttpBasicAuth
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
GetSpringCloudServiceConfigServerGitSettingRepositorySshAuth
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
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 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.
GetSpringCloudServiceConfigServerGitSettingSshAuth
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
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 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.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.