Skip to main content
Glama

mcp-nutanix

networksecurityrule.go973 B
package resources import ( "context" "github.com/thunderboltsid/mcp-nutanix/internal/client" "github.com/mark3labs/mcp-go/mcp" "github.com/mark3labs/mcp-go/server" ) // NetworkSecurityRule defines the NetworkSecurityRule resource template func NetworkSecurityRule() mcp.ResourceTemplate { return mcp.NewResourceTemplate( string(ResourceURIPrefix(ResourceTypeNetworkSecurityRule))+"{uuid}", string(ResourceTypeNetworkSecurityRule), mcp.WithTemplateDescription("Network Security Rule resource"), mcp.WithTemplateMIMEType("application/json"), ) } // NetworkSecurityRuleHandler implements the handler for the NetworkSecurityRule resource func NetworkSecurityRuleHandler() server.ResourceTemplateHandlerFunc { return CreateResourceHandler(ResourceTypeNetworkSecurityRule, func(ctx context.Context, client *client.NutanixClient, uuid string) (interface{}, error) { // Get the NetworkSecurityRule return client.V3().GetNetworkSecurityRule(ctx, uuid) }) }

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/thunderboltsid/mcp-nutanix'

If you have feedback or need assistance with the MCP directory API, please join our Discord server