avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getMicroservicegroup
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: avi.Microservicegroup” sidebar_current: “docs-avi-datasource-microservicegroup” description: |- Get information of Avi MicroServiceGroup.
avi.Microservicegroup
This data source is used to to get avi.Microservicegroup objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooMicroservicegroup = avi.getMicroservicegroup({
name: "foo",
uuid: "microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_microservicegroup = avi.get_microservicegroup(name="foo",
uuid="microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.LookupMicroservicegroup(ctx, &avi.LookupMicroservicegroupArgs{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var fooMicroservicegroup = Avi.GetMicroservicegroup.Invoke(new()
{
Name = "foo",
Uuid = "microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetMicroservicegroupArgs;
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 fooMicroservicegroup = AviFunctions.getMicroservicegroup(GetMicroservicegroupArgs.builder()
.name("foo")
.uuid("microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooMicroservicegroup:
fn::invoke:
function: avi:getMicroservicegroup
arguments:
name: foo
uuid: microservicegroup-f9cf6b3e-a411-436f-95e2-2982ba2b217b
Using getMicroservicegroup
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 getMicroservicegroup(args: GetMicroservicegroupArgs, opts?: InvokeOptions): Promise<GetMicroservicegroupResult>
function getMicroservicegroupOutput(args: GetMicroservicegroupOutputArgs, opts?: InvokeOptions): Output<GetMicroservicegroupResult>
def get_microservicegroup(id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetMicroservicegroupResult
def get_microservicegroup_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMicroservicegroupResult]
func LookupMicroservicegroup(ctx *Context, args *LookupMicroservicegroupArgs, opts ...InvokeOption) (*LookupMicroservicegroupResult, error)
func LookupMicroservicegroupOutput(ctx *Context, args *LookupMicroservicegroupOutputArgs, opts ...InvokeOption) LookupMicroservicegroupResultOutput
> Note: This function is named LookupMicroservicegroup
in the Go SDK.
public static class GetMicroservicegroup
{
public static Task<GetMicroservicegroupResult> InvokeAsync(GetMicroservicegroupArgs args, InvokeOptions? opts = null)
public static Output<GetMicroservicegroupResult> Invoke(GetMicroservicegroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetMicroservicegroupResult> getMicroservicegroup(GetMicroservicegroupArgs args, InvokeOptions options)
public static Output<GetMicroservicegroupResult> getMicroservicegroup(GetMicroservicegroupArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getMicroservicegroup:getMicroservicegroup
arguments:
# arguments dictionary
The following arguments are supported:
- id str
- name str
- Search MicroServiceGroup by name.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Search MicroServiceGroup by uuid.
getMicroservicegroup Result
The following output properties are available:
- Configpb
Attributes List<GetMicroservicegroup Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Created
By string - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Service
Refs List<string> - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Configpb
Attributes []GetMicroservicegroup Configpb Attribute - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Created
By string - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Service
Refs []string - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Uuid string
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<GetMicroservicegroup Configpb Attribute> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- created
By String - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
Refs List<String> - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes GetMicroservicegroup Configpb Attribute[] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- created
By string - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description string
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- name string
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
Refs string[] - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid string
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb_
attributes Sequence[GetMicroservicegroup Configpb Attribute] - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- created_
by str - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description str
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- name str
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service_
refs Sequence[str] - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid str
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- configpb
Attributes List<Property Map> - Protobuf versioning for config pbs. Field introduced in 21.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- created
By String - Creator name. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- description String
- Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- service
Refs List<String> - Configure microservice(es). It is a reference to an object of type microservice. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - It is a reference to an object of type tenant. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- uuid String
- Uuid of the microservice group. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
Supporting Types
GetMicroservicegroupConfigpbAttribute
- Version string
- Version string
- version String
- version string
- version str
- version String
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.