/// <summary> /// Using this data source can open Cloud Storage Gateway service automatically. If the service has been opened, it will return opened. /// /// For information about Cloud Storage Gateway and how to use it, see [What is Cloud Storage Gateway](https://www.alibabacloud.com/help/en/product/53923.htm). /// /// > **NOTE:** Available in v1.117.0+ /// /// {{% examples %}} /// ## Example Usage /// {{% example %}} /// /// ```csharp /// using Pulumi; /// using AliCloud = Pulumi.AliCloud; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var open = Output.Create(AliCloud.CloudStorageGateway.GetService.InvokeAsync(new AliCloud.CloudStorageGateway.GetServiceArgs /// { /// Enable = "On", /// })); /// } /// /// } /// ``` /// {{% /example %}} /// {{% /examples %}} /// </summary> public static Task <GetServiceResult> InvokeAsync(GetServiceArgs?args = null, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetServiceResult>("alicloud:cloudstoragegateway/getService:getService", args ?? new GetServiceArgs(), options.WithVersion());
/// <summary> /// Using this data source can open FC service automatically. If the service has been opened, it will return opened. /// /// For information about FC and how to use it, see [What is FC](https://www.alibabacloud.com/help/en/product/50980.htm). /// /// > **NOTE:** Available in v1.112.0+ /// /// {{% examples %}} /// ## Example Usage /// {{% example %}} /// /// ```csharp /// using Pulumi; /// using AliCloud = Pulumi.AliCloud; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var open = Output.Create(AliCloud.FC.GetService.InvokeAsync(new AliCloud.FC.GetServiceArgs /// { /// Enable = "On", /// })); /// } /// /// } /// ``` /// {{% /example %}} /// {{% /examples %}} /// </summary> public static Task <GetServiceResult> InvokeAsync(GetServiceArgs?args = null, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetServiceResult>("alicloud:fc/getService:getService", args ?? new GetServiceArgs(), options.WithDefaults());
/// <summary> /// Use this data source to get the ID of an OpenStack service. /// /// > **Note:** This usually requires admin privileges. /// /// {{% examples %}} /// ## Example Usage /// {{% example %}} /// /// ```csharp /// using Pulumi; /// using OpenStack = Pulumi.OpenStack; /// /// class MyStack : Stack /// { /// public MyStack() /// { /// var service1 = Output.Create(OpenStack.Identity.GetService.InvokeAsync(new OpenStack.Identity.GetServiceArgs /// { /// Name = "keystone", /// })); /// } /// /// } /// ``` /// {{% /example %}} /// {{% /examples %}} /// </summary> public static Task <GetServiceResult> InvokeAsync(GetServiceArgs?args = null, InvokeOptions?options = null) => Pulumi.Deployment.Instance.InvokeAsync <GetServiceResult>("openstack:identity/getService:getService", args ?? new GetServiceArgs(), options.WithVersion());