1. Packages
  2. Azure Native v2
  3. API Docs
  4. servicefabricmesh
  5. getSecret
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.servicefabricmesh.getSecret

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets the information about the secret resource with the given name. The information include the description and other properties of the secret. Azure REST API version: 2018-09-01-preview.

Using getSecret

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 getSecret(args: GetSecretArgs, opts?: InvokeOptions): Promise<GetSecretResult>
function getSecretOutput(args: GetSecretOutputArgs, opts?: InvokeOptions): Output<GetSecretResult>
Copy
def get_secret(resource_group_name: Optional[str] = None,
               secret_resource_name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetSecretResult
def get_secret_output(resource_group_name: Optional[pulumi.Input[str]] = None,
               secret_resource_name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetSecretResult]
Copy
func LookupSecret(ctx *Context, args *LookupSecretArgs, opts ...InvokeOption) (*LookupSecretResult, error)
func LookupSecretOutput(ctx *Context, args *LookupSecretOutputArgs, opts ...InvokeOption) LookupSecretResultOutput
Copy

> Note: This function is named LookupSecret in the Go SDK.

public static class GetSecret 
{
    public static Task<GetSecretResult> InvokeAsync(GetSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetSecretResult> Invoke(GetSecretInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
public static Output<GetSecretResult> getSecret(GetSecretArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:servicefabricmesh:getSecret
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
SecretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
SecretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the secret resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the secret resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Azure resource group name
secret_resource_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the secret resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Azure resource group name
secretResourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the secret resource.

getSecret Result

The following output properties are available:

Id string
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Location string
The geo-location where the resource lives
Name string
The name of the resource
Properties Pulumi.AzureNative.ServiceFabricMesh.Outputs.SecretResourcePropertiesResponse
Describes the properties of a secret resource.
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Tags Dictionary<string, string>
Resource tags.
Id string
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
Location string
The geo-location where the resource lives
Name string
The name of the resource
Properties SecretResourcePropertiesResponse
Describes the properties of a secret resource.
Type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
Tags map[string]string
Resource tags.
id String
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location String
The geo-location where the resource lives
name String
The name of the resource
properties SecretResourcePropertiesResponse
Describes the properties of a secret resource.
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
tags Map<String,String>
Resource tags.
id string
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location string
The geo-location where the resource lives
name string
The name of the resource
properties SecretResourcePropertiesResponse
Describes the properties of a secret resource.
type string
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
tags {[key: string]: string}
Resource tags.
id str
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location str
The geo-location where the resource lives
name str
The name of the resource
properties SecretResourcePropertiesResponse
Describes the properties of a secret resource.
type str
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
tags Mapping[str, str]
Resource tags.
id String
Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
location String
The geo-location where the resource lives
name String
The name of the resource
properties Property Map
Describes the properties of a secret resource.
type String
The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
tags Map<String>
Resource tags.

Supporting Types

SecretResourcePropertiesResponse

ProvisioningState This property is required. string
State of the resource.
Status This property is required. string
Status of the resource.
StatusDetails This property is required. string
Gives additional information about the current status of the secret.
ContentType string
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
Description string
User readable description of the secret.
ProvisioningState This property is required. string
State of the resource.
Status This property is required. string
Status of the resource.
StatusDetails This property is required. string
Gives additional information about the current status of the secret.
ContentType string
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
Description string
User readable description of the secret.
provisioningState This property is required. String
State of the resource.
status This property is required. String
Status of the resource.
statusDetails This property is required. String
Gives additional information about the current status of the secret.
contentType String
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
description String
User readable description of the secret.
provisioningState This property is required. string
State of the resource.
status This property is required. string
Status of the resource.
statusDetails This property is required. string
Gives additional information about the current status of the secret.
contentType string
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
description string
User readable description of the secret.
provisioning_state This property is required. str
State of the resource.
status This property is required. str
Status of the resource.
status_details This property is required. str
Gives additional information about the current status of the secret.
content_type str
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
description str
User readable description of the secret.
provisioningState This property is required. String
State of the resource.
status This property is required. String
Status of the resource.
statusDetails This property is required. String
Gives additional information about the current status of the secret.
contentType String
The type of the content stored in the secret value. The value of this property is opaque to Service Fabric. Once set, the value of this property cannot be changed.
description String
User readable description of the secret.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi